wekan.html 926 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902
  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.09</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.09">Wekan REST API v6.09</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_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1487. </li>
  1488. <li>
  1489. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1490. </li>
  1491. <li>
  1492. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1493. </li>
  1494. <li>
  1495. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1499. </li>
  1500. <li>
  1501. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1502. </li>
  1503. </ul>
  1504. </li>
  1505. <li>
  1506. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1507. <ul class="toc-list-h2">
  1508. <li>
  1509. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1510. </li>
  1511. <li>
  1512. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1513. </li>
  1514. <li>
  1515. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1516. </li>
  1517. <li>
  1518. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1519. </li>
  1520. <li>
  1521. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1522. </li>
  1523. <li>
  1524. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1525. </li>
  1526. <li>
  1527. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1528. </li>
  1529. <li>
  1530. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1531. </li>
  1532. </ul>
  1533. </li>
  1534. <li>
  1535. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1536. <ul class="toc-list-h2">
  1537. <li>
  1538. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1539. </li>
  1540. <li>
  1541. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1542. </li>
  1543. <li>
  1544. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1545. </li>
  1546. <li>
  1547. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1548. </li>
  1549. <li>
  1550. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1551. </li>
  1552. <li>
  1553. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1554. </li>
  1555. <li>
  1556. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1557. </li>
  1558. </ul>
  1559. </li>
  1560. <li>
  1561. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1562. <ul class="toc-list-h2">
  1563. <li>
  1564. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1565. </li>
  1566. <li>
  1567. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1568. </li>
  1569. <li>
  1570. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1571. </li>
  1572. <li>
  1573. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1574. </li>
  1575. </ul>
  1576. </li>
  1577. <li>
  1578. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1579. <ul class="toc-list-h2">
  1580. <li>
  1581. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1582. </li>
  1583. <li>
  1584. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1585. </li>
  1586. <li>
  1587. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1588. </li>
  1589. <li>
  1590. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1591. </li>
  1592. <li>
  1593. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1594. </li>
  1595. <li>
  1596. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1597. </li>
  1598. <li>
  1599. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1600. </li>
  1601. <li>
  1602. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1603. </li>
  1604. <li>
  1605. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1606. </li>
  1607. </ul>
  1608. </li>
  1609. <li>
  1610. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1611. <ul class="toc-list-h2">
  1612. <li>
  1613. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1614. </li>
  1615. <li>
  1616. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1617. </li>
  1618. <li>
  1619. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1620. </li>
  1621. <li>
  1622. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1623. </li>
  1624. </ul>
  1625. </li>
  1626. <li>
  1627. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1628. <ul class="toc-list-h2">
  1629. <li>
  1630. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1703. </li>
  1704. <li>
  1705. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1706. </li>
  1707. <li>
  1708. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1709. </li>
  1710. <li>
  1711. <a href="#tocs_usersprofilecopychecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileCopychecklistdialog</a>
  1712. </li>
  1713. <li>
  1714. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1715. </li>
  1716. </ul>
  1717. </li>
  1718. </ul>
  1719. </div>
  1720. <ul class="toc-footer">
  1721. </ul>
  1722. </div>
  1723. <div class="page-wrapper">
  1724. <div class="dark-box"></div>
  1725. <div class="content">
  1726. <h1 id="wekan-rest-api">Wekan REST API v6.09</h1>
  1727. <blockquote>
  1728. <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>
  1729. </blockquote>
  1730. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1731. <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>
  1732. <blockquote>
  1733. <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>
  1734. </blockquote>
  1735. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1736. <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>
  1737. <ul>
  1738. <li>Only call via HTTPS</li>
  1739. <li>Implement a timed authorization token expiration strategy</li>
  1740. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1741. </ul>
  1742. <h1 id="authentication">Authentication</h1>
  1743. <ul>
  1744. <li>API Key (UserSecurity)
  1745. <ul>
  1746. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1747. </ul>
  1748. </li>
  1749. </ul>
  1750. <h1 id="wekan-rest-api-login">Login</h1>
  1751. <h2 id="login">login</h2>
  1752. <p><a id="opIdlogin"></a></p>
  1753. <blockquote>
  1754. <p>Code samples</p>
  1755. </blockquote>
  1756. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1757. curl -X POST /users/login \
  1758. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1759. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1760. </code></pre>
  1761. <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>
  1762. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1763. <span class="hljs-keyword">Accept</span>: */*
  1764. </span></code></pre>
  1765. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1766. &quot;username&quot;: &quot;string&quot;,
  1767. &quot;password&quot;: &quot;pa$$word&quot;
  1768. }&#x27;</span>;
  1769. <span class="hljs-keyword">const</span> headers = {
  1770. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1771. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1772. };
  1773. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1774. {
  1775. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1776. <span class="hljs-attr">body</span>: inputBody,
  1777. <span class="hljs-attr">headers</span>: headers
  1778. })
  1779. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1780. <span class="hljs-keyword">return</span> res.json();
  1781. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1782. <span class="hljs-built_in">console</span>.log(body);
  1783. });
  1784. </code></pre>
  1785. <pre class="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>);
  1786. <span class="hljs-keyword">const</span> inputBody = {
  1787. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1788. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1789. };
  1790. <span class="hljs-keyword">const</span> headers = {
  1791. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1792. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1793. };
  1794. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1795. {
  1796. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1797. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1798. <span class="hljs-attr">headers</span>: headers
  1799. })
  1800. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1801. <span class="hljs-keyword">return</span> res.json();
  1802. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1803. <span class="hljs-built_in">console</span>.log(body);
  1804. });
  1805. </code></pre>
  1806. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1807. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1808. headers = {
  1809. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1810. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1811. }
  1812. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1813. <span class="hljs-symbol">params:</span> {
  1814. }, <span class="hljs-symbol">headers:</span> headers
  1815. p JSON.parse(result)
  1816. </code></pre>
  1817. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1818. headers = {
  1819. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1820. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1821. }
  1822. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1823. <span class="hljs-built_in">print</span>(r.json())
  1824. </code></pre>
  1825. <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>);
  1826. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1827. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1828. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1829. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1830. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1831. String inputLine;
  1832. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1833. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1834. response.append(inputLine);
  1835. }
  1836. in.close();
  1837. System.out.println(response.toString());
  1838. </code></pre>
  1839. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1840. <span class="hljs-keyword">import</span> (
  1841. <span class="hljs-string">&quot;bytes&quot;</span>
  1842. <span class="hljs-string">&quot;net/http&quot;</span>
  1843. )
  1844. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1845. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1846. <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>},
  1847. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1848. }
  1849. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1850. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1851. req.Header = headers
  1852. client := &amp;http.Client{}
  1853. resp, err := client.Do(req)
  1854. <span class="hljs-comment">// ...</span>
  1855. }
  1856. </code></pre>
  1857. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1858. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1859. );
  1860. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1861. <span class="hljs-comment">// Define array of request body.</span>
  1862. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1863. <span class="hljs-keyword">try</span> {
  1864. <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>(
  1865. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1866. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1867. )
  1868. );
  1869. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1870. }
  1871. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1872. <span class="hljs-comment">// handle exception or api errors.</span>
  1873. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1874. }
  1875. <span class="hljs-comment">// ...</span>
  1876. </code></pre>
  1877. <p><code>POST /users/login</code></p>
  1878. <p><em>Login with REST API</em></p>
  1879. <blockquote>
  1880. <p>Body parameter</p>
  1881. </blockquote>
  1882. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1883. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1884. </code></pre>
  1885. <h3 id="login-parameters">Parameters</h3>
  1886. <table>
  1887. <thead>
  1888. <tr>
  1889. <th>Name</th>
  1890. <th>In</th>
  1891. <th>Type</th>
  1892. <th>Required</th>
  1893. <th>Description</th>
  1894. </tr>
  1895. </thead>
  1896. <tbody>
  1897. <tr>
  1898. <td>body</td>
  1899. <td>body</td>
  1900. <td>object</td>
  1901. <td>true</td>
  1902. <td>none</td>
  1903. </tr>
  1904. <tr>
  1905. <td>» username</td>
  1906. <td>body</td>
  1907. <td>string</td>
  1908. <td>true</td>
  1909. <td>Your username</td>
  1910. </tr>
  1911. <tr>
  1912. <td>» password</td>
  1913. <td>body</td>
  1914. <td>string(password)</td>
  1915. <td>true</td>
  1916. <td>Your password</td>
  1917. </tr>
  1918. </tbody>
  1919. </table>
  1920. <blockquote>
  1921. <p>Example responses</p>
  1922. </blockquote>
  1923. <blockquote>
  1924. <p>200 Response</p>
  1925. </blockquote>
  1926. <h3 id="login-responses">Responses</h3>
  1927. <table>
  1928. <thead>
  1929. <tr>
  1930. <th>Status</th>
  1931. <th>Meaning</th>
  1932. <th>Description</th>
  1933. <th>Schema</th>
  1934. </tr>
  1935. </thead>
  1936. <tbody>
  1937. <tr>
  1938. <td>200</td>
  1939. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1940. <td>Successful authentication</td>
  1941. <td>Inline</td>
  1942. </tr>
  1943. <tr>
  1944. <td>400</td>
  1945. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1946. <td>Error in authentication</td>
  1947. <td>Inline</td>
  1948. </tr>
  1949. <tr>
  1950. <td>default</td>
  1951. <td>Default</td>
  1952. <td>Error in authentication</td>
  1953. <td>None</td>
  1954. </tr>
  1955. </tbody>
  1956. </table>
  1957. <h3 id="login-responseschema">Response Schema</h3>
  1958. <p>Status Code <strong>200</strong></p>
  1959. <table>
  1960. <thead>
  1961. <tr>
  1962. <th>Name</th>
  1963. <th>Type</th>
  1964. <th>Required</th>
  1965. <th>Restrictions</th>
  1966. <th>Description</th>
  1967. </tr>
  1968. </thead>
  1969. <tbody>
  1970. <tr>
  1971. <td>» id</td>
  1972. <td>string</td>
  1973. <td>false</td>
  1974. <td>none</td>
  1975. <td>none</td>
  1976. </tr>
  1977. <tr>
  1978. <td>» token</td>
  1979. <td>string</td>
  1980. <td>false</td>
  1981. <td>none</td>
  1982. <td>none</td>
  1983. </tr>
  1984. <tr>
  1985. <td>» tokenExpires</td>
  1986. <td>string</td>
  1987. <td>false</td>
  1988. <td>none</td>
  1989. <td>none</td>
  1990. </tr>
  1991. </tbody>
  1992. </table>
  1993. <p>Status Code <strong>400</strong></p>
  1994. <table>
  1995. <thead>
  1996. <tr>
  1997. <th>Name</th>
  1998. <th>Type</th>
  1999. <th>Required</th>
  2000. <th>Restrictions</th>
  2001. <th>Description</th>
  2002. </tr>
  2003. </thead>
  2004. <tbody>
  2005. <tr>
  2006. <td>» error</td>
  2007. <td>number</td>
  2008. <td>false</td>
  2009. <td>none</td>
  2010. <td>none</td>
  2011. </tr>
  2012. <tr>
  2013. <td>» reason</td>
  2014. <td>string</td>
  2015. <td>false</td>
  2016. <td>none</td>
  2017. <td>none</td>
  2018. </tr>
  2019. </tbody>
  2020. </table>
  2021. <aside class="success">
  2022. This operation does not require authentication
  2023. </aside>
  2024. <h2 id="register">register</h2>
  2025. <p><a id="opIdregister"></a></p>
  2026. <blockquote>
  2027. <p>Code samples</p>
  2028. </blockquote>
  2029. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2030. curl -X POST /users/register \
  2031. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2032. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2033. </code></pre>
  2034. <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>
  2035. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2036. <span class="hljs-keyword">Accept</span>: */*
  2037. </span></code></pre>
  2038. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2039. &quot;username&quot;: &quot;string&quot;,
  2040. &quot;password&quot;: &quot;pa$$word&quot;,
  2041. &quot;email&quot;: &quot;string&quot;
  2042. }&#x27;</span>;
  2043. <span class="hljs-keyword">const</span> headers = {
  2044. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2045. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2046. };
  2047. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2048. {
  2049. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2050. <span class="hljs-attr">body</span>: inputBody,
  2051. <span class="hljs-attr">headers</span>: headers
  2052. })
  2053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2054. <span class="hljs-keyword">return</span> res.json();
  2055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2056. <span class="hljs-built_in">console</span>.log(body);
  2057. });
  2058. </code></pre>
  2059. <pre class="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>);
  2060. <span class="hljs-keyword">const</span> inputBody = {
  2061. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2062. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2063. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2064. };
  2065. <span class="hljs-keyword">const</span> headers = {
  2066. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2067. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2068. };
  2069. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2070. {
  2071. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2072. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2073. <span class="hljs-attr">headers</span>: headers
  2074. })
  2075. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2076. <span class="hljs-keyword">return</span> res.json();
  2077. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2078. <span class="hljs-built_in">console</span>.log(body);
  2079. });
  2080. </code></pre>
  2081. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2082. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2083. headers = {
  2084. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2085. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2086. }
  2087. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2088. <span class="hljs-symbol">params:</span> {
  2089. }, <span class="hljs-symbol">headers:</span> headers
  2090. p JSON.parse(result)
  2091. </code></pre>
  2092. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2093. headers = {
  2094. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2095. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2096. }
  2097. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2098. <span class="hljs-built_in">print</span>(r.json())
  2099. </code></pre>
  2100. <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>);
  2101. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2102. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2103. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2104. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2105. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2106. String inputLine;
  2107. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2108. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2109. response.append(inputLine);
  2110. }
  2111. in.close();
  2112. System.out.println(response.toString());
  2113. </code></pre>
  2114. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2115. <span class="hljs-keyword">import</span> (
  2116. <span class="hljs-string">&quot;bytes&quot;</span>
  2117. <span class="hljs-string">&quot;net/http&quot;</span>
  2118. )
  2119. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2120. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2121. <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>},
  2122. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2123. }
  2124. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2125. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2126. req.Header = headers
  2127. client := &amp;http.Client{}
  2128. resp, err := client.Do(req)
  2129. <span class="hljs-comment">// ...</span>
  2130. }
  2131. </code></pre>
  2132. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2133. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2134. );
  2135. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2136. <span class="hljs-comment">// Define array of request body.</span>
  2137. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2138. <span class="hljs-keyword">try</span> {
  2139. <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>(
  2140. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2141. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2142. )
  2143. );
  2144. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2145. }
  2146. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2147. <span class="hljs-comment">// handle exception or api errors.</span>
  2148. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2149. }
  2150. <span class="hljs-comment">// ...</span>
  2151. </code></pre>
  2152. <p><code>POST /users/register</code></p>
  2153. <p><em>Register with REST API</em></p>
  2154. <p>Notes:</p>
  2155. <ul>
  2156. <li>You will need to provide the token for any of the authenticated methods.</li>
  2157. </ul>
  2158. <blockquote>
  2159. <p>Body parameter</p>
  2160. </blockquote>
  2161. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2162. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2163. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2164. </code></pre>
  2165. <h3 id="register-parameters">Parameters</h3>
  2166. <table>
  2167. <thead>
  2168. <tr>
  2169. <th>Name</th>
  2170. <th>In</th>
  2171. <th>Type</th>
  2172. <th>Required</th>
  2173. <th>Description</th>
  2174. </tr>
  2175. </thead>
  2176. <tbody>
  2177. <tr>
  2178. <td>body</td>
  2179. <td>body</td>
  2180. <td>object</td>
  2181. <td>true</td>
  2182. <td>none</td>
  2183. </tr>
  2184. <tr>
  2185. <td>» username</td>
  2186. <td>body</td>
  2187. <td>string</td>
  2188. <td>true</td>
  2189. <td>Your username</td>
  2190. </tr>
  2191. <tr>
  2192. <td>» password</td>
  2193. <td>body</td>
  2194. <td>string(password)</td>
  2195. <td>true</td>
  2196. <td>Your password</td>
  2197. </tr>
  2198. <tr>
  2199. <td>» email</td>
  2200. <td>body</td>
  2201. <td>string</td>
  2202. <td>true</td>
  2203. <td>Your email</td>
  2204. </tr>
  2205. </tbody>
  2206. </table>
  2207. <blockquote>
  2208. <p>Example responses</p>
  2209. </blockquote>
  2210. <blockquote>
  2211. <p>200 Response</p>
  2212. </blockquote>
  2213. <h3 id="register-responses">Responses</h3>
  2214. <table>
  2215. <thead>
  2216. <tr>
  2217. <th>Status</th>
  2218. <th>Meaning</th>
  2219. <th>Description</th>
  2220. <th>Schema</th>
  2221. </tr>
  2222. </thead>
  2223. <tbody>
  2224. <tr>
  2225. <td>200</td>
  2226. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2227. <td>Successful registration</td>
  2228. <td>Inline</td>
  2229. </tr>
  2230. <tr>
  2231. <td>400</td>
  2232. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2233. <td>Error in registration</td>
  2234. <td>Inline</td>
  2235. </tr>
  2236. <tr>
  2237. <td>default</td>
  2238. <td>Default</td>
  2239. <td>Error in registration</td>
  2240. <td>None</td>
  2241. </tr>
  2242. </tbody>
  2243. </table>
  2244. <h3 id="register-responseschema">Response Schema</h3>
  2245. <p>Status Code <strong>200</strong></p>
  2246. <table>
  2247. <thead>
  2248. <tr>
  2249. <th>Name</th>
  2250. <th>Type</th>
  2251. <th>Required</th>
  2252. <th>Restrictions</th>
  2253. <th>Description</th>
  2254. </tr>
  2255. </thead>
  2256. <tbody>
  2257. <tr>
  2258. <td>» id</td>
  2259. <td>string</td>
  2260. <td>false</td>
  2261. <td>none</td>
  2262. <td>none</td>
  2263. </tr>
  2264. <tr>
  2265. <td>» token</td>
  2266. <td>string</td>
  2267. <td>false</td>
  2268. <td>none</td>
  2269. <td>none</td>
  2270. </tr>
  2271. <tr>
  2272. <td>» tokenExpires</td>
  2273. <td>string</td>
  2274. <td>false</td>
  2275. <td>none</td>
  2276. <td>none</td>
  2277. </tr>
  2278. </tbody>
  2279. </table>
  2280. <p>Status Code <strong>400</strong></p>
  2281. <table>
  2282. <thead>
  2283. <tr>
  2284. <th>Name</th>
  2285. <th>Type</th>
  2286. <th>Required</th>
  2287. <th>Restrictions</th>
  2288. <th>Description</th>
  2289. </tr>
  2290. </thead>
  2291. <tbody>
  2292. <tr>
  2293. <td>» error</td>
  2294. <td>number</td>
  2295. <td>false</td>
  2296. <td>none</td>
  2297. <td>none</td>
  2298. </tr>
  2299. <tr>
  2300. <td>» reason</td>
  2301. <td>string</td>
  2302. <td>false</td>
  2303. <td>none</td>
  2304. <td>none</td>
  2305. </tr>
  2306. </tbody>
  2307. </table>
  2308. <aside class="success">
  2309. This operation does not require authentication
  2310. </aside>
  2311. <h1 id="wekan-rest-api-boards">Boards</h1>
  2312. <h2 id="get_public_boards">get_public_boards</h2>
  2313. <p><a id="opIdget_public_boards"></a></p>
  2314. <blockquote>
  2315. <p>Code samples</p>
  2316. </blockquote>
  2317. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2318. curl -X GET /api/boards \
  2319. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2320. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2321. </code></pre>
  2322. <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>
  2323. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2324. </span></code></pre>
  2325. <pre class="highlight tab tab-javascript"><code>
  2326. <span class="hljs-keyword">const</span> headers = {
  2327. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2328. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2329. };
  2330. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2331. {
  2332. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2333. <span class="hljs-attr">headers</span>: headers
  2334. })
  2335. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2336. <span class="hljs-keyword">return</span> res.json();
  2337. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2338. <span class="hljs-built_in">console</span>.log(body);
  2339. });
  2340. </code></pre>
  2341. <pre class="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>);
  2342. <span class="hljs-keyword">const</span> headers = {
  2343. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2344. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2345. };
  2346. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2347. {
  2348. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2349. <span class="hljs-attr">headers</span>: headers
  2350. })
  2351. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2352. <span class="hljs-keyword">return</span> res.json();
  2353. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2354. <span class="hljs-built_in">console</span>.log(body);
  2355. });
  2356. </code></pre>
  2357. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2358. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2359. headers = {
  2360. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2361. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2362. }
  2363. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2364. <span class="hljs-symbol">params:</span> {
  2365. }, <span class="hljs-symbol">headers:</span> headers
  2366. p JSON.parse(result)
  2367. </code></pre>
  2368. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2369. headers = {
  2370. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2371. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2372. }
  2373. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2374. <span class="hljs-built_in">print</span>(r.json())
  2375. </code></pre>
  2376. <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>);
  2377. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2378. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2379. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2380. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2381. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2382. String inputLine;
  2383. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2384. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2385. response.append(inputLine);
  2386. }
  2387. in.close();
  2388. System.out.println(response.toString());
  2389. </code></pre>
  2390. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2391. <span class="hljs-keyword">import</span> (
  2392. <span class="hljs-string">&quot;bytes&quot;</span>
  2393. <span class="hljs-string">&quot;net/http&quot;</span>
  2394. )
  2395. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2396. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2397. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2398. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2399. }
  2400. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2401. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2402. req.Header = headers
  2403. client := &amp;http.Client{}
  2404. resp, err := client.Do(req)
  2405. <span class="hljs-comment">// ...</span>
  2406. }
  2407. </code></pre>
  2408. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2409. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2410. );
  2411. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2412. <span class="hljs-comment">// Define array of request body.</span>
  2413. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2414. <span class="hljs-keyword">try</span> {
  2415. <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>(
  2416. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2417. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2418. )
  2419. );
  2420. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2421. }
  2422. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2423. <span class="hljs-comment">// handle exception or api errors.</span>
  2424. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2425. }
  2426. <span class="hljs-comment">// ...</span>
  2427. </code></pre>
  2428. <p><code>GET /api/boards</code></p>
  2429. <p><em>Get all public boards</em></p>
  2430. <blockquote>
  2431. <p>Example responses</p>
  2432. </blockquote>
  2433. <blockquote>
  2434. <p>200 Response</p>
  2435. </blockquote>
  2436. <pre class="highlight tab tab-json"><code>[
  2437. {
  2438. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2439. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2440. }
  2441. ]
  2442. </code></pre>
  2443. <h3 id="get_public_boards-responses">Responses</h3>
  2444. <table>
  2445. <thead>
  2446. <tr>
  2447. <th>Status</th>
  2448. <th>Meaning</th>
  2449. <th>Description</th>
  2450. <th>Schema</th>
  2451. </tr>
  2452. </thead>
  2453. <tbody>
  2454. <tr>
  2455. <td>200</td>
  2456. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2457. <td>200 response</td>
  2458. <td>Inline</td>
  2459. </tr>
  2460. </tbody>
  2461. </table>
  2462. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2463. <p>Status Code <strong>200</strong></p>
  2464. <table>
  2465. <thead>
  2466. <tr>
  2467. <th>Name</th>
  2468. <th>Type</th>
  2469. <th>Required</th>
  2470. <th>Restrictions</th>
  2471. <th>Description</th>
  2472. </tr>
  2473. </thead>
  2474. <tbody>
  2475. <tr>
  2476. <td>» _id</td>
  2477. <td>string</td>
  2478. <td>false</td>
  2479. <td>none</td>
  2480. <td>none</td>
  2481. </tr>
  2482. <tr>
  2483. <td>» title</td>
  2484. <td>string</td>
  2485. <td>false</td>
  2486. <td>none</td>
  2487. <td>none</td>
  2488. </tr>
  2489. </tbody>
  2490. </table>
  2491. <aside class="warning">
  2492. To perform this operation, you must be authenticated by means of one of the following methods:
  2493. UserSecurity
  2494. </aside>
  2495. <h2 id="new_board">new_board</h2>
  2496. <p><a id="opIdnew_board"></a></p>
  2497. <blockquote>
  2498. <p>Code samples</p>
  2499. </blockquote>
  2500. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2501. curl -X POST /api/boards \
  2502. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2503. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2504. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2505. </code></pre>
  2506. <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>
  2507. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2508. Accept: application/json
  2509. </span></code></pre>
  2510. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2511. &quot;title&quot;: &quot;string&quot;,
  2512. &quot;owner&quot;: &quot;string&quot;,
  2513. &quot;isAdmin&quot;: true,
  2514. &quot;isActive&quot;: true,
  2515. &quot;isNoComments&quot;: true,
  2516. &quot;isCommentOnly&quot;: true,
  2517. &quot;isWorker&quot;: true,
  2518. &quot;permission&quot;: &quot;string&quot;,
  2519. &quot;color&quot;: &quot;string&quot;
  2520. }&#x27;</span>;
  2521. <span class="hljs-keyword">const</span> headers = {
  2522. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2523. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2524. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2525. };
  2526. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2527. {
  2528. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2529. <span class="hljs-attr">body</span>: inputBody,
  2530. <span class="hljs-attr">headers</span>: headers
  2531. })
  2532. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2533. <span class="hljs-keyword">return</span> res.json();
  2534. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2535. <span class="hljs-built_in">console</span>.log(body);
  2536. });
  2537. </code></pre>
  2538. <pre class="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>);
  2539. <span class="hljs-keyword">const</span> inputBody = {
  2540. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2541. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2542. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2543. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2544. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2545. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2546. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2547. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2548. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2549. };
  2550. <span class="hljs-keyword">const</span> headers = {
  2551. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2552. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2553. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2554. };
  2555. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2556. {
  2557. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2558. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2559. <span class="hljs-attr">headers</span>: headers
  2560. })
  2561. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2562. <span class="hljs-keyword">return</span> res.json();
  2563. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2564. <span class="hljs-built_in">console</span>.log(body);
  2565. });
  2566. </code></pre>
  2567. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2568. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2569. headers = {
  2570. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2571. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2572. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2573. }
  2574. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2575. <span class="hljs-symbol">params:</span> {
  2576. }, <span class="hljs-symbol">headers:</span> headers
  2577. p JSON.parse(result)
  2578. </code></pre>
  2579. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2580. headers = {
  2581. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2582. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2583. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2584. }
  2585. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2586. <span class="hljs-built_in">print</span>(r.json())
  2587. </code></pre>
  2588. <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>);
  2589. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2590. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2591. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2592. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2593. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2594. String inputLine;
  2595. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2596. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2597. response.append(inputLine);
  2598. }
  2599. in.close();
  2600. System.out.println(response.toString());
  2601. </code></pre>
  2602. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2603. <span class="hljs-keyword">import</span> (
  2604. <span class="hljs-string">&quot;bytes&quot;</span>
  2605. <span class="hljs-string">&quot;net/http&quot;</span>
  2606. )
  2607. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2608. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2609. <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>},
  2610. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2611. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2612. }
  2613. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2614. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2615. req.Header = headers
  2616. client := &amp;http.Client{}
  2617. resp, err := client.Do(req)
  2618. <span class="hljs-comment">// ...</span>
  2619. }
  2620. </code></pre>
  2621. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2622. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2623. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2624. );
  2625. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2626. <span class="hljs-comment">// Define array of request body.</span>
  2627. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2628. <span class="hljs-keyword">try</span> {
  2629. <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>(
  2630. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2631. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2632. )
  2633. );
  2634. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2635. }
  2636. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2637. <span class="hljs-comment">// handle exception or api errors.</span>
  2638. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2639. }
  2640. <span class="hljs-comment">// ...</span>
  2641. </code></pre>
  2642. <p><code>POST /api/boards</code></p>
  2643. <p><em>Create a board</em></p>
  2644. <p>This allows to create a board.</p>
  2645. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2646. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2647. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2648. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2649. <blockquote>
  2650. <p>Body parameter</p>
  2651. </blockquote>
  2652. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2653. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2654. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2655. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2656. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2657. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2658. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2659. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2660. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2661. </code></pre>
  2662. <h3 id="new_board-parameters">Parameters</h3>
  2663. <table>
  2664. <thead>
  2665. <tr>
  2666. <th>Name</th>
  2667. <th>In</th>
  2668. <th>Type</th>
  2669. <th>Required</th>
  2670. <th>Description</th>
  2671. </tr>
  2672. </thead>
  2673. <tbody>
  2674. <tr>
  2675. <td>body</td>
  2676. <td>body</td>
  2677. <td>object</td>
  2678. <td>true</td>
  2679. <td>none</td>
  2680. </tr>
  2681. <tr>
  2682. <td>» title</td>
  2683. <td>body</td>
  2684. <td>string</td>
  2685. <td>true</td>
  2686. <td>the new title of the board</td>
  2687. </tr>
  2688. <tr>
  2689. <td>» owner</td>
  2690. <td>body</td>
  2691. <td>string</td>
  2692. <td>true</td>
  2693. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2694. </tr>
  2695. <tr>
  2696. <td>» isAdmin</td>
  2697. <td>body</td>
  2698. <td>boolean</td>
  2699. <td>false</td>
  2700. <td>is the owner an admin of the board (default true)</td>
  2701. </tr>
  2702. <tr>
  2703. <td>» isActive</td>
  2704. <td>body</td>
  2705. <td>boolean</td>
  2706. <td>false</td>
  2707. <td>is the board active (default true)</td>
  2708. </tr>
  2709. <tr>
  2710. <td>» isNoComments</td>
  2711. <td>body</td>
  2712. <td>boolean</td>
  2713. <td>false</td>
  2714. <td>disable comments (default false)</td>
  2715. </tr>
  2716. <tr>
  2717. <td>» isCommentOnly</td>
  2718. <td>body</td>
  2719. <td>boolean</td>
  2720. <td>false</td>
  2721. <td>only enable comments (default false)</td>
  2722. </tr>
  2723. <tr>
  2724. <td>» isWorker</td>
  2725. <td>body</td>
  2726. <td>boolean</td>
  2727. <td>false</td>
  2728. <td>only move cards, assign himself to card and comment (default false)</td>
  2729. </tr>
  2730. <tr>
  2731. <td>» permission</td>
  2732. <td>body</td>
  2733. <td>string</td>
  2734. <td>false</td>
  2735. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2736. </tr>
  2737. <tr>
  2738. <td>» color</td>
  2739. <td>body</td>
  2740. <td>string</td>
  2741. <td>false</td>
  2742. <td>the color of the board</td>
  2743. </tr>
  2744. </tbody>
  2745. </table>
  2746. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2747. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2748. (Not username or email)</p>
  2749. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2750. want public Wekan board</p>
  2751. <blockquote>
  2752. <p>Example responses</p>
  2753. </blockquote>
  2754. <blockquote>
  2755. <p>200 Response</p>
  2756. </blockquote>
  2757. <pre class="highlight tab tab-json"><code>{
  2758. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2759. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2760. }
  2761. </code></pre>
  2762. <h3 id="new_board-responses">Responses</h3>
  2763. <table>
  2764. <thead>
  2765. <tr>
  2766. <th>Status</th>
  2767. <th>Meaning</th>
  2768. <th>Description</th>
  2769. <th>Schema</th>
  2770. </tr>
  2771. </thead>
  2772. <tbody>
  2773. <tr>
  2774. <td>200</td>
  2775. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2776. <td>200 response</td>
  2777. <td>Inline</td>
  2778. </tr>
  2779. </tbody>
  2780. </table>
  2781. <h3 id="new_board-responseschema">Response Schema</h3>
  2782. <p>Status Code <strong>200</strong></p>
  2783. <table>
  2784. <thead>
  2785. <tr>
  2786. <th>Name</th>
  2787. <th>Type</th>
  2788. <th>Required</th>
  2789. <th>Restrictions</th>
  2790. <th>Description</th>
  2791. </tr>
  2792. </thead>
  2793. <tbody>
  2794. <tr>
  2795. <td>» _id</td>
  2796. <td>string</td>
  2797. <td>false</td>
  2798. <td>none</td>
  2799. <td>none</td>
  2800. </tr>
  2801. <tr>
  2802. <td>» defaultSwimlaneId</td>
  2803. <td>string</td>
  2804. <td>false</td>
  2805. <td>none</td>
  2806. <td>none</td>
  2807. </tr>
  2808. </tbody>
  2809. </table>
  2810. <aside class="warning">
  2811. To perform this operation, you must be authenticated by means of one of the following methods:
  2812. UserSecurity
  2813. </aside>
  2814. <h2 id="get_board">get_board</h2>
  2815. <p><a id="opIdget_board"></a></p>
  2816. <blockquote>
  2817. <p>Code samples</p>
  2818. </blockquote>
  2819. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2820. curl -X GET /api/boards/{board} \
  2821. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2822. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2823. </code></pre>
  2824. <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>
  2825. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2826. </span></code></pre>
  2827. <pre class="highlight tab tab-javascript"><code>
  2828. <span class="hljs-keyword">const</span> headers = {
  2829. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2830. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2831. };
  2832. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2833. {
  2834. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2835. <span class="hljs-attr">headers</span>: headers
  2836. })
  2837. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2838. <span class="hljs-keyword">return</span> res.json();
  2839. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2840. <span class="hljs-built_in">console</span>.log(body);
  2841. });
  2842. </code></pre>
  2843. <pre class="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>);
  2844. <span class="hljs-keyword">const</span> headers = {
  2845. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2846. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2847. };
  2848. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2849. {
  2850. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2851. <span class="hljs-attr">headers</span>: headers
  2852. })
  2853. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2854. <span class="hljs-keyword">return</span> res.json();
  2855. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2856. <span class="hljs-built_in">console</span>.log(body);
  2857. });
  2858. </code></pre>
  2859. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2860. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2861. headers = {
  2862. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2863. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2864. }
  2865. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2866. <span class="hljs-symbol">params:</span> {
  2867. }, <span class="hljs-symbol">headers:</span> headers
  2868. p JSON.parse(result)
  2869. </code></pre>
  2870. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2871. headers = {
  2872. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2873. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2874. }
  2875. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2876. <span class="hljs-built_in">print</span>(r.json())
  2877. </code></pre>
  2878. <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>);
  2879. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2880. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2881. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2882. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2883. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2884. String inputLine;
  2885. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2886. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2887. response.append(inputLine);
  2888. }
  2889. in.close();
  2890. System.out.println(response.toString());
  2891. </code></pre>
  2892. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2893. <span class="hljs-keyword">import</span> (
  2894. <span class="hljs-string">&quot;bytes&quot;</span>
  2895. <span class="hljs-string">&quot;net/http&quot;</span>
  2896. )
  2897. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2898. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2899. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2900. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2901. }
  2902. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2903. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2904. req.Header = headers
  2905. client := &amp;http.Client{}
  2906. resp, err := client.Do(req)
  2907. <span class="hljs-comment">// ...</span>
  2908. }
  2909. </code></pre>
  2910. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2911. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2912. );
  2913. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2914. <span class="hljs-comment">// Define array of request body.</span>
  2915. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2916. <span class="hljs-keyword">try</span> {
  2917. <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>(
  2918. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2919. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2920. )
  2921. );
  2922. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2923. }
  2924. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2925. <span class="hljs-comment">// handle exception or api errors.</span>
  2926. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2927. }
  2928. <span class="hljs-comment">// ...</span>
  2929. </code></pre>
  2930. <p><code>GET /api/boards/{board}</code></p>
  2931. <p><em>Get the board with that particular ID</em></p>
  2932. <h3 id="get_board-parameters">Parameters</h3>
  2933. <table>
  2934. <thead>
  2935. <tr>
  2936. <th>Name</th>
  2937. <th>In</th>
  2938. <th>Type</th>
  2939. <th>Required</th>
  2940. <th>Description</th>
  2941. </tr>
  2942. </thead>
  2943. <tbody>
  2944. <tr>
  2945. <td>board</td>
  2946. <td>path</td>
  2947. <td>string</td>
  2948. <td>true</td>
  2949. <td>the ID of the board to retrieve the data</td>
  2950. </tr>
  2951. </tbody>
  2952. </table>
  2953. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2954. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2955. <blockquote>
  2956. <p>Example responses</p>
  2957. </blockquote>
  2958. <blockquote>
  2959. <p>200 Response</p>
  2960. </blockquote>
  2961. <pre class="highlight tab tab-json"><code>{
  2962. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2963. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2964. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2965. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2966. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2967. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2968. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2969. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2970. {
  2971. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2972. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2973. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2974. }
  2975. ],
  2976. <span class="hljs-attr">&quot;members&quot;</span>: [
  2977. {
  2978. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2979. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2980. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2981. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2982. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2983. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2984. }
  2985. ],
  2986. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2987. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2988. {
  2989. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2990. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2991. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2992. }
  2993. ],
  2994. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2995. {
  2996. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2997. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2998. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2999. }
  3000. ],
  3001. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  3002. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3003. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3004. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3005. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3006. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3007. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3008. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3009. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3010. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3011. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3012. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3013. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3014. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3015. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3016. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3017. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3018. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3019. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3021. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3023. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3024. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3025. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3026. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3027. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3028. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3029. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3030. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3031. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3032. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3033. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3034. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3035. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3036. }
  3037. </code></pre>
  3038. <h3 id="get_board-responses">Responses</h3>
  3039. <table>
  3040. <thead>
  3041. <tr>
  3042. <th>Status</th>
  3043. <th>Meaning</th>
  3044. <th>Description</th>
  3045. <th>Schema</th>
  3046. </tr>
  3047. </thead>
  3048. <tbody>
  3049. <tr>
  3050. <td>200</td>
  3051. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3052. <td>200 response</td>
  3053. <td><a href="#schemaboards">Boards</a></td>
  3054. </tr>
  3055. </tbody>
  3056. </table>
  3057. <aside class="warning">
  3058. To perform this operation, you must be authenticated by means of one of the following methods:
  3059. UserSecurity
  3060. </aside>
  3061. <h2 id="delete_board">delete_board</h2>
  3062. <p><a id="opIddelete_board"></a></p>
  3063. <blockquote>
  3064. <p>Code samples</p>
  3065. </blockquote>
  3066. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3067. curl -X DELETE /api/boards/{board} \
  3068. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3069. </code></pre>
  3070. <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>
  3071. </code></pre>
  3072. <pre class="highlight tab tab-javascript"><code>
  3073. <span class="hljs-keyword">const</span> headers = {
  3074. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3075. };
  3076. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3077. {
  3078. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3079. <span class="hljs-attr">headers</span>: headers
  3080. })
  3081. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3082. <span class="hljs-keyword">return</span> res.json();
  3083. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3084. <span class="hljs-built_in">console</span>.log(body);
  3085. });
  3086. </code></pre>
  3087. <pre class="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>);
  3088. <span class="hljs-keyword">const</span> headers = {
  3089. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3090. };
  3091. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3092. {
  3093. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3094. <span class="hljs-attr">headers</span>: headers
  3095. })
  3096. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3097. <span class="hljs-keyword">return</span> res.json();
  3098. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3099. <span class="hljs-built_in">console</span>.log(body);
  3100. });
  3101. </code></pre>
  3102. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3103. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3104. headers = {
  3105. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3106. }
  3107. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3108. <span class="hljs-symbol">params:</span> {
  3109. }, <span class="hljs-symbol">headers:</span> headers
  3110. p JSON.parse(result)
  3111. </code></pre>
  3112. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3113. headers = {
  3114. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3115. }
  3116. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3117. <span class="hljs-built_in">print</span>(r.json())
  3118. </code></pre>
  3119. <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>);
  3120. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3121. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3122. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3123. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3124. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3125. String inputLine;
  3126. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3127. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3128. response.append(inputLine);
  3129. }
  3130. in.close();
  3131. System.out.println(response.toString());
  3132. </code></pre>
  3133. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3134. <span class="hljs-keyword">import</span> (
  3135. <span class="hljs-string">&quot;bytes&quot;</span>
  3136. <span class="hljs-string">&quot;net/http&quot;</span>
  3137. )
  3138. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3139. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3140. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3141. }
  3142. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3143. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3144. req.Header = headers
  3145. client := &amp;http.Client{}
  3146. resp, err := client.Do(req)
  3147. <span class="hljs-comment">// ...</span>
  3148. }
  3149. </code></pre>
  3150. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3151. );
  3152. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3153. <span class="hljs-comment">// Define array of request body.</span>
  3154. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3155. <span class="hljs-keyword">try</span> {
  3156. <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>(
  3157. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3158. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3159. )
  3160. );
  3161. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3162. }
  3163. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3164. <span class="hljs-comment">// handle exception or api errors.</span>
  3165. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3166. }
  3167. <span class="hljs-comment">// ...</span>
  3168. </code></pre>
  3169. <p><code>DELETE /api/boards/{board}</code></p>
  3170. <p><em>Delete a board</em></p>
  3171. <h3 id="delete_board-parameters">Parameters</h3>
  3172. <table>
  3173. <thead>
  3174. <tr>
  3175. <th>Name</th>
  3176. <th>In</th>
  3177. <th>Type</th>
  3178. <th>Required</th>
  3179. <th>Description</th>
  3180. </tr>
  3181. </thead>
  3182. <tbody>
  3183. <tr>
  3184. <td>board</td>
  3185. <td>path</td>
  3186. <td>string</td>
  3187. <td>true</td>
  3188. <td>the ID of the board</td>
  3189. </tr>
  3190. </tbody>
  3191. </table>
  3192. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3193. <p><strong>board</strong>: the ID of the board</p>
  3194. <h3 id="delete_board-responses">Responses</h3>
  3195. <table>
  3196. <thead>
  3197. <tr>
  3198. <th>Status</th>
  3199. <th>Meaning</th>
  3200. <th>Description</th>
  3201. <th>Schema</th>
  3202. </tr>
  3203. </thead>
  3204. <tbody>
  3205. <tr>
  3206. <td>200</td>
  3207. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3208. <td>200 response</td>
  3209. <td>None</td>
  3210. </tr>
  3211. </tbody>
  3212. </table>
  3213. <aside class="warning">
  3214. To perform this operation, you must be authenticated by means of one of the following methods:
  3215. UserSecurity
  3216. </aside>
  3217. <h2 id="get_board_attachments">get_board_attachments</h2>
  3218. <p><a id="opIdget_board_attachments"></a></p>
  3219. <blockquote>
  3220. <p>Code samples</p>
  3221. </blockquote>
  3222. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3223. curl -X GET /api/boards/{board}/attachments \
  3224. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3225. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3226. </code></pre>
  3227. <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>
  3228. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3229. </span></code></pre>
  3230. <pre class="highlight tab tab-javascript"><code>
  3231. <span class="hljs-keyword">const</span> headers = {
  3232. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3233. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3234. };
  3235. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3236. {
  3237. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3238. <span class="hljs-attr">headers</span>: headers
  3239. })
  3240. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3241. <span class="hljs-keyword">return</span> res.json();
  3242. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3243. <span class="hljs-built_in">console</span>.log(body);
  3244. });
  3245. </code></pre>
  3246. <pre class="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>);
  3247. <span class="hljs-keyword">const</span> headers = {
  3248. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3249. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3250. };
  3251. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3252. {
  3253. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3254. <span class="hljs-attr">headers</span>: headers
  3255. })
  3256. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3257. <span class="hljs-keyword">return</span> res.json();
  3258. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3259. <span class="hljs-built_in">console</span>.log(body);
  3260. });
  3261. </code></pre>
  3262. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3263. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3264. headers = {
  3265. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3266. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3267. }
  3268. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3269. <span class="hljs-symbol">params:</span> {
  3270. }, <span class="hljs-symbol">headers:</span> headers
  3271. p JSON.parse(result)
  3272. </code></pre>
  3273. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3274. headers = {
  3275. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3276. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3277. }
  3278. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3279. <span class="hljs-built_in">print</span>(r.json())
  3280. </code></pre>
  3281. <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>);
  3282. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3283. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3284. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3285. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3286. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3287. String inputLine;
  3288. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3289. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3290. response.append(inputLine);
  3291. }
  3292. in.close();
  3293. System.out.println(response.toString());
  3294. </code></pre>
  3295. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3296. <span class="hljs-keyword">import</span> (
  3297. <span class="hljs-string">&quot;bytes&quot;</span>
  3298. <span class="hljs-string">&quot;net/http&quot;</span>
  3299. )
  3300. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3301. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3302. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3303. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3304. }
  3305. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3306. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3307. req.Header = headers
  3308. client := &amp;http.Client{}
  3309. resp, err := client.Do(req)
  3310. <span class="hljs-comment">// ...</span>
  3311. }
  3312. </code></pre>
  3313. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3314. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3315. );
  3316. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3317. <span class="hljs-comment">// Define array of request body.</span>
  3318. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3319. <span class="hljs-keyword">try</span> {
  3320. <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>(
  3321. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3322. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3323. )
  3324. );
  3325. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3326. }
  3327. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3328. <span class="hljs-comment">// handle exception or api errors.</span>
  3329. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3330. }
  3331. <span class="hljs-comment">// ...</span>
  3332. </code></pre>
  3333. <p><code>GET /api/boards/{board}/attachments</code></p>
  3334. <p><em>Get the list of attachments of a board</em></p>
  3335. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3336. <table>
  3337. <thead>
  3338. <tr>
  3339. <th>Name</th>
  3340. <th>In</th>
  3341. <th>Type</th>
  3342. <th>Required</th>
  3343. <th>Description</th>
  3344. </tr>
  3345. </thead>
  3346. <tbody>
  3347. <tr>
  3348. <td>board</td>
  3349. <td>path</td>
  3350. <td>string</td>
  3351. <td>true</td>
  3352. <td>the board ID</td>
  3353. </tr>
  3354. </tbody>
  3355. </table>
  3356. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3357. <p><strong>board</strong>: the board ID</p>
  3358. <blockquote>
  3359. <p>Example responses</p>
  3360. </blockquote>
  3361. <blockquote>
  3362. <p>200 Response</p>
  3363. </blockquote>
  3364. <pre class="highlight tab tab-json"><code>[
  3365. {
  3366. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3367. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3368. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3369. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3370. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3371. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3372. }
  3373. ]
  3374. </code></pre>
  3375. <h3 id="get_board_attachments-responses">Responses</h3>
  3376. <table>
  3377. <thead>
  3378. <tr>
  3379. <th>Status</th>
  3380. <th>Meaning</th>
  3381. <th>Description</th>
  3382. <th>Schema</th>
  3383. </tr>
  3384. </thead>
  3385. <tbody>
  3386. <tr>
  3387. <td>200</td>
  3388. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3389. <td>200 response</td>
  3390. <td>Inline</td>
  3391. </tr>
  3392. </tbody>
  3393. </table>
  3394. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3395. <p>Status Code <strong>200</strong></p>
  3396. <table>
  3397. <thead>
  3398. <tr>
  3399. <th>Name</th>
  3400. <th>Type</th>
  3401. <th>Required</th>
  3402. <th>Restrictions</th>
  3403. <th>Description</th>
  3404. </tr>
  3405. </thead>
  3406. <tbody>
  3407. <tr>
  3408. <td>» attachmentId</td>
  3409. <td>string</td>
  3410. <td>false</td>
  3411. <td>none</td>
  3412. <td>none</td>
  3413. </tr>
  3414. <tr>
  3415. <td>» attachmentName</td>
  3416. <td>string</td>
  3417. <td>false</td>
  3418. <td>none</td>
  3419. <td>none</td>
  3420. </tr>
  3421. <tr>
  3422. <td>» attachmentType</td>
  3423. <td>string</td>
  3424. <td>false</td>
  3425. <td>none</td>
  3426. <td>none</td>
  3427. </tr>
  3428. <tr>
  3429. <td>» cardId</td>
  3430. <td>string</td>
  3431. <td>false</td>
  3432. <td>none</td>
  3433. <td>none</td>
  3434. </tr>
  3435. <tr>
  3436. <td>» listId</td>
  3437. <td>string</td>
  3438. <td>false</td>
  3439. <td>none</td>
  3440. <td>none</td>
  3441. </tr>
  3442. <tr>
  3443. <td>» swimlaneId</td>
  3444. <td>string</td>
  3445. <td>false</td>
  3446. <td>none</td>
  3447. <td>none</td>
  3448. </tr>
  3449. </tbody>
  3450. </table>
  3451. <aside class="warning">
  3452. To perform this operation, you must be authenticated by means of one of the following methods:
  3453. UserSecurity
  3454. </aside>
  3455. <h2 id="exportjson">exportJson</h2>
  3456. <p><a id="opIdexportJson"></a></p>
  3457. <blockquote>
  3458. <p>Code samples</p>
  3459. </blockquote>
  3460. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3461. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3462. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3463. </code></pre>
  3464. <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>
  3465. </code></pre>
  3466. <pre class="highlight tab tab-javascript"><code>
  3467. <span class="hljs-keyword">const</span> headers = {
  3468. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3469. };
  3470. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3471. {
  3472. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3473. <span class="hljs-attr">headers</span>: headers
  3474. })
  3475. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3476. <span class="hljs-keyword">return</span> res.json();
  3477. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3478. <span class="hljs-built_in">console</span>.log(body);
  3479. });
  3480. </code></pre>
  3481. <pre class="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>);
  3482. <span class="hljs-keyword">const</span> headers = {
  3483. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3484. };
  3485. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3486. {
  3487. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3488. <span class="hljs-attr">headers</span>: headers
  3489. })
  3490. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3491. <span class="hljs-keyword">return</span> res.json();
  3492. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3493. <span class="hljs-built_in">console</span>.log(body);
  3494. });
  3495. </code></pre>
  3496. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3497. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3498. headers = {
  3499. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3500. }
  3501. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3502. <span class="hljs-symbol">params:</span> {
  3503. }, <span class="hljs-symbol">headers:</span> headers
  3504. p JSON.parse(result)
  3505. </code></pre>
  3506. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3507. headers = {
  3508. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3509. }
  3510. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3511. <span class="hljs-built_in">print</span>(r.json())
  3512. </code></pre>
  3513. <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>);
  3514. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3515. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3516. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3517. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3518. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3519. String inputLine;
  3520. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3521. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3522. response.append(inputLine);
  3523. }
  3524. in.close();
  3525. System.out.println(response.toString());
  3526. </code></pre>
  3527. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3528. <span class="hljs-keyword">import</span> (
  3529. <span class="hljs-string">&quot;bytes&quot;</span>
  3530. <span class="hljs-string">&quot;net/http&quot;</span>
  3531. )
  3532. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3533. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3534. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3535. }
  3536. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3537. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3538. req.Header = headers
  3539. client := &amp;http.Client{}
  3540. resp, err := client.Do(req)
  3541. <span class="hljs-comment">// ...</span>
  3542. }
  3543. </code></pre>
  3544. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3545. );
  3546. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3547. <span class="hljs-comment">// Define array of request body.</span>
  3548. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3549. <span class="hljs-keyword">try</span> {
  3550. <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>(
  3551. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3552. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3553. )
  3554. );
  3555. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3556. }
  3557. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3558. <span class="hljs-comment">// handle exception or api errors.</span>
  3559. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3560. }
  3561. <span class="hljs-comment">// ...</span>
  3562. </code></pre>
  3563. <p><code>GET /api/boards/{board}/export</code></p>
  3564. <p><em>This route is used to export the board to a json file format.</em></p>
  3565. <p>If user is already logged-in, pass loginToken as param
  3566. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3567. <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>
  3568. for detailed explanations</p>
  3569. <h3 id="exportjson-parameters">Parameters</h3>
  3570. <table>
  3571. <thead>
  3572. <tr>
  3573. <th>Name</th>
  3574. <th>In</th>
  3575. <th>Type</th>
  3576. <th>Required</th>
  3577. <th>Description</th>
  3578. </tr>
  3579. </thead>
  3580. <tbody>
  3581. <tr>
  3582. <td>board</td>
  3583. <td>path</td>
  3584. <td>string</td>
  3585. <td>true</td>
  3586. <td>the ID of the board we are exporting</td>
  3587. </tr>
  3588. </tbody>
  3589. </table>
  3590. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3591. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3592. <h3 id="exportjson-responses">Responses</h3>
  3593. <table>
  3594. <thead>
  3595. <tr>
  3596. <th>Status</th>
  3597. <th>Meaning</th>
  3598. <th>Description</th>
  3599. <th>Schema</th>
  3600. </tr>
  3601. </thead>
  3602. <tbody>
  3603. <tr>
  3604. <td>200</td>
  3605. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3606. <td>200 response</td>
  3607. <td>None</td>
  3608. </tr>
  3609. </tbody>
  3610. </table>
  3611. <aside class="warning">
  3612. To perform this operation, you must be authenticated by means of one of the following methods:
  3613. UserSecurity
  3614. </aside>
  3615. <h2 id="add_board_label">add_board_label</h2>
  3616. <p><a id="opIdadd_board_label"></a></p>
  3617. <blockquote>
  3618. <p>Code samples</p>
  3619. </blockquote>
  3620. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3621. curl -X PUT /api/boards/{board}/labels \
  3622. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3623. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3624. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3625. </code></pre>
  3626. <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>
  3627. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3628. Accept: application/json
  3629. </span></code></pre>
  3630. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3631. &quot;label&quot;: &quot;string&quot;
  3632. }&#x27;</span>;
  3633. <span class="hljs-keyword">const</span> headers = {
  3634. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3635. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3636. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3637. };
  3638. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3639. {
  3640. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3641. <span class="hljs-attr">body</span>: inputBody,
  3642. <span class="hljs-attr">headers</span>: headers
  3643. })
  3644. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3645. <span class="hljs-keyword">return</span> res.json();
  3646. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3647. <span class="hljs-built_in">console</span>.log(body);
  3648. });
  3649. </code></pre>
  3650. <pre class="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>);
  3651. <span class="hljs-keyword">const</span> inputBody = {
  3652. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3653. };
  3654. <span class="hljs-keyword">const</span> headers = {
  3655. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3656. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3657. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3658. };
  3659. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3660. {
  3661. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3662. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3663. <span class="hljs-attr">headers</span>: headers
  3664. })
  3665. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3666. <span class="hljs-keyword">return</span> res.json();
  3667. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3668. <span class="hljs-built_in">console</span>.log(body);
  3669. });
  3670. </code></pre>
  3671. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3672. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3673. headers = {
  3674. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3675. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3676. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3677. }
  3678. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3679. <span class="hljs-symbol">params:</span> {
  3680. }, <span class="hljs-symbol">headers:</span> headers
  3681. p JSON.parse(result)
  3682. </code></pre>
  3683. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3684. headers = {
  3685. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3686. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3687. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3688. }
  3689. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3690. <span class="hljs-built_in">print</span>(r.json())
  3691. </code></pre>
  3692. <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>);
  3693. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3694. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3695. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3696. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3697. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3698. String inputLine;
  3699. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3700. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3701. response.append(inputLine);
  3702. }
  3703. in.close();
  3704. System.out.println(response.toString());
  3705. </code></pre>
  3706. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3707. <span class="hljs-keyword">import</span> (
  3708. <span class="hljs-string">&quot;bytes&quot;</span>
  3709. <span class="hljs-string">&quot;net/http&quot;</span>
  3710. )
  3711. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3712. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3713. <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>},
  3714. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3715. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3716. }
  3717. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3718. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3719. req.Header = headers
  3720. client := &amp;http.Client{}
  3721. resp, err := client.Do(req)
  3722. <span class="hljs-comment">// ...</span>
  3723. }
  3724. </code></pre>
  3725. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3726. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3727. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3728. );
  3729. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3730. <span class="hljs-comment">// Define array of request body.</span>
  3731. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3732. <span class="hljs-keyword">try</span> {
  3733. <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>(
  3734. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3735. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3736. )
  3737. );
  3738. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3739. }
  3740. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3741. <span class="hljs-comment">// handle exception or api errors.</span>
  3742. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3743. }
  3744. <span class="hljs-comment">// ...</span>
  3745. </code></pre>
  3746. <p><code>PUT /api/boards/{board}/labels</code></p>
  3747. <p><em>Add a label to a board</em></p>
  3748. <p>If the board doesn't have the name/color label, this function
  3749. adds the label to the board.</p>
  3750. <blockquote>
  3751. <p>Body parameter</p>
  3752. </blockquote>
  3753. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3754. </code></pre>
  3755. <h3 id="add_board_label-parameters">Parameters</h3>
  3756. <table>
  3757. <thead>
  3758. <tr>
  3759. <th>Name</th>
  3760. <th>In</th>
  3761. <th>Type</th>
  3762. <th>Required</th>
  3763. <th>Description</th>
  3764. </tr>
  3765. </thead>
  3766. <tbody>
  3767. <tr>
  3768. <td>board</td>
  3769. <td>path</td>
  3770. <td>string</td>
  3771. <td>true</td>
  3772. <td>the board</td>
  3773. </tr>
  3774. <tr>
  3775. <td>body</td>
  3776. <td>body</td>
  3777. <td>object</td>
  3778. <td>true</td>
  3779. <td>none</td>
  3780. </tr>
  3781. <tr>
  3782. <td>» label</td>
  3783. <td>body</td>
  3784. <td>string</td>
  3785. <td>true</td>
  3786. <td>the label value</td>
  3787. </tr>
  3788. </tbody>
  3789. </table>
  3790. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3791. <p><strong>board</strong>: the board</p>
  3792. <blockquote>
  3793. <p>Example responses</p>
  3794. </blockquote>
  3795. <blockquote>
  3796. <p>200 Response</p>
  3797. </blockquote>
  3798. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3799. </code></pre>
  3800. <h3 id="add_board_label-responses">Responses</h3>
  3801. <table>
  3802. <thead>
  3803. <tr>
  3804. <th>Status</th>
  3805. <th>Meaning</th>
  3806. <th>Description</th>
  3807. <th>Schema</th>
  3808. </tr>
  3809. </thead>
  3810. <tbody>
  3811. <tr>
  3812. <td>200</td>
  3813. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3814. <td>200 response</td>
  3815. <td>string</td>
  3816. </tr>
  3817. </tbody>
  3818. </table>
  3819. <aside class="warning">
  3820. To perform this operation, you must be authenticated by means of one of the following methods:
  3821. UserSecurity
  3822. </aside>
  3823. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3824. <p><a id="opIdset_board_member_permission"></a></p>
  3825. <blockquote>
  3826. <p>Code samples</p>
  3827. </blockquote>
  3828. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3829. curl -X POST /api/boards/{board}/members/{member} \
  3830. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3831. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3832. </code></pre>
  3833. <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>
  3834. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3835. </span></code></pre>
  3836. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3837. &quot;isAdmin&quot;: true,
  3838. &quot;isNoComments&quot;: true,
  3839. &quot;isCommentOnly&quot;: true,
  3840. &quot;isWorker&quot;: true
  3841. }&#x27;</span>;
  3842. <span class="hljs-keyword">const</span> headers = {
  3843. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3844. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3845. };
  3846. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3847. {
  3848. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3849. <span class="hljs-attr">body</span>: inputBody,
  3850. <span class="hljs-attr">headers</span>: headers
  3851. })
  3852. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3853. <span class="hljs-keyword">return</span> res.json();
  3854. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3855. <span class="hljs-built_in">console</span>.log(body);
  3856. });
  3857. </code></pre>
  3858. <pre class="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>);
  3859. <span class="hljs-keyword">const</span> inputBody = {
  3860. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3861. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3862. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3863. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3864. };
  3865. <span class="hljs-keyword">const</span> headers = {
  3866. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3867. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3868. };
  3869. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3870. {
  3871. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3872. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3873. <span class="hljs-attr">headers</span>: headers
  3874. })
  3875. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3876. <span class="hljs-keyword">return</span> res.json();
  3877. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3878. <span class="hljs-built_in">console</span>.log(body);
  3879. });
  3880. </code></pre>
  3881. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3882. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3883. headers = {
  3884. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3885. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3886. }
  3887. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3888. <span class="hljs-symbol">params:</span> {
  3889. }, <span class="hljs-symbol">headers:</span> headers
  3890. p JSON.parse(result)
  3891. </code></pre>
  3892. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3893. headers = {
  3894. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3895. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3896. }
  3897. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3898. <span class="hljs-built_in">print</span>(r.json())
  3899. </code></pre>
  3900. <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>);
  3901. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3902. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3903. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3904. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3905. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3906. String inputLine;
  3907. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3908. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3909. response.append(inputLine);
  3910. }
  3911. in.close();
  3912. System.out.println(response.toString());
  3913. </code></pre>
  3914. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3915. <span class="hljs-keyword">import</span> (
  3916. <span class="hljs-string">&quot;bytes&quot;</span>
  3917. <span class="hljs-string">&quot;net/http&quot;</span>
  3918. )
  3919. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3920. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3921. <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>},
  3922. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3923. }
  3924. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3925. 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)
  3926. req.Header = headers
  3927. client := &amp;http.Client{}
  3928. resp, err := client.Do(req)
  3929. <span class="hljs-comment">// ...</span>
  3930. }
  3931. </code></pre>
  3932. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3933. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3934. );
  3935. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3936. <span class="hljs-comment">// Define array of request body.</span>
  3937. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3938. <span class="hljs-keyword">try</span> {
  3939. <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>(
  3940. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3941. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3942. )
  3943. );
  3944. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3945. }
  3946. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3947. <span class="hljs-comment">// handle exception or api errors.</span>
  3948. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3949. }
  3950. <span class="hljs-comment">// ...</span>
  3951. </code></pre>
  3952. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3953. <p><em>Change the permission of a member of a board</em></p>
  3954. <blockquote>
  3955. <p>Body parameter</p>
  3956. </blockquote>
  3957. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3958. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3959. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3960. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3961. </code></pre>
  3962. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3963. <table>
  3964. <thead>
  3965. <tr>
  3966. <th>Name</th>
  3967. <th>In</th>
  3968. <th>Type</th>
  3969. <th>Required</th>
  3970. <th>Description</th>
  3971. </tr>
  3972. </thead>
  3973. <tbody>
  3974. <tr>
  3975. <td>board</td>
  3976. <td>path</td>
  3977. <td>string</td>
  3978. <td>true</td>
  3979. <td>the ID of the board that we are changing</td>
  3980. </tr>
  3981. <tr>
  3982. <td>member</td>
  3983. <td>path</td>
  3984. <td>string</td>
  3985. <td>true</td>
  3986. <td>the ID of the user to change permissions</td>
  3987. </tr>
  3988. <tr>
  3989. <td>body</td>
  3990. <td>body</td>
  3991. <td>object</td>
  3992. <td>true</td>
  3993. <td>none</td>
  3994. </tr>
  3995. <tr>
  3996. <td>» isAdmin</td>
  3997. <td>body</td>
  3998. <td>boolean</td>
  3999. <td>true</td>
  4000. <td>admin capability</td>
  4001. </tr>
  4002. <tr>
  4003. <td>» isNoComments</td>
  4004. <td>body</td>
  4005. <td>boolean</td>
  4006. <td>true</td>
  4007. <td>NoComments capability</td>
  4008. </tr>
  4009. <tr>
  4010. <td>» isCommentOnly</td>
  4011. <td>body</td>
  4012. <td>boolean</td>
  4013. <td>true</td>
  4014. <td>CommentsOnly capability</td>
  4015. </tr>
  4016. <tr>
  4017. <td>» isWorker</td>
  4018. <td>body</td>
  4019. <td>boolean</td>
  4020. <td>true</td>
  4021. <td>Worker capability</td>
  4022. </tr>
  4023. </tbody>
  4024. </table>
  4025. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4026. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4027. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4028. <h3 id="set_board_member_permission-responses">Responses</h3>
  4029. <table>
  4030. <thead>
  4031. <tr>
  4032. <th>Status</th>
  4033. <th>Meaning</th>
  4034. <th>Description</th>
  4035. <th>Schema</th>
  4036. </tr>
  4037. </thead>
  4038. <tbody>
  4039. <tr>
  4040. <td>200</td>
  4041. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4042. <td>200 response</td>
  4043. <td>None</td>
  4044. </tr>
  4045. </tbody>
  4046. </table>
  4047. <aside class="warning">
  4048. To perform this operation, you must be authenticated by means of one of the following methods:
  4049. UserSecurity
  4050. </aside>
  4051. <h2 id="get_boards_count">get_boards_count</h2>
  4052. <p><a id="opIdget_boards_count"></a></p>
  4053. <blockquote>
  4054. <p>Code samples</p>
  4055. </blockquote>
  4056. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4057. curl -X GET /api/boards_count \
  4058. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4059. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4060. </code></pre>
  4061. <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>
  4062. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4063. </span></code></pre>
  4064. <pre class="highlight tab tab-javascript"><code>
  4065. <span class="hljs-keyword">const</span> headers = {
  4066. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4067. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4068. };
  4069. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4070. {
  4071. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4072. <span class="hljs-attr">headers</span>: headers
  4073. })
  4074. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4075. <span class="hljs-keyword">return</span> res.json();
  4076. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4077. <span class="hljs-built_in">console</span>.log(body);
  4078. });
  4079. </code></pre>
  4080. <pre class="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>);
  4081. <span class="hljs-keyword">const</span> headers = {
  4082. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4083. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4084. };
  4085. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4086. {
  4087. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4088. <span class="hljs-attr">headers</span>: headers
  4089. })
  4090. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4091. <span class="hljs-keyword">return</span> res.json();
  4092. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4093. <span class="hljs-built_in">console</span>.log(body);
  4094. });
  4095. </code></pre>
  4096. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4097. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4098. headers = {
  4099. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4100. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4101. }
  4102. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4103. <span class="hljs-symbol">params:</span> {
  4104. }, <span class="hljs-symbol">headers:</span> headers
  4105. p JSON.parse(result)
  4106. </code></pre>
  4107. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4108. headers = {
  4109. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4110. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4111. }
  4112. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4113. <span class="hljs-built_in">print</span>(r.json())
  4114. </code></pre>
  4115. <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>);
  4116. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4117. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4118. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4119. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4120. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4121. String inputLine;
  4122. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4123. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4124. response.append(inputLine);
  4125. }
  4126. in.close();
  4127. System.out.println(response.toString());
  4128. </code></pre>
  4129. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4130. <span class="hljs-keyword">import</span> (
  4131. <span class="hljs-string">&quot;bytes&quot;</span>
  4132. <span class="hljs-string">&quot;net/http&quot;</span>
  4133. )
  4134. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4135. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4136. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4137. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4138. }
  4139. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4140. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4141. req.Header = headers
  4142. client := &amp;http.Client{}
  4143. resp, err := client.Do(req)
  4144. <span class="hljs-comment">// ...</span>
  4145. }
  4146. </code></pre>
  4147. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4148. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4149. );
  4150. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4151. <span class="hljs-comment">// Define array of request body.</span>
  4152. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4153. <span class="hljs-keyword">try</span> {
  4154. <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>(
  4155. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4156. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4157. )
  4158. );
  4159. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4160. }
  4161. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4162. <span class="hljs-comment">// handle exception or api errors.</span>
  4163. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4164. }
  4165. <span class="hljs-comment">// ...</span>
  4166. </code></pre>
  4167. <p><code>GET /api/boards_count</code></p>
  4168. <p><em>Get public and private boards count</em></p>
  4169. <blockquote>
  4170. <p>Example responses</p>
  4171. </blockquote>
  4172. <blockquote>
  4173. <p>200 Response</p>
  4174. </blockquote>
  4175. <pre class="highlight tab tab-json"><code>{
  4176. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4177. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4178. }
  4179. </code></pre>
  4180. <h3 id="get_boards_count-responses">Responses</h3>
  4181. <table>
  4182. <thead>
  4183. <tr>
  4184. <th>Status</th>
  4185. <th>Meaning</th>
  4186. <th>Description</th>
  4187. <th>Schema</th>
  4188. </tr>
  4189. </thead>
  4190. <tbody>
  4191. <tr>
  4192. <td>200</td>
  4193. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4194. <td>200 response</td>
  4195. <td>Inline</td>
  4196. </tr>
  4197. </tbody>
  4198. </table>
  4199. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4200. <p>Status Code <strong>200</strong></p>
  4201. <table>
  4202. <thead>
  4203. <tr>
  4204. <th>Name</th>
  4205. <th>Type</th>
  4206. <th>Required</th>
  4207. <th>Restrictions</th>
  4208. <th>Description</th>
  4209. </tr>
  4210. </thead>
  4211. <tbody>
  4212. <tr>
  4213. <td>» private</td>
  4214. <td>integer</td>
  4215. <td>false</td>
  4216. <td>none</td>
  4217. <td>none</td>
  4218. </tr>
  4219. <tr>
  4220. <td>» public</td>
  4221. <td>integer</td>
  4222. <td>false</td>
  4223. <td>none</td>
  4224. <td>none</td>
  4225. </tr>
  4226. </tbody>
  4227. </table>
  4228. <aside class="warning">
  4229. To perform this operation, you must be authenticated by means of one of the following methods:
  4230. UserSecurity
  4231. </aside>
  4232. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4233. <p><a id="opIdget_boards_from_user"></a></p>
  4234. <blockquote>
  4235. <p>Code samples</p>
  4236. </blockquote>
  4237. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4238. curl -X GET /api/users/{user}/boards \
  4239. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4240. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4241. </code></pre>
  4242. <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>
  4243. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4244. </span></code></pre>
  4245. <pre class="highlight tab tab-javascript"><code>
  4246. <span class="hljs-keyword">const</span> headers = {
  4247. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4248. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4249. };
  4250. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4251. {
  4252. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4253. <span class="hljs-attr">headers</span>: headers
  4254. })
  4255. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4256. <span class="hljs-keyword">return</span> res.json();
  4257. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4258. <span class="hljs-built_in">console</span>.log(body);
  4259. });
  4260. </code></pre>
  4261. <pre class="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>);
  4262. <span class="hljs-keyword">const</span> headers = {
  4263. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4264. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4265. };
  4266. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4267. {
  4268. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4269. <span class="hljs-attr">headers</span>: headers
  4270. })
  4271. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4272. <span class="hljs-keyword">return</span> res.json();
  4273. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4274. <span class="hljs-built_in">console</span>.log(body);
  4275. });
  4276. </code></pre>
  4277. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4278. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4279. headers = {
  4280. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4281. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4282. }
  4283. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4284. <span class="hljs-symbol">params:</span> {
  4285. }, <span class="hljs-symbol">headers:</span> headers
  4286. p JSON.parse(result)
  4287. </code></pre>
  4288. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4289. headers = {
  4290. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4291. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4292. }
  4293. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4294. <span class="hljs-built_in">print</span>(r.json())
  4295. </code></pre>
  4296. <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>);
  4297. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4298. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4299. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4300. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4301. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4302. String inputLine;
  4303. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4304. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4305. response.append(inputLine);
  4306. }
  4307. in.close();
  4308. System.out.println(response.toString());
  4309. </code></pre>
  4310. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4311. <span class="hljs-keyword">import</span> (
  4312. <span class="hljs-string">&quot;bytes&quot;</span>
  4313. <span class="hljs-string">&quot;net/http&quot;</span>
  4314. )
  4315. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4316. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4317. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4318. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4319. }
  4320. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4321. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4322. req.Header = headers
  4323. client := &amp;http.Client{}
  4324. resp, err := client.Do(req)
  4325. <span class="hljs-comment">// ...</span>
  4326. }
  4327. </code></pre>
  4328. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4329. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4330. );
  4331. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4332. <span class="hljs-comment">// Define array of request body.</span>
  4333. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4334. <span class="hljs-keyword">try</span> {
  4335. <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>(
  4336. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4337. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4338. )
  4339. );
  4340. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4341. }
  4342. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4343. <span class="hljs-comment">// handle exception or api errors.</span>
  4344. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4345. }
  4346. <span class="hljs-comment">// ...</span>
  4347. </code></pre>
  4348. <p><code>GET /api/users/{user}/boards</code></p>
  4349. <p><em>Get all boards attached to a user</em></p>
  4350. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4351. <table>
  4352. <thead>
  4353. <tr>
  4354. <th>Name</th>
  4355. <th>In</th>
  4356. <th>Type</th>
  4357. <th>Required</th>
  4358. <th>Description</th>
  4359. </tr>
  4360. </thead>
  4361. <tbody>
  4362. <tr>
  4363. <td>user</td>
  4364. <td>path</td>
  4365. <td>string</td>
  4366. <td>true</td>
  4367. <td>the ID of the user to retrieve the data</td>
  4368. </tr>
  4369. </tbody>
  4370. </table>
  4371. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4372. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4373. <blockquote>
  4374. <p>Example responses</p>
  4375. </blockquote>
  4376. <blockquote>
  4377. <p>200 Response</p>
  4378. </blockquote>
  4379. <pre class="highlight tab tab-json"><code>[
  4380. {
  4381. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4382. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4383. }
  4384. ]
  4385. </code></pre>
  4386. <h3 id="get_boards_from_user-responses">Responses</h3>
  4387. <table>
  4388. <thead>
  4389. <tr>
  4390. <th>Status</th>
  4391. <th>Meaning</th>
  4392. <th>Description</th>
  4393. <th>Schema</th>
  4394. </tr>
  4395. </thead>
  4396. <tbody>
  4397. <tr>
  4398. <td>200</td>
  4399. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4400. <td>200 response</td>
  4401. <td>Inline</td>
  4402. </tr>
  4403. </tbody>
  4404. </table>
  4405. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4406. <p>Status Code <strong>200</strong></p>
  4407. <table>
  4408. <thead>
  4409. <tr>
  4410. <th>Name</th>
  4411. <th>Type</th>
  4412. <th>Required</th>
  4413. <th>Restrictions</th>
  4414. <th>Description</th>
  4415. </tr>
  4416. </thead>
  4417. <tbody>
  4418. <tr>
  4419. <td>» _id</td>
  4420. <td>string</td>
  4421. <td>false</td>
  4422. <td>none</td>
  4423. <td>none</td>
  4424. </tr>
  4425. <tr>
  4426. <td>» title</td>
  4427. <td>string</td>
  4428. <td>false</td>
  4429. <td>none</td>
  4430. <td>none</td>
  4431. </tr>
  4432. </tbody>
  4433. </table>
  4434. <aside class="warning">
  4435. To perform this operation, you must be authenticated by means of one of the following methods:
  4436. UserSecurity
  4437. </aside>
  4438. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4439. <h2 id="get_all_checklists">get_all_checklists</h2>
  4440. <p><a id="opIdget_all_checklists"></a></p>
  4441. <blockquote>
  4442. <p>Code samples</p>
  4443. </blockquote>
  4444. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4445. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4446. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4447. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4448. </code></pre>
  4449. <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>
  4450. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4451. </span></code></pre>
  4452. <pre class="highlight tab tab-javascript"><code>
  4453. <span class="hljs-keyword">const</span> headers = {
  4454. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4455. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4456. };
  4457. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4458. {
  4459. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4460. <span class="hljs-attr">headers</span>: headers
  4461. })
  4462. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4463. <span class="hljs-keyword">return</span> res.json();
  4464. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4465. <span class="hljs-built_in">console</span>.log(body);
  4466. });
  4467. </code></pre>
  4468. <pre class="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>);
  4469. <span class="hljs-keyword">const</span> headers = {
  4470. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4471. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4472. };
  4473. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4474. {
  4475. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4476. <span class="hljs-attr">headers</span>: headers
  4477. })
  4478. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4479. <span class="hljs-keyword">return</span> res.json();
  4480. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4481. <span class="hljs-built_in">console</span>.log(body);
  4482. });
  4483. </code></pre>
  4484. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4485. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4486. headers = {
  4487. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4488. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4489. }
  4490. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4491. <span class="hljs-symbol">params:</span> {
  4492. }, <span class="hljs-symbol">headers:</span> headers
  4493. p JSON.parse(result)
  4494. </code></pre>
  4495. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4496. headers = {
  4497. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4498. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4499. }
  4500. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4501. <span class="hljs-built_in">print</span>(r.json())
  4502. </code></pre>
  4503. <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>);
  4504. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4505. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4506. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4507. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4508. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4509. String inputLine;
  4510. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4511. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4512. response.append(inputLine);
  4513. }
  4514. in.close();
  4515. System.out.println(response.toString());
  4516. </code></pre>
  4517. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4518. <span class="hljs-keyword">import</span> (
  4519. <span class="hljs-string">&quot;bytes&quot;</span>
  4520. <span class="hljs-string">&quot;net/http&quot;</span>
  4521. )
  4522. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4523. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4524. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4525. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4526. }
  4527. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4528. 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)
  4529. req.Header = headers
  4530. client := &amp;http.Client{}
  4531. resp, err := client.Do(req)
  4532. <span class="hljs-comment">// ...</span>
  4533. }
  4534. </code></pre>
  4535. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4536. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4537. );
  4538. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4539. <span class="hljs-comment">// Define array of request body.</span>
  4540. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4541. <span class="hljs-keyword">try</span> {
  4542. <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>(
  4543. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4544. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4545. )
  4546. );
  4547. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4548. }
  4549. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4550. <span class="hljs-comment">// handle exception or api errors.</span>
  4551. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4552. }
  4553. <span class="hljs-comment">// ...</span>
  4554. </code></pre>
  4555. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4556. <p><em>Get the list of checklists attached to a card</em></p>
  4557. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4558. <table>
  4559. <thead>
  4560. <tr>
  4561. <th>Name</th>
  4562. <th>In</th>
  4563. <th>Type</th>
  4564. <th>Required</th>
  4565. <th>Description</th>
  4566. </tr>
  4567. </thead>
  4568. <tbody>
  4569. <tr>
  4570. <td>board</td>
  4571. <td>path</td>
  4572. <td>string</td>
  4573. <td>true</td>
  4574. <td>the board ID</td>
  4575. </tr>
  4576. <tr>
  4577. <td>card</td>
  4578. <td>path</td>
  4579. <td>string</td>
  4580. <td>true</td>
  4581. <td>the card ID</td>
  4582. </tr>
  4583. </tbody>
  4584. </table>
  4585. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4586. <p><strong>board</strong>: the board ID</p>
  4587. <p><strong>card</strong>: the card ID</p>
  4588. <blockquote>
  4589. <p>Example responses</p>
  4590. </blockquote>
  4591. <blockquote>
  4592. <p>200 Response</p>
  4593. </blockquote>
  4594. <pre class="highlight tab tab-json"><code>[
  4595. {
  4596. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4597. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4598. }
  4599. ]
  4600. </code></pre>
  4601. <h3 id="get_all_checklists-responses">Responses</h3>
  4602. <table>
  4603. <thead>
  4604. <tr>
  4605. <th>Status</th>
  4606. <th>Meaning</th>
  4607. <th>Description</th>
  4608. <th>Schema</th>
  4609. </tr>
  4610. </thead>
  4611. <tbody>
  4612. <tr>
  4613. <td>200</td>
  4614. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4615. <td>200 response</td>
  4616. <td>Inline</td>
  4617. </tr>
  4618. </tbody>
  4619. </table>
  4620. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4621. <p>Status Code <strong>200</strong></p>
  4622. <table>
  4623. <thead>
  4624. <tr>
  4625. <th>Name</th>
  4626. <th>Type</th>
  4627. <th>Required</th>
  4628. <th>Restrictions</th>
  4629. <th>Description</th>
  4630. </tr>
  4631. </thead>
  4632. <tbody>
  4633. <tr>
  4634. <td>» _id</td>
  4635. <td>string</td>
  4636. <td>false</td>
  4637. <td>none</td>
  4638. <td>none</td>
  4639. </tr>
  4640. <tr>
  4641. <td>» title</td>
  4642. <td>string</td>
  4643. <td>false</td>
  4644. <td>none</td>
  4645. <td>none</td>
  4646. </tr>
  4647. </tbody>
  4648. </table>
  4649. <aside class="warning">
  4650. To perform this operation, you must be authenticated by means of one of the following methods:
  4651. UserSecurity
  4652. </aside>
  4653. <h2 id="new_checklist">new_checklist</h2>
  4654. <p><a id="opIdnew_checklist"></a></p>
  4655. <blockquote>
  4656. <p>Code samples</p>
  4657. </blockquote>
  4658. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4659. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4660. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4661. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4662. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4663. </code></pre>
  4664. <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>
  4665. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4666. Accept: application/json
  4667. </span></code></pre>
  4668. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4669. &quot;title&quot;: &quot;string&quot;,
  4670. &quot;items&quot;: &quot;string&quot;
  4671. }&#x27;</span>;
  4672. <span class="hljs-keyword">const</span> headers = {
  4673. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4674. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4675. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4676. };
  4677. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4678. {
  4679. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4680. <span class="hljs-attr">body</span>: inputBody,
  4681. <span class="hljs-attr">headers</span>: headers
  4682. })
  4683. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4684. <span class="hljs-keyword">return</span> res.json();
  4685. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4686. <span class="hljs-built_in">console</span>.log(body);
  4687. });
  4688. </code></pre>
  4689. <pre class="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>);
  4690. <span class="hljs-keyword">const</span> inputBody = {
  4691. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4692. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4693. };
  4694. <span class="hljs-keyword">const</span> headers = {
  4695. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4696. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4697. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4698. };
  4699. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4700. {
  4701. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4702. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4703. <span class="hljs-attr">headers</span>: headers
  4704. })
  4705. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4706. <span class="hljs-keyword">return</span> res.json();
  4707. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4708. <span class="hljs-built_in">console</span>.log(body);
  4709. });
  4710. </code></pre>
  4711. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4712. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4713. headers = {
  4714. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4715. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4716. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4717. }
  4718. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4719. <span class="hljs-symbol">params:</span> {
  4720. }, <span class="hljs-symbol">headers:</span> headers
  4721. p JSON.parse(result)
  4722. </code></pre>
  4723. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4724. headers = {
  4725. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4726. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4727. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4728. }
  4729. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4730. <span class="hljs-built_in">print</span>(r.json())
  4731. </code></pre>
  4732. <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>);
  4733. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4734. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4735. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4736. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4737. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4738. String inputLine;
  4739. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4740. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4741. response.append(inputLine);
  4742. }
  4743. in.close();
  4744. System.out.println(response.toString());
  4745. </code></pre>
  4746. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4747. <span class="hljs-keyword">import</span> (
  4748. <span class="hljs-string">&quot;bytes&quot;</span>
  4749. <span class="hljs-string">&quot;net/http&quot;</span>
  4750. )
  4751. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4752. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4753. <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>},
  4754. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4755. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4756. }
  4757. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4758. 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)
  4759. req.Header = headers
  4760. client := &amp;http.Client{}
  4761. resp, err := client.Do(req)
  4762. <span class="hljs-comment">// ...</span>
  4763. }
  4764. </code></pre>
  4765. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4766. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4767. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4768. );
  4769. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4770. <span class="hljs-comment">// Define array of request body.</span>
  4771. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4772. <span class="hljs-keyword">try</span> {
  4773. <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>(
  4774. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4775. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4776. )
  4777. );
  4778. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4779. }
  4780. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4781. <span class="hljs-comment">// handle exception or api errors.</span>
  4782. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4783. }
  4784. <span class="hljs-comment">// ...</span>
  4785. </code></pre>
  4786. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4787. <p><em>create a new checklist</em></p>
  4788. <blockquote>
  4789. <p>Body parameter</p>
  4790. </blockquote>
  4791. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4792. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4793. </code></pre>
  4794. <h3 id="new_checklist-parameters">Parameters</h3>
  4795. <table>
  4796. <thead>
  4797. <tr>
  4798. <th>Name</th>
  4799. <th>In</th>
  4800. <th>Type</th>
  4801. <th>Required</th>
  4802. <th>Description</th>
  4803. </tr>
  4804. </thead>
  4805. <tbody>
  4806. <tr>
  4807. <td>board</td>
  4808. <td>path</td>
  4809. <td>string</td>
  4810. <td>true</td>
  4811. <td>the board ID</td>
  4812. </tr>
  4813. <tr>
  4814. <td>card</td>
  4815. <td>path</td>
  4816. <td>string</td>
  4817. <td>true</td>
  4818. <td>the card ID</td>
  4819. </tr>
  4820. <tr>
  4821. <td>body</td>
  4822. <td>body</td>
  4823. <td>object</td>
  4824. <td>true</td>
  4825. <td>none</td>
  4826. </tr>
  4827. <tr>
  4828. <td>» title</td>
  4829. <td>body</td>
  4830. <td>string</td>
  4831. <td>true</td>
  4832. <td>the title of the new checklist</td>
  4833. </tr>
  4834. <tr>
  4835. <td>» items</td>
  4836. <td>body</td>
  4837. <td>string</td>
  4838. <td>false</td>
  4839. <td>the list of items on the new checklist</td>
  4840. </tr>
  4841. </tbody>
  4842. </table>
  4843. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4844. <p><strong>board</strong>: the board ID</p>
  4845. <p><strong>card</strong>: the card ID</p>
  4846. <blockquote>
  4847. <p>Example responses</p>
  4848. </blockquote>
  4849. <blockquote>
  4850. <p>200 Response</p>
  4851. </blockquote>
  4852. <pre class="highlight tab tab-json"><code>{
  4853. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4854. }
  4855. </code></pre>
  4856. <h3 id="new_checklist-responses">Responses</h3>
  4857. <table>
  4858. <thead>
  4859. <tr>
  4860. <th>Status</th>
  4861. <th>Meaning</th>
  4862. <th>Description</th>
  4863. <th>Schema</th>
  4864. </tr>
  4865. </thead>
  4866. <tbody>
  4867. <tr>
  4868. <td>200</td>
  4869. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4870. <td>200 response</td>
  4871. <td>Inline</td>
  4872. </tr>
  4873. </tbody>
  4874. </table>
  4875. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4876. <p>Status Code <strong>200</strong></p>
  4877. <table>
  4878. <thead>
  4879. <tr>
  4880. <th>Name</th>
  4881. <th>Type</th>
  4882. <th>Required</th>
  4883. <th>Restrictions</th>
  4884. <th>Description</th>
  4885. </tr>
  4886. </thead>
  4887. <tbody>
  4888. <tr>
  4889. <td>» _id</td>
  4890. <td>string</td>
  4891. <td>false</td>
  4892. <td>none</td>
  4893. <td>none</td>
  4894. </tr>
  4895. </tbody>
  4896. </table>
  4897. <aside class="warning">
  4898. To perform this operation, you must be authenticated by means of one of the following methods:
  4899. UserSecurity
  4900. </aside>
  4901. <h2 id="get_checklist">get_checklist</h2>
  4902. <p><a id="opIdget_checklist"></a></p>
  4903. <blockquote>
  4904. <p>Code samples</p>
  4905. </blockquote>
  4906. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4907. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4908. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4909. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4910. </code></pre>
  4911. <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>
  4912. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4913. </span></code></pre>
  4914. <pre class="highlight tab tab-javascript"><code>
  4915. <span class="hljs-keyword">const</span> headers = {
  4916. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4917. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4918. };
  4919. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4920. {
  4921. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4922. <span class="hljs-attr">headers</span>: headers
  4923. })
  4924. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4925. <span class="hljs-keyword">return</span> res.json();
  4926. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4927. <span class="hljs-built_in">console</span>.log(body);
  4928. });
  4929. </code></pre>
  4930. <pre class="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>);
  4931. <span class="hljs-keyword">const</span> headers = {
  4932. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4933. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4934. };
  4935. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4936. {
  4937. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4938. <span class="hljs-attr">headers</span>: headers
  4939. })
  4940. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4941. <span class="hljs-keyword">return</span> res.json();
  4942. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4943. <span class="hljs-built_in">console</span>.log(body);
  4944. });
  4945. </code></pre>
  4946. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4947. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4948. headers = {
  4949. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4950. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4951. }
  4952. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4953. <span class="hljs-symbol">params:</span> {
  4954. }, <span class="hljs-symbol">headers:</span> headers
  4955. p JSON.parse(result)
  4956. </code></pre>
  4957. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4958. headers = {
  4959. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4960. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4961. }
  4962. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4963. <span class="hljs-built_in">print</span>(r.json())
  4964. </code></pre>
  4965. <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>);
  4966. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4967. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4968. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4969. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4970. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4971. String inputLine;
  4972. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4973. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4974. response.append(inputLine);
  4975. }
  4976. in.close();
  4977. System.out.println(response.toString());
  4978. </code></pre>
  4979. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4980. <span class="hljs-keyword">import</span> (
  4981. <span class="hljs-string">&quot;bytes&quot;</span>
  4982. <span class="hljs-string">&quot;net/http&quot;</span>
  4983. )
  4984. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4985. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4986. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4987. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4988. }
  4989. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4990. 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)
  4991. req.Header = headers
  4992. client := &amp;http.Client{}
  4993. resp, err := client.Do(req)
  4994. <span class="hljs-comment">// ...</span>
  4995. }
  4996. </code></pre>
  4997. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4998. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4999. );
  5000. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5001. <span class="hljs-comment">// Define array of request body.</span>
  5002. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5003. <span class="hljs-keyword">try</span> {
  5004. <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>(
  5005. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5006. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5007. )
  5008. );
  5009. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5010. }
  5011. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5012. <span class="hljs-comment">// handle exception or api errors.</span>
  5013. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5014. }
  5015. <span class="hljs-comment">// ...</span>
  5016. </code></pre>
  5017. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5018. <p><em>Get a checklist</em></p>
  5019. <h3 id="get_checklist-parameters">Parameters</h3>
  5020. <table>
  5021. <thead>
  5022. <tr>
  5023. <th>Name</th>
  5024. <th>In</th>
  5025. <th>Type</th>
  5026. <th>Required</th>
  5027. <th>Description</th>
  5028. </tr>
  5029. </thead>
  5030. <tbody>
  5031. <tr>
  5032. <td>board</td>
  5033. <td>path</td>
  5034. <td>string</td>
  5035. <td>true</td>
  5036. <td>the board ID</td>
  5037. </tr>
  5038. <tr>
  5039. <td>card</td>
  5040. <td>path</td>
  5041. <td>string</td>
  5042. <td>true</td>
  5043. <td>the card ID</td>
  5044. </tr>
  5045. <tr>
  5046. <td>checklist</td>
  5047. <td>path</td>
  5048. <td>string</td>
  5049. <td>true</td>
  5050. <td>the ID of the checklist</td>
  5051. </tr>
  5052. </tbody>
  5053. </table>
  5054. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5055. <p><strong>board</strong>: the board ID</p>
  5056. <p><strong>card</strong>: the card ID</p>
  5057. <p><strong>checklist</strong>: the ID of the checklist</p>
  5058. <blockquote>
  5059. <p>Example responses</p>
  5060. </blockquote>
  5061. <blockquote>
  5062. <p>200 Response</p>
  5063. </blockquote>
  5064. <pre class="highlight tab tab-json"><code>{
  5065. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5066. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5067. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5068. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5069. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5070. <span class="hljs-attr">&quot;items&quot;</span>: [
  5071. {
  5072. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5073. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5074. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5075. }
  5076. ]
  5077. }
  5078. </code></pre>
  5079. <h3 id="get_checklist-responses">Responses</h3>
  5080. <table>
  5081. <thead>
  5082. <tr>
  5083. <th>Status</th>
  5084. <th>Meaning</th>
  5085. <th>Description</th>
  5086. <th>Schema</th>
  5087. </tr>
  5088. </thead>
  5089. <tbody>
  5090. <tr>
  5091. <td>200</td>
  5092. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5093. <td>200 response</td>
  5094. <td>Inline</td>
  5095. </tr>
  5096. </tbody>
  5097. </table>
  5098. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5099. <p>Status Code <strong>200</strong></p>
  5100. <table>
  5101. <thead>
  5102. <tr>
  5103. <th>Name</th>
  5104. <th>Type</th>
  5105. <th>Required</th>
  5106. <th>Restrictions</th>
  5107. <th>Description</th>
  5108. </tr>
  5109. </thead>
  5110. <tbody>
  5111. <tr>
  5112. <td>» cardId</td>
  5113. <td>string</td>
  5114. <td>false</td>
  5115. <td>none</td>
  5116. <td>none</td>
  5117. </tr>
  5118. <tr>
  5119. <td>» title</td>
  5120. <td>string</td>
  5121. <td>false</td>
  5122. <td>none</td>
  5123. <td>none</td>
  5124. </tr>
  5125. <tr>
  5126. <td>» finishedAt</td>
  5127. <td>string</td>
  5128. <td>false</td>
  5129. <td>none</td>
  5130. <td>none</td>
  5131. </tr>
  5132. <tr>
  5133. <td>» createdAt</td>
  5134. <td>string</td>
  5135. <td>false</td>
  5136. <td>none</td>
  5137. <td>none</td>
  5138. </tr>
  5139. <tr>
  5140. <td>» sort</td>
  5141. <td>number</td>
  5142. <td>false</td>
  5143. <td>none</td>
  5144. <td>none</td>
  5145. </tr>
  5146. <tr>
  5147. <td>» items</td>
  5148. <td>[object]</td>
  5149. <td>false</td>
  5150. <td>none</td>
  5151. <td>none</td>
  5152. </tr>
  5153. <tr>
  5154. <td>»» _id</td>
  5155. <td>string</td>
  5156. <td>false</td>
  5157. <td>none</td>
  5158. <td>none</td>
  5159. </tr>
  5160. <tr>
  5161. <td>»» title</td>
  5162. <td>string</td>
  5163. <td>false</td>
  5164. <td>none</td>
  5165. <td>none</td>
  5166. </tr>
  5167. <tr>
  5168. <td>»» isFinished</td>
  5169. <td>boolean</td>
  5170. <td>false</td>
  5171. <td>none</td>
  5172. <td>none</td>
  5173. </tr>
  5174. </tbody>
  5175. </table>
  5176. <aside class="warning">
  5177. To perform this operation, you must be authenticated by means of one of the following methods:
  5178. UserSecurity
  5179. </aside>
  5180. <h2 id="delete_checklist">delete_checklist</h2>
  5181. <p><a id="opIddelete_checklist"></a></p>
  5182. <blockquote>
  5183. <p>Code samples</p>
  5184. </blockquote>
  5185. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5186. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5187. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5188. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5189. </code></pre>
  5190. <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>
  5191. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5192. </span></code></pre>
  5193. <pre class="highlight tab tab-javascript"><code>
  5194. <span class="hljs-keyword">const</span> headers = {
  5195. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5196. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5197. };
  5198. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5199. {
  5200. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5201. <span class="hljs-attr">headers</span>: headers
  5202. })
  5203. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5204. <span class="hljs-keyword">return</span> res.json();
  5205. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5206. <span class="hljs-built_in">console</span>.log(body);
  5207. });
  5208. </code></pre>
  5209. <pre class="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>);
  5210. <span class="hljs-keyword">const</span> headers = {
  5211. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5212. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5213. };
  5214. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5215. {
  5216. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5217. <span class="hljs-attr">headers</span>: headers
  5218. })
  5219. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5220. <span class="hljs-keyword">return</span> res.json();
  5221. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5222. <span class="hljs-built_in">console</span>.log(body);
  5223. });
  5224. </code></pre>
  5225. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5226. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5227. headers = {
  5228. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5229. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5230. }
  5231. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5232. <span class="hljs-symbol">params:</span> {
  5233. }, <span class="hljs-symbol">headers:</span> headers
  5234. p JSON.parse(result)
  5235. </code></pre>
  5236. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5237. headers = {
  5238. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5239. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5240. }
  5241. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5242. <span class="hljs-built_in">print</span>(r.json())
  5243. </code></pre>
  5244. <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>);
  5245. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5246. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5247. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5248. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5249. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5250. String inputLine;
  5251. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5252. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5253. response.append(inputLine);
  5254. }
  5255. in.close();
  5256. System.out.println(response.toString());
  5257. </code></pre>
  5258. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5259. <span class="hljs-keyword">import</span> (
  5260. <span class="hljs-string">&quot;bytes&quot;</span>
  5261. <span class="hljs-string">&quot;net/http&quot;</span>
  5262. )
  5263. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5264. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5265. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5266. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5267. }
  5268. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5269. 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)
  5270. req.Header = headers
  5271. client := &amp;http.Client{}
  5272. resp, err := client.Do(req)
  5273. <span class="hljs-comment">// ...</span>
  5274. }
  5275. </code></pre>
  5276. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5277. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5278. );
  5279. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5280. <span class="hljs-comment">// Define array of request body.</span>
  5281. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5282. <span class="hljs-keyword">try</span> {
  5283. <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>(
  5284. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5285. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5286. )
  5287. );
  5288. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5289. }
  5290. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5291. <span class="hljs-comment">// handle exception or api errors.</span>
  5292. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5293. }
  5294. <span class="hljs-comment">// ...</span>
  5295. </code></pre>
  5296. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5297. <p><em>Delete a checklist</em></p>
  5298. <p>The checklist will be removed, not put in the recycle bin.</p>
  5299. <h3 id="delete_checklist-parameters">Parameters</h3>
  5300. <table>
  5301. <thead>
  5302. <tr>
  5303. <th>Name</th>
  5304. <th>In</th>
  5305. <th>Type</th>
  5306. <th>Required</th>
  5307. <th>Description</th>
  5308. </tr>
  5309. </thead>
  5310. <tbody>
  5311. <tr>
  5312. <td>board</td>
  5313. <td>path</td>
  5314. <td>string</td>
  5315. <td>true</td>
  5316. <td>the board ID</td>
  5317. </tr>
  5318. <tr>
  5319. <td>card</td>
  5320. <td>path</td>
  5321. <td>string</td>
  5322. <td>true</td>
  5323. <td>the card ID</td>
  5324. </tr>
  5325. <tr>
  5326. <td>checklist</td>
  5327. <td>path</td>
  5328. <td>string</td>
  5329. <td>true</td>
  5330. <td>the ID of the checklist to remove</td>
  5331. </tr>
  5332. </tbody>
  5333. </table>
  5334. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5335. <p><strong>board</strong>: the board ID</p>
  5336. <p><strong>card</strong>: the card ID</p>
  5337. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5338. <blockquote>
  5339. <p>Example responses</p>
  5340. </blockquote>
  5341. <blockquote>
  5342. <p>200 Response</p>
  5343. </blockquote>
  5344. <pre class="highlight tab tab-json"><code>{
  5345. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5346. }
  5347. </code></pre>
  5348. <h3 id="delete_checklist-responses">Responses</h3>
  5349. <table>
  5350. <thead>
  5351. <tr>
  5352. <th>Status</th>
  5353. <th>Meaning</th>
  5354. <th>Description</th>
  5355. <th>Schema</th>
  5356. </tr>
  5357. </thead>
  5358. <tbody>
  5359. <tr>
  5360. <td>200</td>
  5361. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5362. <td>200 response</td>
  5363. <td>Inline</td>
  5364. </tr>
  5365. </tbody>
  5366. </table>
  5367. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5368. <p>Status Code <strong>200</strong></p>
  5369. <table>
  5370. <thead>
  5371. <tr>
  5372. <th>Name</th>
  5373. <th>Type</th>
  5374. <th>Required</th>
  5375. <th>Restrictions</th>
  5376. <th>Description</th>
  5377. </tr>
  5378. </thead>
  5379. <tbody>
  5380. <tr>
  5381. <td>» _id</td>
  5382. <td>string</td>
  5383. <td>false</td>
  5384. <td>none</td>
  5385. <td>none</td>
  5386. </tr>
  5387. </tbody>
  5388. </table>
  5389. <aside class="warning">
  5390. To perform this operation, you must be authenticated by means of one of the following methods:
  5391. UserSecurity
  5392. </aside>
  5393. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5394. <h2 id="get_checklist_item">get_checklist_item</h2>
  5395. <p><a id="opIdget_checklist_item"></a></p>
  5396. <blockquote>
  5397. <p>Code samples</p>
  5398. </blockquote>
  5399. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5400. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5401. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5402. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5403. </code></pre>
  5404. <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>
  5405. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5406. </span></code></pre>
  5407. <pre class="highlight tab tab-javascript"><code>
  5408. <span class="hljs-keyword">const</span> headers = {
  5409. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5410. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5411. };
  5412. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5413. {
  5414. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5415. <span class="hljs-attr">headers</span>: headers
  5416. })
  5417. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5418. <span class="hljs-keyword">return</span> res.json();
  5419. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5420. <span class="hljs-built_in">console</span>.log(body);
  5421. });
  5422. </code></pre>
  5423. <pre class="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>);
  5424. <span class="hljs-keyword">const</span> headers = {
  5425. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5426. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5427. };
  5428. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5429. {
  5430. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5431. <span class="hljs-attr">headers</span>: headers
  5432. })
  5433. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5434. <span class="hljs-keyword">return</span> res.json();
  5435. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5436. <span class="hljs-built_in">console</span>.log(body);
  5437. });
  5438. </code></pre>
  5439. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5440. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5441. headers = {
  5442. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5443. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5444. }
  5445. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5446. <span class="hljs-symbol">params:</span> {
  5447. }, <span class="hljs-symbol">headers:</span> headers
  5448. p JSON.parse(result)
  5449. </code></pre>
  5450. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5451. headers = {
  5452. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5453. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5454. }
  5455. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5456. <span class="hljs-built_in">print</span>(r.json())
  5457. </code></pre>
  5458. <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>);
  5459. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5460. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5461. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5462. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5463. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5464. String inputLine;
  5465. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5466. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5467. response.append(inputLine);
  5468. }
  5469. in.close();
  5470. System.out.println(response.toString());
  5471. </code></pre>
  5472. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5473. <span class="hljs-keyword">import</span> (
  5474. <span class="hljs-string">&quot;bytes&quot;</span>
  5475. <span class="hljs-string">&quot;net/http&quot;</span>
  5476. )
  5477. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5478. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5479. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5480. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5481. }
  5482. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5483. 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)
  5484. req.Header = headers
  5485. client := &amp;http.Client{}
  5486. resp, err := client.Do(req)
  5487. <span class="hljs-comment">// ...</span>
  5488. }
  5489. </code></pre>
  5490. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5491. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5492. );
  5493. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5494. <span class="hljs-comment">// Define array of request body.</span>
  5495. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5496. <span class="hljs-keyword">try</span> {
  5497. <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>(
  5498. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5499. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5500. )
  5501. );
  5502. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5503. }
  5504. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5505. <span class="hljs-comment">// handle exception or api errors.</span>
  5506. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5507. }
  5508. <span class="hljs-comment">// ...</span>
  5509. </code></pre>
  5510. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5511. <p><em>Get a checklist item</em></p>
  5512. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5513. <table>
  5514. <thead>
  5515. <tr>
  5516. <th>Name</th>
  5517. <th>In</th>
  5518. <th>Type</th>
  5519. <th>Required</th>
  5520. <th>Description</th>
  5521. </tr>
  5522. </thead>
  5523. <tbody>
  5524. <tr>
  5525. <td>board</td>
  5526. <td>path</td>
  5527. <td>string</td>
  5528. <td>true</td>
  5529. <td>the board ID</td>
  5530. </tr>
  5531. <tr>
  5532. <td>card</td>
  5533. <td>path</td>
  5534. <td>string</td>
  5535. <td>true</td>
  5536. <td>the card ID</td>
  5537. </tr>
  5538. <tr>
  5539. <td>checklist</td>
  5540. <td>path</td>
  5541. <td>string</td>
  5542. <td>true</td>
  5543. <td>the checklist ID</td>
  5544. </tr>
  5545. <tr>
  5546. <td>item</td>
  5547. <td>path</td>
  5548. <td>string</td>
  5549. <td>true</td>
  5550. <td>the ID of the item</td>
  5551. </tr>
  5552. </tbody>
  5553. </table>
  5554. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5555. <p><strong>board</strong>: the board ID</p>
  5556. <p><strong>card</strong>: the card ID</p>
  5557. <p><strong>checklist</strong>: the checklist ID</p>
  5558. <p><strong>item</strong>: the ID of the item</p>
  5559. <blockquote>
  5560. <p>Example responses</p>
  5561. </blockquote>
  5562. <blockquote>
  5563. <p>200 Response</p>
  5564. </blockquote>
  5565. <pre class="highlight tab tab-json"><code>{
  5566. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5567. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5568. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5569. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5570. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5571. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5572. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5573. }
  5574. </code></pre>
  5575. <h3 id="get_checklist_item-responses">Responses</h3>
  5576. <table>
  5577. <thead>
  5578. <tr>
  5579. <th>Status</th>
  5580. <th>Meaning</th>
  5581. <th>Description</th>
  5582. <th>Schema</th>
  5583. </tr>
  5584. </thead>
  5585. <tbody>
  5586. <tr>
  5587. <td>200</td>
  5588. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5589. <td>200 response</td>
  5590. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5591. </tr>
  5592. </tbody>
  5593. </table>
  5594. <aside class="warning">
  5595. To perform this operation, you must be authenticated by means of one of the following methods:
  5596. UserSecurity
  5597. </aside>
  5598. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5599. <p><a id="opIdedit_checklist_item"></a></p>
  5600. <blockquote>
  5601. <p>Code samples</p>
  5602. </blockquote>
  5603. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5604. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5605. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5606. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5607. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5608. </code></pre>
  5609. <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>
  5610. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5611. Accept: application/json
  5612. </span></code></pre>
  5613. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5614. &quot;isFinished&quot;: &quot;string&quot;,
  5615. &quot;title&quot;: &quot;string&quot;
  5616. }&#x27;</span>;
  5617. <span class="hljs-keyword">const</span> headers = {
  5618. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5619. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5620. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5621. };
  5622. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5623. {
  5624. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5625. <span class="hljs-attr">body</span>: inputBody,
  5626. <span class="hljs-attr">headers</span>: headers
  5627. })
  5628. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5629. <span class="hljs-keyword">return</span> res.json();
  5630. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5631. <span class="hljs-built_in">console</span>.log(body);
  5632. });
  5633. </code></pre>
  5634. <pre class="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>);
  5635. <span class="hljs-keyword">const</span> inputBody = {
  5636. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5637. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5638. };
  5639. <span class="hljs-keyword">const</span> headers = {
  5640. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5641. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5642. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5643. };
  5644. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5645. {
  5646. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5647. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5648. <span class="hljs-attr">headers</span>: headers
  5649. })
  5650. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5651. <span class="hljs-keyword">return</span> res.json();
  5652. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5653. <span class="hljs-built_in">console</span>.log(body);
  5654. });
  5655. </code></pre>
  5656. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5657. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5658. headers = {
  5659. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5660. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5661. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5662. }
  5663. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5664. <span class="hljs-symbol">params:</span> {
  5665. }, <span class="hljs-symbol">headers:</span> headers
  5666. p JSON.parse(result)
  5667. </code></pre>
  5668. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5669. headers = {
  5670. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5671. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5672. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5673. }
  5674. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5675. <span class="hljs-built_in">print</span>(r.json())
  5676. </code></pre>
  5677. <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>);
  5678. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5679. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5680. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5681. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5682. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5683. String inputLine;
  5684. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5685. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5686. response.append(inputLine);
  5687. }
  5688. in.close();
  5689. System.out.println(response.toString());
  5690. </code></pre>
  5691. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5692. <span class="hljs-keyword">import</span> (
  5693. <span class="hljs-string">&quot;bytes&quot;</span>
  5694. <span class="hljs-string">&quot;net/http&quot;</span>
  5695. )
  5696. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5697. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5698. <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>},
  5699. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5700. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5701. }
  5702. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5703. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  5704. req.Header = headers
  5705. client := &amp;http.Client{}
  5706. resp, err := client.Do(req)
  5707. <span class="hljs-comment">// ...</span>
  5708. }
  5709. </code></pre>
  5710. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5711. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5712. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5713. );
  5714. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5715. <span class="hljs-comment">// Define array of request body.</span>
  5716. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5717. <span class="hljs-keyword">try</span> {
  5718. <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>(
  5719. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5720. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5721. )
  5722. );
  5723. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5724. }
  5725. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5726. <span class="hljs-comment">// handle exception or api errors.</span>
  5727. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5728. }
  5729. <span class="hljs-comment">// ...</span>
  5730. </code></pre>
  5731. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5732. <p><em>Edit a checklist item</em></p>
  5733. <blockquote>
  5734. <p>Body parameter</p>
  5735. </blockquote>
  5736. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5737. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5738. </code></pre>
  5739. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5740. <table>
  5741. <thead>
  5742. <tr>
  5743. <th>Name</th>
  5744. <th>In</th>
  5745. <th>Type</th>
  5746. <th>Required</th>
  5747. <th>Description</th>
  5748. </tr>
  5749. </thead>
  5750. <tbody>
  5751. <tr>
  5752. <td>board</td>
  5753. <td>path</td>
  5754. <td>string</td>
  5755. <td>true</td>
  5756. <td>the board ID</td>
  5757. </tr>
  5758. <tr>
  5759. <td>card</td>
  5760. <td>path</td>
  5761. <td>string</td>
  5762. <td>true</td>
  5763. <td>the card ID</td>
  5764. </tr>
  5765. <tr>
  5766. <td>checklist</td>
  5767. <td>path</td>
  5768. <td>string</td>
  5769. <td>true</td>
  5770. <td>the checklist ID</td>
  5771. </tr>
  5772. <tr>
  5773. <td>item</td>
  5774. <td>path</td>
  5775. <td>string</td>
  5776. <td>true</td>
  5777. <td>the ID of the item</td>
  5778. </tr>
  5779. <tr>
  5780. <td>body</td>
  5781. <td>body</td>
  5782. <td>object</td>
  5783. <td>false</td>
  5784. <td>none</td>
  5785. </tr>
  5786. <tr>
  5787. <td>» isFinished</td>
  5788. <td>body</td>
  5789. <td>string</td>
  5790. <td>false</td>
  5791. <td>is the item checked?</td>
  5792. </tr>
  5793. <tr>
  5794. <td>» title</td>
  5795. <td>body</td>
  5796. <td>string</td>
  5797. <td>false</td>
  5798. <td>the new text of the item</td>
  5799. </tr>
  5800. </tbody>
  5801. </table>
  5802. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5803. <p><strong>board</strong>: the board ID</p>
  5804. <p><strong>card</strong>: the card ID</p>
  5805. <p><strong>checklist</strong>: the checklist ID</p>
  5806. <p><strong>item</strong>: the ID of the item</p>
  5807. <blockquote>
  5808. <p>Example responses</p>
  5809. </blockquote>
  5810. <blockquote>
  5811. <p>200 Response</p>
  5812. </blockquote>
  5813. <pre class="highlight tab tab-json"><code>{
  5814. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5815. }
  5816. </code></pre>
  5817. <h3 id="edit_checklist_item-responses">Responses</h3>
  5818. <table>
  5819. <thead>
  5820. <tr>
  5821. <th>Status</th>
  5822. <th>Meaning</th>
  5823. <th>Description</th>
  5824. <th>Schema</th>
  5825. </tr>
  5826. </thead>
  5827. <tbody>
  5828. <tr>
  5829. <td>200</td>
  5830. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5831. <td>200 response</td>
  5832. <td>Inline</td>
  5833. </tr>
  5834. </tbody>
  5835. </table>
  5836. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5837. <p>Status Code <strong>200</strong></p>
  5838. <table>
  5839. <thead>
  5840. <tr>
  5841. <th>Name</th>
  5842. <th>Type</th>
  5843. <th>Required</th>
  5844. <th>Restrictions</th>
  5845. <th>Description</th>
  5846. </tr>
  5847. </thead>
  5848. <tbody>
  5849. <tr>
  5850. <td>» _id</td>
  5851. <td>string</td>
  5852. <td>false</td>
  5853. <td>none</td>
  5854. <td>none</td>
  5855. </tr>
  5856. </tbody>
  5857. </table>
  5858. <aside class="warning">
  5859. To perform this operation, you must be authenticated by means of one of the following methods:
  5860. UserSecurity
  5861. </aside>
  5862. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5863. <p><a id="opIddelete_checklist_item"></a></p>
  5864. <blockquote>
  5865. <p>Code samples</p>
  5866. </blockquote>
  5867. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5868. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5869. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5870. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5871. </code></pre>
  5872. <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>
  5873. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5874. </span></code></pre>
  5875. <pre class="highlight tab tab-javascript"><code>
  5876. <span class="hljs-keyword">const</span> headers = {
  5877. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5878. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5879. };
  5880. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5881. {
  5882. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5883. <span class="hljs-attr">headers</span>: headers
  5884. })
  5885. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5886. <span class="hljs-keyword">return</span> res.json();
  5887. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5888. <span class="hljs-built_in">console</span>.log(body);
  5889. });
  5890. </code></pre>
  5891. <pre class="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>);
  5892. <span class="hljs-keyword">const</span> headers = {
  5893. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5894. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5895. };
  5896. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5897. {
  5898. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5899. <span class="hljs-attr">headers</span>: headers
  5900. })
  5901. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5902. <span class="hljs-keyword">return</span> res.json();
  5903. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5904. <span class="hljs-built_in">console</span>.log(body);
  5905. });
  5906. </code></pre>
  5907. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5908. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5909. headers = {
  5910. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5911. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5912. }
  5913. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5914. <span class="hljs-symbol">params:</span> {
  5915. }, <span class="hljs-symbol">headers:</span> headers
  5916. p JSON.parse(result)
  5917. </code></pre>
  5918. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5919. headers = {
  5920. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5921. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5922. }
  5923. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5924. <span class="hljs-built_in">print</span>(r.json())
  5925. </code></pre>
  5926. <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>);
  5927. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5928. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5929. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5930. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5931. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5932. String inputLine;
  5933. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5934. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5935. response.append(inputLine);
  5936. }
  5937. in.close();
  5938. System.out.println(response.toString());
  5939. </code></pre>
  5940. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5941. <span class="hljs-keyword">import</span> (
  5942. <span class="hljs-string">&quot;bytes&quot;</span>
  5943. <span class="hljs-string">&quot;net/http&quot;</span>
  5944. )
  5945. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5946. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5947. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5948. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5949. }
  5950. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5951. 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)
  5952. req.Header = headers
  5953. client := &amp;http.Client{}
  5954. resp, err := client.Do(req)
  5955. <span class="hljs-comment">// ...</span>
  5956. }
  5957. </code></pre>
  5958. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5959. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5960. );
  5961. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5962. <span class="hljs-comment">// Define array of request body.</span>
  5963. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5964. <span class="hljs-keyword">try</span> {
  5965. <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>(
  5966. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5967. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5968. )
  5969. );
  5970. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5971. }
  5972. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5973. <span class="hljs-comment">// handle exception or api errors.</span>
  5974. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5975. }
  5976. <span class="hljs-comment">// ...</span>
  5977. </code></pre>
  5978. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5979. <p><em>Delete a checklist item</em></p>
  5980. <p>Note: this operation can't be reverted.</p>
  5981. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5982. <table>
  5983. <thead>
  5984. <tr>
  5985. <th>Name</th>
  5986. <th>In</th>
  5987. <th>Type</th>
  5988. <th>Required</th>
  5989. <th>Description</th>
  5990. </tr>
  5991. </thead>
  5992. <tbody>
  5993. <tr>
  5994. <td>board</td>
  5995. <td>path</td>
  5996. <td>string</td>
  5997. <td>true</td>
  5998. <td>the board ID</td>
  5999. </tr>
  6000. <tr>
  6001. <td>card</td>
  6002. <td>path</td>
  6003. <td>string</td>
  6004. <td>true</td>
  6005. <td>the card ID</td>
  6006. </tr>
  6007. <tr>
  6008. <td>checklist</td>
  6009. <td>path</td>
  6010. <td>string</td>
  6011. <td>true</td>
  6012. <td>the checklist ID</td>
  6013. </tr>
  6014. <tr>
  6015. <td>item</td>
  6016. <td>path</td>
  6017. <td>string</td>
  6018. <td>true</td>
  6019. <td>the ID of the item to be removed</td>
  6020. </tr>
  6021. </tbody>
  6022. </table>
  6023. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6024. <p><strong>board</strong>: the board ID</p>
  6025. <p><strong>card</strong>: the card ID</p>
  6026. <p><strong>checklist</strong>: the checklist ID</p>
  6027. <p><strong>item</strong>: the ID of the item to be removed</p>
  6028. <blockquote>
  6029. <p>Example responses</p>
  6030. </blockquote>
  6031. <blockquote>
  6032. <p>200 Response</p>
  6033. </blockquote>
  6034. <pre class="highlight tab tab-json"><code>{
  6035. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6036. }
  6037. </code></pre>
  6038. <h3 id="delete_checklist_item-responses">Responses</h3>
  6039. <table>
  6040. <thead>
  6041. <tr>
  6042. <th>Status</th>
  6043. <th>Meaning</th>
  6044. <th>Description</th>
  6045. <th>Schema</th>
  6046. </tr>
  6047. </thead>
  6048. <tbody>
  6049. <tr>
  6050. <td>200</td>
  6051. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6052. <td>200 response</td>
  6053. <td>Inline</td>
  6054. </tr>
  6055. </tbody>
  6056. </table>
  6057. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6058. <p>Status Code <strong>200</strong></p>
  6059. <table>
  6060. <thead>
  6061. <tr>
  6062. <th>Name</th>
  6063. <th>Type</th>
  6064. <th>Required</th>
  6065. <th>Restrictions</th>
  6066. <th>Description</th>
  6067. </tr>
  6068. </thead>
  6069. <tbody>
  6070. <tr>
  6071. <td>» _id</td>
  6072. <td>string</td>
  6073. <td>false</td>
  6074. <td>none</td>
  6075. <td>none</td>
  6076. </tr>
  6077. </tbody>
  6078. </table>
  6079. <aside class="warning">
  6080. To perform this operation, you must be authenticated by means of one of the following methods:
  6081. UserSecurity
  6082. </aside>
  6083. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6084. <h2 id="get_all_comments">get_all_comments</h2>
  6085. <p><a id="opIdget_all_comments"></a></p>
  6086. <blockquote>
  6087. <p>Code samples</p>
  6088. </blockquote>
  6089. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6090. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6091. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6092. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6093. </code></pre>
  6094. <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>
  6095. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6096. </span></code></pre>
  6097. <pre class="highlight tab tab-javascript"><code>
  6098. <span class="hljs-keyword">const</span> headers = {
  6099. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6100. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6101. };
  6102. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6103. {
  6104. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6105. <span class="hljs-attr">headers</span>: headers
  6106. })
  6107. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6108. <span class="hljs-keyword">return</span> res.json();
  6109. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6110. <span class="hljs-built_in">console</span>.log(body);
  6111. });
  6112. </code></pre>
  6113. <pre class="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>);
  6114. <span class="hljs-keyword">const</span> headers = {
  6115. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6116. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6117. };
  6118. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6119. {
  6120. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6121. <span class="hljs-attr">headers</span>: headers
  6122. })
  6123. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6124. <span class="hljs-keyword">return</span> res.json();
  6125. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6126. <span class="hljs-built_in">console</span>.log(body);
  6127. });
  6128. </code></pre>
  6129. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6130. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6131. headers = {
  6132. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6133. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6134. }
  6135. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6136. <span class="hljs-symbol">params:</span> {
  6137. }, <span class="hljs-symbol">headers:</span> headers
  6138. p JSON.parse(result)
  6139. </code></pre>
  6140. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6141. headers = {
  6142. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6143. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6144. }
  6145. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6146. <span class="hljs-built_in">print</span>(r.json())
  6147. </code></pre>
  6148. <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>);
  6149. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6150. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6151. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6152. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6153. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6154. String inputLine;
  6155. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6156. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6157. response.append(inputLine);
  6158. }
  6159. in.close();
  6160. System.out.println(response.toString());
  6161. </code></pre>
  6162. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6163. <span class="hljs-keyword">import</span> (
  6164. <span class="hljs-string">&quot;bytes&quot;</span>
  6165. <span class="hljs-string">&quot;net/http&quot;</span>
  6166. )
  6167. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6168. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6169. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6170. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6171. }
  6172. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6173. 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)
  6174. req.Header = headers
  6175. client := &amp;http.Client{}
  6176. resp, err := client.Do(req)
  6177. <span class="hljs-comment">// ...</span>
  6178. }
  6179. </code></pre>
  6180. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6181. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6182. );
  6183. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6184. <span class="hljs-comment">// Define array of request body.</span>
  6185. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6186. <span class="hljs-keyword">try</span> {
  6187. <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>(
  6188. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6189. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6190. )
  6191. );
  6192. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6193. }
  6194. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6195. <span class="hljs-comment">// handle exception or api errors.</span>
  6196. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6197. }
  6198. <span class="hljs-comment">// ...</span>
  6199. </code></pre>
  6200. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6201. <p><em>Get all comments attached to a card</em></p>
  6202. <h3 id="get_all_comments-parameters">Parameters</h3>
  6203. <table>
  6204. <thead>
  6205. <tr>
  6206. <th>Name</th>
  6207. <th>In</th>
  6208. <th>Type</th>
  6209. <th>Required</th>
  6210. <th>Description</th>
  6211. </tr>
  6212. </thead>
  6213. <tbody>
  6214. <tr>
  6215. <td>board</td>
  6216. <td>path</td>
  6217. <td>string</td>
  6218. <td>true</td>
  6219. <td>the board ID of the card</td>
  6220. </tr>
  6221. <tr>
  6222. <td>card</td>
  6223. <td>path</td>
  6224. <td>string</td>
  6225. <td>true</td>
  6226. <td>the ID of the card</td>
  6227. </tr>
  6228. </tbody>
  6229. </table>
  6230. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6231. <p><strong>board</strong>: the board ID of the card</p>
  6232. <p><strong>card</strong>: the ID of the card</p>
  6233. <blockquote>
  6234. <p>Example responses</p>
  6235. </blockquote>
  6236. <blockquote>
  6237. <p>200 Response</p>
  6238. </blockquote>
  6239. <pre class="highlight tab tab-json"><code>[
  6240. {
  6241. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6242. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6243. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6244. }
  6245. ]
  6246. </code></pre>
  6247. <h3 id="get_all_comments-responses">Responses</h3>
  6248. <table>
  6249. <thead>
  6250. <tr>
  6251. <th>Status</th>
  6252. <th>Meaning</th>
  6253. <th>Description</th>
  6254. <th>Schema</th>
  6255. </tr>
  6256. </thead>
  6257. <tbody>
  6258. <tr>
  6259. <td>200</td>
  6260. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6261. <td>200 response</td>
  6262. <td>Inline</td>
  6263. </tr>
  6264. </tbody>
  6265. </table>
  6266. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6267. <p>Status Code <strong>200</strong></p>
  6268. <table>
  6269. <thead>
  6270. <tr>
  6271. <th>Name</th>
  6272. <th>Type</th>
  6273. <th>Required</th>
  6274. <th>Restrictions</th>
  6275. <th>Description</th>
  6276. </tr>
  6277. </thead>
  6278. <tbody>
  6279. <tr>
  6280. <td>» _id</td>
  6281. <td>string</td>
  6282. <td>false</td>
  6283. <td>none</td>
  6284. <td>none</td>
  6285. </tr>
  6286. <tr>
  6287. <td>» comment</td>
  6288. <td>string</td>
  6289. <td>false</td>
  6290. <td>none</td>
  6291. <td>none</td>
  6292. </tr>
  6293. <tr>
  6294. <td>» authorId</td>
  6295. <td>string</td>
  6296. <td>false</td>
  6297. <td>none</td>
  6298. <td>none</td>
  6299. </tr>
  6300. </tbody>
  6301. </table>
  6302. <aside class="warning">
  6303. To perform this operation, you must be authenticated by means of one of the following methods:
  6304. UserSecurity
  6305. </aside>
  6306. <h2 id="new_comment">new_comment</h2>
  6307. <p><a id="opIdnew_comment"></a></p>
  6308. <blockquote>
  6309. <p>Code samples</p>
  6310. </blockquote>
  6311. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6312. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6313. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6314. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6315. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6316. </code></pre>
  6317. <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>
  6318. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6319. Accept: application/json
  6320. </span></code></pre>
  6321. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6322. &quot;authorId&quot;: &quot;string&quot;,
  6323. &quot;comment&quot;: &quot;string&quot;
  6324. }&#x27;</span>;
  6325. <span class="hljs-keyword">const</span> headers = {
  6326. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6327. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6328. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6329. };
  6330. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6331. {
  6332. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6333. <span class="hljs-attr">body</span>: inputBody,
  6334. <span class="hljs-attr">headers</span>: headers
  6335. })
  6336. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6337. <span class="hljs-keyword">return</span> res.json();
  6338. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6339. <span class="hljs-built_in">console</span>.log(body);
  6340. });
  6341. </code></pre>
  6342. <pre class="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>);
  6343. <span class="hljs-keyword">const</span> inputBody = {
  6344. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6345. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6346. };
  6347. <span class="hljs-keyword">const</span> headers = {
  6348. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6349. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6350. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6351. };
  6352. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6353. {
  6354. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6355. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6356. <span class="hljs-attr">headers</span>: headers
  6357. })
  6358. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6359. <span class="hljs-keyword">return</span> res.json();
  6360. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6361. <span class="hljs-built_in">console</span>.log(body);
  6362. });
  6363. </code></pre>
  6364. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6365. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6366. headers = {
  6367. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6368. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6369. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6370. }
  6371. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6372. <span class="hljs-symbol">params:</span> {
  6373. }, <span class="hljs-symbol">headers:</span> headers
  6374. p JSON.parse(result)
  6375. </code></pre>
  6376. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6377. headers = {
  6378. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6379. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6380. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6381. }
  6382. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6383. <span class="hljs-built_in">print</span>(r.json())
  6384. </code></pre>
  6385. <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>);
  6386. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6387. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6388. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6389. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6390. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6391. String inputLine;
  6392. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6393. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6394. response.append(inputLine);
  6395. }
  6396. in.close();
  6397. System.out.println(response.toString());
  6398. </code></pre>
  6399. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6400. <span class="hljs-keyword">import</span> (
  6401. <span class="hljs-string">&quot;bytes&quot;</span>
  6402. <span class="hljs-string">&quot;net/http&quot;</span>
  6403. )
  6404. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6405. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6406. <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>},
  6407. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6408. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6409. }
  6410. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6411. 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)
  6412. req.Header = headers
  6413. client := &amp;http.Client{}
  6414. resp, err := client.Do(req)
  6415. <span class="hljs-comment">// ...</span>
  6416. }
  6417. </code></pre>
  6418. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6419. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6420. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6421. );
  6422. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6423. <span class="hljs-comment">// Define array of request body.</span>
  6424. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6425. <span class="hljs-keyword">try</span> {
  6426. <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>(
  6427. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6428. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6429. )
  6430. );
  6431. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6432. }
  6433. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6434. <span class="hljs-comment">// handle exception or api errors.</span>
  6435. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6436. }
  6437. <span class="hljs-comment">// ...</span>
  6438. </code></pre>
  6439. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6440. <p><em>Add a comment on a card</em></p>
  6441. <blockquote>
  6442. <p>Body parameter</p>
  6443. </blockquote>
  6444. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6445. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6446. </code></pre>
  6447. <h3 id="new_comment-parameters">Parameters</h3>
  6448. <table>
  6449. <thead>
  6450. <tr>
  6451. <th>Name</th>
  6452. <th>In</th>
  6453. <th>Type</th>
  6454. <th>Required</th>
  6455. <th>Description</th>
  6456. </tr>
  6457. </thead>
  6458. <tbody>
  6459. <tr>
  6460. <td>board</td>
  6461. <td>path</td>
  6462. <td>string</td>
  6463. <td>true</td>
  6464. <td>the board ID of the card</td>
  6465. </tr>
  6466. <tr>
  6467. <td>card</td>
  6468. <td>path</td>
  6469. <td>string</td>
  6470. <td>true</td>
  6471. <td>the ID of the card</td>
  6472. </tr>
  6473. <tr>
  6474. <td>body</td>
  6475. <td>body</td>
  6476. <td>object</td>
  6477. <td>true</td>
  6478. <td>none</td>
  6479. </tr>
  6480. <tr>
  6481. <td>» authorId</td>
  6482. <td>body</td>
  6483. <td>string</td>
  6484. <td>true</td>
  6485. <td>the user who 'posted' the comment</td>
  6486. </tr>
  6487. <tr>
  6488. <td>» comment</td>
  6489. <td>body</td>
  6490. <td>string</td>
  6491. <td>true</td>
  6492. <td>the comment value</td>
  6493. </tr>
  6494. </tbody>
  6495. </table>
  6496. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6497. <p><strong>board</strong>: the board ID of the card</p>
  6498. <p><strong>card</strong>: the ID of the card</p>
  6499. <blockquote>
  6500. <p>Example responses</p>
  6501. </blockquote>
  6502. <blockquote>
  6503. <p>200 Response</p>
  6504. </blockquote>
  6505. <pre class="highlight tab tab-json"><code>{
  6506. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6507. }
  6508. </code></pre>
  6509. <h3 id="new_comment-responses">Responses</h3>
  6510. <table>
  6511. <thead>
  6512. <tr>
  6513. <th>Status</th>
  6514. <th>Meaning</th>
  6515. <th>Description</th>
  6516. <th>Schema</th>
  6517. </tr>
  6518. </thead>
  6519. <tbody>
  6520. <tr>
  6521. <td>200</td>
  6522. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6523. <td>200 response</td>
  6524. <td>Inline</td>
  6525. </tr>
  6526. </tbody>
  6527. </table>
  6528. <h3 id="new_comment-responseschema">Response Schema</h3>
  6529. <p>Status Code <strong>200</strong></p>
  6530. <table>
  6531. <thead>
  6532. <tr>
  6533. <th>Name</th>
  6534. <th>Type</th>
  6535. <th>Required</th>
  6536. <th>Restrictions</th>
  6537. <th>Description</th>
  6538. </tr>
  6539. </thead>
  6540. <tbody>
  6541. <tr>
  6542. <td>» _id</td>
  6543. <td>string</td>
  6544. <td>false</td>
  6545. <td>none</td>
  6546. <td>none</td>
  6547. </tr>
  6548. </tbody>
  6549. </table>
  6550. <aside class="warning">
  6551. To perform this operation, you must be authenticated by means of one of the following methods:
  6552. UserSecurity
  6553. </aside>
  6554. <h2 id="get_comment">get_comment</h2>
  6555. <p><a id="opIdget_comment"></a></p>
  6556. <blockquote>
  6557. <p>Code samples</p>
  6558. </blockquote>
  6559. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6560. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6561. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6562. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6563. </code></pre>
  6564. <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>
  6565. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6566. </span></code></pre>
  6567. <pre class="highlight tab tab-javascript"><code>
  6568. <span class="hljs-keyword">const</span> headers = {
  6569. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6570. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6571. };
  6572. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6573. {
  6574. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6575. <span class="hljs-attr">headers</span>: headers
  6576. })
  6577. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6578. <span class="hljs-keyword">return</span> res.json();
  6579. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6580. <span class="hljs-built_in">console</span>.log(body);
  6581. });
  6582. </code></pre>
  6583. <pre class="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>);
  6584. <span class="hljs-keyword">const</span> headers = {
  6585. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6586. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6587. };
  6588. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6589. {
  6590. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6591. <span class="hljs-attr">headers</span>: headers
  6592. })
  6593. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6594. <span class="hljs-keyword">return</span> res.json();
  6595. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6596. <span class="hljs-built_in">console</span>.log(body);
  6597. });
  6598. </code></pre>
  6599. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6600. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6601. headers = {
  6602. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6603. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6604. }
  6605. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6606. <span class="hljs-symbol">params:</span> {
  6607. }, <span class="hljs-symbol">headers:</span> headers
  6608. p JSON.parse(result)
  6609. </code></pre>
  6610. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6611. headers = {
  6612. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6613. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6614. }
  6615. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6616. <span class="hljs-built_in">print</span>(r.json())
  6617. </code></pre>
  6618. <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>);
  6619. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6620. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6621. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6622. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6623. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6624. String inputLine;
  6625. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6626. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6627. response.append(inputLine);
  6628. }
  6629. in.close();
  6630. System.out.println(response.toString());
  6631. </code></pre>
  6632. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6633. <span class="hljs-keyword">import</span> (
  6634. <span class="hljs-string">&quot;bytes&quot;</span>
  6635. <span class="hljs-string">&quot;net/http&quot;</span>
  6636. )
  6637. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6638. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6639. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6640. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6641. }
  6642. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6643. 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)
  6644. req.Header = headers
  6645. client := &amp;http.Client{}
  6646. resp, err := client.Do(req)
  6647. <span class="hljs-comment">// ...</span>
  6648. }
  6649. </code></pre>
  6650. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6651. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6652. );
  6653. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6654. <span class="hljs-comment">// Define array of request body.</span>
  6655. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6656. <span class="hljs-keyword">try</span> {
  6657. <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>(
  6658. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6659. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6660. )
  6661. );
  6662. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6663. }
  6664. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6665. <span class="hljs-comment">// handle exception or api errors.</span>
  6666. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6667. }
  6668. <span class="hljs-comment">// ...</span>
  6669. </code></pre>
  6670. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6671. <p><em>Get a comment on a card</em></p>
  6672. <h3 id="get_comment-parameters">Parameters</h3>
  6673. <table>
  6674. <thead>
  6675. <tr>
  6676. <th>Name</th>
  6677. <th>In</th>
  6678. <th>Type</th>
  6679. <th>Required</th>
  6680. <th>Description</th>
  6681. </tr>
  6682. </thead>
  6683. <tbody>
  6684. <tr>
  6685. <td>board</td>
  6686. <td>path</td>
  6687. <td>string</td>
  6688. <td>true</td>
  6689. <td>the board ID of the card</td>
  6690. </tr>
  6691. <tr>
  6692. <td>card</td>
  6693. <td>path</td>
  6694. <td>string</td>
  6695. <td>true</td>
  6696. <td>the ID of the card</td>
  6697. </tr>
  6698. <tr>
  6699. <td>comment</td>
  6700. <td>path</td>
  6701. <td>string</td>
  6702. <td>true</td>
  6703. <td>the ID of the comment to retrieve</td>
  6704. </tr>
  6705. </tbody>
  6706. </table>
  6707. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6708. <p><strong>board</strong>: the board ID of the card</p>
  6709. <p><strong>card</strong>: the ID of the card</p>
  6710. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6711. <blockquote>
  6712. <p>Example responses</p>
  6713. </blockquote>
  6714. <blockquote>
  6715. <p>200 Response</p>
  6716. </blockquote>
  6717. <pre class="highlight tab tab-json"><code>{
  6718. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6719. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6720. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6721. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6722. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6723. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6724. }
  6725. </code></pre>
  6726. <h3 id="get_comment-responses">Responses</h3>
  6727. <table>
  6728. <thead>
  6729. <tr>
  6730. <th>Status</th>
  6731. <th>Meaning</th>
  6732. <th>Description</th>
  6733. <th>Schema</th>
  6734. </tr>
  6735. </thead>
  6736. <tbody>
  6737. <tr>
  6738. <td>200</td>
  6739. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6740. <td>200 response</td>
  6741. <td><a href="#schemacardcomments">CardComments</a></td>
  6742. </tr>
  6743. </tbody>
  6744. </table>
  6745. <aside class="warning">
  6746. To perform this operation, you must be authenticated by means of one of the following methods:
  6747. UserSecurity
  6748. </aside>
  6749. <h2 id="delete_comment">delete_comment</h2>
  6750. <p><a id="opIddelete_comment"></a></p>
  6751. <blockquote>
  6752. <p>Code samples</p>
  6753. </blockquote>
  6754. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6755. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6756. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6757. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6758. </code></pre>
  6759. <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>
  6760. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6761. </span></code></pre>
  6762. <pre class="highlight tab tab-javascript"><code>
  6763. <span class="hljs-keyword">const</span> headers = {
  6764. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6765. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6766. };
  6767. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6768. {
  6769. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6770. <span class="hljs-attr">headers</span>: headers
  6771. })
  6772. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6773. <span class="hljs-keyword">return</span> res.json();
  6774. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6775. <span class="hljs-built_in">console</span>.log(body);
  6776. });
  6777. </code></pre>
  6778. <pre class="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>);
  6779. <span class="hljs-keyword">const</span> headers = {
  6780. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6781. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6782. };
  6783. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6784. {
  6785. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6786. <span class="hljs-attr">headers</span>: headers
  6787. })
  6788. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6789. <span class="hljs-keyword">return</span> res.json();
  6790. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6791. <span class="hljs-built_in">console</span>.log(body);
  6792. });
  6793. </code></pre>
  6794. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6795. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6796. headers = {
  6797. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6798. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6799. }
  6800. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6801. <span class="hljs-symbol">params:</span> {
  6802. }, <span class="hljs-symbol">headers:</span> headers
  6803. p JSON.parse(result)
  6804. </code></pre>
  6805. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6806. headers = {
  6807. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6808. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6809. }
  6810. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6811. <span class="hljs-built_in">print</span>(r.json())
  6812. </code></pre>
  6813. <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>);
  6814. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6815. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6816. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6817. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6818. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6819. String inputLine;
  6820. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6821. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6822. response.append(inputLine);
  6823. }
  6824. in.close();
  6825. System.out.println(response.toString());
  6826. </code></pre>
  6827. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6828. <span class="hljs-keyword">import</span> (
  6829. <span class="hljs-string">&quot;bytes&quot;</span>
  6830. <span class="hljs-string">&quot;net/http&quot;</span>
  6831. )
  6832. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6833. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6834. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6835. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6836. }
  6837. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6838. 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)
  6839. req.Header = headers
  6840. client := &amp;http.Client{}
  6841. resp, err := client.Do(req)
  6842. <span class="hljs-comment">// ...</span>
  6843. }
  6844. </code></pre>
  6845. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6846. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6847. );
  6848. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6849. <span class="hljs-comment">// Define array of request body.</span>
  6850. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6851. <span class="hljs-keyword">try</span> {
  6852. <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>(
  6853. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6854. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6855. )
  6856. );
  6857. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6858. }
  6859. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6860. <span class="hljs-comment">// handle exception or api errors.</span>
  6861. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6862. }
  6863. <span class="hljs-comment">// ...</span>
  6864. </code></pre>
  6865. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6866. <p><em>Delete a comment on a card</em></p>
  6867. <h3 id="delete_comment-parameters">Parameters</h3>
  6868. <table>
  6869. <thead>
  6870. <tr>
  6871. <th>Name</th>
  6872. <th>In</th>
  6873. <th>Type</th>
  6874. <th>Required</th>
  6875. <th>Description</th>
  6876. </tr>
  6877. </thead>
  6878. <tbody>
  6879. <tr>
  6880. <td>board</td>
  6881. <td>path</td>
  6882. <td>string</td>
  6883. <td>true</td>
  6884. <td>the board ID of the card</td>
  6885. </tr>
  6886. <tr>
  6887. <td>card</td>
  6888. <td>path</td>
  6889. <td>string</td>
  6890. <td>true</td>
  6891. <td>the ID of the card</td>
  6892. </tr>
  6893. <tr>
  6894. <td>comment</td>
  6895. <td>path</td>
  6896. <td>string</td>
  6897. <td>true</td>
  6898. <td>the ID of the comment to delete</td>
  6899. </tr>
  6900. </tbody>
  6901. </table>
  6902. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6903. <p><strong>board</strong>: the board ID of the card</p>
  6904. <p><strong>card</strong>: the ID of the card</p>
  6905. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6906. <blockquote>
  6907. <p>Example responses</p>
  6908. </blockquote>
  6909. <blockquote>
  6910. <p>200 Response</p>
  6911. </blockquote>
  6912. <pre class="highlight tab tab-json"><code>{
  6913. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6914. }
  6915. </code></pre>
  6916. <h3 id="delete_comment-responses">Responses</h3>
  6917. <table>
  6918. <thead>
  6919. <tr>
  6920. <th>Status</th>
  6921. <th>Meaning</th>
  6922. <th>Description</th>
  6923. <th>Schema</th>
  6924. </tr>
  6925. </thead>
  6926. <tbody>
  6927. <tr>
  6928. <td>200</td>
  6929. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6930. <td>200 response</td>
  6931. <td>Inline</td>
  6932. </tr>
  6933. </tbody>
  6934. </table>
  6935. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6936. <p>Status Code <strong>200</strong></p>
  6937. <table>
  6938. <thead>
  6939. <tr>
  6940. <th>Name</th>
  6941. <th>Type</th>
  6942. <th>Required</th>
  6943. <th>Restrictions</th>
  6944. <th>Description</th>
  6945. </tr>
  6946. </thead>
  6947. <tbody>
  6948. <tr>
  6949. <td>» _id</td>
  6950. <td>string</td>
  6951. <td>false</td>
  6952. <td>none</td>
  6953. <td>none</td>
  6954. </tr>
  6955. </tbody>
  6956. </table>
  6957. <aside class="warning">
  6958. To perform this operation, you must be authenticated by means of one of the following methods:
  6959. UserSecurity
  6960. </aside>
  6961. <h1 id="wekan-rest-api-cards">Cards</h1>
  6962. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6963. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6964. <blockquote>
  6965. <p>Code samples</p>
  6966. </blockquote>
  6967. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6968. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6969. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6970. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6971. </code></pre>
  6972. <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>
  6973. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6974. </span></code></pre>
  6975. <pre class="highlight tab tab-javascript"><code>
  6976. <span class="hljs-keyword">const</span> headers = {
  6977. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6978. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6979. };
  6980. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6981. {
  6982. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6983. <span class="hljs-attr">headers</span>: headers
  6984. })
  6985. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6986. <span class="hljs-keyword">return</span> res.json();
  6987. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6988. <span class="hljs-built_in">console</span>.log(body);
  6989. });
  6990. </code></pre>
  6991. <pre class="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>);
  6992. <span class="hljs-keyword">const</span> headers = {
  6993. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6994. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6995. };
  6996. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6997. {
  6998. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6999. <span class="hljs-attr">headers</span>: headers
  7000. })
  7001. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7002. <span class="hljs-keyword">return</span> res.json();
  7003. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7004. <span class="hljs-built_in">console</span>.log(body);
  7005. });
  7006. </code></pre>
  7007. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7008. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7009. headers = {
  7010. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7011. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7012. }
  7013. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7014. <span class="hljs-symbol">params:</span> {
  7015. }, <span class="hljs-symbol">headers:</span> headers
  7016. p JSON.parse(result)
  7017. </code></pre>
  7018. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7019. headers = {
  7020. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7021. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7022. }
  7023. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7024. <span class="hljs-built_in">print</span>(r.json())
  7025. </code></pre>
  7026. <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>);
  7027. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7028. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7029. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7030. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7031. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7032. String inputLine;
  7033. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7034. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7035. response.append(inputLine);
  7036. }
  7037. in.close();
  7038. System.out.println(response.toString());
  7039. </code></pre>
  7040. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7041. <span class="hljs-keyword">import</span> (
  7042. <span class="hljs-string">&quot;bytes&quot;</span>
  7043. <span class="hljs-string">&quot;net/http&quot;</span>
  7044. )
  7045. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7046. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7047. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7048. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7049. }
  7050. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7051. 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)
  7052. req.Header = headers
  7053. client := &amp;http.Client{}
  7054. resp, err := client.Do(req)
  7055. <span class="hljs-comment">// ...</span>
  7056. }
  7057. </code></pre>
  7058. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7059. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7060. );
  7061. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7062. <span class="hljs-comment">// Define array of request body.</span>
  7063. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7064. <span class="hljs-keyword">try</span> {
  7065. <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>(
  7066. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7067. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7068. )
  7069. );
  7070. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7071. }
  7072. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7073. <span class="hljs-comment">// handle exception or api errors.</span>
  7074. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7075. }
  7076. <span class="hljs-comment">// ...</span>
  7077. </code></pre>
  7078. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7079. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7080. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7081. <table>
  7082. <thead>
  7083. <tr>
  7084. <th>Name</th>
  7085. <th>In</th>
  7086. <th>Type</th>
  7087. <th>Required</th>
  7088. <th>Description</th>
  7089. </tr>
  7090. </thead>
  7091. <tbody>
  7092. <tr>
  7093. <td>board</td>
  7094. <td>path</td>
  7095. <td>string</td>
  7096. <td>true</td>
  7097. <td>the board ID</td>
  7098. </tr>
  7099. <tr>
  7100. <td>customField</td>
  7101. <td>path</td>
  7102. <td>string</td>
  7103. <td>true</td>
  7104. <td>the list ID</td>
  7105. </tr>
  7106. <tr>
  7107. <td>customFieldValue</td>
  7108. <td>path</td>
  7109. <td>string</td>
  7110. <td>true</td>
  7111. <td>the value to look for</td>
  7112. </tr>
  7113. </tbody>
  7114. </table>
  7115. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7116. <p><strong>board</strong>: the board ID</p>
  7117. <p><strong>customField</strong>: the list ID</p>
  7118. <p><strong>customFieldValue</strong>: the value to look for</p>
  7119. <blockquote>
  7120. <p>Example responses</p>
  7121. </blockquote>
  7122. <blockquote>
  7123. <p>200 Response</p>
  7124. </blockquote>
  7125. <pre class="highlight tab tab-json"><code>[
  7126. {
  7127. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7128. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7129. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7130. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7131. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7132. }
  7133. ]
  7134. </code></pre>
  7135. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7136. <table>
  7137. <thead>
  7138. <tr>
  7139. <th>Status</th>
  7140. <th>Meaning</th>
  7141. <th>Description</th>
  7142. <th>Schema</th>
  7143. </tr>
  7144. </thead>
  7145. <tbody>
  7146. <tr>
  7147. <td>200</td>
  7148. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7149. <td>200 response</td>
  7150. <td>Inline</td>
  7151. </tr>
  7152. </tbody>
  7153. </table>
  7154. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7155. <p>Status Code <strong>200</strong></p>
  7156. <table>
  7157. <thead>
  7158. <tr>
  7159. <th>Name</th>
  7160. <th>Type</th>
  7161. <th>Required</th>
  7162. <th>Restrictions</th>
  7163. <th>Description</th>
  7164. </tr>
  7165. </thead>
  7166. <tbody>
  7167. <tr>
  7168. <td>» _id</td>
  7169. <td>string</td>
  7170. <td>false</td>
  7171. <td>none</td>
  7172. <td>none</td>
  7173. </tr>
  7174. <tr>
  7175. <td>» title</td>
  7176. <td>string</td>
  7177. <td>false</td>
  7178. <td>none</td>
  7179. <td>none</td>
  7180. </tr>
  7181. <tr>
  7182. <td>» description</td>
  7183. <td>string</td>
  7184. <td>false</td>
  7185. <td>none</td>
  7186. <td>none</td>
  7187. </tr>
  7188. <tr>
  7189. <td>» listId</td>
  7190. <td>string</td>
  7191. <td>false</td>
  7192. <td>none</td>
  7193. <td>none</td>
  7194. </tr>
  7195. <tr>
  7196. <td>» swinlaneId</td>
  7197. <td>string</td>
  7198. <td>false</td>
  7199. <td>none</td>
  7200. <td>none</td>
  7201. </tr>
  7202. </tbody>
  7203. </table>
  7204. <aside class="warning">
  7205. To perform this operation, you must be authenticated by means of one of the following methods:
  7206. UserSecurity
  7207. </aside>
  7208. <h2 id="get_all_cards">get_all_cards</h2>
  7209. <p><a id="opIdget_all_cards"></a></p>
  7210. <blockquote>
  7211. <p>Code samples</p>
  7212. </blockquote>
  7213. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7214. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7215. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7216. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7217. </code></pre>
  7218. <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>
  7219. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7220. </span></code></pre>
  7221. <pre class="highlight tab tab-javascript"><code>
  7222. <span class="hljs-keyword">const</span> headers = {
  7223. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7224. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7225. };
  7226. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7227. {
  7228. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7229. <span class="hljs-attr">headers</span>: headers
  7230. })
  7231. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7232. <span class="hljs-keyword">return</span> res.json();
  7233. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7234. <span class="hljs-built_in">console</span>.log(body);
  7235. });
  7236. </code></pre>
  7237. <pre class="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>);
  7238. <span class="hljs-keyword">const</span> headers = {
  7239. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7240. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7241. };
  7242. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7243. {
  7244. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7245. <span class="hljs-attr">headers</span>: headers
  7246. })
  7247. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7248. <span class="hljs-keyword">return</span> res.json();
  7249. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7250. <span class="hljs-built_in">console</span>.log(body);
  7251. });
  7252. </code></pre>
  7253. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7254. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7255. headers = {
  7256. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7257. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7258. }
  7259. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7260. <span class="hljs-symbol">params:</span> {
  7261. }, <span class="hljs-symbol">headers:</span> headers
  7262. p JSON.parse(result)
  7263. </code></pre>
  7264. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7265. headers = {
  7266. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7267. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7268. }
  7269. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7270. <span class="hljs-built_in">print</span>(r.json())
  7271. </code></pre>
  7272. <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>);
  7273. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7274. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7275. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7276. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7277. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7278. String inputLine;
  7279. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7280. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7281. response.append(inputLine);
  7282. }
  7283. in.close();
  7284. System.out.println(response.toString());
  7285. </code></pre>
  7286. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7287. <span class="hljs-keyword">import</span> (
  7288. <span class="hljs-string">&quot;bytes&quot;</span>
  7289. <span class="hljs-string">&quot;net/http&quot;</span>
  7290. )
  7291. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7292. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7293. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7294. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7295. }
  7296. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7297. 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)
  7298. req.Header = headers
  7299. client := &amp;http.Client{}
  7300. resp, err := client.Do(req)
  7301. <span class="hljs-comment">// ...</span>
  7302. }
  7303. </code></pre>
  7304. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7305. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7306. );
  7307. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7308. <span class="hljs-comment">// Define array of request body.</span>
  7309. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7310. <span class="hljs-keyword">try</span> {
  7311. <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>(
  7312. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7313. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7314. )
  7315. );
  7316. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7317. }
  7318. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7319. <span class="hljs-comment">// handle exception or api errors.</span>
  7320. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7321. }
  7322. <span class="hljs-comment">// ...</span>
  7323. </code></pre>
  7324. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7325. <p><em>Get all Cards attached to a List</em></p>
  7326. <h3 id="get_all_cards-parameters">Parameters</h3>
  7327. <table>
  7328. <thead>
  7329. <tr>
  7330. <th>Name</th>
  7331. <th>In</th>
  7332. <th>Type</th>
  7333. <th>Required</th>
  7334. <th>Description</th>
  7335. </tr>
  7336. </thead>
  7337. <tbody>
  7338. <tr>
  7339. <td>board</td>
  7340. <td>path</td>
  7341. <td>string</td>
  7342. <td>true</td>
  7343. <td>the board ID</td>
  7344. </tr>
  7345. <tr>
  7346. <td>list</td>
  7347. <td>path</td>
  7348. <td>string</td>
  7349. <td>true</td>
  7350. <td>the list ID</td>
  7351. </tr>
  7352. </tbody>
  7353. </table>
  7354. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7355. <p><strong>board</strong>: the board ID</p>
  7356. <p><strong>list</strong>: the list ID</p>
  7357. <blockquote>
  7358. <p>Example responses</p>
  7359. </blockquote>
  7360. <blockquote>
  7361. <p>200 Response</p>
  7362. </blockquote>
  7363. <pre class="highlight tab tab-json"><code>[
  7364. {
  7365. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7366. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7367. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7368. }
  7369. ]
  7370. </code></pre>
  7371. <h3 id="get_all_cards-responses">Responses</h3>
  7372. <table>
  7373. <thead>
  7374. <tr>
  7375. <th>Status</th>
  7376. <th>Meaning</th>
  7377. <th>Description</th>
  7378. <th>Schema</th>
  7379. </tr>
  7380. </thead>
  7381. <tbody>
  7382. <tr>
  7383. <td>200</td>
  7384. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7385. <td>200 response</td>
  7386. <td>Inline</td>
  7387. </tr>
  7388. </tbody>
  7389. </table>
  7390. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7391. <p>Status Code <strong>200</strong></p>
  7392. <table>
  7393. <thead>
  7394. <tr>
  7395. <th>Name</th>
  7396. <th>Type</th>
  7397. <th>Required</th>
  7398. <th>Restrictions</th>
  7399. <th>Description</th>
  7400. </tr>
  7401. </thead>
  7402. <tbody>
  7403. <tr>
  7404. <td>» _id</td>
  7405. <td>string</td>
  7406. <td>false</td>
  7407. <td>none</td>
  7408. <td>none</td>
  7409. </tr>
  7410. <tr>
  7411. <td>» title</td>
  7412. <td>string</td>
  7413. <td>false</td>
  7414. <td>none</td>
  7415. <td>none</td>
  7416. </tr>
  7417. <tr>
  7418. <td>» description</td>
  7419. <td>string</td>
  7420. <td>false</td>
  7421. <td>none</td>
  7422. <td>none</td>
  7423. </tr>
  7424. </tbody>
  7425. </table>
  7426. <aside class="warning">
  7427. To perform this operation, you must be authenticated by means of one of the following methods:
  7428. UserSecurity
  7429. </aside>
  7430. <h2 id="new_card">new_card</h2>
  7431. <p><a id="opIdnew_card"></a></p>
  7432. <blockquote>
  7433. <p>Code samples</p>
  7434. </blockquote>
  7435. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7436. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7437. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7438. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7439. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7440. </code></pre>
  7441. <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>
  7442. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7443. Accept: application/json
  7444. </span></code></pre>
  7445. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7446. &quot;authorId&quot;: &quot;string&quot;,
  7447. &quot;members&quot;: &quot;string&quot;,
  7448. &quot;assignees&quot;: &quot;string&quot;,
  7449. &quot;title&quot;: &quot;string&quot;,
  7450. &quot;description&quot;: &quot;string&quot;,
  7451. &quot;swimlaneId&quot;: &quot;string&quot;
  7452. }&#x27;</span>;
  7453. <span class="hljs-keyword">const</span> headers = {
  7454. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7455. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7456. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7457. };
  7458. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7459. {
  7460. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7461. <span class="hljs-attr">body</span>: inputBody,
  7462. <span class="hljs-attr">headers</span>: headers
  7463. })
  7464. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7465. <span class="hljs-keyword">return</span> res.json();
  7466. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7467. <span class="hljs-built_in">console</span>.log(body);
  7468. });
  7469. </code></pre>
  7470. <pre class="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>);
  7471. <span class="hljs-keyword">const</span> inputBody = {
  7472. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7473. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7474. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7475. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7476. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7477. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7478. };
  7479. <span class="hljs-keyword">const</span> headers = {
  7480. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7481. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7482. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7483. };
  7484. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7485. {
  7486. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7487. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7488. <span class="hljs-attr">headers</span>: headers
  7489. })
  7490. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7491. <span class="hljs-keyword">return</span> res.json();
  7492. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7493. <span class="hljs-built_in">console</span>.log(body);
  7494. });
  7495. </code></pre>
  7496. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7497. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7498. headers = {
  7499. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7500. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7501. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7502. }
  7503. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7504. <span class="hljs-symbol">params:</span> {
  7505. }, <span class="hljs-symbol">headers:</span> headers
  7506. p JSON.parse(result)
  7507. </code></pre>
  7508. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7509. headers = {
  7510. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7511. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7512. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7513. }
  7514. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7515. <span class="hljs-built_in">print</span>(r.json())
  7516. </code></pre>
  7517. <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>);
  7518. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7519. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7520. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7521. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7522. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7523. String inputLine;
  7524. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7525. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7526. response.append(inputLine);
  7527. }
  7528. in.close();
  7529. System.out.println(response.toString());
  7530. </code></pre>
  7531. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7532. <span class="hljs-keyword">import</span> (
  7533. <span class="hljs-string">&quot;bytes&quot;</span>
  7534. <span class="hljs-string">&quot;net/http&quot;</span>
  7535. )
  7536. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7537. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7538. <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>},
  7539. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7540. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7541. }
  7542. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7543. 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)
  7544. req.Header = headers
  7545. client := &amp;http.Client{}
  7546. resp, err := client.Do(req)
  7547. <span class="hljs-comment">// ...</span>
  7548. }
  7549. </code></pre>
  7550. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7551. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7552. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7553. );
  7554. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7555. <span class="hljs-comment">// Define array of request body.</span>
  7556. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7557. <span class="hljs-keyword">try</span> {
  7558. <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>(
  7559. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7560. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7561. )
  7562. );
  7563. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7564. }
  7565. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7566. <span class="hljs-comment">// handle exception or api errors.</span>
  7567. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7568. }
  7569. <span class="hljs-comment">// ...</span>
  7570. </code></pre>
  7571. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7572. <p><em>Create a new Card</em></p>
  7573. <blockquote>
  7574. <p>Body parameter</p>
  7575. </blockquote>
  7576. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7577. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7578. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7579. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7580. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7581. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7582. </code></pre>
  7583. <h3 id="new_card-parameters">Parameters</h3>
  7584. <table>
  7585. <thead>
  7586. <tr>
  7587. <th>Name</th>
  7588. <th>In</th>
  7589. <th>Type</th>
  7590. <th>Required</th>
  7591. <th>Description</th>
  7592. </tr>
  7593. </thead>
  7594. <tbody>
  7595. <tr>
  7596. <td>board</td>
  7597. <td>path</td>
  7598. <td>string</td>
  7599. <td>true</td>
  7600. <td>the board ID of the new card</td>
  7601. </tr>
  7602. <tr>
  7603. <td>list</td>
  7604. <td>path</td>
  7605. <td>string</td>
  7606. <td>true</td>
  7607. <td>the list ID of the new card</td>
  7608. </tr>
  7609. <tr>
  7610. <td>body</td>
  7611. <td>body</td>
  7612. <td>object</td>
  7613. <td>true</td>
  7614. <td>none</td>
  7615. </tr>
  7616. <tr>
  7617. <td>» authorId</td>
  7618. <td>body</td>
  7619. <td>string</td>
  7620. <td>true</td>
  7621. <td>the authorId value</td>
  7622. </tr>
  7623. <tr>
  7624. <td>» members</td>
  7625. <td>body</td>
  7626. <td>string</td>
  7627. <td>false</td>
  7628. <td>the member IDs list of the new card</td>
  7629. </tr>
  7630. <tr>
  7631. <td>» assignees</td>
  7632. <td>body</td>
  7633. <td>string</td>
  7634. <td>false</td>
  7635. <td>the array of maximum one ID of assignee of the new card</td>
  7636. </tr>
  7637. <tr>
  7638. <td>» title</td>
  7639. <td>body</td>
  7640. <td>string</td>
  7641. <td>true</td>
  7642. <td>the title of the new card</td>
  7643. </tr>
  7644. <tr>
  7645. <td>» description</td>
  7646. <td>body</td>
  7647. <td>string</td>
  7648. <td>true</td>
  7649. <td>the description of the new card</td>
  7650. </tr>
  7651. <tr>
  7652. <td>» swimlaneId</td>
  7653. <td>body</td>
  7654. <td>string</td>
  7655. <td>true</td>
  7656. <td>the swimlane ID of the new card</td>
  7657. </tr>
  7658. </tbody>
  7659. </table>
  7660. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7661. <p><strong>board</strong>: the board ID of the new card</p>
  7662. <p><strong>list</strong>: the list ID of the new card</p>
  7663. <blockquote>
  7664. <p>Example responses</p>
  7665. </blockquote>
  7666. <blockquote>
  7667. <p>200 Response</p>
  7668. </blockquote>
  7669. <pre class="highlight tab tab-json"><code>{
  7670. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7671. }
  7672. </code></pre>
  7673. <h3 id="new_card-responses">Responses</h3>
  7674. <table>
  7675. <thead>
  7676. <tr>
  7677. <th>Status</th>
  7678. <th>Meaning</th>
  7679. <th>Description</th>
  7680. <th>Schema</th>
  7681. </tr>
  7682. </thead>
  7683. <tbody>
  7684. <tr>
  7685. <td>200</td>
  7686. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7687. <td>200 response</td>
  7688. <td>Inline</td>
  7689. </tr>
  7690. </tbody>
  7691. </table>
  7692. <h3 id="new_card-responseschema">Response Schema</h3>
  7693. <p>Status Code <strong>200</strong></p>
  7694. <table>
  7695. <thead>
  7696. <tr>
  7697. <th>Name</th>
  7698. <th>Type</th>
  7699. <th>Required</th>
  7700. <th>Restrictions</th>
  7701. <th>Description</th>
  7702. </tr>
  7703. </thead>
  7704. <tbody>
  7705. <tr>
  7706. <td>» _id</td>
  7707. <td>string</td>
  7708. <td>false</td>
  7709. <td>none</td>
  7710. <td>none</td>
  7711. </tr>
  7712. </tbody>
  7713. </table>
  7714. <aside class="warning">
  7715. To perform this operation, you must be authenticated by means of one of the following methods:
  7716. UserSecurity
  7717. </aside>
  7718. <h2 id="get_card">get_card</h2>
  7719. <p><a id="opIdget_card"></a></p>
  7720. <blockquote>
  7721. <p>Code samples</p>
  7722. </blockquote>
  7723. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7724. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7725. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7726. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7727. </code></pre>
  7728. <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>
  7729. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7730. </span></code></pre>
  7731. <pre class="highlight tab tab-javascript"><code>
  7732. <span class="hljs-keyword">const</span> headers = {
  7733. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7734. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7735. };
  7736. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7737. {
  7738. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7739. <span class="hljs-attr">headers</span>: headers
  7740. })
  7741. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7742. <span class="hljs-keyword">return</span> res.json();
  7743. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7744. <span class="hljs-built_in">console</span>.log(body);
  7745. });
  7746. </code></pre>
  7747. <pre class="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>);
  7748. <span class="hljs-keyword">const</span> headers = {
  7749. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7750. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7751. };
  7752. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7753. {
  7754. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7755. <span class="hljs-attr">headers</span>: headers
  7756. })
  7757. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7758. <span class="hljs-keyword">return</span> res.json();
  7759. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7760. <span class="hljs-built_in">console</span>.log(body);
  7761. });
  7762. </code></pre>
  7763. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7764. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7765. headers = {
  7766. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7767. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7768. }
  7769. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7770. <span class="hljs-symbol">params:</span> {
  7771. }, <span class="hljs-symbol">headers:</span> headers
  7772. p JSON.parse(result)
  7773. </code></pre>
  7774. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7775. headers = {
  7776. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7777. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7778. }
  7779. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7780. <span class="hljs-built_in">print</span>(r.json())
  7781. </code></pre>
  7782. <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>);
  7783. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7784. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7785. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7786. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7787. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7788. String inputLine;
  7789. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7790. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7791. response.append(inputLine);
  7792. }
  7793. in.close();
  7794. System.out.println(response.toString());
  7795. </code></pre>
  7796. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7797. <span class="hljs-keyword">import</span> (
  7798. <span class="hljs-string">&quot;bytes&quot;</span>
  7799. <span class="hljs-string">&quot;net/http&quot;</span>
  7800. )
  7801. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7802. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7803. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7804. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7805. }
  7806. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7807. 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)
  7808. req.Header = headers
  7809. client := &amp;http.Client{}
  7810. resp, err := client.Do(req)
  7811. <span class="hljs-comment">// ...</span>
  7812. }
  7813. </code></pre>
  7814. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7815. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7816. );
  7817. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7818. <span class="hljs-comment">// Define array of request body.</span>
  7819. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7820. <span class="hljs-keyword">try</span> {
  7821. <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>(
  7822. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7823. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7824. )
  7825. );
  7826. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7827. }
  7828. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7829. <span class="hljs-comment">// handle exception or api errors.</span>
  7830. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7831. }
  7832. <span class="hljs-comment">// ...</span>
  7833. </code></pre>
  7834. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7835. <p><em>Get a Card</em></p>
  7836. <h3 id="get_card-parameters">Parameters</h3>
  7837. <table>
  7838. <thead>
  7839. <tr>
  7840. <th>Name</th>
  7841. <th>In</th>
  7842. <th>Type</th>
  7843. <th>Required</th>
  7844. <th>Description</th>
  7845. </tr>
  7846. </thead>
  7847. <tbody>
  7848. <tr>
  7849. <td>board</td>
  7850. <td>path</td>
  7851. <td>string</td>
  7852. <td>true</td>
  7853. <td>the board ID</td>
  7854. </tr>
  7855. <tr>
  7856. <td>list</td>
  7857. <td>path</td>
  7858. <td>string</td>
  7859. <td>true</td>
  7860. <td>the list ID of the card</td>
  7861. </tr>
  7862. <tr>
  7863. <td>card</td>
  7864. <td>path</td>
  7865. <td>string</td>
  7866. <td>true</td>
  7867. <td>the card ID</td>
  7868. </tr>
  7869. </tbody>
  7870. </table>
  7871. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7872. <p><strong>board</strong>: the board ID</p>
  7873. <p><strong>list</strong>: the list ID of the card</p>
  7874. <p><strong>card</strong>: the card ID</p>
  7875. <blockquote>
  7876. <p>Example responses</p>
  7877. </blockquote>
  7878. <blockquote>
  7879. <p>200 Response</p>
  7880. </blockquote>
  7881. <pre class="highlight tab tab-json"><code>{
  7882. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7883. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  7884. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7885. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7886. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7887. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7888. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7889. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7890. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  7891. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7892. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7893. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  7894. {}
  7895. ],
  7896. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7897. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7898. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7899. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7900. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  7901. <span class="hljs-string">&quot;string&quot;</span>
  7902. ],
  7903. <span class="hljs-attr">&quot;members&quot;</span>: [
  7904. <span class="hljs-string">&quot;string&quot;</span>
  7905. ],
  7906. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  7907. <span class="hljs-string">&quot;string&quot;</span>
  7908. ],
  7909. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7910. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7911. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7912. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7913. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  7914. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  7915. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7916. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  7917. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  7918. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7919. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7920. <span class="hljs-attr">&quot;vote&quot;</span>: {
  7921. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7922. <span class="hljs-attr">&quot;positive&quot;</span>: [
  7923. <span class="hljs-string">&quot;string&quot;</span>
  7924. ],
  7925. <span class="hljs-attr">&quot;negative&quot;</span>: [
  7926. <span class="hljs-string">&quot;string&quot;</span>
  7927. ],
  7928. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7929. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  7930. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  7931. },
  7932. <span class="hljs-attr">&quot;poker&quot;</span>: {
  7933. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  7934. <span class="hljs-attr">&quot;one&quot;</span>: [
  7935. <span class="hljs-string">&quot;string&quot;</span>
  7936. ],
  7937. <span class="hljs-attr">&quot;two&quot;</span>: [
  7938. <span class="hljs-string">&quot;string&quot;</span>
  7939. ],
  7940. <span class="hljs-attr">&quot;three&quot;</span>: [
  7941. <span class="hljs-string">&quot;string&quot;</span>
  7942. ],
  7943. <span class="hljs-attr">&quot;five&quot;</span>: [
  7944. <span class="hljs-string">&quot;string&quot;</span>
  7945. ],
  7946. <span class="hljs-attr">&quot;eight&quot;</span>: [
  7947. <span class="hljs-string">&quot;string&quot;</span>
  7948. ],
  7949. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  7950. <span class="hljs-string">&quot;string&quot;</span>
  7951. ],
  7952. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  7953. <span class="hljs-string">&quot;string&quot;</span>
  7954. ],
  7955. <span class="hljs-attr">&quot;forty&quot;</span>: [
  7956. <span class="hljs-string">&quot;string&quot;</span>
  7957. ],
  7958. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  7959. <span class="hljs-string">&quot;string&quot;</span>
  7960. ],
  7961. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  7962. <span class="hljs-string">&quot;string&quot;</span>
  7963. ],
  7964. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7965. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  7966. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  7967. },
  7968. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  7969. <span class="hljs-string">&quot;string&quot;</span>
  7970. ],
  7971. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  7972. <span class="hljs-number">0</span>
  7973. ],
  7974. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  7975. <span class="hljs-string">&quot;string&quot;</span>
  7976. ],
  7977. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  7978. }
  7979. </code></pre>
  7980. <h3 id="get_card-responses">Responses</h3>
  7981. <table>
  7982. <thead>
  7983. <tr>
  7984. <th>Status</th>
  7985. <th>Meaning</th>
  7986. <th>Description</th>
  7987. <th>Schema</th>
  7988. </tr>
  7989. </thead>
  7990. <tbody>
  7991. <tr>
  7992. <td>200</td>
  7993. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7994. <td>200 response</td>
  7995. <td><a href="#schemacards">Cards</a></td>
  7996. </tr>
  7997. </tbody>
  7998. </table>
  7999. <aside class="warning">
  8000. To perform this operation, you must be authenticated by means of one of the following methods:
  8001. UserSecurity
  8002. </aside>
  8003. <h2 id="edit_card">edit_card</h2>
  8004. <p><a id="opIdedit_card"></a></p>
  8005. <blockquote>
  8006. <p>Code samples</p>
  8007. </blockquote>
  8008. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8009. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8010. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8011. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8012. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8013. </code></pre>
  8014. <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>
  8015. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8016. Accept: application/json
  8017. </span></code></pre>
  8018. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8019. &quot;title&quot;: &quot;string&quot;,
  8020. &quot;sort&quot;: &quot;string&quot;,
  8021. &quot;parentId&quot;: &quot;string&quot;,
  8022. &quot;description&quot;: &quot;string&quot;,
  8023. &quot;color&quot;: &quot;string&quot;,
  8024. &quot;vote&quot;: {},
  8025. &quot;poker&quot;: {},
  8026. &quot;labelIds&quot;: &quot;string&quot;,
  8027. &quot;requestedBy&quot;: &quot;string&quot;,
  8028. &quot;assignedBy&quot;: &quot;string&quot;,
  8029. &quot;receivedAt&quot;: &quot;string&quot;,
  8030. &quot;startAt&quot;: &quot;string&quot;,
  8031. &quot;dueAt&quot;: &quot;string&quot;,
  8032. &quot;endAt&quot;: &quot;string&quot;,
  8033. &quot;spentTime&quot;: &quot;string&quot;,
  8034. &quot;isOverTime&quot;: true,
  8035. &quot;customFields&quot;: &quot;string&quot;,
  8036. &quot;members&quot;: &quot;string&quot;,
  8037. &quot;assignees&quot;: &quot;string&quot;,
  8038. &quot;swimlaneId&quot;: &quot;string&quot;,
  8039. &quot;listId&quot;: &quot;string&quot;,
  8040. &quot;authorId&quot;: &quot;string&quot;
  8041. }&#x27;</span>;
  8042. <span class="hljs-keyword">const</span> headers = {
  8043. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8044. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8045. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8046. };
  8047. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8048. {
  8049. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8050. <span class="hljs-attr">body</span>: inputBody,
  8051. <span class="hljs-attr">headers</span>: headers
  8052. })
  8053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8054. <span class="hljs-keyword">return</span> res.json();
  8055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8056. <span class="hljs-built_in">console</span>.log(body);
  8057. });
  8058. </code></pre>
  8059. <pre class="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>);
  8060. <span class="hljs-keyword">const</span> inputBody = {
  8061. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8062. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8063. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8064. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8065. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8066. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8067. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8068. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8069. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8070. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8071. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8072. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8073. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8074. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8075. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8076. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8077. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8078. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8079. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8080. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8081. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8082. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8083. };
  8084. <span class="hljs-keyword">const</span> headers = {
  8085. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8086. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8087. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8088. };
  8089. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8090. {
  8091. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8092. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8093. <span class="hljs-attr">headers</span>: headers
  8094. })
  8095. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8096. <span class="hljs-keyword">return</span> res.json();
  8097. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8098. <span class="hljs-built_in">console</span>.log(body);
  8099. });
  8100. </code></pre>
  8101. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8102. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8103. headers = {
  8104. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8105. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8106. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8107. }
  8108. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8109. <span class="hljs-symbol">params:</span> {
  8110. }, <span class="hljs-symbol">headers:</span> headers
  8111. p JSON.parse(result)
  8112. </code></pre>
  8113. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8114. headers = {
  8115. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8116. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8117. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8118. }
  8119. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8120. <span class="hljs-built_in">print</span>(r.json())
  8121. </code></pre>
  8122. <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>);
  8123. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8124. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8125. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8126. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8127. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8128. String inputLine;
  8129. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8130. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8131. response.append(inputLine);
  8132. }
  8133. in.close();
  8134. System.out.println(response.toString());
  8135. </code></pre>
  8136. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8137. <span class="hljs-keyword">import</span> (
  8138. <span class="hljs-string">&quot;bytes&quot;</span>
  8139. <span class="hljs-string">&quot;net/http&quot;</span>
  8140. )
  8141. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8142. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8143. <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>},
  8144. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8145. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8146. }
  8147. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8148. 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)
  8149. req.Header = headers
  8150. client := &amp;http.Client{}
  8151. resp, err := client.Do(req)
  8152. <span class="hljs-comment">// ...</span>
  8153. }
  8154. </code></pre>
  8155. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8156. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8157. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8158. );
  8159. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8160. <span class="hljs-comment">// Define array of request body.</span>
  8161. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8162. <span class="hljs-keyword">try</span> {
  8163. <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>(
  8164. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8165. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8166. )
  8167. );
  8168. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8169. }
  8170. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8171. <span class="hljs-comment">// handle exception or api errors.</span>
  8172. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8173. }
  8174. <span class="hljs-comment">// ...</span>
  8175. </code></pre>
  8176. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8177. <p><em>Edit Fields in a Card</em></p>
  8178. <p>Edit a card</p>
  8179. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8180. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8181. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8182. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8183. <code>indigo</code>:</p>
  8184. <img src="/card-colors.png" alt="Wekan card colors" />
  8185. <p>Note: setting the color to white has the same effect than removing it.</p>
  8186. <blockquote>
  8187. <p>Body parameter</p>
  8188. </blockquote>
  8189. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8190. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8191. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8192. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8193. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8194. <span class="hljs-attr">vote:</span> {}
  8195. <span class="hljs-attr">poker:</span> {}
  8196. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8197. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8198. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8199. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8200. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8201. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8202. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8203. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8204. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8205. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8206. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8207. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8208. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8209. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8210. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8211. </code></pre>
  8212. <h3 id="edit_card-parameters">Parameters</h3>
  8213. <table>
  8214. <thead>
  8215. <tr>
  8216. <th>Name</th>
  8217. <th>In</th>
  8218. <th>Type</th>
  8219. <th>Required</th>
  8220. <th>Description</th>
  8221. </tr>
  8222. </thead>
  8223. <tbody>
  8224. <tr>
  8225. <td>board</td>
  8226. <td>path</td>
  8227. <td>string</td>
  8228. <td>true</td>
  8229. <td>the board ID of the card</td>
  8230. </tr>
  8231. <tr>
  8232. <td>list</td>
  8233. <td>path</td>
  8234. <td>string</td>
  8235. <td>true</td>
  8236. <td>the list ID of the card</td>
  8237. </tr>
  8238. <tr>
  8239. <td>card</td>
  8240. <td>path</td>
  8241. <td>string</td>
  8242. <td>true</td>
  8243. <td>the ID of the card</td>
  8244. </tr>
  8245. <tr>
  8246. <td>body</td>
  8247. <td>body</td>
  8248. <td>object</td>
  8249. <td>false</td>
  8250. <td>none</td>
  8251. </tr>
  8252. <tr>
  8253. <td>» title</td>
  8254. <td>body</td>
  8255. <td>string</td>
  8256. <td>false</td>
  8257. <td>the new title of the card</td>
  8258. </tr>
  8259. <tr>
  8260. <td>» sort</td>
  8261. <td>body</td>
  8262. <td>string</td>
  8263. <td>false</td>
  8264. <td>the new sort value of the card</td>
  8265. </tr>
  8266. <tr>
  8267. <td>» parentId</td>
  8268. <td>body</td>
  8269. <td>string</td>
  8270. <td>false</td>
  8271. <td>change the parent of the card</td>
  8272. </tr>
  8273. <tr>
  8274. <td>» description</td>
  8275. <td>body</td>
  8276. <td>string</td>
  8277. <td>false</td>
  8278. <td>the new description of the card</td>
  8279. </tr>
  8280. <tr>
  8281. <td>» color</td>
  8282. <td>body</td>
  8283. <td>string</td>
  8284. <td>false</td>
  8285. <td>the new color of the card</td>
  8286. </tr>
  8287. <tr>
  8288. <td>» vote</td>
  8289. <td>body</td>
  8290. <td>object</td>
  8291. <td>false</td>
  8292. <td>the vote object</td>
  8293. </tr>
  8294. <tr>
  8295. <td>» poker</td>
  8296. <td>body</td>
  8297. <td>object</td>
  8298. <td>false</td>
  8299. <td>the poker object</td>
  8300. </tr>
  8301. <tr>
  8302. <td>» labelIds</td>
  8303. <td>body</td>
  8304. <td>string</td>
  8305. <td>false</td>
  8306. <td>the new list of label IDs attached to the card</td>
  8307. </tr>
  8308. <tr>
  8309. <td>» requestedBy</td>
  8310. <td>body</td>
  8311. <td>string</td>
  8312. <td>false</td>
  8313. <td>the new requestedBy field of the card</td>
  8314. </tr>
  8315. <tr>
  8316. <td>» assignedBy</td>
  8317. <td>body</td>
  8318. <td>string</td>
  8319. <td>false</td>
  8320. <td>the new assignedBy field of the card</td>
  8321. </tr>
  8322. <tr>
  8323. <td>» receivedAt</td>
  8324. <td>body</td>
  8325. <td>string</td>
  8326. <td>false</td>
  8327. <td>the new receivedAt field of the card</td>
  8328. </tr>
  8329. <tr>
  8330. <td>» startAt</td>
  8331. <td>body</td>
  8332. <td>string</td>
  8333. <td>false</td>
  8334. <td>the new startAt field of the card</td>
  8335. </tr>
  8336. <tr>
  8337. <td>» dueAt</td>
  8338. <td>body</td>
  8339. <td>string</td>
  8340. <td>false</td>
  8341. <td>the new dueAt field of the card</td>
  8342. </tr>
  8343. <tr>
  8344. <td>» endAt</td>
  8345. <td>body</td>
  8346. <td>string</td>
  8347. <td>false</td>
  8348. <td>the new endAt field of the card</td>
  8349. </tr>
  8350. <tr>
  8351. <td>» spentTime</td>
  8352. <td>body</td>
  8353. <td>string</td>
  8354. <td>false</td>
  8355. <td>the new spentTime field of the card</td>
  8356. </tr>
  8357. <tr>
  8358. <td>» isOverTime</td>
  8359. <td>body</td>
  8360. <td>boolean</td>
  8361. <td>false</td>
  8362. <td>the new isOverTime field of the card</td>
  8363. </tr>
  8364. <tr>
  8365. <td>» customFields</td>
  8366. <td>body</td>
  8367. <td>string</td>
  8368. <td>false</td>
  8369. <td>the new customFields value of the card</td>
  8370. </tr>
  8371. <tr>
  8372. <td>» members</td>
  8373. <td>body</td>
  8374. <td>string</td>
  8375. <td>false</td>
  8376. <td>the new list of member IDs attached to the card</td>
  8377. </tr>
  8378. <tr>
  8379. <td>» assignees</td>
  8380. <td>body</td>
  8381. <td>string</td>
  8382. <td>false</td>
  8383. <td>the array of maximum one ID of assignee attached to the card</td>
  8384. </tr>
  8385. <tr>
  8386. <td>» swimlaneId</td>
  8387. <td>body</td>
  8388. <td>string</td>
  8389. <td>false</td>
  8390. <td>the new swimlane ID of the card</td>
  8391. </tr>
  8392. <tr>
  8393. <td>» listId</td>
  8394. <td>body</td>
  8395. <td>string</td>
  8396. <td>false</td>
  8397. <td>the new list ID of the card (move operation)</td>
  8398. </tr>
  8399. <tr>
  8400. <td>» authorId</td>
  8401. <td>body</td>
  8402. <td>string</td>
  8403. <td>false</td>
  8404. <td>change the owner of the card</td>
  8405. </tr>
  8406. </tbody>
  8407. </table>
  8408. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8409. <p><strong>board</strong>: the board ID of the card</p>
  8410. <p><strong>list</strong>: the list ID of the card</p>
  8411. <p><strong>card</strong>: the ID of the card</p>
  8412. <blockquote>
  8413. <p>Example responses</p>
  8414. </blockquote>
  8415. <blockquote>
  8416. <p>200 Response</p>
  8417. </blockquote>
  8418. <pre class="highlight tab tab-json"><code>{
  8419. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8420. }
  8421. </code></pre>
  8422. <h3 id="edit_card-responses">Responses</h3>
  8423. <table>
  8424. <thead>
  8425. <tr>
  8426. <th>Status</th>
  8427. <th>Meaning</th>
  8428. <th>Description</th>
  8429. <th>Schema</th>
  8430. </tr>
  8431. </thead>
  8432. <tbody>
  8433. <tr>
  8434. <td>200</td>
  8435. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8436. <td>200 response</td>
  8437. <td>Inline</td>
  8438. </tr>
  8439. </tbody>
  8440. </table>
  8441. <h3 id="edit_card-responseschema">Response Schema</h3>
  8442. <p>Status Code <strong>200</strong></p>
  8443. <table>
  8444. <thead>
  8445. <tr>
  8446. <th>Name</th>
  8447. <th>Type</th>
  8448. <th>Required</th>
  8449. <th>Restrictions</th>
  8450. <th>Description</th>
  8451. </tr>
  8452. </thead>
  8453. <tbody>
  8454. <tr>
  8455. <td>» _id</td>
  8456. <td>string</td>
  8457. <td>false</td>
  8458. <td>none</td>
  8459. <td>none</td>
  8460. </tr>
  8461. </tbody>
  8462. </table>
  8463. <aside class="warning">
  8464. To perform this operation, you must be authenticated by means of one of the following methods:
  8465. UserSecurity
  8466. </aside>
  8467. <h2 id="delete_card">delete_card</h2>
  8468. <p><a id="opIddelete_card"></a></p>
  8469. <blockquote>
  8470. <p>Code samples</p>
  8471. </blockquote>
  8472. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8473. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8474. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8475. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8476. </code></pre>
  8477. <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>
  8478. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8479. </span></code></pre>
  8480. <pre class="highlight tab tab-javascript"><code>
  8481. <span class="hljs-keyword">const</span> headers = {
  8482. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8483. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8484. };
  8485. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8486. {
  8487. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8488. <span class="hljs-attr">headers</span>: headers
  8489. })
  8490. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8491. <span class="hljs-keyword">return</span> res.json();
  8492. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8493. <span class="hljs-built_in">console</span>.log(body);
  8494. });
  8495. </code></pre>
  8496. <pre class="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>);
  8497. <span class="hljs-keyword">const</span> headers = {
  8498. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8499. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8500. };
  8501. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8502. {
  8503. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8504. <span class="hljs-attr">headers</span>: headers
  8505. })
  8506. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8507. <span class="hljs-keyword">return</span> res.json();
  8508. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8509. <span class="hljs-built_in">console</span>.log(body);
  8510. });
  8511. </code></pre>
  8512. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8513. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8514. headers = {
  8515. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8516. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8517. }
  8518. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8519. <span class="hljs-symbol">params:</span> {
  8520. }, <span class="hljs-symbol">headers:</span> headers
  8521. p JSON.parse(result)
  8522. </code></pre>
  8523. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8524. headers = {
  8525. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8526. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8527. }
  8528. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8529. <span class="hljs-built_in">print</span>(r.json())
  8530. </code></pre>
  8531. <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>);
  8532. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8533. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8534. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8535. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8536. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8537. String inputLine;
  8538. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8539. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8540. response.append(inputLine);
  8541. }
  8542. in.close();
  8543. System.out.println(response.toString());
  8544. </code></pre>
  8545. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8546. <span class="hljs-keyword">import</span> (
  8547. <span class="hljs-string">&quot;bytes&quot;</span>
  8548. <span class="hljs-string">&quot;net/http&quot;</span>
  8549. )
  8550. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8551. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8552. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8553. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8554. }
  8555. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8556. 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)
  8557. req.Header = headers
  8558. client := &amp;http.Client{}
  8559. resp, err := client.Do(req)
  8560. <span class="hljs-comment">// ...</span>
  8561. }
  8562. </code></pre>
  8563. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8564. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8565. );
  8566. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8567. <span class="hljs-comment">// Define array of request body.</span>
  8568. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8569. <span class="hljs-keyword">try</span> {
  8570. <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>(
  8571. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8572. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8573. )
  8574. );
  8575. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8576. }
  8577. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8578. <span class="hljs-comment">// handle exception or api errors.</span>
  8579. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8580. }
  8581. <span class="hljs-comment">// ...</span>
  8582. </code></pre>
  8583. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8584. <p><em>Delete a card from a board</em></p>
  8585. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8586. is not put in the recycle bin.</p>
  8587. <h3 id="delete_card-parameters">Parameters</h3>
  8588. <table>
  8589. <thead>
  8590. <tr>
  8591. <th>Name</th>
  8592. <th>In</th>
  8593. <th>Type</th>
  8594. <th>Required</th>
  8595. <th>Description</th>
  8596. </tr>
  8597. </thead>
  8598. <tbody>
  8599. <tr>
  8600. <td>board</td>
  8601. <td>path</td>
  8602. <td>string</td>
  8603. <td>true</td>
  8604. <td>the board ID of the card</td>
  8605. </tr>
  8606. <tr>
  8607. <td>list</td>
  8608. <td>path</td>
  8609. <td>string</td>
  8610. <td>true</td>
  8611. <td>the list ID of the card</td>
  8612. </tr>
  8613. <tr>
  8614. <td>card</td>
  8615. <td>path</td>
  8616. <td>string</td>
  8617. <td>true</td>
  8618. <td>the ID of the card</td>
  8619. </tr>
  8620. </tbody>
  8621. </table>
  8622. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8623. <p><strong>board</strong>: the board ID of the card</p>
  8624. <p><strong>list</strong>: the list ID of the card</p>
  8625. <p><strong>card</strong>: the ID of the card</p>
  8626. <blockquote>
  8627. <p>Example responses</p>
  8628. </blockquote>
  8629. <blockquote>
  8630. <p>200 Response</p>
  8631. </blockquote>
  8632. <pre class="highlight tab tab-json"><code>{
  8633. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8634. }
  8635. </code></pre>
  8636. <h3 id="delete_card-responses">Responses</h3>
  8637. <table>
  8638. <thead>
  8639. <tr>
  8640. <th>Status</th>
  8641. <th>Meaning</th>
  8642. <th>Description</th>
  8643. <th>Schema</th>
  8644. </tr>
  8645. </thead>
  8646. <tbody>
  8647. <tr>
  8648. <td>200</td>
  8649. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8650. <td>200 response</td>
  8651. <td>Inline</td>
  8652. </tr>
  8653. </tbody>
  8654. </table>
  8655. <h3 id="delete_card-responseschema">Response Schema</h3>
  8656. <p>Status Code <strong>200</strong></p>
  8657. <table>
  8658. <thead>
  8659. <tr>
  8660. <th>Name</th>
  8661. <th>Type</th>
  8662. <th>Required</th>
  8663. <th>Restrictions</th>
  8664. <th>Description</th>
  8665. </tr>
  8666. </thead>
  8667. <tbody>
  8668. <tr>
  8669. <td>» _id</td>
  8670. <td>string</td>
  8671. <td>false</td>
  8672. <td>none</td>
  8673. <td>none</td>
  8674. </tr>
  8675. </tbody>
  8676. </table>
  8677. <aside class="warning">
  8678. To perform this operation, you must be authenticated by means of one of the following methods:
  8679. UserSecurity
  8680. </aside>
  8681. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  8682. <p><a id="opIdget_swimlane_cards"></a></p>
  8683. <blockquote>
  8684. <p>Code samples</p>
  8685. </blockquote>
  8686. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8687. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  8688. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8689. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8690. </code></pre>
  8691. <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>
  8692. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8693. </span></code></pre>
  8694. <pre class="highlight tab tab-javascript"><code>
  8695. <span class="hljs-keyword">const</span> headers = {
  8696. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8697. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8698. };
  8699. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8700. {
  8701. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8702. <span class="hljs-attr">headers</span>: headers
  8703. })
  8704. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8705. <span class="hljs-keyword">return</span> res.json();
  8706. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8707. <span class="hljs-built_in">console</span>.log(body);
  8708. });
  8709. </code></pre>
  8710. <pre class="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>);
  8711. <span class="hljs-keyword">const</span> headers = {
  8712. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8713. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8714. };
  8715. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8716. {
  8717. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8718. <span class="hljs-attr">headers</span>: headers
  8719. })
  8720. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8721. <span class="hljs-keyword">return</span> res.json();
  8722. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8723. <span class="hljs-built_in">console</span>.log(body);
  8724. });
  8725. </code></pre>
  8726. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8727. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8728. headers = {
  8729. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8730. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8731. }
  8732. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8733. <span class="hljs-symbol">params:</span> {
  8734. }, <span class="hljs-symbol">headers:</span> headers
  8735. p JSON.parse(result)
  8736. </code></pre>
  8737. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8738. headers = {
  8739. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8740. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8741. }
  8742. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  8743. <span class="hljs-built_in">print</span>(r.json())
  8744. </code></pre>
  8745. <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>);
  8746. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8747. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8748. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8749. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8750. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8751. String inputLine;
  8752. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8753. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8754. response.append(inputLine);
  8755. }
  8756. in.close();
  8757. System.out.println(response.toString());
  8758. </code></pre>
  8759. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8760. <span class="hljs-keyword">import</span> (
  8761. <span class="hljs-string">&quot;bytes&quot;</span>
  8762. <span class="hljs-string">&quot;net/http&quot;</span>
  8763. )
  8764. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8765. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8766. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8767. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8768. }
  8769. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8770. 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)
  8771. req.Header = headers
  8772. client := &amp;http.Client{}
  8773. resp, err := client.Do(req)
  8774. <span class="hljs-comment">// ...</span>
  8775. }
  8776. </code></pre>
  8777. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8778. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8779. );
  8780. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8781. <span class="hljs-comment">// Define array of request body.</span>
  8782. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8783. <span class="hljs-keyword">try</span> {
  8784. <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>(
  8785. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8786. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8787. )
  8788. );
  8789. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8790. }
  8791. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8792. <span class="hljs-comment">// handle exception or api errors.</span>
  8793. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8794. }
  8795. <span class="hljs-comment">// ...</span>
  8796. </code></pre>
  8797. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  8798. <p><em>get all cards attached to a swimlane</em></p>
  8799. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  8800. <table>
  8801. <thead>
  8802. <tr>
  8803. <th>Name</th>
  8804. <th>In</th>
  8805. <th>Type</th>
  8806. <th>Required</th>
  8807. <th>Description</th>
  8808. </tr>
  8809. </thead>
  8810. <tbody>
  8811. <tr>
  8812. <td>board</td>
  8813. <td>path</td>
  8814. <td>string</td>
  8815. <td>true</td>
  8816. <td>the board ID</td>
  8817. </tr>
  8818. <tr>
  8819. <td>swimlane</td>
  8820. <td>path</td>
  8821. <td>string</td>
  8822. <td>true</td>
  8823. <td>the swimlane ID</td>
  8824. </tr>
  8825. </tbody>
  8826. </table>
  8827. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8828. <p><strong>board</strong>: the board ID</p>
  8829. <p><strong>swimlane</strong>: the swimlane ID</p>
  8830. <blockquote>
  8831. <p>Example responses</p>
  8832. </blockquote>
  8833. <blockquote>
  8834. <p>200 Response</p>
  8835. </blockquote>
  8836. <pre class="highlight tab tab-json"><code>[
  8837. {
  8838. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8839. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8840. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8841. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8842. }
  8843. ]
  8844. </code></pre>
  8845. <h3 id="get_swimlane_cards-responses">Responses</h3>
  8846. <table>
  8847. <thead>
  8848. <tr>
  8849. <th>Status</th>
  8850. <th>Meaning</th>
  8851. <th>Description</th>
  8852. <th>Schema</th>
  8853. </tr>
  8854. </thead>
  8855. <tbody>
  8856. <tr>
  8857. <td>200</td>
  8858. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8859. <td>200 response</td>
  8860. <td>Inline</td>
  8861. </tr>
  8862. </tbody>
  8863. </table>
  8864. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  8865. <p>Status Code <strong>200</strong></p>
  8866. <table>
  8867. <thead>
  8868. <tr>
  8869. <th>Name</th>
  8870. <th>Type</th>
  8871. <th>Required</th>
  8872. <th>Restrictions</th>
  8873. <th>Description</th>
  8874. </tr>
  8875. </thead>
  8876. <tbody>
  8877. <tr>
  8878. <td>» _id</td>
  8879. <td>string</td>
  8880. <td>false</td>
  8881. <td>none</td>
  8882. <td>none</td>
  8883. </tr>
  8884. <tr>
  8885. <td>» title</td>
  8886. <td>string</td>
  8887. <td>false</td>
  8888. <td>none</td>
  8889. <td>none</td>
  8890. </tr>
  8891. <tr>
  8892. <td>» description</td>
  8893. <td>string</td>
  8894. <td>false</td>
  8895. <td>none</td>
  8896. <td>none</td>
  8897. </tr>
  8898. <tr>
  8899. <td>» listId</td>
  8900. <td>string</td>
  8901. <td>false</td>
  8902. <td>none</td>
  8903. <td>none</td>
  8904. </tr>
  8905. </tbody>
  8906. </table>
  8907. <aside class="warning">
  8908. To perform this operation, you must be authenticated by means of one of the following methods:
  8909. UserSecurity
  8910. </aside>
  8911. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  8912. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  8913. <p><a id="opIdget_all_custom_fields"></a></p>
  8914. <blockquote>
  8915. <p>Code samples</p>
  8916. </blockquote>
  8917. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8918. curl -X GET /api/boards/{board}/custom-fields \
  8919. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8920. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8921. </code></pre>
  8922. <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>
  8923. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8924. </span></code></pre>
  8925. <pre class="highlight tab tab-javascript"><code>
  8926. <span class="hljs-keyword">const</span> headers = {
  8927. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8928. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8929. };
  8930. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8931. {
  8932. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8933. <span class="hljs-attr">headers</span>: headers
  8934. })
  8935. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8936. <span class="hljs-keyword">return</span> res.json();
  8937. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8938. <span class="hljs-built_in">console</span>.log(body);
  8939. });
  8940. </code></pre>
  8941. <pre class="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>);
  8942. <span class="hljs-keyword">const</span> headers = {
  8943. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8944. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8945. };
  8946. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8947. {
  8948. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8949. <span class="hljs-attr">headers</span>: headers
  8950. })
  8951. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8952. <span class="hljs-keyword">return</span> res.json();
  8953. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8954. <span class="hljs-built_in">console</span>.log(body);
  8955. });
  8956. </code></pre>
  8957. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8958. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8959. headers = {
  8960. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8961. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8962. }
  8963. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8964. <span class="hljs-symbol">params:</span> {
  8965. }, <span class="hljs-symbol">headers:</span> headers
  8966. p JSON.parse(result)
  8967. </code></pre>
  8968. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8969. headers = {
  8970. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8971. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8972. }
  8973. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  8974. <span class="hljs-built_in">print</span>(r.json())
  8975. </code></pre>
  8976. <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>);
  8977. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8978. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8979. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8980. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8981. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8982. String inputLine;
  8983. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8984. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8985. response.append(inputLine);
  8986. }
  8987. in.close();
  8988. System.out.println(response.toString());
  8989. </code></pre>
  8990. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8991. <span class="hljs-keyword">import</span> (
  8992. <span class="hljs-string">&quot;bytes&quot;</span>
  8993. <span class="hljs-string">&quot;net/http&quot;</span>
  8994. )
  8995. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8996. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8997. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8998. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8999. }
  9000. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9001. 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)
  9002. req.Header = headers
  9003. client := &amp;http.Client{}
  9004. resp, err := client.Do(req)
  9005. <span class="hljs-comment">// ...</span>
  9006. }
  9007. </code></pre>
  9008. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9009. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9010. );
  9011. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9012. <span class="hljs-comment">// Define array of request body.</span>
  9013. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9014. <span class="hljs-keyword">try</span> {
  9015. <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>(
  9016. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9017. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9018. )
  9019. );
  9020. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9021. }
  9022. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9023. <span class="hljs-comment">// handle exception or api errors.</span>
  9024. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9025. }
  9026. <span class="hljs-comment">// ...</span>
  9027. </code></pre>
  9028. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9029. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9030. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9031. <table>
  9032. <thead>
  9033. <tr>
  9034. <th>Name</th>
  9035. <th>In</th>
  9036. <th>Type</th>
  9037. <th>Required</th>
  9038. <th>Description</th>
  9039. </tr>
  9040. </thead>
  9041. <tbody>
  9042. <tr>
  9043. <td>board</td>
  9044. <td>path</td>
  9045. <td>string</td>
  9046. <td>true</td>
  9047. <td>the board value</td>
  9048. </tr>
  9049. </tbody>
  9050. </table>
  9051. <blockquote>
  9052. <p>Example responses</p>
  9053. </blockquote>
  9054. <blockquote>
  9055. <p>200 Response</p>
  9056. </blockquote>
  9057. <pre class="highlight tab tab-json"><code>[
  9058. {
  9059. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9060. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9061. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9062. }
  9063. ]
  9064. </code></pre>
  9065. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9066. <table>
  9067. <thead>
  9068. <tr>
  9069. <th>Status</th>
  9070. <th>Meaning</th>
  9071. <th>Description</th>
  9072. <th>Schema</th>
  9073. </tr>
  9074. </thead>
  9075. <tbody>
  9076. <tr>
  9077. <td>200</td>
  9078. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9079. <td>200 response</td>
  9080. <td>Inline</td>
  9081. </tr>
  9082. </tbody>
  9083. </table>
  9084. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9085. <p>Status Code <strong>200</strong></p>
  9086. <table>
  9087. <thead>
  9088. <tr>
  9089. <th>Name</th>
  9090. <th>Type</th>
  9091. <th>Required</th>
  9092. <th>Restrictions</th>
  9093. <th>Description</th>
  9094. </tr>
  9095. </thead>
  9096. <tbody>
  9097. <tr>
  9098. <td>» _id</td>
  9099. <td>string</td>
  9100. <td>false</td>
  9101. <td>none</td>
  9102. <td>none</td>
  9103. </tr>
  9104. <tr>
  9105. <td>» name</td>
  9106. <td>string</td>
  9107. <td>false</td>
  9108. <td>none</td>
  9109. <td>none</td>
  9110. </tr>
  9111. <tr>
  9112. <td>» type</td>
  9113. <td>string</td>
  9114. <td>false</td>
  9115. <td>none</td>
  9116. <td>none</td>
  9117. </tr>
  9118. </tbody>
  9119. </table>
  9120. <aside class="warning">
  9121. To perform this operation, you must be authenticated by means of one of the following methods:
  9122. UserSecurity
  9123. </aside>
  9124. <h2 id="new_custom_field">new_custom_field</h2>
  9125. <p><a id="opIdnew_custom_field"></a></p>
  9126. <blockquote>
  9127. <p>Code samples</p>
  9128. </blockquote>
  9129. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9130. curl -X POST /api/boards/{board}/custom-fields \
  9131. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9132. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9133. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9134. </code></pre>
  9135. <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>
  9136. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9137. Accept: application/json
  9138. </span></code></pre>
  9139. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9140. &quot;name&quot;: &quot;string&quot;,
  9141. &quot;type&quot;: &quot;string&quot;,
  9142. &quot;settings&quot;: &quot;string&quot;,
  9143. &quot;showOnCard&quot;: true,
  9144. &quot;automaticallyOnCard&quot;: true,
  9145. &quot;showLabelOnMiniCard&quot;: true,
  9146. &quot;showSumAtTopOfList&quot;: true,
  9147. &quot;authorId&quot;: &quot;string&quot;
  9148. }&#x27;</span>;
  9149. <span class="hljs-keyword">const</span> headers = {
  9150. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9151. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9152. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9153. };
  9154. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9155. {
  9156. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9157. <span class="hljs-attr">body</span>: inputBody,
  9158. <span class="hljs-attr">headers</span>: headers
  9159. })
  9160. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9161. <span class="hljs-keyword">return</span> res.json();
  9162. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9163. <span class="hljs-built_in">console</span>.log(body);
  9164. });
  9165. </code></pre>
  9166. <pre class="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>);
  9167. <span class="hljs-keyword">const</span> inputBody = {
  9168. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9169. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9170. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9171. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9172. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9173. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9174. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  9175. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9176. };
  9177. <span class="hljs-keyword">const</span> headers = {
  9178. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9179. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9180. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9181. };
  9182. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9183. {
  9184. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9185. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9186. <span class="hljs-attr">headers</span>: headers
  9187. })
  9188. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9189. <span class="hljs-keyword">return</span> res.json();
  9190. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9191. <span class="hljs-built_in">console</span>.log(body);
  9192. });
  9193. </code></pre>
  9194. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9195. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9196. headers = {
  9197. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9198. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9199. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9200. }
  9201. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9202. <span class="hljs-symbol">params:</span> {
  9203. }, <span class="hljs-symbol">headers:</span> headers
  9204. p JSON.parse(result)
  9205. </code></pre>
  9206. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9207. headers = {
  9208. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9209. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9210. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9211. }
  9212. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9213. <span class="hljs-built_in">print</span>(r.json())
  9214. </code></pre>
  9215. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>);
  9216. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9217. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9218. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9219. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9220. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9221. String inputLine;
  9222. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9223. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9224. response.append(inputLine);
  9225. }
  9226. in.close();
  9227. System.out.println(response.toString());
  9228. </code></pre>
  9229. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9230. <span class="hljs-keyword">import</span> (
  9231. <span class="hljs-string">&quot;bytes&quot;</span>
  9232. <span class="hljs-string">&quot;net/http&quot;</span>
  9233. )
  9234. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9235. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9236. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  9237. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9238. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9239. }
  9240. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9241. 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)
  9242. req.Header = headers
  9243. client := &amp;http.Client{}
  9244. resp, err := client.Do(req)
  9245. <span class="hljs-comment">// ...</span>
  9246. }
  9247. </code></pre>
  9248. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9249. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9250. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9251. );
  9252. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9253. <span class="hljs-comment">// Define array of request body.</span>
  9254. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9255. <span class="hljs-keyword">try</span> {
  9256. <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>(
  9257. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9258. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9259. )
  9260. );
  9261. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9262. }
  9263. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9264. <span class="hljs-comment">// handle exception or api errors.</span>
  9265. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9266. }
  9267. <span class="hljs-comment">// ...</span>
  9268. </code></pre>
  9269. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9270. <p><em>Create a Custom Field</em></p>
  9271. <blockquote>
  9272. <p>Body parameter</p>
  9273. </blockquote>
  9274. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9275. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9276. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9277. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9278. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9279. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9280. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9281. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9282. </code></pre>
  9283. <h3 id="new_custom_field-parameters">Parameters</h3>
  9284. <table>
  9285. <thead>
  9286. <tr>
  9287. <th>Name</th>
  9288. <th>In</th>
  9289. <th>Type</th>
  9290. <th>Required</th>
  9291. <th>Description</th>
  9292. </tr>
  9293. </thead>
  9294. <tbody>
  9295. <tr>
  9296. <td>board</td>
  9297. <td>path</td>
  9298. <td>string</td>
  9299. <td>true</td>
  9300. <td>the board value</td>
  9301. </tr>
  9302. <tr>
  9303. <td>body</td>
  9304. <td>body</td>
  9305. <td>object</td>
  9306. <td>true</td>
  9307. <td>none</td>
  9308. </tr>
  9309. <tr>
  9310. <td>» name</td>
  9311. <td>body</td>
  9312. <td>string</td>
  9313. <td>true</td>
  9314. <td>the name of the custom field</td>
  9315. </tr>
  9316. <tr>
  9317. <td>» type</td>
  9318. <td>body</td>
  9319. <td>string</td>
  9320. <td>true</td>
  9321. <td>the type of the custom field</td>
  9322. </tr>
  9323. <tr>
  9324. <td>» settings</td>
  9325. <td>body</td>
  9326. <td>string</td>
  9327. <td>true</td>
  9328. <td>the settings object of the custom field</td>
  9329. </tr>
  9330. <tr>
  9331. <td>» showOnCard</td>
  9332. <td>body</td>
  9333. <td>boolean</td>
  9334. <td>true</td>
  9335. <td>should we show the custom field on cards?</td>
  9336. </tr>
  9337. <tr>
  9338. <td>» automaticallyOnCard</td>
  9339. <td>body</td>
  9340. <td>boolean</td>
  9341. <td>true</td>
  9342. <td>should the custom fields automatically be added on cards?</td>
  9343. </tr>
  9344. <tr>
  9345. <td>» showLabelOnMiniCard</td>
  9346. <td>body</td>
  9347. <td>boolean</td>
  9348. <td>true</td>
  9349. <td>should the label of the custom field be shown on minicards?</td>
  9350. </tr>
  9351. <tr>
  9352. <td>» showSumAtTopOfList</td>
  9353. <td>body</td>
  9354. <td>boolean</td>
  9355. <td>true</td>
  9356. <td>should the sum of the custom fields be shown at top of list?</td>
  9357. </tr>
  9358. <tr>
  9359. <td>» authorId</td>
  9360. <td>body</td>
  9361. <td>string</td>
  9362. <td>true</td>
  9363. <td>the authorId value</td>
  9364. </tr>
  9365. </tbody>
  9366. </table>
  9367. <blockquote>
  9368. <p>Example responses</p>
  9369. </blockquote>
  9370. <blockquote>
  9371. <p>200 Response</p>
  9372. </blockquote>
  9373. <pre class="highlight tab tab-json"><code>{
  9374. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9375. }
  9376. </code></pre>
  9377. <h3 id="new_custom_field-responses">Responses</h3>
  9378. <table>
  9379. <thead>
  9380. <tr>
  9381. <th>Status</th>
  9382. <th>Meaning</th>
  9383. <th>Description</th>
  9384. <th>Schema</th>
  9385. </tr>
  9386. </thead>
  9387. <tbody>
  9388. <tr>
  9389. <td>200</td>
  9390. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9391. <td>200 response</td>
  9392. <td>Inline</td>
  9393. </tr>
  9394. </tbody>
  9395. </table>
  9396. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9397. <p>Status Code <strong>200</strong></p>
  9398. <table>
  9399. <thead>
  9400. <tr>
  9401. <th>Name</th>
  9402. <th>Type</th>
  9403. <th>Required</th>
  9404. <th>Restrictions</th>
  9405. <th>Description</th>
  9406. </tr>
  9407. </thead>
  9408. <tbody>
  9409. <tr>
  9410. <td>» _id</td>
  9411. <td>string</td>
  9412. <td>false</td>
  9413. <td>none</td>
  9414. <td>none</td>
  9415. </tr>
  9416. </tbody>
  9417. </table>
  9418. <aside class="warning">
  9419. To perform this operation, you must be authenticated by means of one of the following methods:
  9420. UserSecurity
  9421. </aside>
  9422. <h2 id="get_custom_field">get_custom_field</h2>
  9423. <p><a id="opIdget_custom_field"></a></p>
  9424. <blockquote>
  9425. <p>Code samples</p>
  9426. </blockquote>
  9427. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9428. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9429. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9430. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9431. </code></pre>
  9432. <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>
  9433. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9434. </span></code></pre>
  9435. <pre class="highlight tab tab-javascript"><code>
  9436. <span class="hljs-keyword">const</span> headers = {
  9437. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9438. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9439. };
  9440. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9441. {
  9442. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9443. <span class="hljs-attr">headers</span>: headers
  9444. })
  9445. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9446. <span class="hljs-keyword">return</span> res.json();
  9447. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9448. <span class="hljs-built_in">console</span>.log(body);
  9449. });
  9450. </code></pre>
  9451. <pre class="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>);
  9452. <span class="hljs-keyword">const</span> headers = {
  9453. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9454. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9455. };
  9456. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9457. {
  9458. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9459. <span class="hljs-attr">headers</span>: headers
  9460. })
  9461. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9462. <span class="hljs-keyword">return</span> res.json();
  9463. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9464. <span class="hljs-built_in">console</span>.log(body);
  9465. });
  9466. </code></pre>
  9467. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9468. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9469. headers = {
  9470. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9471. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9472. }
  9473. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9474. <span class="hljs-symbol">params:</span> {
  9475. }, <span class="hljs-symbol">headers:</span> headers
  9476. p JSON.parse(result)
  9477. </code></pre>
  9478. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9479. headers = {
  9480. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9481. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9482. }
  9483. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9484. <span class="hljs-built_in">print</span>(r.json())
  9485. </code></pre>
  9486. <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>);
  9487. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9488. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9489. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9490. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9491. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9492. String inputLine;
  9493. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9494. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9495. response.append(inputLine);
  9496. }
  9497. in.close();
  9498. System.out.println(response.toString());
  9499. </code></pre>
  9500. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9501. <span class="hljs-keyword">import</span> (
  9502. <span class="hljs-string">&quot;bytes&quot;</span>
  9503. <span class="hljs-string">&quot;net/http&quot;</span>
  9504. )
  9505. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9506. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9507. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9508. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9509. }
  9510. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9511. 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)
  9512. req.Header = headers
  9513. client := &amp;http.Client{}
  9514. resp, err := client.Do(req)
  9515. <span class="hljs-comment">// ...</span>
  9516. }
  9517. </code></pre>
  9518. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9519. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9520. );
  9521. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9522. <span class="hljs-comment">// Define array of request body.</span>
  9523. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9524. <span class="hljs-keyword">try</span> {
  9525. <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>(
  9526. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9527. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9528. )
  9529. );
  9530. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9531. }
  9532. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9533. <span class="hljs-comment">// handle exception or api errors.</span>
  9534. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9535. }
  9536. <span class="hljs-comment">// ...</span>
  9537. </code></pre>
  9538. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9539. <p><em>Get a Custom Fields attached to a board</em></p>
  9540. <h3 id="get_custom_field-parameters">Parameters</h3>
  9541. <table>
  9542. <thead>
  9543. <tr>
  9544. <th>Name</th>
  9545. <th>In</th>
  9546. <th>Type</th>
  9547. <th>Required</th>
  9548. <th>Description</th>
  9549. </tr>
  9550. </thead>
  9551. <tbody>
  9552. <tr>
  9553. <td>board</td>
  9554. <td>path</td>
  9555. <td>string</td>
  9556. <td>true</td>
  9557. <td>the board value</td>
  9558. </tr>
  9559. <tr>
  9560. <td>customField</td>
  9561. <td>path</td>
  9562. <td>string</td>
  9563. <td>true</td>
  9564. <td>the ID of the custom field</td>
  9565. </tr>
  9566. </tbody>
  9567. </table>
  9568. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9569. <p><strong>customField</strong>: the ID of the custom field</p>
  9570. <blockquote>
  9571. <p>Example responses</p>
  9572. </blockquote>
  9573. <blockquote>
  9574. <p>200 Response</p>
  9575. </blockquote>
  9576. <pre class="highlight tab tab-json"><code>[
  9577. {
  9578. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9579. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9580. }
  9581. ]
  9582. </code></pre>
  9583. <h3 id="get_custom_field-responses">Responses</h3>
  9584. <table>
  9585. <thead>
  9586. <tr>
  9587. <th>Status</th>
  9588. <th>Meaning</th>
  9589. <th>Description</th>
  9590. <th>Schema</th>
  9591. </tr>
  9592. </thead>
  9593. <tbody>
  9594. <tr>
  9595. <td>200</td>
  9596. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9597. <td>200 response</td>
  9598. <td>Inline</td>
  9599. </tr>
  9600. </tbody>
  9601. </table>
  9602. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  9603. <p>Status Code <strong>200</strong></p>
  9604. <table>
  9605. <thead>
  9606. <tr>
  9607. <th>Name</th>
  9608. <th>Type</th>
  9609. <th>Required</th>
  9610. <th>Restrictions</th>
  9611. <th>Description</th>
  9612. </tr>
  9613. </thead>
  9614. <tbody>
  9615. <tr>
  9616. <td>» _id</td>
  9617. <td>string</td>
  9618. <td>false</td>
  9619. <td>none</td>
  9620. <td>none</td>
  9621. </tr>
  9622. <tr>
  9623. <td>» boardIds</td>
  9624. <td>string</td>
  9625. <td>false</td>
  9626. <td>none</td>
  9627. <td>none</td>
  9628. </tr>
  9629. </tbody>
  9630. </table>
  9631. <aside class="warning">
  9632. To perform this operation, you must be authenticated by means of one of the following methods:
  9633. UserSecurity
  9634. </aside>
  9635. <h2 id="edit_custom_field">edit_custom_field</h2>
  9636. <p><a id="opIdedit_custom_field"></a></p>
  9637. <blockquote>
  9638. <p>Code samples</p>
  9639. </blockquote>
  9640. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9641. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  9642. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9643. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9644. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9645. </code></pre>
  9646. <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>
  9647. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9648. Accept: application/json
  9649. </span></code></pre>
  9650. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9651. &quot;name&quot;: &quot;string&quot;,
  9652. &quot;type&quot;: &quot;string&quot;,
  9653. &quot;settings&quot;: &quot;string&quot;,
  9654. &quot;showOnCard&quot;: true,
  9655. &quot;automaticallyOnCard&quot;: true,
  9656. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  9657. &quot;showLabelOnMiniCard&quot;: true,
  9658. &quot;showSumAtTopOfList&quot;: true
  9659. }&#x27;</span>;
  9660. <span class="hljs-keyword">const</span> headers = {
  9661. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9662. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9663. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9664. };
  9665. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9666. {
  9667. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9668. <span class="hljs-attr">body</span>: inputBody,
  9669. <span class="hljs-attr">headers</span>: headers
  9670. })
  9671. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9672. <span class="hljs-keyword">return</span> res.json();
  9673. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9674. <span class="hljs-built_in">console</span>.log(body);
  9675. });
  9676. </code></pre>
  9677. <pre class="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>);
  9678. <span class="hljs-keyword">const</span> inputBody = {
  9679. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9680. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9681. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9682. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9683. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9684. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9685. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9686. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  9687. };
  9688. <span class="hljs-keyword">const</span> headers = {
  9689. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9690. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9691. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9692. };
  9693. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9694. {
  9695. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9696. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9697. <span class="hljs-attr">headers</span>: headers
  9698. })
  9699. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9700. <span class="hljs-keyword">return</span> res.json();
  9701. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9702. <span class="hljs-built_in">console</span>.log(body);
  9703. });
  9704. </code></pre>
  9705. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9706. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9707. headers = {
  9708. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9709. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9710. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9711. }
  9712. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9713. <span class="hljs-symbol">params:</span> {
  9714. }, <span class="hljs-symbol">headers:</span> headers
  9715. p JSON.parse(result)
  9716. </code></pre>
  9717. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9718. headers = {
  9719. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9720. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9721. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9722. }
  9723. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9724. <span class="hljs-built_in">print</span>(r.json())
  9725. </code></pre>
  9726. <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>);
  9727. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9728. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  9729. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9730. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9731. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9732. String inputLine;
  9733. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9734. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9735. response.append(inputLine);
  9736. }
  9737. in.close();
  9738. System.out.println(response.toString());
  9739. </code></pre>
  9740. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9741. <span class="hljs-keyword">import</span> (
  9742. <span class="hljs-string">&quot;bytes&quot;</span>
  9743. <span class="hljs-string">&quot;net/http&quot;</span>
  9744. )
  9745. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9746. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9747. <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>},
  9748. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9749. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9750. }
  9751. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9752. 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)
  9753. req.Header = headers
  9754. client := &amp;http.Client{}
  9755. resp, err := client.Do(req)
  9756. <span class="hljs-comment">// ...</span>
  9757. }
  9758. </code></pre>
  9759. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9760. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9761. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9762. );
  9763. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9764. <span class="hljs-comment">// Define array of request body.</span>
  9765. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9766. <span class="hljs-keyword">try</span> {
  9767. <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>(
  9768. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9769. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9770. )
  9771. );
  9772. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9773. }
  9774. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9775. <span class="hljs-comment">// handle exception or api errors.</span>
  9776. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9777. }
  9778. <span class="hljs-comment">// ...</span>
  9779. </code></pre>
  9780. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  9781. <p><em>Update a Custom Field</em></p>
  9782. <blockquote>
  9783. <p>Body parameter</p>
  9784. </blockquote>
  9785. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9786. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9787. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9788. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9789. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9790. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  9791. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9792. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9793. </code></pre>
  9794. <h3 id="edit_custom_field-parameters">Parameters</h3>
  9795. <table>
  9796. <thead>
  9797. <tr>
  9798. <th>Name</th>
  9799. <th>In</th>
  9800. <th>Type</th>
  9801. <th>Required</th>
  9802. <th>Description</th>
  9803. </tr>
  9804. </thead>
  9805. <tbody>
  9806. <tr>
  9807. <td>board</td>
  9808. <td>path</td>
  9809. <td>string</td>
  9810. <td>true</td>
  9811. <td>the board value</td>
  9812. </tr>
  9813. <tr>
  9814. <td>customField</td>
  9815. <td>path</td>
  9816. <td>string</td>
  9817. <td>true</td>
  9818. <td>the customField value</td>
  9819. </tr>
  9820. <tr>
  9821. <td>body</td>
  9822. <td>body</td>
  9823. <td>object</td>
  9824. <td>true</td>
  9825. <td>none</td>
  9826. </tr>
  9827. <tr>
  9828. <td>» name</td>
  9829. <td>body</td>
  9830. <td>string</td>
  9831. <td>true</td>
  9832. <td>the name of the custom field</td>
  9833. </tr>
  9834. <tr>
  9835. <td>» type</td>
  9836. <td>body</td>
  9837. <td>string</td>
  9838. <td>true</td>
  9839. <td>the type of the custom field</td>
  9840. </tr>
  9841. <tr>
  9842. <td>» settings</td>
  9843. <td>body</td>
  9844. <td>string</td>
  9845. <td>true</td>
  9846. <td>the settings object of the custom field</td>
  9847. </tr>
  9848. <tr>
  9849. <td>» showOnCard</td>
  9850. <td>body</td>
  9851. <td>boolean</td>
  9852. <td>true</td>
  9853. <td>should we show the custom field on cards</td>
  9854. </tr>
  9855. <tr>
  9856. <td>» automaticallyOnCard</td>
  9857. <td>body</td>
  9858. <td>boolean</td>
  9859. <td>true</td>
  9860. <td>should the custom fields automatically be added on cards</td>
  9861. </tr>
  9862. <tr>
  9863. <td>» alwaysOnCard</td>
  9864. <td>body</td>
  9865. <td>string</td>
  9866. <td>true</td>
  9867. <td>the alwaysOnCard value</td>
  9868. </tr>
  9869. <tr>
  9870. <td>» showLabelOnMiniCard</td>
  9871. <td>body</td>
  9872. <td>boolean</td>
  9873. <td>true</td>
  9874. <td>should the label of the custom field be shown on minicards</td>
  9875. </tr>
  9876. <tr>
  9877. <td>» showSumAtTopOfList</td>
  9878. <td>body</td>
  9879. <td>boolean</td>
  9880. <td>true</td>
  9881. <td>should the sum of the custom fields be shown at top of list</td>
  9882. </tr>
  9883. </tbody>
  9884. </table>
  9885. <blockquote>
  9886. <p>Example responses</p>
  9887. </blockquote>
  9888. <blockquote>
  9889. <p>200 Response</p>
  9890. </blockquote>
  9891. <pre class="highlight tab tab-json"><code>{
  9892. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9893. }
  9894. </code></pre>
  9895. <h3 id="edit_custom_field-responses">Responses</h3>
  9896. <table>
  9897. <thead>
  9898. <tr>
  9899. <th>Status</th>
  9900. <th>Meaning</th>
  9901. <th>Description</th>
  9902. <th>Schema</th>
  9903. </tr>
  9904. </thead>
  9905. <tbody>
  9906. <tr>
  9907. <td>200</td>
  9908. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9909. <td>200 response</td>
  9910. <td>Inline</td>
  9911. </tr>
  9912. </tbody>
  9913. </table>
  9914. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  9915. <p>Status Code <strong>200</strong></p>
  9916. <table>
  9917. <thead>
  9918. <tr>
  9919. <th>Name</th>
  9920. <th>Type</th>
  9921. <th>Required</th>
  9922. <th>Restrictions</th>
  9923. <th>Description</th>
  9924. </tr>
  9925. </thead>
  9926. <tbody>
  9927. <tr>
  9928. <td>» _id</td>
  9929. <td>string</td>
  9930. <td>false</td>
  9931. <td>none</td>
  9932. <td>none</td>
  9933. </tr>
  9934. </tbody>
  9935. </table>
  9936. <aside class="warning">
  9937. To perform this operation, you must be authenticated by means of one of the following methods:
  9938. UserSecurity
  9939. </aside>
  9940. <h2 id="delete_custom_field">delete_custom_field</h2>
  9941. <p><a id="opIddelete_custom_field"></a></p>
  9942. <blockquote>
  9943. <p>Code samples</p>
  9944. </blockquote>
  9945. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9946. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  9947. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9948. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9949. </code></pre>
  9950. <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>
  9951. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9952. </span></code></pre>
  9953. <pre class="highlight tab tab-javascript"><code>
  9954. <span class="hljs-keyword">const</span> headers = {
  9955. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9956. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9957. };
  9958. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9959. {
  9960. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9961. <span class="hljs-attr">headers</span>: headers
  9962. })
  9963. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9964. <span class="hljs-keyword">return</span> res.json();
  9965. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9966. <span class="hljs-built_in">console</span>.log(body);
  9967. });
  9968. </code></pre>
  9969. <pre class="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>);
  9970. <span class="hljs-keyword">const</span> headers = {
  9971. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9972. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9973. };
  9974. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9975. {
  9976. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9977. <span class="hljs-attr">headers</span>: headers
  9978. })
  9979. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9980. <span class="hljs-keyword">return</span> res.json();
  9981. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9982. <span class="hljs-built_in">console</span>.log(body);
  9983. });
  9984. </code></pre>
  9985. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9986. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9987. headers = {
  9988. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9989. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9990. }
  9991. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9992. <span class="hljs-symbol">params:</span> {
  9993. }, <span class="hljs-symbol">headers:</span> headers
  9994. p JSON.parse(result)
  9995. </code></pre>
  9996. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9997. headers = {
  9998. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9999. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10000. }
  10001. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10002. <span class="hljs-built_in">print</span>(r.json())
  10003. </code></pre>
  10004. <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>);
  10005. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10006. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10007. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10008. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10009. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10010. String inputLine;
  10011. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10012. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10013. response.append(inputLine);
  10014. }
  10015. in.close();
  10016. System.out.println(response.toString());
  10017. </code></pre>
  10018. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10019. <span class="hljs-keyword">import</span> (
  10020. <span class="hljs-string">&quot;bytes&quot;</span>
  10021. <span class="hljs-string">&quot;net/http&quot;</span>
  10022. )
  10023. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10024. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10025. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10026. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10027. }
  10028. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10029. 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)
  10030. req.Header = headers
  10031. client := &amp;http.Client{}
  10032. resp, err := client.Do(req)
  10033. <span class="hljs-comment">// ...</span>
  10034. }
  10035. </code></pre>
  10036. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10037. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10038. );
  10039. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10040. <span class="hljs-comment">// Define array of request body.</span>
  10041. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10042. <span class="hljs-keyword">try</span> {
  10043. <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>(
  10044. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10045. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10046. )
  10047. );
  10048. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10049. }
  10050. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10051. <span class="hljs-comment">// handle exception or api errors.</span>
  10052. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10053. }
  10054. <span class="hljs-comment">// ...</span>
  10055. </code></pre>
  10056. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10057. <p><em>Delete a Custom Fields attached to a board</em></p>
  10058. <p>The Custom Field can't be retrieved after this operation</p>
  10059. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10060. <table>
  10061. <thead>
  10062. <tr>
  10063. <th>Name</th>
  10064. <th>In</th>
  10065. <th>Type</th>
  10066. <th>Required</th>
  10067. <th>Description</th>
  10068. </tr>
  10069. </thead>
  10070. <tbody>
  10071. <tr>
  10072. <td>board</td>
  10073. <td>path</td>
  10074. <td>string</td>
  10075. <td>true</td>
  10076. <td>the board value</td>
  10077. </tr>
  10078. <tr>
  10079. <td>customField</td>
  10080. <td>path</td>
  10081. <td>string</td>
  10082. <td>true</td>
  10083. <td>the ID of the custom field</td>
  10084. </tr>
  10085. </tbody>
  10086. </table>
  10087. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  10088. <p><strong>customField</strong>: the ID of the custom field</p>
  10089. <blockquote>
  10090. <p>Example responses</p>
  10091. </blockquote>
  10092. <blockquote>
  10093. <p>200 Response</p>
  10094. </blockquote>
  10095. <pre class="highlight tab tab-json"><code>{
  10096. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10097. }
  10098. </code></pre>
  10099. <h3 id="delete_custom_field-responses">Responses</h3>
  10100. <table>
  10101. <thead>
  10102. <tr>
  10103. <th>Status</th>
  10104. <th>Meaning</th>
  10105. <th>Description</th>
  10106. <th>Schema</th>
  10107. </tr>
  10108. </thead>
  10109. <tbody>
  10110. <tr>
  10111. <td>200</td>
  10112. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10113. <td>200 response</td>
  10114. <td>Inline</td>
  10115. </tr>
  10116. </tbody>
  10117. </table>
  10118. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10119. <p>Status Code <strong>200</strong></p>
  10120. <table>
  10121. <thead>
  10122. <tr>
  10123. <th>Name</th>
  10124. <th>Type</th>
  10125. <th>Required</th>
  10126. <th>Restrictions</th>
  10127. <th>Description</th>
  10128. </tr>
  10129. </thead>
  10130. <tbody>
  10131. <tr>
  10132. <td>» _id</td>
  10133. <td>string</td>
  10134. <td>false</td>
  10135. <td>none</td>
  10136. <td>none</td>
  10137. </tr>
  10138. </tbody>
  10139. </table>
  10140. <aside class="warning">
  10141. To perform this operation, you must be authenticated by means of one of the following methods:
  10142. UserSecurity
  10143. </aside>
  10144. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10145. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10146. <blockquote>
  10147. <p>Code samples</p>
  10148. </blockquote>
  10149. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10150. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10151. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10152. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10153. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10154. </code></pre>
  10155. <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>
  10156. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10157. Accept: application/json
  10158. </span></code></pre>
  10159. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10160. &quot;items&quot;: &quot;string&quot;
  10161. }&#x27;</span>;
  10162. <span class="hljs-keyword">const</span> headers = {
  10163. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10164. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10165. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10166. };
  10167. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10168. {
  10169. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10170. <span class="hljs-attr">body</span>: inputBody,
  10171. <span class="hljs-attr">headers</span>: headers
  10172. })
  10173. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10174. <span class="hljs-keyword">return</span> res.json();
  10175. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10176. <span class="hljs-built_in">console</span>.log(body);
  10177. });
  10178. </code></pre>
  10179. <pre class="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>);
  10180. <span class="hljs-keyword">const</span> inputBody = {
  10181. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10182. };
  10183. <span class="hljs-keyword">const</span> headers = {
  10184. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10185. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10186. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10187. };
  10188. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10189. {
  10190. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10191. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10192. <span class="hljs-attr">headers</span>: headers
  10193. })
  10194. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10195. <span class="hljs-keyword">return</span> res.json();
  10196. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10197. <span class="hljs-built_in">console</span>.log(body);
  10198. });
  10199. </code></pre>
  10200. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10201. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10202. headers = {
  10203. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10204. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10205. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10206. }
  10207. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10208. <span class="hljs-symbol">params:</span> {
  10209. }, <span class="hljs-symbol">headers:</span> headers
  10210. p JSON.parse(result)
  10211. </code></pre>
  10212. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10213. headers = {
  10214. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10215. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10216. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10217. }
  10218. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10219. <span class="hljs-built_in">print</span>(r.json())
  10220. </code></pre>
  10221. <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>);
  10222. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10223. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10224. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10225. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10226. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10227. String inputLine;
  10228. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10229. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10230. response.append(inputLine);
  10231. }
  10232. in.close();
  10233. System.out.println(response.toString());
  10234. </code></pre>
  10235. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10236. <span class="hljs-keyword">import</span> (
  10237. <span class="hljs-string">&quot;bytes&quot;</span>
  10238. <span class="hljs-string">&quot;net/http&quot;</span>
  10239. )
  10240. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10241. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10242. <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>},
  10243. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10244. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10245. }
  10246. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10247. 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)
  10248. req.Header = headers
  10249. client := &amp;http.Client{}
  10250. resp, err := client.Do(req)
  10251. <span class="hljs-comment">// ...</span>
  10252. }
  10253. </code></pre>
  10254. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10255. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10256. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10257. );
  10258. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10259. <span class="hljs-comment">// Define array of request body.</span>
  10260. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10261. <span class="hljs-keyword">try</span> {
  10262. <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>(
  10263. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10264. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10265. )
  10266. );
  10267. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10268. }
  10269. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10270. <span class="hljs-comment">// handle exception or api errors.</span>
  10271. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10272. }
  10273. <span class="hljs-comment">// ...</span>
  10274. </code></pre>
  10275. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10276. <p><em>Update a Custom Field's dropdown items</em></p>
  10277. <blockquote>
  10278. <p>Body parameter</p>
  10279. </blockquote>
  10280. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10281. </code></pre>
  10282. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10283. <table>
  10284. <thead>
  10285. <tr>
  10286. <th>Name</th>
  10287. <th>In</th>
  10288. <th>Type</th>
  10289. <th>Required</th>
  10290. <th>Description</th>
  10291. </tr>
  10292. </thead>
  10293. <tbody>
  10294. <tr>
  10295. <td>board</td>
  10296. <td>path</td>
  10297. <td>string</td>
  10298. <td>true</td>
  10299. <td>the board value</td>
  10300. </tr>
  10301. <tr>
  10302. <td>customField</td>
  10303. <td>path</td>
  10304. <td>string</td>
  10305. <td>true</td>
  10306. <td>the customField value</td>
  10307. </tr>
  10308. <tr>
  10309. <td>body</td>
  10310. <td>body</td>
  10311. <td>object</td>
  10312. <td>false</td>
  10313. <td>none</td>
  10314. </tr>
  10315. <tr>
  10316. <td>» items</td>
  10317. <td>body</td>
  10318. <td>string</td>
  10319. <td>false</td>
  10320. <td>names of the custom field</td>
  10321. </tr>
  10322. </tbody>
  10323. </table>
  10324. <blockquote>
  10325. <p>Example responses</p>
  10326. </blockquote>
  10327. <blockquote>
  10328. <p>200 Response</p>
  10329. </blockquote>
  10330. <pre class="highlight tab tab-json"><code>{
  10331. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10332. }
  10333. </code></pre>
  10334. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10335. <table>
  10336. <thead>
  10337. <tr>
  10338. <th>Status</th>
  10339. <th>Meaning</th>
  10340. <th>Description</th>
  10341. <th>Schema</th>
  10342. </tr>
  10343. </thead>
  10344. <tbody>
  10345. <tr>
  10346. <td>200</td>
  10347. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10348. <td>200 response</td>
  10349. <td>Inline</td>
  10350. </tr>
  10351. </tbody>
  10352. </table>
  10353. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10354. <p>Status Code <strong>200</strong></p>
  10355. <table>
  10356. <thead>
  10357. <tr>
  10358. <th>Name</th>
  10359. <th>Type</th>
  10360. <th>Required</th>
  10361. <th>Restrictions</th>
  10362. <th>Description</th>
  10363. </tr>
  10364. </thead>
  10365. <tbody>
  10366. <tr>
  10367. <td>» _id</td>
  10368. <td>string</td>
  10369. <td>false</td>
  10370. <td>none</td>
  10371. <td>none</td>
  10372. </tr>
  10373. </tbody>
  10374. </table>
  10375. <aside class="warning">
  10376. To perform this operation, you must be authenticated by means of one of the following methods:
  10377. UserSecurity
  10378. </aside>
  10379. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10380. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10381. <blockquote>
  10382. <p>Code samples</p>
  10383. </blockquote>
  10384. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10385. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10386. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10387. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10388. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10389. </code></pre>
  10390. <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>
  10391. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10392. Accept: application/json
  10393. </span></code></pre>
  10394. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10395. &quot;name&quot;: &quot;string&quot;
  10396. }&#x27;</span>;
  10397. <span class="hljs-keyword">const</span> headers = {
  10398. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10399. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10400. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10401. };
  10402. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10403. {
  10404. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10405. <span class="hljs-attr">body</span>: inputBody,
  10406. <span class="hljs-attr">headers</span>: headers
  10407. })
  10408. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10409. <span class="hljs-keyword">return</span> res.json();
  10410. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10411. <span class="hljs-built_in">console</span>.log(body);
  10412. });
  10413. </code></pre>
  10414. <pre class="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>);
  10415. <span class="hljs-keyword">const</span> inputBody = {
  10416. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10417. };
  10418. <span class="hljs-keyword">const</span> headers = {
  10419. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10420. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10421. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10422. };
  10423. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10424. {
  10425. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10426. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10427. <span class="hljs-attr">headers</span>: headers
  10428. })
  10429. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10430. <span class="hljs-keyword">return</span> res.json();
  10431. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10432. <span class="hljs-built_in">console</span>.log(body);
  10433. });
  10434. </code></pre>
  10435. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10436. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10437. headers = {
  10438. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10439. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10440. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10441. }
  10442. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10443. <span class="hljs-symbol">params:</span> {
  10444. }, <span class="hljs-symbol">headers:</span> headers
  10445. p JSON.parse(result)
  10446. </code></pre>
  10447. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10448. headers = {
  10449. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10450. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10451. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10452. }
  10453. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10454. <span class="hljs-built_in">print</span>(r.json())
  10455. </code></pre>
  10456. <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>);
  10457. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10458. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10459. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10460. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10461. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10462. String inputLine;
  10463. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10464. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10465. response.append(inputLine);
  10466. }
  10467. in.close();
  10468. System.out.println(response.toString());
  10469. </code></pre>
  10470. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10471. <span class="hljs-keyword">import</span> (
  10472. <span class="hljs-string">&quot;bytes&quot;</span>
  10473. <span class="hljs-string">&quot;net/http&quot;</span>
  10474. )
  10475. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10476. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10477. <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>},
  10478. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10479. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10480. }
  10481. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10482. 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)
  10483. req.Header = headers
  10484. client := &amp;http.Client{}
  10485. resp, err := client.Do(req)
  10486. <span class="hljs-comment">// ...</span>
  10487. }
  10488. </code></pre>
  10489. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10490. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10491. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10492. );
  10493. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10494. <span class="hljs-comment">// Define array of request body.</span>
  10495. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10496. <span class="hljs-keyword">try</span> {
  10497. <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>(
  10498. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10499. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10500. )
  10501. );
  10502. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10503. }
  10504. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10505. <span class="hljs-comment">// handle exception or api errors.</span>
  10506. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10507. }
  10508. <span class="hljs-comment">// ...</span>
  10509. </code></pre>
  10510. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10511. <p><em>Update a Custom Field's dropdown item</em></p>
  10512. <blockquote>
  10513. <p>Body parameter</p>
  10514. </blockquote>
  10515. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10516. </code></pre>
  10517. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10518. <table>
  10519. <thead>
  10520. <tr>
  10521. <th>Name</th>
  10522. <th>In</th>
  10523. <th>Type</th>
  10524. <th>Required</th>
  10525. <th>Description</th>
  10526. </tr>
  10527. </thead>
  10528. <tbody>
  10529. <tr>
  10530. <td>board</td>
  10531. <td>path</td>
  10532. <td>string</td>
  10533. <td>true</td>
  10534. <td>the board value</td>
  10535. </tr>
  10536. <tr>
  10537. <td>customField</td>
  10538. <td>path</td>
  10539. <td>string</td>
  10540. <td>true</td>
  10541. <td>the customField value</td>
  10542. </tr>
  10543. <tr>
  10544. <td>dropdownItem</td>
  10545. <td>path</td>
  10546. <td>string</td>
  10547. <td>true</td>
  10548. <td>the dropdownItem value</td>
  10549. </tr>
  10550. <tr>
  10551. <td>body</td>
  10552. <td>body</td>
  10553. <td>object</td>
  10554. <td>true</td>
  10555. <td>none</td>
  10556. </tr>
  10557. <tr>
  10558. <td>» name</td>
  10559. <td>body</td>
  10560. <td>string</td>
  10561. <td>true</td>
  10562. <td>names of the custom field</td>
  10563. </tr>
  10564. </tbody>
  10565. </table>
  10566. <blockquote>
  10567. <p>Example responses</p>
  10568. </blockquote>
  10569. <blockquote>
  10570. <p>200 Response</p>
  10571. </blockquote>
  10572. <pre class="highlight tab tab-json"><code>{
  10573. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10574. }
  10575. </code></pre>
  10576. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10577. <table>
  10578. <thead>
  10579. <tr>
  10580. <th>Status</th>
  10581. <th>Meaning</th>
  10582. <th>Description</th>
  10583. <th>Schema</th>
  10584. </tr>
  10585. </thead>
  10586. <tbody>
  10587. <tr>
  10588. <td>200</td>
  10589. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10590. <td>200 response</td>
  10591. <td>Inline</td>
  10592. </tr>
  10593. </tbody>
  10594. </table>
  10595. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10596. <p>Status Code <strong>200</strong></p>
  10597. <table>
  10598. <thead>
  10599. <tr>
  10600. <th>Name</th>
  10601. <th>Type</th>
  10602. <th>Required</th>
  10603. <th>Restrictions</th>
  10604. <th>Description</th>
  10605. </tr>
  10606. </thead>
  10607. <tbody>
  10608. <tr>
  10609. <td>» _id</td>
  10610. <td>string</td>
  10611. <td>false</td>
  10612. <td>none</td>
  10613. <td>none</td>
  10614. </tr>
  10615. </tbody>
  10616. </table>
  10617. <aside class="warning">
  10618. To perform this operation, you must be authenticated by means of one of the following methods:
  10619. UserSecurity
  10620. </aside>
  10621. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  10622. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  10623. <blockquote>
  10624. <p>Code samples</p>
  10625. </blockquote>
  10626. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10627. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10628. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10629. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10630. </code></pre>
  10631. <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>
  10632. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10633. </span></code></pre>
  10634. <pre class="highlight tab tab-javascript"><code>
  10635. <span class="hljs-keyword">const</span> headers = {
  10636. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10637. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10638. };
  10639. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10640. {
  10641. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10642. <span class="hljs-attr">headers</span>: headers
  10643. })
  10644. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10645. <span class="hljs-keyword">return</span> res.json();
  10646. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10647. <span class="hljs-built_in">console</span>.log(body);
  10648. });
  10649. </code></pre>
  10650. <pre class="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>);
  10651. <span class="hljs-keyword">const</span> headers = {
  10652. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10653. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10654. };
  10655. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10656. {
  10657. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10658. <span class="hljs-attr">headers</span>: headers
  10659. })
  10660. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10661. <span class="hljs-keyword">return</span> res.json();
  10662. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10663. <span class="hljs-built_in">console</span>.log(body);
  10664. });
  10665. </code></pre>
  10666. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10667. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10668. headers = {
  10669. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10670. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10671. }
  10672. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10673. <span class="hljs-symbol">params:</span> {
  10674. }, <span class="hljs-symbol">headers:</span> headers
  10675. p JSON.parse(result)
  10676. </code></pre>
  10677. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10678. headers = {
  10679. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10680. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10681. }
  10682. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10683. <span class="hljs-built_in">print</span>(r.json())
  10684. </code></pre>
  10685. <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>);
  10686. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10687. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10688. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10689. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10690. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10691. String inputLine;
  10692. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10693. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10694. response.append(inputLine);
  10695. }
  10696. in.close();
  10697. System.out.println(response.toString());
  10698. </code></pre>
  10699. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10700. <span class="hljs-keyword">import</span> (
  10701. <span class="hljs-string">&quot;bytes&quot;</span>
  10702. <span class="hljs-string">&quot;net/http&quot;</span>
  10703. )
  10704. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10705. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10706. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10707. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10708. }
  10709. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10710. 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)
  10711. req.Header = headers
  10712. client := &amp;http.Client{}
  10713. resp, err := client.Do(req)
  10714. <span class="hljs-comment">// ...</span>
  10715. }
  10716. </code></pre>
  10717. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10718. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10719. );
  10720. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10721. <span class="hljs-comment">// Define array of request body.</span>
  10722. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10723. <span class="hljs-keyword">try</span> {
  10724. <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>(
  10725. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10726. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10727. )
  10728. );
  10729. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10730. }
  10731. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10732. <span class="hljs-comment">// handle exception or api errors.</span>
  10733. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10734. }
  10735. <span class="hljs-comment">// ...</span>
  10736. </code></pre>
  10737. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10738. <p><em>Update a Custom Field's dropdown items</em></p>
  10739. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  10740. <table>
  10741. <thead>
  10742. <tr>
  10743. <th>Name</th>
  10744. <th>In</th>
  10745. <th>Type</th>
  10746. <th>Required</th>
  10747. <th>Description</th>
  10748. </tr>
  10749. </thead>
  10750. <tbody>
  10751. <tr>
  10752. <td>board</td>
  10753. <td>path</td>
  10754. <td>string</td>
  10755. <td>true</td>
  10756. <td>the board value</td>
  10757. </tr>
  10758. <tr>
  10759. <td>customField</td>
  10760. <td>path</td>
  10761. <td>string</td>
  10762. <td>true</td>
  10763. <td>the customField value</td>
  10764. </tr>
  10765. <tr>
  10766. <td>dropdownItem</td>
  10767. <td>path</td>
  10768. <td>string</td>
  10769. <td>true</td>
  10770. <td>the dropdownItem value</td>
  10771. </tr>
  10772. </tbody>
  10773. </table>
  10774. <blockquote>
  10775. <p>Example responses</p>
  10776. </blockquote>
  10777. <blockquote>
  10778. <p>200 Response</p>
  10779. </blockquote>
  10780. <pre class="highlight tab tab-json"><code>{
  10781. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10782. }
  10783. </code></pre>
  10784. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  10785. <table>
  10786. <thead>
  10787. <tr>
  10788. <th>Status</th>
  10789. <th>Meaning</th>
  10790. <th>Description</th>
  10791. <th>Schema</th>
  10792. </tr>
  10793. </thead>
  10794. <tbody>
  10795. <tr>
  10796. <td>200</td>
  10797. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10798. <td>200 response</td>
  10799. <td>Inline</td>
  10800. </tr>
  10801. </tbody>
  10802. </table>
  10803. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10804. <p>Status Code <strong>200</strong></p>
  10805. <table>
  10806. <thead>
  10807. <tr>
  10808. <th>Name</th>
  10809. <th>Type</th>
  10810. <th>Required</th>
  10811. <th>Restrictions</th>
  10812. <th>Description</th>
  10813. </tr>
  10814. </thead>
  10815. <tbody>
  10816. <tr>
  10817. <td>» _id</td>
  10818. <td>string</td>
  10819. <td>false</td>
  10820. <td>none</td>
  10821. <td>none</td>
  10822. </tr>
  10823. </tbody>
  10824. </table>
  10825. <aside class="warning">
  10826. To perform this operation, you must be authenticated by means of one of the following methods:
  10827. UserSecurity
  10828. </aside>
  10829. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  10830. <h2 id="get_all_integrations">get_all_integrations</h2>
  10831. <p><a id="opIdget_all_integrations"></a></p>
  10832. <blockquote>
  10833. <p>Code samples</p>
  10834. </blockquote>
  10835. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10836. curl -X GET /api/boards/{board}/integrations \
  10837. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10838. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10839. </code></pre>
  10840. <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>
  10841. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10842. </span></code></pre>
  10843. <pre class="highlight tab tab-javascript"><code>
  10844. <span class="hljs-keyword">const</span> headers = {
  10845. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10846. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10847. };
  10848. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10849. {
  10850. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10851. <span class="hljs-attr">headers</span>: headers
  10852. })
  10853. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10854. <span class="hljs-keyword">return</span> res.json();
  10855. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10856. <span class="hljs-built_in">console</span>.log(body);
  10857. });
  10858. </code></pre>
  10859. <pre class="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>);
  10860. <span class="hljs-keyword">const</span> headers = {
  10861. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10862. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10863. };
  10864. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10865. {
  10866. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10867. <span class="hljs-attr">headers</span>: headers
  10868. })
  10869. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10870. <span class="hljs-keyword">return</span> res.json();
  10871. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10872. <span class="hljs-built_in">console</span>.log(body);
  10873. });
  10874. </code></pre>
  10875. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10876. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10877. headers = {
  10878. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10879. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10880. }
  10881. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10882. <span class="hljs-symbol">params:</span> {
  10883. }, <span class="hljs-symbol">headers:</span> headers
  10884. p JSON.parse(result)
  10885. </code></pre>
  10886. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10887. headers = {
  10888. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10889. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10890. }
  10891. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  10892. <span class="hljs-built_in">print</span>(r.json())
  10893. </code></pre>
  10894. <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>);
  10895. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10896. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10897. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10898. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10899. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10900. String inputLine;
  10901. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10902. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10903. response.append(inputLine);
  10904. }
  10905. in.close();
  10906. System.out.println(response.toString());
  10907. </code></pre>
  10908. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10909. <span class="hljs-keyword">import</span> (
  10910. <span class="hljs-string">&quot;bytes&quot;</span>
  10911. <span class="hljs-string">&quot;net/http&quot;</span>
  10912. )
  10913. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10914. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10915. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10916. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10917. }
  10918. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10919. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  10920. req.Header = headers
  10921. client := &amp;http.Client{}
  10922. resp, err := client.Do(req)
  10923. <span class="hljs-comment">// ...</span>
  10924. }
  10925. </code></pre>
  10926. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10927. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10928. );
  10929. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10930. <span class="hljs-comment">// Define array of request body.</span>
  10931. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10932. <span class="hljs-keyword">try</span> {
  10933. <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>(
  10934. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10935. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10936. )
  10937. );
  10938. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10939. }
  10940. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10941. <span class="hljs-comment">// handle exception or api errors.</span>
  10942. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10943. }
  10944. <span class="hljs-comment">// ...</span>
  10945. </code></pre>
  10946. <p><code>GET /api/boards/{board}/integrations</code></p>
  10947. <p><em>Get all integrations in board</em></p>
  10948. <h3 id="get_all_integrations-parameters">Parameters</h3>
  10949. <table>
  10950. <thead>
  10951. <tr>
  10952. <th>Name</th>
  10953. <th>In</th>
  10954. <th>Type</th>
  10955. <th>Required</th>
  10956. <th>Description</th>
  10957. </tr>
  10958. </thead>
  10959. <tbody>
  10960. <tr>
  10961. <td>board</td>
  10962. <td>path</td>
  10963. <td>string</td>
  10964. <td>true</td>
  10965. <td>the board ID</td>
  10966. </tr>
  10967. </tbody>
  10968. </table>
  10969. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  10970. <p><strong>board</strong>: the board ID</p>
  10971. <blockquote>
  10972. <p>Example responses</p>
  10973. </blockquote>
  10974. <blockquote>
  10975. <p>200 Response</p>
  10976. </blockquote>
  10977. <pre class="highlight tab tab-json"><code>[
  10978. {
  10979. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  10980. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10981. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10982. <span class="hljs-attr">&quot;activities&quot;</span>: [
  10983. <span class="hljs-string">&quot;string&quot;</span>
  10984. ],
  10985. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10986. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10987. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10988. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10989. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10990. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10991. }
  10992. ]
  10993. </code></pre>
  10994. <h3 id="get_all_integrations-responses">Responses</h3>
  10995. <table>
  10996. <thead>
  10997. <tr>
  10998. <th>Status</th>
  10999. <th>Meaning</th>
  11000. <th>Description</th>
  11001. <th>Schema</th>
  11002. </tr>
  11003. </thead>
  11004. <tbody>
  11005. <tr>
  11006. <td>200</td>
  11007. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11008. <td>200 response</td>
  11009. <td>Inline</td>
  11010. </tr>
  11011. </tbody>
  11012. </table>
  11013. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11014. <p>Status Code <strong>200</strong></p>
  11015. <table>
  11016. <thead>
  11017. <tr>
  11018. <th>Name</th>
  11019. <th>Type</th>
  11020. <th>Required</th>
  11021. <th>Restrictions</th>
  11022. <th>Description</th>
  11023. </tr>
  11024. </thead>
  11025. <tbody>
  11026. <tr>
  11027. <td><em>anonymous</em></td>
  11028. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11029. <td>false</td>
  11030. <td>none</td>
  11031. <td>[Integration with third-party applications]</td>
  11032. </tr>
  11033. <tr>
  11034. <td>» enabled</td>
  11035. <td>boolean</td>
  11036. <td>true</td>
  11037. <td>none</td>
  11038. <td>is the integration enabled?</td>
  11039. </tr>
  11040. <tr>
  11041. <td>» title</td>
  11042. <td>string¦null</td>
  11043. <td>false</td>
  11044. <td>none</td>
  11045. <td>name of the integration</td>
  11046. </tr>
  11047. <tr>
  11048. <td>» type</td>
  11049. <td>string</td>
  11050. <td>true</td>
  11051. <td>none</td>
  11052. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11053. </tr>
  11054. <tr>
  11055. <td>» activities</td>
  11056. <td>[string]</td>
  11057. <td>true</td>
  11058. <td>none</td>
  11059. <td>activities the integration gets triggered (list)</td>
  11060. </tr>
  11061. <tr>
  11062. <td>» url</td>
  11063. <td>string</td>
  11064. <td>true</td>
  11065. <td>none</td>
  11066. <td>none</td>
  11067. </tr>
  11068. <tr>
  11069. <td>» token</td>
  11070. <td>string¦null</td>
  11071. <td>false</td>
  11072. <td>none</td>
  11073. <td>token of the integration</td>
  11074. </tr>
  11075. <tr>
  11076. <td>» boardId</td>
  11077. <td>string</td>
  11078. <td>true</td>
  11079. <td>none</td>
  11080. <td>Board ID of the integration</td>
  11081. </tr>
  11082. <tr>
  11083. <td>» createdAt</td>
  11084. <td>string</td>
  11085. <td>true</td>
  11086. <td>none</td>
  11087. <td>Creation date of the integration</td>
  11088. </tr>
  11089. <tr>
  11090. <td>» modifiedAt</td>
  11091. <td>string</td>
  11092. <td>true</td>
  11093. <td>none</td>
  11094. <td>none</td>
  11095. </tr>
  11096. <tr>
  11097. <td>» userId</td>
  11098. <td>string</td>
  11099. <td>true</td>
  11100. <td>none</td>
  11101. <td>user ID who created the interation</td>
  11102. </tr>
  11103. </tbody>
  11104. </table>
  11105. <aside class="warning">
  11106. To perform this operation, you must be authenticated by means of one of the following methods:
  11107. UserSecurity
  11108. </aside>
  11109. <h2 id="new_integration">new_integration</h2>
  11110. <p><a id="opIdnew_integration"></a></p>
  11111. <blockquote>
  11112. <p>Code samples</p>
  11113. </blockquote>
  11114. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11115. curl -X POST /api/boards/{board}/integrations \
  11116. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11117. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11118. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11119. </code></pre>
  11120. <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>
  11121. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11122. Accept: application/json
  11123. </span></code></pre>
  11124. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11125. &quot;url&quot;: &quot;string&quot;
  11126. }&#x27;</span>;
  11127. <span class="hljs-keyword">const</span> headers = {
  11128. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11129. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11130. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11131. };
  11132. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11133. {
  11134. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11135. <span class="hljs-attr">body</span>: inputBody,
  11136. <span class="hljs-attr">headers</span>: headers
  11137. })
  11138. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11139. <span class="hljs-keyword">return</span> res.json();
  11140. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11141. <span class="hljs-built_in">console</span>.log(body);
  11142. });
  11143. </code></pre>
  11144. <pre class="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>);
  11145. <span class="hljs-keyword">const</span> inputBody = {
  11146. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11147. };
  11148. <span class="hljs-keyword">const</span> headers = {
  11149. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11150. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11151. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11152. };
  11153. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11154. {
  11155. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11156. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11157. <span class="hljs-attr">headers</span>: headers
  11158. })
  11159. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11160. <span class="hljs-keyword">return</span> res.json();
  11161. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11162. <span class="hljs-built_in">console</span>.log(body);
  11163. });
  11164. </code></pre>
  11165. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11166. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11167. headers = {
  11168. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11169. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11170. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11171. }
  11172. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11173. <span class="hljs-symbol">params:</span> {
  11174. }, <span class="hljs-symbol">headers:</span> headers
  11175. p JSON.parse(result)
  11176. </code></pre>
  11177. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11178. headers = {
  11179. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11180. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11181. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11182. }
  11183. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11184. <span class="hljs-built_in">print</span>(r.json())
  11185. </code></pre>
  11186. <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>);
  11187. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11188. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11189. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11190. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11191. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11192. String inputLine;
  11193. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11194. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11195. response.append(inputLine);
  11196. }
  11197. in.close();
  11198. System.out.println(response.toString());
  11199. </code></pre>
  11200. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11201. <span class="hljs-keyword">import</span> (
  11202. <span class="hljs-string">&quot;bytes&quot;</span>
  11203. <span class="hljs-string">&quot;net/http&quot;</span>
  11204. )
  11205. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11206. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11207. <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>},
  11208. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11209. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11210. }
  11211. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11212. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11213. req.Header = headers
  11214. client := &amp;http.Client{}
  11215. resp, err := client.Do(req)
  11216. <span class="hljs-comment">// ...</span>
  11217. }
  11218. </code></pre>
  11219. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11220. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11221. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11222. );
  11223. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11224. <span class="hljs-comment">// Define array of request body.</span>
  11225. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11226. <span class="hljs-keyword">try</span> {
  11227. <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>(
  11228. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11229. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11230. )
  11231. );
  11232. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11233. }
  11234. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11235. <span class="hljs-comment">// handle exception or api errors.</span>
  11236. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11237. }
  11238. <span class="hljs-comment">// ...</span>
  11239. </code></pre>
  11240. <p><code>POST /api/boards/{board}/integrations</code></p>
  11241. <p><em>Create a new integration</em></p>
  11242. <blockquote>
  11243. <p>Body parameter</p>
  11244. </blockquote>
  11245. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11246. </code></pre>
  11247. <h3 id="new_integration-parameters">Parameters</h3>
  11248. <table>
  11249. <thead>
  11250. <tr>
  11251. <th>Name</th>
  11252. <th>In</th>
  11253. <th>Type</th>
  11254. <th>Required</th>
  11255. <th>Description</th>
  11256. </tr>
  11257. </thead>
  11258. <tbody>
  11259. <tr>
  11260. <td>board</td>
  11261. <td>path</td>
  11262. <td>string</td>
  11263. <td>true</td>
  11264. <td>the board ID</td>
  11265. </tr>
  11266. <tr>
  11267. <td>body</td>
  11268. <td>body</td>
  11269. <td>object</td>
  11270. <td>true</td>
  11271. <td>none</td>
  11272. </tr>
  11273. <tr>
  11274. <td>» url</td>
  11275. <td>body</td>
  11276. <td>string</td>
  11277. <td>true</td>
  11278. <td>the URL of the integration</td>
  11279. </tr>
  11280. </tbody>
  11281. </table>
  11282. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  11283. <p><strong>board</strong>: the board ID</p>
  11284. <blockquote>
  11285. <p>Example responses</p>
  11286. </blockquote>
  11287. <blockquote>
  11288. <p>200 Response</p>
  11289. </blockquote>
  11290. <pre class="highlight tab tab-json"><code>{
  11291. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11292. }
  11293. </code></pre>
  11294. <h3 id="new_integration-responses">Responses</h3>
  11295. <table>
  11296. <thead>
  11297. <tr>
  11298. <th>Status</th>
  11299. <th>Meaning</th>
  11300. <th>Description</th>
  11301. <th>Schema</th>
  11302. </tr>
  11303. </thead>
  11304. <tbody>
  11305. <tr>
  11306. <td>200</td>
  11307. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11308. <td>200 response</td>
  11309. <td>Inline</td>
  11310. </tr>
  11311. </tbody>
  11312. </table>
  11313. <h3 id="new_integration-responseschema">Response Schema</h3>
  11314. <p>Status Code <strong>200</strong></p>
  11315. <table>
  11316. <thead>
  11317. <tr>
  11318. <th>Name</th>
  11319. <th>Type</th>
  11320. <th>Required</th>
  11321. <th>Restrictions</th>
  11322. <th>Description</th>
  11323. </tr>
  11324. </thead>
  11325. <tbody>
  11326. <tr>
  11327. <td>» _id</td>
  11328. <td>string</td>
  11329. <td>false</td>
  11330. <td>none</td>
  11331. <td>none</td>
  11332. </tr>
  11333. </tbody>
  11334. </table>
  11335. <aside class="warning">
  11336. To perform this operation, you must be authenticated by means of one of the following methods:
  11337. UserSecurity
  11338. </aside>
  11339. <h2 id="get_integration">get_integration</h2>
  11340. <p><a id="opIdget_integration"></a></p>
  11341. <blockquote>
  11342. <p>Code samples</p>
  11343. </blockquote>
  11344. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11345. curl -X GET /api/boards/{board}/integrations/{int} \
  11346. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11347. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11348. </code></pre>
  11349. <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>
  11350. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11351. </span></code></pre>
  11352. <pre class="highlight tab tab-javascript"><code>
  11353. <span class="hljs-keyword">const</span> headers = {
  11354. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11355. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11356. };
  11357. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11358. {
  11359. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11360. <span class="hljs-attr">headers</span>: headers
  11361. })
  11362. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11363. <span class="hljs-keyword">return</span> res.json();
  11364. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11365. <span class="hljs-built_in">console</span>.log(body);
  11366. });
  11367. </code></pre>
  11368. <pre class="highlight tab tab-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>);
  11369. <span class="hljs-keyword">const</span> headers = {
  11370. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11371. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11372. };
  11373. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11374. {
  11375. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11376. <span class="hljs-attr">headers</span>: headers
  11377. })
  11378. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11379. <span class="hljs-keyword">return</span> res.json();
  11380. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11381. <span class="hljs-built_in">console</span>.log(body);
  11382. });
  11383. </code></pre>
  11384. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11385. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11386. headers = {
  11387. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11388. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11389. }
  11390. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11391. <span class="hljs-symbol">params:</span> {
  11392. }, <span class="hljs-symbol">headers:</span> headers
  11393. p JSON.parse(result)
  11394. </code></pre>
  11395. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11396. headers = {
  11397. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11398. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11399. }
  11400. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11401. <span class="hljs-built_in">print</span>(r.json())
  11402. </code></pre>
  11403. <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>);
  11404. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11405. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11406. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11407. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11408. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11409. String inputLine;
  11410. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11411. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11412. response.append(inputLine);
  11413. }
  11414. in.close();
  11415. System.out.println(response.toString());
  11416. </code></pre>
  11417. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11418. <span class="hljs-keyword">import</span> (
  11419. <span class="hljs-string">&quot;bytes&quot;</span>
  11420. <span class="hljs-string">&quot;net/http&quot;</span>
  11421. )
  11422. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11423. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11424. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11425. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11426. }
  11427. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11428. 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)
  11429. req.Header = headers
  11430. client := &amp;http.Client{}
  11431. resp, err := client.Do(req)
  11432. <span class="hljs-comment">// ...</span>
  11433. }
  11434. </code></pre>
  11435. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11436. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11437. );
  11438. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11439. <span class="hljs-comment">// Define array of request body.</span>
  11440. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11441. <span class="hljs-keyword">try</span> {
  11442. <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>(
  11443. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11444. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11445. )
  11446. );
  11447. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11448. }
  11449. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11450. <span class="hljs-comment">// handle exception or api errors.</span>
  11451. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11452. }
  11453. <span class="hljs-comment">// ...</span>
  11454. </code></pre>
  11455. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11456. <p><em>Get a single integration in board</em></p>
  11457. <h3 id="get_integration-parameters">Parameters</h3>
  11458. <table>
  11459. <thead>
  11460. <tr>
  11461. <th>Name</th>
  11462. <th>In</th>
  11463. <th>Type</th>
  11464. <th>Required</th>
  11465. <th>Description</th>
  11466. </tr>
  11467. </thead>
  11468. <tbody>
  11469. <tr>
  11470. <td>board</td>
  11471. <td>path</td>
  11472. <td>string</td>
  11473. <td>true</td>
  11474. <td>the board ID</td>
  11475. </tr>
  11476. <tr>
  11477. <td>int</td>
  11478. <td>path</td>
  11479. <td>string</td>
  11480. <td>true</td>
  11481. <td>the integration ID</td>
  11482. </tr>
  11483. </tbody>
  11484. </table>
  11485. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11486. <p><strong>board</strong>: the board ID</p>
  11487. <p><strong>int</strong>: the integration ID</p>
  11488. <blockquote>
  11489. <p>Example responses</p>
  11490. </blockquote>
  11491. <blockquote>
  11492. <p>200 Response</p>
  11493. </blockquote>
  11494. <pre class="highlight tab tab-json"><code>{
  11495. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11496. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11497. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11498. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11499. <span class="hljs-string">&quot;string&quot;</span>
  11500. ],
  11501. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11502. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11503. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11504. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11505. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11506. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11507. }
  11508. </code></pre>
  11509. <h3 id="get_integration-responses">Responses</h3>
  11510. <table>
  11511. <thead>
  11512. <tr>
  11513. <th>Status</th>
  11514. <th>Meaning</th>
  11515. <th>Description</th>
  11516. <th>Schema</th>
  11517. </tr>
  11518. </thead>
  11519. <tbody>
  11520. <tr>
  11521. <td>200</td>
  11522. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11523. <td>200 response</td>
  11524. <td><a href="#schemaintegrations">Integrations</a></td>
  11525. </tr>
  11526. </tbody>
  11527. </table>
  11528. <aside class="warning">
  11529. To perform this operation, you must be authenticated by means of one of the following methods:
  11530. UserSecurity
  11531. </aside>
  11532. <h2 id="edit_integration">edit_integration</h2>
  11533. <p><a id="opIdedit_integration"></a></p>
  11534. <blockquote>
  11535. <p>Code samples</p>
  11536. </blockquote>
  11537. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11538. curl -X PUT /api/boards/{board}/integrations/{int} \
  11539. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11540. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11541. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11542. </code></pre>
  11543. <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>
  11544. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11545. Accept: application/json
  11546. </span></code></pre>
  11547. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11548. &quot;enabled&quot;: &quot;string&quot;,
  11549. &quot;title&quot;: &quot;string&quot;,
  11550. &quot;url&quot;: &quot;string&quot;,
  11551. &quot;token&quot;: &quot;string&quot;,
  11552. &quot;activities&quot;: &quot;string&quot;
  11553. }&#x27;</span>;
  11554. <span class="hljs-keyword">const</span> headers = {
  11555. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11556. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11557. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11558. };
  11559. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11560. {
  11561. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11562. <span class="hljs-attr">body</span>: inputBody,
  11563. <span class="hljs-attr">headers</span>: headers
  11564. })
  11565. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11566. <span class="hljs-keyword">return</span> res.json();
  11567. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11568. <span class="hljs-built_in">console</span>.log(body);
  11569. });
  11570. </code></pre>
  11571. <pre class="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>);
  11572. <span class="hljs-keyword">const</span> inputBody = {
  11573. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11574. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11575. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11576. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11577. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11578. };
  11579. <span class="hljs-keyword">const</span> headers = {
  11580. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11581. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11582. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11583. };
  11584. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11585. {
  11586. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11587. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11588. <span class="hljs-attr">headers</span>: headers
  11589. })
  11590. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11591. <span class="hljs-keyword">return</span> res.json();
  11592. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11593. <span class="hljs-built_in">console</span>.log(body);
  11594. });
  11595. </code></pre>
  11596. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11597. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11598. headers = {
  11599. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11600. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11601. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11602. }
  11603. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11604. <span class="hljs-symbol">params:</span> {
  11605. }, <span class="hljs-symbol">headers:</span> headers
  11606. p JSON.parse(result)
  11607. </code></pre>
  11608. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11609. headers = {
  11610. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11611. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11612. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11613. }
  11614. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11615. <span class="hljs-built_in">print</span>(r.json())
  11616. </code></pre>
  11617. <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>);
  11618. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11619. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11620. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11621. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11622. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11623. String inputLine;
  11624. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11625. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11626. response.append(inputLine);
  11627. }
  11628. in.close();
  11629. System.out.println(response.toString());
  11630. </code></pre>
  11631. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11632. <span class="hljs-keyword">import</span> (
  11633. <span class="hljs-string">&quot;bytes&quot;</span>
  11634. <span class="hljs-string">&quot;net/http&quot;</span>
  11635. )
  11636. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11637. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11638. <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>},
  11639. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11640. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11641. }
  11642. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11643. 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)
  11644. req.Header = headers
  11645. client := &amp;http.Client{}
  11646. resp, err := client.Do(req)
  11647. <span class="hljs-comment">// ...</span>
  11648. }
  11649. </code></pre>
  11650. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11651. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11652. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11653. );
  11654. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11655. <span class="hljs-comment">// Define array of request body.</span>
  11656. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11657. <span class="hljs-keyword">try</span> {
  11658. <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>(
  11659. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11660. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11661. )
  11662. );
  11663. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11664. }
  11665. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11666. <span class="hljs-comment">// handle exception or api errors.</span>
  11667. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11668. }
  11669. <span class="hljs-comment">// ...</span>
  11670. </code></pre>
  11671. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  11672. <p><em>Edit integration data</em></p>
  11673. <blockquote>
  11674. <p>Body parameter</p>
  11675. </blockquote>
  11676. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  11677. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11678. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11679. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  11680. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  11681. </code></pre>
  11682. <h3 id="edit_integration-parameters">Parameters</h3>
  11683. <table>
  11684. <thead>
  11685. <tr>
  11686. <th>Name</th>
  11687. <th>In</th>
  11688. <th>Type</th>
  11689. <th>Required</th>
  11690. <th>Description</th>
  11691. </tr>
  11692. </thead>
  11693. <tbody>
  11694. <tr>
  11695. <td>board</td>
  11696. <td>path</td>
  11697. <td>string</td>
  11698. <td>true</td>
  11699. <td>the board ID</td>
  11700. </tr>
  11701. <tr>
  11702. <td>int</td>
  11703. <td>path</td>
  11704. <td>string</td>
  11705. <td>true</td>
  11706. <td>the integration ID</td>
  11707. </tr>
  11708. <tr>
  11709. <td>body</td>
  11710. <td>body</td>
  11711. <td>object</td>
  11712. <td>false</td>
  11713. <td>none</td>
  11714. </tr>
  11715. <tr>
  11716. <td>» enabled</td>
  11717. <td>body</td>
  11718. <td>string</td>
  11719. <td>false</td>
  11720. <td>is the integration enabled?</td>
  11721. </tr>
  11722. <tr>
  11723. <td>» title</td>
  11724. <td>body</td>
  11725. <td>string</td>
  11726. <td>false</td>
  11727. <td>new name of the integration</td>
  11728. </tr>
  11729. <tr>
  11730. <td>» url</td>
  11731. <td>body</td>
  11732. <td>string</td>
  11733. <td>false</td>
  11734. <td>new URL of the integration</td>
  11735. </tr>
  11736. <tr>
  11737. <td>» token</td>
  11738. <td>body</td>
  11739. <td>string</td>
  11740. <td>false</td>
  11741. <td>new token of the integration</td>
  11742. </tr>
  11743. <tr>
  11744. <td>» activities</td>
  11745. <td>body</td>
  11746. <td>string</td>
  11747. <td>false</td>
  11748. <td>new list of activities of the integration</td>
  11749. </tr>
  11750. </tbody>
  11751. </table>
  11752. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11753. <p><strong>board</strong>: the board ID</p>
  11754. <p><strong>int</strong>: the integration ID</p>
  11755. <blockquote>
  11756. <p>Example responses</p>
  11757. </blockquote>
  11758. <blockquote>
  11759. <p>200 Response</p>
  11760. </blockquote>
  11761. <pre class="highlight tab tab-json"><code>{
  11762. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11763. }
  11764. </code></pre>
  11765. <h3 id="edit_integration-responses">Responses</h3>
  11766. <table>
  11767. <thead>
  11768. <tr>
  11769. <th>Status</th>
  11770. <th>Meaning</th>
  11771. <th>Description</th>
  11772. <th>Schema</th>
  11773. </tr>
  11774. </thead>
  11775. <tbody>
  11776. <tr>
  11777. <td>200</td>
  11778. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11779. <td>200 response</td>
  11780. <td>Inline</td>
  11781. </tr>
  11782. </tbody>
  11783. </table>
  11784. <h3 id="edit_integration-responseschema">Response Schema</h3>
  11785. <p>Status Code <strong>200</strong></p>
  11786. <table>
  11787. <thead>
  11788. <tr>
  11789. <th>Name</th>
  11790. <th>Type</th>
  11791. <th>Required</th>
  11792. <th>Restrictions</th>
  11793. <th>Description</th>
  11794. </tr>
  11795. </thead>
  11796. <tbody>
  11797. <tr>
  11798. <td>» _id</td>
  11799. <td>string</td>
  11800. <td>false</td>
  11801. <td>none</td>
  11802. <td>none</td>
  11803. </tr>
  11804. </tbody>
  11805. </table>
  11806. <aside class="warning">
  11807. To perform this operation, you must be authenticated by means of one of the following methods:
  11808. UserSecurity
  11809. </aside>
  11810. <h2 id="delete_integration">delete_integration</h2>
  11811. <p><a id="opIddelete_integration"></a></p>
  11812. <blockquote>
  11813. <p>Code samples</p>
  11814. </blockquote>
  11815. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11816. curl -X DELETE /api/boards/{board}/integrations/{int} \
  11817. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11818. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11819. </code></pre>
  11820. <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>
  11821. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11822. </span></code></pre>
  11823. <pre class="highlight tab tab-javascript"><code>
  11824. <span class="hljs-keyword">const</span> headers = {
  11825. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11826. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11827. };
  11828. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11829. {
  11830. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11831. <span class="hljs-attr">headers</span>: headers
  11832. })
  11833. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11834. <span class="hljs-keyword">return</span> res.json();
  11835. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11836. <span class="hljs-built_in">console</span>.log(body);
  11837. });
  11838. </code></pre>
  11839. <pre class="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>);
  11840. <span class="hljs-keyword">const</span> headers = {
  11841. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11842. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11843. };
  11844. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11845. {
  11846. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11847. <span class="hljs-attr">headers</span>: headers
  11848. })
  11849. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11850. <span class="hljs-keyword">return</span> res.json();
  11851. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11852. <span class="hljs-built_in">console</span>.log(body);
  11853. });
  11854. </code></pre>
  11855. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11856. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11857. headers = {
  11858. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11859. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11860. }
  11861. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11862. <span class="hljs-symbol">params:</span> {
  11863. }, <span class="hljs-symbol">headers:</span> headers
  11864. p JSON.parse(result)
  11865. </code></pre>
  11866. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11867. headers = {
  11868. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11869. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11870. }
  11871. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11872. <span class="hljs-built_in">print</span>(r.json())
  11873. </code></pre>
  11874. <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>);
  11875. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11876. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11877. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11878. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11879. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11880. String inputLine;
  11881. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11882. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11883. response.append(inputLine);
  11884. }
  11885. in.close();
  11886. System.out.println(response.toString());
  11887. </code></pre>
  11888. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11889. <span class="hljs-keyword">import</span> (
  11890. <span class="hljs-string">&quot;bytes&quot;</span>
  11891. <span class="hljs-string">&quot;net/http&quot;</span>
  11892. )
  11893. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11894. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11895. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11896. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11897. }
  11898. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11899. 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)
  11900. req.Header = headers
  11901. client := &amp;http.Client{}
  11902. resp, err := client.Do(req)
  11903. <span class="hljs-comment">// ...</span>
  11904. }
  11905. </code></pre>
  11906. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11907. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11908. );
  11909. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11910. <span class="hljs-comment">// Define array of request body.</span>
  11911. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11912. <span class="hljs-keyword">try</span> {
  11913. <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>(
  11914. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11915. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11916. )
  11917. );
  11918. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11919. }
  11920. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11921. <span class="hljs-comment">// handle exception or api errors.</span>
  11922. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11923. }
  11924. <span class="hljs-comment">// ...</span>
  11925. </code></pre>
  11926. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  11927. <p><em>Delete integration</em></p>
  11928. <h3 id="delete_integration-parameters">Parameters</h3>
  11929. <table>
  11930. <thead>
  11931. <tr>
  11932. <th>Name</th>
  11933. <th>In</th>
  11934. <th>Type</th>
  11935. <th>Required</th>
  11936. <th>Description</th>
  11937. </tr>
  11938. </thead>
  11939. <tbody>
  11940. <tr>
  11941. <td>board</td>
  11942. <td>path</td>
  11943. <td>string</td>
  11944. <td>true</td>
  11945. <td>the board ID</td>
  11946. </tr>
  11947. <tr>
  11948. <td>int</td>
  11949. <td>path</td>
  11950. <td>string</td>
  11951. <td>true</td>
  11952. <td>the integration ID</td>
  11953. </tr>
  11954. </tbody>
  11955. </table>
  11956. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11957. <p><strong>board</strong>: the board ID</p>
  11958. <p><strong>int</strong>: the integration ID</p>
  11959. <blockquote>
  11960. <p>Example responses</p>
  11961. </blockquote>
  11962. <blockquote>
  11963. <p>200 Response</p>
  11964. </blockquote>
  11965. <pre class="highlight tab tab-json"><code>{
  11966. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11967. }
  11968. </code></pre>
  11969. <h3 id="delete_integration-responses">Responses</h3>
  11970. <table>
  11971. <thead>
  11972. <tr>
  11973. <th>Status</th>
  11974. <th>Meaning</th>
  11975. <th>Description</th>
  11976. <th>Schema</th>
  11977. </tr>
  11978. </thead>
  11979. <tbody>
  11980. <tr>
  11981. <td>200</td>
  11982. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11983. <td>200 response</td>
  11984. <td>Inline</td>
  11985. </tr>
  11986. </tbody>
  11987. </table>
  11988. <h3 id="delete_integration-responseschema">Response Schema</h3>
  11989. <p>Status Code <strong>200</strong></p>
  11990. <table>
  11991. <thead>
  11992. <tr>
  11993. <th>Name</th>
  11994. <th>Type</th>
  11995. <th>Required</th>
  11996. <th>Restrictions</th>
  11997. <th>Description</th>
  11998. </tr>
  11999. </thead>
  12000. <tbody>
  12001. <tr>
  12002. <td>» _id</td>
  12003. <td>string</td>
  12004. <td>false</td>
  12005. <td>none</td>
  12006. <td>none</td>
  12007. </tr>
  12008. </tbody>
  12009. </table>
  12010. <aside class="warning">
  12011. To perform this operation, you must be authenticated by means of one of the following methods:
  12012. UserSecurity
  12013. </aside>
  12014. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12015. <p><a id="opIddelete_integration_activities"></a></p>
  12016. <blockquote>
  12017. <p>Code samples</p>
  12018. </blockquote>
  12019. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12020. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12021. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12022. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12023. </code></pre>
  12024. <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>
  12025. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12026. </span></code></pre>
  12027. <pre class="highlight tab tab-javascript"><code>
  12028. <span class="hljs-keyword">const</span> headers = {
  12029. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12030. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12031. };
  12032. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12033. {
  12034. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12035. <span class="hljs-attr">headers</span>: headers
  12036. })
  12037. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12038. <span class="hljs-keyword">return</span> res.json();
  12039. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12040. <span class="hljs-built_in">console</span>.log(body);
  12041. });
  12042. </code></pre>
  12043. <pre class="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>);
  12044. <span class="hljs-keyword">const</span> headers = {
  12045. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12046. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12047. };
  12048. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12049. {
  12050. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12051. <span class="hljs-attr">headers</span>: headers
  12052. })
  12053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12054. <span class="hljs-keyword">return</span> res.json();
  12055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12056. <span class="hljs-built_in">console</span>.log(body);
  12057. });
  12058. </code></pre>
  12059. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12060. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12061. headers = {
  12062. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12063. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12064. }
  12065. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12066. <span class="hljs-symbol">params:</span> {
  12067. }, <span class="hljs-symbol">headers:</span> headers
  12068. p JSON.parse(result)
  12069. </code></pre>
  12070. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12071. headers = {
  12072. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12073. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12074. }
  12075. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12076. <span class="hljs-built_in">print</span>(r.json())
  12077. </code></pre>
  12078. <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>);
  12079. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12080. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12081. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12082. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12083. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12084. String inputLine;
  12085. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12086. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12087. response.append(inputLine);
  12088. }
  12089. in.close();
  12090. System.out.println(response.toString());
  12091. </code></pre>
  12092. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12093. <span class="hljs-keyword">import</span> (
  12094. <span class="hljs-string">&quot;bytes&quot;</span>
  12095. <span class="hljs-string">&quot;net/http&quot;</span>
  12096. )
  12097. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12098. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12099. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12100. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12101. }
  12102. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12103. 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)
  12104. req.Header = headers
  12105. client := &amp;http.Client{}
  12106. resp, err := client.Do(req)
  12107. <span class="hljs-comment">// ...</span>
  12108. }
  12109. </code></pre>
  12110. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12111. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12112. );
  12113. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12114. <span class="hljs-comment">// Define array of request body.</span>
  12115. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12116. <span class="hljs-keyword">try</span> {
  12117. <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>(
  12118. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12119. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12120. )
  12121. );
  12122. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12123. }
  12124. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12125. <span class="hljs-comment">// handle exception or api errors.</span>
  12126. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12127. }
  12128. <span class="hljs-comment">// ...</span>
  12129. </code></pre>
  12130. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12131. <p><em>Delete subscribed activities</em></p>
  12132. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12133. <table>
  12134. <thead>
  12135. <tr>
  12136. <th>Name</th>
  12137. <th>In</th>
  12138. <th>Type</th>
  12139. <th>Required</th>
  12140. <th>Description</th>
  12141. </tr>
  12142. </thead>
  12143. <tbody>
  12144. <tr>
  12145. <td>board</td>
  12146. <td>path</td>
  12147. <td>string</td>
  12148. <td>true</td>
  12149. <td>the board ID</td>
  12150. </tr>
  12151. <tr>
  12152. <td>int</td>
  12153. <td>path</td>
  12154. <td>string</td>
  12155. <td>true</td>
  12156. <td>the integration ID</td>
  12157. </tr>
  12158. </tbody>
  12159. </table>
  12160. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12161. <p><strong>board</strong>: the board ID</p>
  12162. <p><strong>int</strong>: the integration ID</p>
  12163. <blockquote>
  12164. <p>Example responses</p>
  12165. </blockquote>
  12166. <blockquote>
  12167. <p>200 Response</p>
  12168. </blockquote>
  12169. <pre class="highlight tab tab-json"><code>{
  12170. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12171. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12172. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12173. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12174. <span class="hljs-string">&quot;string&quot;</span>
  12175. ],
  12176. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12177. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12178. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12179. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12180. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12181. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12182. }
  12183. </code></pre>
  12184. <h3 id="delete_integration_activities-responses">Responses</h3>
  12185. <table>
  12186. <thead>
  12187. <tr>
  12188. <th>Status</th>
  12189. <th>Meaning</th>
  12190. <th>Description</th>
  12191. <th>Schema</th>
  12192. </tr>
  12193. </thead>
  12194. <tbody>
  12195. <tr>
  12196. <td>200</td>
  12197. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12198. <td>200 response</td>
  12199. <td><a href="#schemaintegrations">Integrations</a></td>
  12200. </tr>
  12201. </tbody>
  12202. </table>
  12203. <aside class="warning">
  12204. To perform this operation, you must be authenticated by means of one of the following methods:
  12205. UserSecurity
  12206. </aside>
  12207. <h2 id="new_integration_activities">new_integration_activities</h2>
  12208. <p><a id="opIdnew_integration_activities"></a></p>
  12209. <blockquote>
  12210. <p>Code samples</p>
  12211. </blockquote>
  12212. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12213. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12214. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12215. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12216. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12217. </code></pre>
  12218. <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>
  12219. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12220. Accept: application/json
  12221. </span></code></pre>
  12222. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12223. &quot;activities&quot;: &quot;string&quot;
  12224. }&#x27;</span>;
  12225. <span class="hljs-keyword">const</span> headers = {
  12226. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12227. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12228. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12229. };
  12230. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12231. {
  12232. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12233. <span class="hljs-attr">body</span>: inputBody,
  12234. <span class="hljs-attr">headers</span>: headers
  12235. })
  12236. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12237. <span class="hljs-keyword">return</span> res.json();
  12238. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12239. <span class="hljs-built_in">console</span>.log(body);
  12240. });
  12241. </code></pre>
  12242. <pre class="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>);
  12243. <span class="hljs-keyword">const</span> inputBody = {
  12244. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12245. };
  12246. <span class="hljs-keyword">const</span> headers = {
  12247. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12248. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12249. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12250. };
  12251. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12252. {
  12253. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12254. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12255. <span class="hljs-attr">headers</span>: headers
  12256. })
  12257. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12258. <span class="hljs-keyword">return</span> res.json();
  12259. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12260. <span class="hljs-built_in">console</span>.log(body);
  12261. });
  12262. </code></pre>
  12263. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12264. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12265. headers = {
  12266. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  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.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#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;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12278. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12279. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12280. }
  12281. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12282. <span class="hljs-built_in">print</span>(r.json())
  12283. </code></pre>
  12284. <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>);
  12285. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12286. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12287. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12288. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12289. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12290. String inputLine;
  12291. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12292. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12293. response.append(inputLine);
  12294. }
  12295. in.close();
  12296. System.out.println(response.toString());
  12297. </code></pre>
  12298. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12299. <span class="hljs-keyword">import</span> (
  12300. <span class="hljs-string">&quot;bytes&quot;</span>
  12301. <span class="hljs-string">&quot;net/http&quot;</span>
  12302. )
  12303. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12304. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12305. <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>},
  12306. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12307. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12308. }
  12309. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12310. 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)
  12311. req.Header = headers
  12312. client := &amp;http.Client{}
  12313. resp, err := client.Do(req)
  12314. <span class="hljs-comment">// ...</span>
  12315. }
  12316. </code></pre>
  12317. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12318. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12319. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12320. );
  12321. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12322. <span class="hljs-comment">// Define array of request body.</span>
  12323. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12324. <span class="hljs-keyword">try</span> {
  12325. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, <span class="hljs-keyword">array</span>(
  12326. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12327. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12328. )
  12329. );
  12330. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12331. }
  12332. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12333. <span class="hljs-comment">// handle exception or api errors.</span>
  12334. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12335. }
  12336. <span class="hljs-comment">// ...</span>
  12337. </code></pre>
  12338. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12339. <p><em>Add subscribed activities</em></p>
  12340. <blockquote>
  12341. <p>Body parameter</p>
  12342. </blockquote>
  12343. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12344. </code></pre>
  12345. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12346. <table>
  12347. <thead>
  12348. <tr>
  12349. <th>Name</th>
  12350. <th>In</th>
  12351. <th>Type</th>
  12352. <th>Required</th>
  12353. <th>Description</th>
  12354. </tr>
  12355. </thead>
  12356. <tbody>
  12357. <tr>
  12358. <td>board</td>
  12359. <td>path</td>
  12360. <td>string</td>
  12361. <td>true</td>
  12362. <td>the board ID</td>
  12363. </tr>
  12364. <tr>
  12365. <td>int</td>
  12366. <td>path</td>
  12367. <td>string</td>
  12368. <td>true</td>
  12369. <td>the integration ID</td>
  12370. </tr>
  12371. <tr>
  12372. <td>body</td>
  12373. <td>body</td>
  12374. <td>object</td>
  12375. <td>true</td>
  12376. <td>none</td>
  12377. </tr>
  12378. <tr>
  12379. <td>» activities</td>
  12380. <td>body</td>
  12381. <td>string</td>
  12382. <td>true</td>
  12383. <td>the activities value</td>
  12384. </tr>
  12385. </tbody>
  12386. </table>
  12387. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12388. <p><strong>board</strong>: the board ID</p>
  12389. <p><strong>int</strong>: the integration ID</p>
  12390. <blockquote>
  12391. <p>Example responses</p>
  12392. </blockquote>
  12393. <blockquote>
  12394. <p>200 Response</p>
  12395. </blockquote>
  12396. <pre class="highlight tab tab-json"><code>{
  12397. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12398. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12399. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12400. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12401. <span class="hljs-string">&quot;string&quot;</span>
  12402. ],
  12403. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12404. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12405. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12406. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12407. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12408. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12409. }
  12410. </code></pre>
  12411. <h3 id="new_integration_activities-responses">Responses</h3>
  12412. <table>
  12413. <thead>
  12414. <tr>
  12415. <th>Status</th>
  12416. <th>Meaning</th>
  12417. <th>Description</th>
  12418. <th>Schema</th>
  12419. </tr>
  12420. </thead>
  12421. <tbody>
  12422. <tr>
  12423. <td>200</td>
  12424. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12425. <td>200 response</td>
  12426. <td><a href="#schemaintegrations">Integrations</a></td>
  12427. </tr>
  12428. </tbody>
  12429. </table>
  12430. <aside class="warning">
  12431. To perform this operation, you must be authenticated by means of one of the following methods:
  12432. UserSecurity
  12433. </aside>
  12434. <h1 id="wekan-rest-api-lists">Lists</h1>
  12435. <h2 id="get_all_lists">get_all_lists</h2>
  12436. <p><a id="opIdget_all_lists"></a></p>
  12437. <blockquote>
  12438. <p>Code samples</p>
  12439. </blockquote>
  12440. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12441. curl -X GET /api/boards/{board}/lists \
  12442. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12443. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12444. </code></pre>
  12445. <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>
  12446. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12447. </span></code></pre>
  12448. <pre class="highlight tab tab-javascript"><code>
  12449. <span class="hljs-keyword">const</span> headers = {
  12450. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12451. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12452. };
  12453. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12454. {
  12455. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12456. <span class="hljs-attr">headers</span>: headers
  12457. })
  12458. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12459. <span class="hljs-keyword">return</span> res.json();
  12460. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12461. <span class="hljs-built_in">console</span>.log(body);
  12462. });
  12463. </code></pre>
  12464. <pre class="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>);
  12465. <span class="hljs-keyword">const</span> headers = {
  12466. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12467. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12468. };
  12469. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12470. {
  12471. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12472. <span class="hljs-attr">headers</span>: headers
  12473. })
  12474. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12475. <span class="hljs-keyword">return</span> res.json();
  12476. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12477. <span class="hljs-built_in">console</span>.log(body);
  12478. });
  12479. </code></pre>
  12480. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12481. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12482. headers = {
  12483. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12484. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12485. }
  12486. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12487. <span class="hljs-symbol">params:</span> {
  12488. }, <span class="hljs-symbol">headers:</span> headers
  12489. p JSON.parse(result)
  12490. </code></pre>
  12491. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12492. headers = {
  12493. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12494. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12495. }
  12496. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12497. <span class="hljs-built_in">print</span>(r.json())
  12498. </code></pre>
  12499. <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>);
  12500. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12501. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12502. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12503. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12504. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12505. String inputLine;
  12506. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12507. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12508. response.append(inputLine);
  12509. }
  12510. in.close();
  12511. System.out.println(response.toString());
  12512. </code></pre>
  12513. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12514. <span class="hljs-keyword">import</span> (
  12515. <span class="hljs-string">&quot;bytes&quot;</span>
  12516. <span class="hljs-string">&quot;net/http&quot;</span>
  12517. )
  12518. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12519. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12520. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12521. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12522. }
  12523. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12524. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12525. req.Header = headers
  12526. client := &amp;http.Client{}
  12527. resp, err := client.Do(req)
  12528. <span class="hljs-comment">// ...</span>
  12529. }
  12530. </code></pre>
  12531. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12532. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12533. );
  12534. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12535. <span class="hljs-comment">// Define array of request body.</span>
  12536. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12537. <span class="hljs-keyword">try</span> {
  12538. <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>(
  12539. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12540. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12541. )
  12542. );
  12543. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12544. }
  12545. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12546. <span class="hljs-comment">// handle exception or api errors.</span>
  12547. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12548. }
  12549. <span class="hljs-comment">// ...</span>
  12550. </code></pre>
  12551. <p><code>GET /api/boards/{board}/lists</code></p>
  12552. <p><em>Get the list of Lists attached to a board</em></p>
  12553. <h3 id="get_all_lists-parameters">Parameters</h3>
  12554. <table>
  12555. <thead>
  12556. <tr>
  12557. <th>Name</th>
  12558. <th>In</th>
  12559. <th>Type</th>
  12560. <th>Required</th>
  12561. <th>Description</th>
  12562. </tr>
  12563. </thead>
  12564. <tbody>
  12565. <tr>
  12566. <td>board</td>
  12567. <td>path</td>
  12568. <td>string</td>
  12569. <td>true</td>
  12570. <td>the board ID</td>
  12571. </tr>
  12572. </tbody>
  12573. </table>
  12574. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12575. <p><strong>board</strong>: the board ID</p>
  12576. <blockquote>
  12577. <p>Example responses</p>
  12578. </blockquote>
  12579. <blockquote>
  12580. <p>200 Response</p>
  12581. </blockquote>
  12582. <pre class="highlight tab tab-json"><code>[
  12583. {
  12584. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12585. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12586. }
  12587. ]
  12588. </code></pre>
  12589. <h3 id="get_all_lists-responses">Responses</h3>
  12590. <table>
  12591. <thead>
  12592. <tr>
  12593. <th>Status</th>
  12594. <th>Meaning</th>
  12595. <th>Description</th>
  12596. <th>Schema</th>
  12597. </tr>
  12598. </thead>
  12599. <tbody>
  12600. <tr>
  12601. <td>200</td>
  12602. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12603. <td>200 response</td>
  12604. <td>Inline</td>
  12605. </tr>
  12606. </tbody>
  12607. </table>
  12608. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12609. <p>Status Code <strong>200</strong></p>
  12610. <table>
  12611. <thead>
  12612. <tr>
  12613. <th>Name</th>
  12614. <th>Type</th>
  12615. <th>Required</th>
  12616. <th>Restrictions</th>
  12617. <th>Description</th>
  12618. </tr>
  12619. </thead>
  12620. <tbody>
  12621. <tr>
  12622. <td>» _id</td>
  12623. <td>string</td>
  12624. <td>false</td>
  12625. <td>none</td>
  12626. <td>none</td>
  12627. </tr>
  12628. <tr>
  12629. <td>» title</td>
  12630. <td>string</td>
  12631. <td>false</td>
  12632. <td>none</td>
  12633. <td>none</td>
  12634. </tr>
  12635. </tbody>
  12636. </table>
  12637. <aside class="warning">
  12638. To perform this operation, you must be authenticated by means of one of the following methods:
  12639. UserSecurity
  12640. </aside>
  12641. <h2 id="new_list">new_list</h2>
  12642. <p><a id="opIdnew_list"></a></p>
  12643. <blockquote>
  12644. <p>Code samples</p>
  12645. </blockquote>
  12646. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12647. curl -X POST /api/boards/{board}/lists \
  12648. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12649. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12650. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12651. </code></pre>
  12652. <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>
  12653. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12654. Accept: application/json
  12655. </span></code></pre>
  12656. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12657. &quot;title&quot;: &quot;string&quot;
  12658. }&#x27;</span>;
  12659. <span class="hljs-keyword">const</span> headers = {
  12660. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12661. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12662. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12663. };
  12664. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12665. {
  12666. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12667. <span class="hljs-attr">body</span>: inputBody,
  12668. <span class="hljs-attr">headers</span>: headers
  12669. })
  12670. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12671. <span class="hljs-keyword">return</span> res.json();
  12672. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12673. <span class="hljs-built_in">console</span>.log(body);
  12674. });
  12675. </code></pre>
  12676. <pre class="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>);
  12677. <span class="hljs-keyword">const</span> inputBody = {
  12678. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12679. };
  12680. <span class="hljs-keyword">const</span> headers = {
  12681. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12682. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12683. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12684. };
  12685. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12686. {
  12687. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12688. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12689. <span class="hljs-attr">headers</span>: headers
  12690. })
  12691. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12692. <span class="hljs-keyword">return</span> res.json();
  12693. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12694. <span class="hljs-built_in">console</span>.log(body);
  12695. });
  12696. </code></pre>
  12697. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12698. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12699. headers = {
  12700. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12701. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12702. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12703. }
  12704. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12705. <span class="hljs-symbol">params:</span> {
  12706. }, <span class="hljs-symbol">headers:</span> headers
  12707. p JSON.parse(result)
  12708. </code></pre>
  12709. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12710. headers = {
  12711. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12712. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12713. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12714. }
  12715. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12716. <span class="hljs-built_in">print</span>(r.json())
  12717. </code></pre>
  12718. <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>);
  12719. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12720. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12721. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12722. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12723. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12724. String inputLine;
  12725. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12726. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12727. response.append(inputLine);
  12728. }
  12729. in.close();
  12730. System.out.println(response.toString());
  12731. </code></pre>
  12732. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12733. <span class="hljs-keyword">import</span> (
  12734. <span class="hljs-string">&quot;bytes&quot;</span>
  12735. <span class="hljs-string">&quot;net/http&quot;</span>
  12736. )
  12737. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12738. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12739. <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>},
  12740. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12741. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12742. }
  12743. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12744. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12745. req.Header = headers
  12746. client := &amp;http.Client{}
  12747. resp, err := client.Do(req)
  12748. <span class="hljs-comment">// ...</span>
  12749. }
  12750. </code></pre>
  12751. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12752. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12753. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12754. );
  12755. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12756. <span class="hljs-comment">// Define array of request body.</span>
  12757. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12758. <span class="hljs-keyword">try</span> {
  12759. <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>(
  12760. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12761. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12762. )
  12763. );
  12764. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12765. }
  12766. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12767. <span class="hljs-comment">// handle exception or api errors.</span>
  12768. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12769. }
  12770. <span class="hljs-comment">// ...</span>
  12771. </code></pre>
  12772. <p><code>POST /api/boards/{board}/lists</code></p>
  12773. <p><em>Add a List to a board</em></p>
  12774. <blockquote>
  12775. <p>Body parameter</p>
  12776. </blockquote>
  12777. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12778. </code></pre>
  12779. <h3 id="new_list-parameters">Parameters</h3>
  12780. <table>
  12781. <thead>
  12782. <tr>
  12783. <th>Name</th>
  12784. <th>In</th>
  12785. <th>Type</th>
  12786. <th>Required</th>
  12787. <th>Description</th>
  12788. </tr>
  12789. </thead>
  12790. <tbody>
  12791. <tr>
  12792. <td>board</td>
  12793. <td>path</td>
  12794. <td>string</td>
  12795. <td>true</td>
  12796. <td>the board ID</td>
  12797. </tr>
  12798. <tr>
  12799. <td>body</td>
  12800. <td>body</td>
  12801. <td>object</td>
  12802. <td>true</td>
  12803. <td>none</td>
  12804. </tr>
  12805. <tr>
  12806. <td>» title</td>
  12807. <td>body</td>
  12808. <td>string</td>
  12809. <td>true</td>
  12810. <td>the title of the List</td>
  12811. </tr>
  12812. </tbody>
  12813. </table>
  12814. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12815. <p><strong>board</strong>: the board ID</p>
  12816. <blockquote>
  12817. <p>Example responses</p>
  12818. </blockquote>
  12819. <blockquote>
  12820. <p>200 Response</p>
  12821. </blockquote>
  12822. <pre class="highlight tab tab-json"><code>{
  12823. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12824. }
  12825. </code></pre>
  12826. <h3 id="new_list-responses">Responses</h3>
  12827. <table>
  12828. <thead>
  12829. <tr>
  12830. <th>Status</th>
  12831. <th>Meaning</th>
  12832. <th>Description</th>
  12833. <th>Schema</th>
  12834. </tr>
  12835. </thead>
  12836. <tbody>
  12837. <tr>
  12838. <td>200</td>
  12839. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12840. <td>200 response</td>
  12841. <td>Inline</td>
  12842. </tr>
  12843. </tbody>
  12844. </table>
  12845. <h3 id="new_list-responseschema">Response Schema</h3>
  12846. <p>Status Code <strong>200</strong></p>
  12847. <table>
  12848. <thead>
  12849. <tr>
  12850. <th>Name</th>
  12851. <th>Type</th>
  12852. <th>Required</th>
  12853. <th>Restrictions</th>
  12854. <th>Description</th>
  12855. </tr>
  12856. </thead>
  12857. <tbody>
  12858. <tr>
  12859. <td>» _id</td>
  12860. <td>string</td>
  12861. <td>false</td>
  12862. <td>none</td>
  12863. <td>none</td>
  12864. </tr>
  12865. </tbody>
  12866. </table>
  12867. <aside class="warning">
  12868. To perform this operation, you must be authenticated by means of one of the following methods:
  12869. UserSecurity
  12870. </aside>
  12871. <h2 id="get_list">get_list</h2>
  12872. <p><a id="opIdget_list"></a></p>
  12873. <blockquote>
  12874. <p>Code samples</p>
  12875. </blockquote>
  12876. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12877. curl -X GET /api/boards/{board}/lists/{list} \
  12878. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12879. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12880. </code></pre>
  12881. <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>
  12882. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12883. </span></code></pre>
  12884. <pre class="highlight tab tab-javascript"><code>
  12885. <span class="hljs-keyword">const</span> headers = {
  12886. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12887. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12888. };
  12889. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12890. {
  12891. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12892. <span class="hljs-attr">headers</span>: headers
  12893. })
  12894. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12895. <span class="hljs-keyword">return</span> res.json();
  12896. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12897. <span class="hljs-built_in">console</span>.log(body);
  12898. });
  12899. </code></pre>
  12900. <pre class="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>);
  12901. <span class="hljs-keyword">const</span> 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. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12906. {
  12907. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12908. <span class="hljs-attr">headers</span>: headers
  12909. })
  12910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12911. <span class="hljs-keyword">return</span> res.json();
  12912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12913. <span class="hljs-built_in">console</span>.log(body);
  12914. });
  12915. </code></pre>
  12916. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12917. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12918. headers = {
  12919. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12920. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12921. }
  12922. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12923. <span class="hljs-symbol">params:</span> {
  12924. }, <span class="hljs-symbol">headers:</span> headers
  12925. p JSON.parse(result)
  12926. </code></pre>
  12927. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12928. headers = {
  12929. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12930. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12931. }
  12932. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  12933. <span class="hljs-built_in">print</span>(r.json())
  12934. </code></pre>
  12935. <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>);
  12936. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12937. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12938. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12939. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12940. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12941. String inputLine;
  12942. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12943. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12944. response.append(inputLine);
  12945. }
  12946. in.close();
  12947. System.out.println(response.toString());
  12948. </code></pre>
  12949. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12950. <span class="hljs-keyword">import</span> (
  12951. <span class="hljs-string">&quot;bytes&quot;</span>
  12952. <span class="hljs-string">&quot;net/http&quot;</span>
  12953. )
  12954. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12955. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12956. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12957. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12958. }
  12959. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12960. 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)
  12961. req.Header = headers
  12962. client := &amp;http.Client{}
  12963. resp, err := client.Do(req)
  12964. <span class="hljs-comment">// ...</span>
  12965. }
  12966. </code></pre>
  12967. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12968. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12969. );
  12970. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12971. <span class="hljs-comment">// Define array of request body.</span>
  12972. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12973. <span class="hljs-keyword">try</span> {
  12974. <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>(
  12975. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12976. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12977. )
  12978. );
  12979. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12980. }
  12981. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12982. <span class="hljs-comment">// handle exception or api errors.</span>
  12983. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12984. }
  12985. <span class="hljs-comment">// ...</span>
  12986. </code></pre>
  12987. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  12988. <p><em>Get a List attached to a board</em></p>
  12989. <h3 id="get_list-parameters">Parameters</h3>
  12990. <table>
  12991. <thead>
  12992. <tr>
  12993. <th>Name</th>
  12994. <th>In</th>
  12995. <th>Type</th>
  12996. <th>Required</th>
  12997. <th>Description</th>
  12998. </tr>
  12999. </thead>
  13000. <tbody>
  13001. <tr>
  13002. <td>board</td>
  13003. <td>path</td>
  13004. <td>string</td>
  13005. <td>true</td>
  13006. <td>the board ID</td>
  13007. </tr>
  13008. <tr>
  13009. <td>list</td>
  13010. <td>path</td>
  13011. <td>string</td>
  13012. <td>true</td>
  13013. <td>the List ID</td>
  13014. </tr>
  13015. </tbody>
  13016. </table>
  13017. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13018. <p><strong>board</strong>: the board ID</p>
  13019. <p><strong>list</strong>: the List ID</p>
  13020. <blockquote>
  13021. <p>Example responses</p>
  13022. </blockquote>
  13023. <blockquote>
  13024. <p>200 Response</p>
  13025. </blockquote>
  13026. <pre class="highlight tab tab-json"><code>{
  13027. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13028. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13029. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13030. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13031. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13032. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13033. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13034. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13035. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13036. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13037. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13038. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13039. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13040. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13041. },
  13042. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13043. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13044. }
  13045. </code></pre>
  13046. <h3 id="get_list-responses">Responses</h3>
  13047. <table>
  13048. <thead>
  13049. <tr>
  13050. <th>Status</th>
  13051. <th>Meaning</th>
  13052. <th>Description</th>
  13053. <th>Schema</th>
  13054. </tr>
  13055. </thead>
  13056. <tbody>
  13057. <tr>
  13058. <td>200</td>
  13059. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13060. <td>200 response</td>
  13061. <td><a href="#schemalists">Lists</a></td>
  13062. </tr>
  13063. </tbody>
  13064. </table>
  13065. <aside class="warning">
  13066. To perform this operation, you must be authenticated by means of one of the following methods:
  13067. UserSecurity
  13068. </aside>
  13069. <h2 id="delete_list">delete_list</h2>
  13070. <p><a id="opIddelete_list"></a></p>
  13071. <blockquote>
  13072. <p>Code samples</p>
  13073. </blockquote>
  13074. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13075. curl -X DELETE /api/boards/{board}/lists/{list} \
  13076. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13077. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13078. </code></pre>
  13079. <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>
  13080. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13081. </span></code></pre>
  13082. <pre class="highlight tab tab-javascript"><code>
  13083. <span class="hljs-keyword">const</span> headers = {
  13084. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13085. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13086. };
  13087. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13088. {
  13089. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13090. <span class="hljs-attr">headers</span>: headers
  13091. })
  13092. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13093. <span class="hljs-keyword">return</span> res.json();
  13094. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13095. <span class="hljs-built_in">console</span>.log(body);
  13096. });
  13097. </code></pre>
  13098. <pre class="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>);
  13099. <span class="hljs-keyword">const</span> headers = {
  13100. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13101. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13102. };
  13103. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13104. {
  13105. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13106. <span class="hljs-attr">headers</span>: headers
  13107. })
  13108. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13109. <span class="hljs-keyword">return</span> res.json();
  13110. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13111. <span class="hljs-built_in">console</span>.log(body);
  13112. });
  13113. </code></pre>
  13114. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13115. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13116. headers = {
  13117. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13118. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13119. }
  13120. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13121. <span class="hljs-symbol">params:</span> {
  13122. }, <span class="hljs-symbol">headers:</span> headers
  13123. p JSON.parse(result)
  13124. </code></pre>
  13125. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13126. headers = {
  13127. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13128. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13129. }
  13130. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13131. <span class="hljs-built_in">print</span>(r.json())
  13132. </code></pre>
  13133. <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>);
  13134. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13135. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13136. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13137. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13138. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13139. String inputLine;
  13140. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13141. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13142. response.append(inputLine);
  13143. }
  13144. in.close();
  13145. System.out.println(response.toString());
  13146. </code></pre>
  13147. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13148. <span class="hljs-keyword">import</span> (
  13149. <span class="hljs-string">&quot;bytes&quot;</span>
  13150. <span class="hljs-string">&quot;net/http&quot;</span>
  13151. )
  13152. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13153. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13154. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13155. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13156. }
  13157. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13158. 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)
  13159. req.Header = headers
  13160. client := &amp;http.Client{}
  13161. resp, err := client.Do(req)
  13162. <span class="hljs-comment">// ...</span>
  13163. }
  13164. </code></pre>
  13165. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13166. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13167. );
  13168. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13169. <span class="hljs-comment">// Define array of request body.</span>
  13170. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13171. <span class="hljs-keyword">try</span> {
  13172. <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>(
  13173. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13174. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13175. )
  13176. );
  13177. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13178. }
  13179. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13180. <span class="hljs-comment">// handle exception or api errors.</span>
  13181. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13182. }
  13183. <span class="hljs-comment">// ...</span>
  13184. </code></pre>
  13185. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13186. <p><em>Delete a List</em></p>
  13187. <p>This <strong>deletes</strong> a list from a board.
  13188. The list is not put in the recycle bin.</p>
  13189. <h3 id="delete_list-parameters">Parameters</h3>
  13190. <table>
  13191. <thead>
  13192. <tr>
  13193. <th>Name</th>
  13194. <th>In</th>
  13195. <th>Type</th>
  13196. <th>Required</th>
  13197. <th>Description</th>
  13198. </tr>
  13199. </thead>
  13200. <tbody>
  13201. <tr>
  13202. <td>board</td>
  13203. <td>path</td>
  13204. <td>string</td>
  13205. <td>true</td>
  13206. <td>the board ID</td>
  13207. </tr>
  13208. <tr>
  13209. <td>list</td>
  13210. <td>path</td>
  13211. <td>string</td>
  13212. <td>true</td>
  13213. <td>the ID of the list to remove</td>
  13214. </tr>
  13215. </tbody>
  13216. </table>
  13217. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13218. <p><strong>board</strong>: the board ID</p>
  13219. <p><strong>list</strong>: the ID of the list to remove</p>
  13220. <blockquote>
  13221. <p>Example responses</p>
  13222. </blockquote>
  13223. <blockquote>
  13224. <p>200 Response</p>
  13225. </blockquote>
  13226. <pre class="highlight tab tab-json"><code>{
  13227. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13228. }
  13229. </code></pre>
  13230. <h3 id="delete_list-responses">Responses</h3>
  13231. <table>
  13232. <thead>
  13233. <tr>
  13234. <th>Status</th>
  13235. <th>Meaning</th>
  13236. <th>Description</th>
  13237. <th>Schema</th>
  13238. </tr>
  13239. </thead>
  13240. <tbody>
  13241. <tr>
  13242. <td>200</td>
  13243. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13244. <td>200 response</td>
  13245. <td>Inline</td>
  13246. </tr>
  13247. </tbody>
  13248. </table>
  13249. <h3 id="delete_list-responseschema">Response Schema</h3>
  13250. <p>Status Code <strong>200</strong></p>
  13251. <table>
  13252. <thead>
  13253. <tr>
  13254. <th>Name</th>
  13255. <th>Type</th>
  13256. <th>Required</th>
  13257. <th>Restrictions</th>
  13258. <th>Description</th>
  13259. </tr>
  13260. </thead>
  13261. <tbody>
  13262. <tr>
  13263. <td>» _id</td>
  13264. <td>string</td>
  13265. <td>false</td>
  13266. <td>none</td>
  13267. <td>none</td>
  13268. </tr>
  13269. </tbody>
  13270. </table>
  13271. <aside class="warning">
  13272. To perform this operation, you must be authenticated by means of one of the following methods:
  13273. UserSecurity
  13274. </aside>
  13275. <h1 id="wekan-rest-api-users">Users</h1>
  13276. <h2 id="add_board_member">add_board_member</h2>
  13277. <p><a id="opIdadd_board_member"></a></p>
  13278. <blockquote>
  13279. <p>Code samples</p>
  13280. </blockquote>
  13281. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13282. curl -X POST /api/boards/{board}/members/{user}/add \
  13283. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13284. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13285. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13286. </code></pre>
  13287. <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>
  13288. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13289. Accept: application/json
  13290. </span></code></pre>
  13291. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13292. &quot;action&quot;: &quot;string&quot;,
  13293. &quot;isAdmin&quot;: true,
  13294. &quot;isNoComments&quot;: true,
  13295. &quot;isCommentOnly&quot;: true
  13296. }&#x27;</span>;
  13297. <span class="hljs-keyword">const</span> headers = {
  13298. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13299. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13300. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13301. };
  13302. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13303. {
  13304. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13305. <span class="hljs-attr">body</span>: inputBody,
  13306. <span class="hljs-attr">headers</span>: headers
  13307. })
  13308. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13309. <span class="hljs-keyword">return</span> res.json();
  13310. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13311. <span class="hljs-built_in">console</span>.log(body);
  13312. });
  13313. </code></pre>
  13314. <pre class="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>);
  13315. <span class="hljs-keyword">const</span> inputBody = {
  13316. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13317. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13318. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13319. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13320. };
  13321. <span class="hljs-keyword">const</span> headers = {
  13322. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13323. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13324. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13325. };
  13326. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13327. {
  13328. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13329. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13330. <span class="hljs-attr">headers</span>: headers
  13331. })
  13332. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13333. <span class="hljs-keyword">return</span> res.json();
  13334. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13335. <span class="hljs-built_in">console</span>.log(body);
  13336. });
  13337. </code></pre>
  13338. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13339. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13340. headers = {
  13341. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13342. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13343. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13344. }
  13345. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13346. <span class="hljs-symbol">params:</span> {
  13347. }, <span class="hljs-symbol">headers:</span> headers
  13348. p JSON.parse(result)
  13349. </code></pre>
  13350. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13351. headers = {
  13352. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13353. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13354. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13355. }
  13356. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13357. <span class="hljs-built_in">print</span>(r.json())
  13358. </code></pre>
  13359. <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>);
  13360. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13361. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13362. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13363. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13364. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13365. String inputLine;
  13366. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13367. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13368. response.append(inputLine);
  13369. }
  13370. in.close();
  13371. System.out.println(response.toString());
  13372. </code></pre>
  13373. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13374. <span class="hljs-keyword">import</span> (
  13375. <span class="hljs-string">&quot;bytes&quot;</span>
  13376. <span class="hljs-string">&quot;net/http&quot;</span>
  13377. )
  13378. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13379. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13380. <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>},
  13381. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13382. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13383. }
  13384. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13385. 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)
  13386. req.Header = headers
  13387. client := &amp;http.Client{}
  13388. resp, err := client.Do(req)
  13389. <span class="hljs-comment">// ...</span>
  13390. }
  13391. </code></pre>
  13392. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13393. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13394. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13395. );
  13396. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13397. <span class="hljs-comment">// Define array of request body.</span>
  13398. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13399. <span class="hljs-keyword">try</span> {
  13400. <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>(
  13401. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13402. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13403. )
  13404. );
  13405. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13406. }
  13407. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13408. <span class="hljs-comment">// handle exception or api errors.</span>
  13409. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13410. }
  13411. <span class="hljs-comment">// ...</span>
  13412. </code></pre>
  13413. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13414. <p><em>Add New Board Member with Role</em></p>
  13415. <p>Only the admin user (the first user) can call the REST API.</p>
  13416. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13417. to later change the permissions.</p>
  13418. <blockquote>
  13419. <p>Body parameter</p>
  13420. </blockquote>
  13421. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13422. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13423. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13424. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13425. </code></pre>
  13426. <h3 id="add_board_member-parameters">Parameters</h3>
  13427. <table>
  13428. <thead>
  13429. <tr>
  13430. <th>Name</th>
  13431. <th>In</th>
  13432. <th>Type</th>
  13433. <th>Required</th>
  13434. <th>Description</th>
  13435. </tr>
  13436. </thead>
  13437. <tbody>
  13438. <tr>
  13439. <td>board</td>
  13440. <td>path</td>
  13441. <td>string</td>
  13442. <td>true</td>
  13443. <td>the board ID</td>
  13444. </tr>
  13445. <tr>
  13446. <td>user</td>
  13447. <td>path</td>
  13448. <td>string</td>
  13449. <td>true</td>
  13450. <td>the user ID</td>
  13451. </tr>
  13452. <tr>
  13453. <td>body</td>
  13454. <td>body</td>
  13455. <td>object</td>
  13456. <td>true</td>
  13457. <td>none</td>
  13458. </tr>
  13459. <tr>
  13460. <td>» action</td>
  13461. <td>body</td>
  13462. <td>string</td>
  13463. <td>true</td>
  13464. <td>the action value</td>
  13465. </tr>
  13466. <tr>
  13467. <td>» isAdmin</td>
  13468. <td>body</td>
  13469. <td>boolean</td>
  13470. <td>true</td>
  13471. <td>is the user an admin of the board</td>
  13472. </tr>
  13473. <tr>
  13474. <td>» isNoComments</td>
  13475. <td>body</td>
  13476. <td>boolean</td>
  13477. <td>true</td>
  13478. <td>disable comments</td>
  13479. </tr>
  13480. <tr>
  13481. <td>» isCommentOnly</td>
  13482. <td>body</td>
  13483. <td>boolean</td>
  13484. <td>true</td>
  13485. <td>only enable comments</td>
  13486. </tr>
  13487. </tbody>
  13488. </table>
  13489. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13490. <p><strong>board</strong>: the board ID</p>
  13491. <p><strong>user</strong>: the user ID</p>
  13492. <blockquote>
  13493. <p>Example responses</p>
  13494. </blockquote>
  13495. <blockquote>
  13496. <p>200 Response</p>
  13497. </blockquote>
  13498. <pre class="highlight tab tab-json"><code>{
  13499. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13500. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13501. }
  13502. </code></pre>
  13503. <h3 id="add_board_member-responses">Responses</h3>
  13504. <table>
  13505. <thead>
  13506. <tr>
  13507. <th>Status</th>
  13508. <th>Meaning</th>
  13509. <th>Description</th>
  13510. <th>Schema</th>
  13511. </tr>
  13512. </thead>
  13513. <tbody>
  13514. <tr>
  13515. <td>200</td>
  13516. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13517. <td>200 response</td>
  13518. <td>Inline</td>
  13519. </tr>
  13520. </tbody>
  13521. </table>
  13522. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13523. <p>Status Code <strong>200</strong></p>
  13524. <table>
  13525. <thead>
  13526. <tr>
  13527. <th>Name</th>
  13528. <th>Type</th>
  13529. <th>Required</th>
  13530. <th>Restrictions</th>
  13531. <th>Description</th>
  13532. </tr>
  13533. </thead>
  13534. <tbody>
  13535. <tr>
  13536. <td>» _id</td>
  13537. <td>string</td>
  13538. <td>false</td>
  13539. <td>none</td>
  13540. <td>none</td>
  13541. </tr>
  13542. <tr>
  13543. <td>» title</td>
  13544. <td>string</td>
  13545. <td>false</td>
  13546. <td>none</td>
  13547. <td>none</td>
  13548. </tr>
  13549. </tbody>
  13550. </table>
  13551. <aside class="warning">
  13552. To perform this operation, you must be authenticated by means of one of the following methods:
  13553. UserSecurity
  13554. </aside>
  13555. <h2 id="remove_board_member">remove_board_member</h2>
  13556. <p><a id="opIdremove_board_member"></a></p>
  13557. <blockquote>
  13558. <p>Code samples</p>
  13559. </blockquote>
  13560. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13561. curl -X POST /api/boards/{board}/members/{user}/remove \
  13562. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13563. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13564. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13565. </code></pre>
  13566. <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>
  13567. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13568. Accept: application/json
  13569. </span></code></pre>
  13570. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13571. &quot;action&quot;: &quot;string&quot;
  13572. }&#x27;</span>;
  13573. <span class="hljs-keyword">const</span> headers = {
  13574. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13575. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13576. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13577. };
  13578. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13579. {
  13580. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13581. <span class="hljs-attr">body</span>: inputBody,
  13582. <span class="hljs-attr">headers</span>: headers
  13583. })
  13584. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13585. <span class="hljs-keyword">return</span> res.json();
  13586. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13587. <span class="hljs-built_in">console</span>.log(body);
  13588. });
  13589. </code></pre>
  13590. <pre class="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>);
  13591. <span class="hljs-keyword">const</span> inputBody = {
  13592. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13593. };
  13594. <span class="hljs-keyword">const</span> headers = {
  13595. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13596. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13597. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13598. };
  13599. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13600. {
  13601. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13602. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13603. <span class="hljs-attr">headers</span>: headers
  13604. })
  13605. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13606. <span class="hljs-keyword">return</span> res.json();
  13607. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13608. <span class="hljs-built_in">console</span>.log(body);
  13609. });
  13610. </code></pre>
  13611. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13612. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13613. headers = {
  13614. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13615. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13616. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13617. }
  13618. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13619. <span class="hljs-symbol">params:</span> {
  13620. }, <span class="hljs-symbol">headers:</span> headers
  13621. p JSON.parse(result)
  13622. </code></pre>
  13623. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13624. headers = {
  13625. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13626. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13627. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13628. }
  13629. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  13630. <span class="hljs-built_in">print</span>(r.json())
  13631. </code></pre>
  13632. <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>);
  13633. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13634. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13635. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13636. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13637. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13638. String inputLine;
  13639. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13640. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13641. response.append(inputLine);
  13642. }
  13643. in.close();
  13644. System.out.println(response.toString());
  13645. </code></pre>
  13646. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13647. <span class="hljs-keyword">import</span> (
  13648. <span class="hljs-string">&quot;bytes&quot;</span>
  13649. <span class="hljs-string">&quot;net/http&quot;</span>
  13650. )
  13651. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13652. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13653. <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>},
  13654. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13655. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13656. }
  13657. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13658. 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)
  13659. req.Header = headers
  13660. client := &amp;http.Client{}
  13661. resp, err := client.Do(req)
  13662. <span class="hljs-comment">// ...</span>
  13663. }
  13664. </code></pre>
  13665. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13666. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13667. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13668. );
  13669. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13670. <span class="hljs-comment">// Define array of request body.</span>
  13671. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13672. <span class="hljs-keyword">try</span> {
  13673. <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>(
  13674. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13675. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13676. )
  13677. );
  13678. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13679. }
  13680. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13681. <span class="hljs-comment">// handle exception or api errors.</span>
  13682. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13683. }
  13684. <span class="hljs-comment">// ...</span>
  13685. </code></pre>
  13686. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  13687. <p><em>Remove Member from Board</em></p>
  13688. <p>Only the admin user (the first user) can call the REST API.</p>
  13689. <blockquote>
  13690. <p>Body parameter</p>
  13691. </blockquote>
  13692. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13693. </code></pre>
  13694. <h3 id="remove_board_member-parameters">Parameters</h3>
  13695. <table>
  13696. <thead>
  13697. <tr>
  13698. <th>Name</th>
  13699. <th>In</th>
  13700. <th>Type</th>
  13701. <th>Required</th>
  13702. <th>Description</th>
  13703. </tr>
  13704. </thead>
  13705. <tbody>
  13706. <tr>
  13707. <td>board</td>
  13708. <td>path</td>
  13709. <td>string</td>
  13710. <td>true</td>
  13711. <td>the board ID</td>
  13712. </tr>
  13713. <tr>
  13714. <td>user</td>
  13715. <td>path</td>
  13716. <td>string</td>
  13717. <td>true</td>
  13718. <td>the user ID</td>
  13719. </tr>
  13720. <tr>
  13721. <td>body</td>
  13722. <td>body</td>
  13723. <td>object</td>
  13724. <td>true</td>
  13725. <td>none</td>
  13726. </tr>
  13727. <tr>
  13728. <td>» action</td>
  13729. <td>body</td>
  13730. <td>string</td>
  13731. <td>true</td>
  13732. <td>the action (needs to be <code>remove</code>)</td>
  13733. </tr>
  13734. </tbody>
  13735. </table>
  13736. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13737. <p><strong>board</strong>: the board ID</p>
  13738. <p><strong>user</strong>: the user ID</p>
  13739. <blockquote>
  13740. <p>Example responses</p>
  13741. </blockquote>
  13742. <blockquote>
  13743. <p>200 Response</p>
  13744. </blockquote>
  13745. <pre class="highlight tab tab-json"><code>{
  13746. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13747. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13748. }
  13749. </code></pre>
  13750. <h3 id="remove_board_member-responses">Responses</h3>
  13751. <table>
  13752. <thead>
  13753. <tr>
  13754. <th>Status</th>
  13755. <th>Meaning</th>
  13756. <th>Description</th>
  13757. <th>Schema</th>
  13758. </tr>
  13759. </thead>
  13760. <tbody>
  13761. <tr>
  13762. <td>200</td>
  13763. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13764. <td>200 response</td>
  13765. <td>Inline</td>
  13766. </tr>
  13767. </tbody>
  13768. </table>
  13769. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  13770. <p>Status Code <strong>200</strong></p>
  13771. <table>
  13772. <thead>
  13773. <tr>
  13774. <th>Name</th>
  13775. <th>Type</th>
  13776. <th>Required</th>
  13777. <th>Restrictions</th>
  13778. <th>Description</th>
  13779. </tr>
  13780. </thead>
  13781. <tbody>
  13782. <tr>
  13783. <td>» _id</td>
  13784. <td>string</td>
  13785. <td>false</td>
  13786. <td>none</td>
  13787. <td>none</td>
  13788. </tr>
  13789. <tr>
  13790. <td>» title</td>
  13791. <td>string</td>
  13792. <td>false</td>
  13793. <td>none</td>
  13794. <td>none</td>
  13795. </tr>
  13796. </tbody>
  13797. </table>
  13798. <aside class="warning">
  13799. To perform this operation, you must be authenticated by means of one of the following methods:
  13800. UserSecurity
  13801. </aside>
  13802. <h2 id="create_user_token">create_user_token</h2>
  13803. <p><a id="opIdcreate_user_token"></a></p>
  13804. <blockquote>
  13805. <p>Code samples</p>
  13806. </blockquote>
  13807. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13808. curl -X POST /api/createtoken/{user} \
  13809. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13810. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13811. </code></pre>
  13812. <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>
  13813. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13814. </span></code></pre>
  13815. <pre class="highlight tab tab-javascript"><code>
  13816. <span class="hljs-keyword">const</span> headers = {
  13817. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13818. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13819. };
  13820. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13821. {
  13822. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13823. <span class="hljs-attr">headers</span>: headers
  13824. })
  13825. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13826. <span class="hljs-keyword">return</span> res.json();
  13827. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13828. <span class="hljs-built_in">console</span>.log(body);
  13829. });
  13830. </code></pre>
  13831. <pre class="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>);
  13832. <span class="hljs-keyword">const</span> headers = {
  13833. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13834. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13835. };
  13836. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13837. {
  13838. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13839. <span class="hljs-attr">headers</span>: headers
  13840. })
  13841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13842. <span class="hljs-keyword">return</span> res.json();
  13843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13844. <span class="hljs-built_in">console</span>.log(body);
  13845. });
  13846. </code></pre>
  13847. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13848. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13849. headers = {
  13850. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13851. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13852. }
  13853. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13854. <span class="hljs-symbol">params:</span> {
  13855. }, <span class="hljs-symbol">headers:</span> headers
  13856. p JSON.parse(result)
  13857. </code></pre>
  13858. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13859. headers = {
  13860. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13861. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13862. }
  13863. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  13864. <span class="hljs-built_in">print</span>(r.json())
  13865. </code></pre>
  13866. <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>);
  13867. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13868. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13869. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13870. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13871. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13872. String inputLine;
  13873. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13874. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13875. response.append(inputLine);
  13876. }
  13877. in.close();
  13878. System.out.println(response.toString());
  13879. </code></pre>
  13880. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13881. <span class="hljs-keyword">import</span> (
  13882. <span class="hljs-string">&quot;bytes&quot;</span>
  13883. <span class="hljs-string">&quot;net/http&quot;</span>
  13884. )
  13885. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13886. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13887. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13888. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13889. }
  13890. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13891. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  13892. req.Header = headers
  13893. client := &amp;http.Client{}
  13894. resp, err := client.Do(req)
  13895. <span class="hljs-comment">// ...</span>
  13896. }
  13897. </code></pre>
  13898. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13899. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13900. );
  13901. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13902. <span class="hljs-comment">// Define array of request body.</span>
  13903. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13904. <span class="hljs-keyword">try</span> {
  13905. <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>(
  13906. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13907. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13908. )
  13909. );
  13910. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13911. }
  13912. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13913. <span class="hljs-comment">// handle exception or api errors.</span>
  13914. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13915. }
  13916. <span class="hljs-comment">// ...</span>
  13917. </code></pre>
  13918. <p><code>POST /api/createtoken/{user}</code></p>
  13919. <p><em>Create a user token</em></p>
  13920. <p>Only the admin user (the first user) can call the REST API.</p>
  13921. <h3 id="create_user_token-parameters">Parameters</h3>
  13922. <table>
  13923. <thead>
  13924. <tr>
  13925. <th>Name</th>
  13926. <th>In</th>
  13927. <th>Type</th>
  13928. <th>Required</th>
  13929. <th>Description</th>
  13930. </tr>
  13931. </thead>
  13932. <tbody>
  13933. <tr>
  13934. <td>user</td>
  13935. <td>path</td>
  13936. <td>string</td>
  13937. <td>true</td>
  13938. <td>the ID of the user to create token for.</td>
  13939. </tr>
  13940. </tbody>
  13941. </table>
  13942. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13943. <p><strong>user</strong>: the ID of the user to create token for.</p>
  13944. <blockquote>
  13945. <p>Example responses</p>
  13946. </blockquote>
  13947. <blockquote>
  13948. <p>200 Response</p>
  13949. </blockquote>
  13950. <pre class="highlight tab tab-json"><code>{
  13951. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13952. }
  13953. </code></pre>
  13954. <h3 id="create_user_token-responses">Responses</h3>
  13955. <table>
  13956. <thead>
  13957. <tr>
  13958. <th>Status</th>
  13959. <th>Meaning</th>
  13960. <th>Description</th>
  13961. <th>Schema</th>
  13962. </tr>
  13963. </thead>
  13964. <tbody>
  13965. <tr>
  13966. <td>200</td>
  13967. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13968. <td>200 response</td>
  13969. <td>Inline</td>
  13970. </tr>
  13971. </tbody>
  13972. </table>
  13973. <h3 id="create_user_token-responseschema">Response Schema</h3>
  13974. <p>Status Code <strong>200</strong></p>
  13975. <table>
  13976. <thead>
  13977. <tr>
  13978. <th>Name</th>
  13979. <th>Type</th>
  13980. <th>Required</th>
  13981. <th>Restrictions</th>
  13982. <th>Description</th>
  13983. </tr>
  13984. </thead>
  13985. <tbody>
  13986. <tr>
  13987. <td>» _id</td>
  13988. <td>string</td>
  13989. <td>false</td>
  13990. <td>none</td>
  13991. <td>none</td>
  13992. </tr>
  13993. </tbody>
  13994. </table>
  13995. <aside class="warning">
  13996. To perform this operation, you must be authenticated by means of one of the following methods:
  13997. UserSecurity
  13998. </aside>
  13999. <h2 id="get_current_user">get_current_user</h2>
  14000. <p><a id="opIdget_current_user"></a></p>
  14001. <blockquote>
  14002. <p>Code samples</p>
  14003. </blockquote>
  14004. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14005. curl -X GET /api/user \
  14006. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14007. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14008. </code></pre>
  14009. <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>
  14010. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14011. </span></code></pre>
  14012. <pre class="highlight tab tab-javascript"><code>
  14013. <span class="hljs-keyword">const</span> headers = {
  14014. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14015. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14016. };
  14017. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14018. {
  14019. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14020. <span class="hljs-attr">headers</span>: headers
  14021. })
  14022. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14023. <span class="hljs-keyword">return</span> res.json();
  14024. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14025. <span class="hljs-built_in">console</span>.log(body);
  14026. });
  14027. </code></pre>
  14028. <pre class="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>);
  14029. <span class="hljs-keyword">const</span> headers = {
  14030. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14031. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14032. };
  14033. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14034. {
  14035. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14036. <span class="hljs-attr">headers</span>: headers
  14037. })
  14038. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14039. <span class="hljs-keyword">return</span> res.json();
  14040. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14041. <span class="hljs-built_in">console</span>.log(body);
  14042. });
  14043. </code></pre>
  14044. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14045. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14046. headers = {
  14047. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14048. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14049. }
  14050. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14051. <span class="hljs-symbol">params:</span> {
  14052. }, <span class="hljs-symbol">headers:</span> headers
  14053. p JSON.parse(result)
  14054. </code></pre>
  14055. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14056. headers = {
  14057. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14058. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14059. }
  14060. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14061. <span class="hljs-built_in">print</span>(r.json())
  14062. </code></pre>
  14063. <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>);
  14064. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14065. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14066. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14067. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14068. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14069. String inputLine;
  14070. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14071. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14072. response.append(inputLine);
  14073. }
  14074. in.close();
  14075. System.out.println(response.toString());
  14076. </code></pre>
  14077. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14078. <span class="hljs-keyword">import</span> (
  14079. <span class="hljs-string">&quot;bytes&quot;</span>
  14080. <span class="hljs-string">&quot;net/http&quot;</span>
  14081. )
  14082. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14083. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14084. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14085. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14086. }
  14087. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14088. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14089. req.Header = headers
  14090. client := &amp;http.Client{}
  14091. resp, err := client.Do(req)
  14092. <span class="hljs-comment">// ...</span>
  14093. }
  14094. </code></pre>
  14095. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14096. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14097. );
  14098. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14099. <span class="hljs-comment">// Define array of request body.</span>
  14100. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14101. <span class="hljs-keyword">try</span> {
  14102. <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>(
  14103. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14104. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14105. )
  14106. );
  14107. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14108. }
  14109. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14110. <span class="hljs-comment">// handle exception or api errors.</span>
  14111. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14112. }
  14113. <span class="hljs-comment">// ...</span>
  14114. </code></pre>
  14115. <p><code>GET /api/user</code></p>
  14116. <p><em>returns the current user</em></p>
  14117. <blockquote>
  14118. <p>Example responses</p>
  14119. </blockquote>
  14120. <blockquote>
  14121. <p>200 Response</p>
  14122. </blockquote>
  14123. <pre class="highlight tab tab-json"><code>{
  14124. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14125. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14126. {
  14127. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14128. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14129. }
  14130. ],
  14131. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14132. {
  14133. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14134. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14135. }
  14136. ],
  14137. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14138. {
  14139. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14140. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14141. }
  14142. ],
  14143. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14144. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14145. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14146. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14147. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14148. <span class="hljs-string">&quot;string&quot;</span>
  14149. ],
  14150. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14151. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14152. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14153. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14154. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14155. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14156. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14157. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14158. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14159. <span class="hljs-string">&quot;string&quot;</span>
  14160. ],
  14161. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14162. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14163. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14164. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14165. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14166. {
  14167. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14168. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14169. }
  14170. ],
  14171. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14172. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14173. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14174. <span class="hljs-string">&quot;string&quot;</span>
  14175. ],
  14176. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14177. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14178. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14179. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14180. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14181. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14182. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14183. },
  14184. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14185. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14186. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14187. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14188. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14189. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14190. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14191. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14192. },
  14193. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14194. <span class="hljs-string">&quot;string&quot;</span>
  14195. ]
  14196. }
  14197. </code></pre>
  14198. <h3 id="get_current_user-responses">Responses</h3>
  14199. <table>
  14200. <thead>
  14201. <tr>
  14202. <th>Status</th>
  14203. <th>Meaning</th>
  14204. <th>Description</th>
  14205. <th>Schema</th>
  14206. </tr>
  14207. </thead>
  14208. <tbody>
  14209. <tr>
  14210. <td>200</td>
  14211. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14212. <td>200 response</td>
  14213. <td><a href="#schemausers">Users</a></td>
  14214. </tr>
  14215. </tbody>
  14216. </table>
  14217. <aside class="warning">
  14218. To perform this operation, you must be authenticated by means of one of the following methods:
  14219. UserSecurity
  14220. </aside>
  14221. <h2 id="get_all_users">get_all_users</h2>
  14222. <p><a id="opIdget_all_users"></a></p>
  14223. <blockquote>
  14224. <p>Code samples</p>
  14225. </blockquote>
  14226. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14227. curl -X GET /api/users \
  14228. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14229. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14230. </code></pre>
  14231. <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>
  14232. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14233. </span></code></pre>
  14234. <pre class="highlight tab tab-javascript"><code>
  14235. <span class="hljs-keyword">const</span> headers = {
  14236. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14237. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14238. };
  14239. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14240. {
  14241. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14242. <span class="hljs-attr">headers</span>: headers
  14243. })
  14244. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14245. <span class="hljs-keyword">return</span> res.json();
  14246. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14247. <span class="hljs-built_in">console</span>.log(body);
  14248. });
  14249. </code></pre>
  14250. <pre class="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>);
  14251. <span class="hljs-keyword">const</span> headers = {
  14252. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14253. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14254. };
  14255. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14256. {
  14257. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14258. <span class="hljs-attr">headers</span>: headers
  14259. })
  14260. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14261. <span class="hljs-keyword">return</span> res.json();
  14262. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14263. <span class="hljs-built_in">console</span>.log(body);
  14264. });
  14265. </code></pre>
  14266. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14267. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14268. headers = {
  14269. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14270. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14271. }
  14272. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14273. <span class="hljs-symbol">params:</span> {
  14274. }, <span class="hljs-symbol">headers:</span> headers
  14275. p JSON.parse(result)
  14276. </code></pre>
  14277. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14278. headers = {
  14279. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14280. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14281. }
  14282. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14283. <span class="hljs-built_in">print</span>(r.json())
  14284. </code></pre>
  14285. <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>);
  14286. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14287. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14288. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14289. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14290. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14291. String inputLine;
  14292. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14293. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14294. response.append(inputLine);
  14295. }
  14296. in.close();
  14297. System.out.println(response.toString());
  14298. </code></pre>
  14299. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14300. <span class="hljs-keyword">import</span> (
  14301. <span class="hljs-string">&quot;bytes&quot;</span>
  14302. <span class="hljs-string">&quot;net/http&quot;</span>
  14303. )
  14304. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14305. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14306. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14307. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14308. }
  14309. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14310. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14311. req.Header = headers
  14312. client := &amp;http.Client{}
  14313. resp, err := client.Do(req)
  14314. <span class="hljs-comment">// ...</span>
  14315. }
  14316. </code></pre>
  14317. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14318. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14319. );
  14320. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14321. <span class="hljs-comment">// Define array of request body.</span>
  14322. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14323. <span class="hljs-keyword">try</span> {
  14324. <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>(
  14325. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14326. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14327. )
  14328. );
  14329. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14330. }
  14331. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14332. <span class="hljs-comment">// handle exception or api errors.</span>
  14333. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14334. }
  14335. <span class="hljs-comment">// ...</span>
  14336. </code></pre>
  14337. <p><code>GET /api/users</code></p>
  14338. <p><em>return all the users</em></p>
  14339. <p>Only the admin user (the first user) can call the REST API.</p>
  14340. <blockquote>
  14341. <p>Example responses</p>
  14342. </blockquote>
  14343. <blockquote>
  14344. <p>200 Response</p>
  14345. </blockquote>
  14346. <pre class="highlight tab tab-json"><code>[
  14347. {
  14348. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14349. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14350. }
  14351. ]
  14352. </code></pre>
  14353. <h3 id="get_all_users-responses">Responses</h3>
  14354. <table>
  14355. <thead>
  14356. <tr>
  14357. <th>Status</th>
  14358. <th>Meaning</th>
  14359. <th>Description</th>
  14360. <th>Schema</th>
  14361. </tr>
  14362. </thead>
  14363. <tbody>
  14364. <tr>
  14365. <td>200</td>
  14366. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14367. <td>200 response</td>
  14368. <td>Inline</td>
  14369. </tr>
  14370. </tbody>
  14371. </table>
  14372. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14373. <p>Status Code <strong>200</strong></p>
  14374. <table>
  14375. <thead>
  14376. <tr>
  14377. <th>Name</th>
  14378. <th>Type</th>
  14379. <th>Required</th>
  14380. <th>Restrictions</th>
  14381. <th>Description</th>
  14382. </tr>
  14383. </thead>
  14384. <tbody>
  14385. <tr>
  14386. <td>» _id</td>
  14387. <td>string</td>
  14388. <td>false</td>
  14389. <td>none</td>
  14390. <td>none</td>
  14391. </tr>
  14392. <tr>
  14393. <td>» username</td>
  14394. <td>string</td>
  14395. <td>false</td>
  14396. <td>none</td>
  14397. <td>none</td>
  14398. </tr>
  14399. </tbody>
  14400. </table>
  14401. <aside class="warning">
  14402. To perform this operation, you must be authenticated by means of one of the following methods:
  14403. UserSecurity
  14404. </aside>
  14405. <h2 id="new_user">new_user</h2>
  14406. <p><a id="opIdnew_user"></a></p>
  14407. <blockquote>
  14408. <p>Code samples</p>
  14409. </blockquote>
  14410. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14411. curl -X POST /api/users \
  14412. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14413. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14414. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14415. </code></pre>
  14416. <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>
  14417. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14418. Accept: application/json
  14419. </span></code></pre>
  14420. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14421. &quot;username&quot;: &quot;string&quot;,
  14422. &quot;email&quot;: &quot;string&quot;,
  14423. &quot;password&quot;: &quot;string&quot;
  14424. }&#x27;</span>;
  14425. <span class="hljs-keyword">const</span> headers = {
  14426. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14427. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14428. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14429. };
  14430. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14431. {
  14432. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14433. <span class="hljs-attr">body</span>: inputBody,
  14434. <span class="hljs-attr">headers</span>: headers
  14435. })
  14436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14437. <span class="hljs-keyword">return</span> res.json();
  14438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14439. <span class="hljs-built_in">console</span>.log(body);
  14440. });
  14441. </code></pre>
  14442. <pre class="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>);
  14443. <span class="hljs-keyword">const</span> inputBody = {
  14444. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14445. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14446. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14447. };
  14448. <span class="hljs-keyword">const</span> headers = {
  14449. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14450. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14451. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14452. };
  14453. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14454. {
  14455. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14456. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14457. <span class="hljs-attr">headers</span>: headers
  14458. })
  14459. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14460. <span class="hljs-keyword">return</span> res.json();
  14461. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14462. <span class="hljs-built_in">console</span>.log(body);
  14463. });
  14464. </code></pre>
  14465. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14466. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14467. headers = {
  14468. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14469. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14470. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14471. }
  14472. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14473. <span class="hljs-symbol">params:</span> {
  14474. }, <span class="hljs-symbol">headers:</span> headers
  14475. p JSON.parse(result)
  14476. </code></pre>
  14477. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14478. headers = {
  14479. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14480. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14481. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14482. }
  14483. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14484. <span class="hljs-built_in">print</span>(r.json())
  14485. </code></pre>
  14486. <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>);
  14487. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14488. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14489. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14490. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14491. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14492. String inputLine;
  14493. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14494. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14495. response.append(inputLine);
  14496. }
  14497. in.close();
  14498. System.out.println(response.toString());
  14499. </code></pre>
  14500. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14501. <span class="hljs-keyword">import</span> (
  14502. <span class="hljs-string">&quot;bytes&quot;</span>
  14503. <span class="hljs-string">&quot;net/http&quot;</span>
  14504. )
  14505. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14506. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14507. <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>},
  14508. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14509. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14510. }
  14511. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14512. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14513. req.Header = headers
  14514. client := &amp;http.Client{}
  14515. resp, err := client.Do(req)
  14516. <span class="hljs-comment">// ...</span>
  14517. }
  14518. </code></pre>
  14519. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14520. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14521. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14522. );
  14523. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14524. <span class="hljs-comment">// Define array of request body.</span>
  14525. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14526. <span class="hljs-keyword">try</span> {
  14527. <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>(
  14528. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14529. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14530. )
  14531. );
  14532. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14533. }
  14534. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14535. <span class="hljs-comment">// handle exception or api errors.</span>
  14536. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14537. }
  14538. <span class="hljs-comment">// ...</span>
  14539. </code></pre>
  14540. <p><code>POST /api/users</code></p>
  14541. <p><em>Create a new user</em></p>
  14542. <p>Only the admin user (the first user) can call the REST API.</p>
  14543. <blockquote>
  14544. <p>Body parameter</p>
  14545. </blockquote>
  14546. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14547. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14548. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14549. </code></pre>
  14550. <h3 id="new_user-parameters">Parameters</h3>
  14551. <table>
  14552. <thead>
  14553. <tr>
  14554. <th>Name</th>
  14555. <th>In</th>
  14556. <th>Type</th>
  14557. <th>Required</th>
  14558. <th>Description</th>
  14559. </tr>
  14560. </thead>
  14561. <tbody>
  14562. <tr>
  14563. <td>body</td>
  14564. <td>body</td>
  14565. <td>object</td>
  14566. <td>true</td>
  14567. <td>none</td>
  14568. </tr>
  14569. <tr>
  14570. <td>» username</td>
  14571. <td>body</td>
  14572. <td>string</td>
  14573. <td>true</td>
  14574. <td>the new username</td>
  14575. </tr>
  14576. <tr>
  14577. <td>» email</td>
  14578. <td>body</td>
  14579. <td>string</td>
  14580. <td>true</td>
  14581. <td>the email of the new user</td>
  14582. </tr>
  14583. <tr>
  14584. <td>» password</td>
  14585. <td>body</td>
  14586. <td>string</td>
  14587. <td>true</td>
  14588. <td>the password of the new user</td>
  14589. </tr>
  14590. </tbody>
  14591. </table>
  14592. <blockquote>
  14593. <p>Example responses</p>
  14594. </blockquote>
  14595. <blockquote>
  14596. <p>200 Response</p>
  14597. </blockquote>
  14598. <pre class="highlight tab tab-json"><code>{
  14599. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14600. }
  14601. </code></pre>
  14602. <h3 id="new_user-responses">Responses</h3>
  14603. <table>
  14604. <thead>
  14605. <tr>
  14606. <th>Status</th>
  14607. <th>Meaning</th>
  14608. <th>Description</th>
  14609. <th>Schema</th>
  14610. </tr>
  14611. </thead>
  14612. <tbody>
  14613. <tr>
  14614. <td>200</td>
  14615. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14616. <td>200 response</td>
  14617. <td>Inline</td>
  14618. </tr>
  14619. </tbody>
  14620. </table>
  14621. <h3 id="new_user-responseschema">Response Schema</h3>
  14622. <p>Status Code <strong>200</strong></p>
  14623. <table>
  14624. <thead>
  14625. <tr>
  14626. <th>Name</th>
  14627. <th>Type</th>
  14628. <th>Required</th>
  14629. <th>Restrictions</th>
  14630. <th>Description</th>
  14631. </tr>
  14632. </thead>
  14633. <tbody>
  14634. <tr>
  14635. <td>» _id</td>
  14636. <td>string</td>
  14637. <td>false</td>
  14638. <td>none</td>
  14639. <td>none</td>
  14640. </tr>
  14641. </tbody>
  14642. </table>
  14643. <aside class="warning">
  14644. To perform this operation, you must be authenticated by means of one of the following methods:
  14645. UserSecurity
  14646. </aside>
  14647. <h2 id="get_user">get_user</h2>
  14648. <p><a id="opIdget_user"></a></p>
  14649. <blockquote>
  14650. <p>Code samples</p>
  14651. </blockquote>
  14652. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14653. curl -X GET /api/users/{user} \
  14654. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14655. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14656. </code></pre>
  14657. <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>
  14658. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14659. </span></code></pre>
  14660. <pre class="highlight tab tab-javascript"><code>
  14661. <span class="hljs-keyword">const</span> headers = {
  14662. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14663. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14664. };
  14665. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14666. {
  14667. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14668. <span class="hljs-attr">headers</span>: headers
  14669. })
  14670. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14671. <span class="hljs-keyword">return</span> res.json();
  14672. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14673. <span class="hljs-built_in">console</span>.log(body);
  14674. });
  14675. </code></pre>
  14676. <pre class="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>);
  14677. <span class="hljs-keyword">const</span> headers = {
  14678. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14679. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14680. };
  14681. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14682. {
  14683. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14684. <span class="hljs-attr">headers</span>: headers
  14685. })
  14686. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14687. <span class="hljs-keyword">return</span> res.json();
  14688. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14689. <span class="hljs-built_in">console</span>.log(body);
  14690. });
  14691. </code></pre>
  14692. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14693. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14694. headers = {
  14695. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14696. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14697. }
  14698. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14699. <span class="hljs-symbol">params:</span> {
  14700. }, <span class="hljs-symbol">headers:</span> headers
  14701. p JSON.parse(result)
  14702. </code></pre>
  14703. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14704. headers = {
  14705. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14706. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14707. }
  14708. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14709. <span class="hljs-built_in">print</span>(r.json())
  14710. </code></pre>
  14711. <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>);
  14712. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14713. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14714. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14715. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14716. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14717. String inputLine;
  14718. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14719. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14720. response.append(inputLine);
  14721. }
  14722. in.close();
  14723. System.out.println(response.toString());
  14724. </code></pre>
  14725. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14726. <span class="hljs-keyword">import</span> (
  14727. <span class="hljs-string">&quot;bytes&quot;</span>
  14728. <span class="hljs-string">&quot;net/http&quot;</span>
  14729. )
  14730. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14731. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14732. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14733. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14734. }
  14735. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14736. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14737. req.Header = headers
  14738. client := &amp;http.Client{}
  14739. resp, err := client.Do(req)
  14740. <span class="hljs-comment">// ...</span>
  14741. }
  14742. </code></pre>
  14743. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14744. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14745. );
  14746. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14747. <span class="hljs-comment">// Define array of request body.</span>
  14748. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14749. <span class="hljs-keyword">try</span> {
  14750. <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>(
  14751. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14752. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14753. )
  14754. );
  14755. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14756. }
  14757. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14758. <span class="hljs-comment">// handle exception or api errors.</span>
  14759. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14760. }
  14761. <span class="hljs-comment">// ...</span>
  14762. </code></pre>
  14763. <p><code>GET /api/users/{user}</code></p>
  14764. <p><em>get a given user</em></p>
  14765. <p>Only the admin user (the first user) can call the REST API.</p>
  14766. <h3 id="get_user-parameters">Parameters</h3>
  14767. <table>
  14768. <thead>
  14769. <tr>
  14770. <th>Name</th>
  14771. <th>In</th>
  14772. <th>Type</th>
  14773. <th>Required</th>
  14774. <th>Description</th>
  14775. </tr>
  14776. </thead>
  14777. <tbody>
  14778. <tr>
  14779. <td>user</td>
  14780. <td>path</td>
  14781. <td>string</td>
  14782. <td>true</td>
  14783. <td>the user ID or username</td>
  14784. </tr>
  14785. </tbody>
  14786. </table>
  14787. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14788. <p><strong>user</strong>: the user ID or username</p>
  14789. <blockquote>
  14790. <p>Example responses</p>
  14791. </blockquote>
  14792. <blockquote>
  14793. <p>200 Response</p>
  14794. </blockquote>
  14795. <pre class="highlight tab tab-json"><code>{
  14796. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14797. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14798. {
  14799. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14800. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14801. }
  14802. ],
  14803. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14804. {
  14805. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14806. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14807. }
  14808. ],
  14809. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14810. {
  14811. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14812. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14813. }
  14814. ],
  14815. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14816. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14817. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14818. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14819. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14820. <span class="hljs-string">&quot;string&quot;</span>
  14821. ],
  14822. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14823. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14824. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14825. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14826. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14827. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14828. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14829. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14830. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14831. <span class="hljs-string">&quot;string&quot;</span>
  14832. ],
  14833. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14834. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14835. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14836. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14837. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14838. {
  14839. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14840. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14841. }
  14842. ],
  14843. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14844. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14845. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14846. <span class="hljs-string">&quot;string&quot;</span>
  14847. ],
  14848. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14849. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14850. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14851. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14852. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14853. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14854. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14855. },
  14856. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14857. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14858. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14859. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14860. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14861. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14862. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14863. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14864. },
  14865. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14866. <span class="hljs-string">&quot;string&quot;</span>
  14867. ]
  14868. }
  14869. </code></pre>
  14870. <h3 id="get_user-responses">Responses</h3>
  14871. <table>
  14872. <thead>
  14873. <tr>
  14874. <th>Status</th>
  14875. <th>Meaning</th>
  14876. <th>Description</th>
  14877. <th>Schema</th>
  14878. </tr>
  14879. </thead>
  14880. <tbody>
  14881. <tr>
  14882. <td>200</td>
  14883. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14884. <td>200 response</td>
  14885. <td><a href="#schemausers">Users</a></td>
  14886. </tr>
  14887. </tbody>
  14888. </table>
  14889. <aside class="warning">
  14890. To perform this operation, you must be authenticated by means of one of the following methods:
  14891. UserSecurity
  14892. </aside>
  14893. <h2 id="edit_user">edit_user</h2>
  14894. <p><a id="opIdedit_user"></a></p>
  14895. <blockquote>
  14896. <p>Code samples</p>
  14897. </blockquote>
  14898. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14899. curl -X PUT /api/users/{user} \
  14900. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14901. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14902. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14903. </code></pre>
  14904. <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>
  14905. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14906. Accept: application/json
  14907. </span></code></pre>
  14908. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14909. &quot;action&quot;: &quot;string&quot;
  14910. }&#x27;</span>;
  14911. <span class="hljs-keyword">const</span> headers = {
  14912. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14913. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14914. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14915. };
  14916. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14917. {
  14918. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14919. <span class="hljs-attr">body</span>: inputBody,
  14920. <span class="hljs-attr">headers</span>: headers
  14921. })
  14922. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14923. <span class="hljs-keyword">return</span> res.json();
  14924. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14925. <span class="hljs-built_in">console</span>.log(body);
  14926. });
  14927. </code></pre>
  14928. <pre class="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>);
  14929. <span class="hljs-keyword">const</span> inputBody = {
  14930. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14931. };
  14932. <span class="hljs-keyword">const</span> headers = {
  14933. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14934. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14935. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14936. };
  14937. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14938. {
  14939. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14940. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14941. <span class="hljs-attr">headers</span>: headers
  14942. })
  14943. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14944. <span class="hljs-keyword">return</span> res.json();
  14945. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14946. <span class="hljs-built_in">console</span>.log(body);
  14947. });
  14948. </code></pre>
  14949. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14950. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14951. headers = {
  14952. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14953. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14954. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14955. }
  14956. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14957. <span class="hljs-symbol">params:</span> {
  14958. }, <span class="hljs-symbol">headers:</span> headers
  14959. p JSON.parse(result)
  14960. </code></pre>
  14961. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14962. headers = {
  14963. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14964. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14965. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14966. }
  14967. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14968. <span class="hljs-built_in">print</span>(r.json())
  14969. </code></pre>
  14970. <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>);
  14971. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14972. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14973. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14974. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14975. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14976. String inputLine;
  14977. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14978. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14979. response.append(inputLine);
  14980. }
  14981. in.close();
  14982. System.out.println(response.toString());
  14983. </code></pre>
  14984. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14985. <span class="hljs-keyword">import</span> (
  14986. <span class="hljs-string">&quot;bytes&quot;</span>
  14987. <span class="hljs-string">&quot;net/http&quot;</span>
  14988. )
  14989. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14990. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14991. <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>},
  14992. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14993. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14994. }
  14995. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14996. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14997. req.Header = headers
  14998. client := &amp;http.Client{}
  14999. resp, err := client.Do(req)
  15000. <span class="hljs-comment">// ...</span>
  15001. }
  15002. </code></pre>
  15003. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15004. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15005. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15006. );
  15007. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15008. <span class="hljs-comment">// Define array of request body.</span>
  15009. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15010. <span class="hljs-keyword">try</span> {
  15011. <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>(
  15012. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15013. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15014. )
  15015. );
  15016. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15017. }
  15018. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15019. <span class="hljs-comment">// handle exception or api errors.</span>
  15020. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15021. }
  15022. <span class="hljs-comment">// ...</span>
  15023. </code></pre>
  15024. <p><code>PUT /api/users/{user}</code></p>
  15025. <p><em>edit a given user</em></p>
  15026. <p>Only the admin user (the first user) can call the REST API.</p>
  15027. <p>Possible values for <em>action</em>:</p>
  15028. <ul>
  15029. <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>
  15030. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  15031. <li><code>enableLogin</code>: Enable a user</li>
  15032. </ul>
  15033. <blockquote>
  15034. <p>Body parameter</p>
  15035. </blockquote>
  15036. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  15037. </code></pre>
  15038. <h3 id="edit_user-parameters">Parameters</h3>
  15039. <table>
  15040. <thead>
  15041. <tr>
  15042. <th>Name</th>
  15043. <th>In</th>
  15044. <th>Type</th>
  15045. <th>Required</th>
  15046. <th>Description</th>
  15047. </tr>
  15048. </thead>
  15049. <tbody>
  15050. <tr>
  15051. <td>user</td>
  15052. <td>path</td>
  15053. <td>string</td>
  15054. <td>true</td>
  15055. <td>the user ID</td>
  15056. </tr>
  15057. <tr>
  15058. <td>body</td>
  15059. <td>body</td>
  15060. <td>object</td>
  15061. <td>true</td>
  15062. <td>none</td>
  15063. </tr>
  15064. <tr>
  15065. <td>» action</td>
  15066. <td>body</td>
  15067. <td>string</td>
  15068. <td>true</td>
  15069. <td>the action</td>
  15070. </tr>
  15071. </tbody>
  15072. </table>
  15073. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  15074. <p><strong>user</strong>: the user ID</p>
  15075. <blockquote>
  15076. <p>Example responses</p>
  15077. </blockquote>
  15078. <blockquote>
  15079. <p>200 Response</p>
  15080. </blockquote>
  15081. <pre class="highlight tab tab-json"><code>{
  15082. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15083. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15084. }
  15085. </code></pre>
  15086. <h3 id="edit_user-responses">Responses</h3>
  15087. <table>
  15088. <thead>
  15089. <tr>
  15090. <th>Status</th>
  15091. <th>Meaning</th>
  15092. <th>Description</th>
  15093. <th>Schema</th>
  15094. </tr>
  15095. </thead>
  15096. <tbody>
  15097. <tr>
  15098. <td>200</td>
  15099. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15100. <td>200 response</td>
  15101. <td>Inline</td>
  15102. </tr>
  15103. </tbody>
  15104. </table>
  15105. <h3 id="edit_user-responseschema">Response Schema</h3>
  15106. <p>Status Code <strong>200</strong></p>
  15107. <table>
  15108. <thead>
  15109. <tr>
  15110. <th>Name</th>
  15111. <th>Type</th>
  15112. <th>Required</th>
  15113. <th>Restrictions</th>
  15114. <th>Description</th>
  15115. </tr>
  15116. </thead>
  15117. <tbody>
  15118. <tr>
  15119. <td>» _id</td>
  15120. <td>string</td>
  15121. <td>false</td>
  15122. <td>none</td>
  15123. <td>none</td>
  15124. </tr>
  15125. <tr>
  15126. <td>» title</td>
  15127. <td>string</td>
  15128. <td>false</td>
  15129. <td>none</td>
  15130. <td>none</td>
  15131. </tr>
  15132. </tbody>
  15133. </table>
  15134. <aside class="warning">
  15135. To perform this operation, you must be authenticated by means of one of the following methods:
  15136. UserSecurity
  15137. </aside>
  15138. <h2 id="delete_user">delete_user</h2>
  15139. <p><a id="opIddelete_user"></a></p>
  15140. <blockquote>
  15141. <p>Code samples</p>
  15142. </blockquote>
  15143. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15144. curl -X DELETE /api/users/{user} \
  15145. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15146. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15147. </code></pre>
  15148. <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>
  15149. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15150. </span></code></pre>
  15151. <pre class="highlight tab tab-javascript"><code>
  15152. <span class="hljs-keyword">const</span> headers = {
  15153. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15154. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15155. };
  15156. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15157. {
  15158. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15159. <span class="hljs-attr">headers</span>: headers
  15160. })
  15161. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15162. <span class="hljs-keyword">return</span> res.json();
  15163. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15164. <span class="hljs-built_in">console</span>.log(body);
  15165. });
  15166. </code></pre>
  15167. <pre class="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>);
  15168. <span class="hljs-keyword">const</span> headers = {
  15169. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15170. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15171. };
  15172. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15173. {
  15174. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15175. <span class="hljs-attr">headers</span>: headers
  15176. })
  15177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15178. <span class="hljs-keyword">return</span> res.json();
  15179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15180. <span class="hljs-built_in">console</span>.log(body);
  15181. });
  15182. </code></pre>
  15183. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15184. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15185. headers = {
  15186. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15187. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15188. }
  15189. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15190. <span class="hljs-symbol">params:</span> {
  15191. }, <span class="hljs-symbol">headers:</span> headers
  15192. p JSON.parse(result)
  15193. </code></pre>
  15194. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15195. headers = {
  15196. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15197. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15198. }
  15199. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15200. <span class="hljs-built_in">print</span>(r.json())
  15201. </code></pre>
  15202. <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>);
  15203. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15204. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15205. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15206. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15207. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15208. String inputLine;
  15209. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15210. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15211. response.append(inputLine);
  15212. }
  15213. in.close();
  15214. System.out.println(response.toString());
  15215. </code></pre>
  15216. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15217. <span class="hljs-keyword">import</span> (
  15218. <span class="hljs-string">&quot;bytes&quot;</span>
  15219. <span class="hljs-string">&quot;net/http&quot;</span>
  15220. )
  15221. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15222. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15223. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15224. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15225. }
  15226. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15227. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15228. req.Header = headers
  15229. client := &amp;http.Client{}
  15230. resp, err := client.Do(req)
  15231. <span class="hljs-comment">// ...</span>
  15232. }
  15233. </code></pre>
  15234. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15235. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15236. );
  15237. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15238. <span class="hljs-comment">// Define array of request body.</span>
  15239. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15240. <span class="hljs-keyword">try</span> {
  15241. <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>(
  15242. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15243. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15244. )
  15245. );
  15246. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15247. }
  15248. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15249. <span class="hljs-comment">// handle exception or api errors.</span>
  15250. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15251. }
  15252. <span class="hljs-comment">// ...</span>
  15253. </code></pre>
  15254. <p><code>DELETE /api/users/{user}</code></p>
  15255. <p><em>Delete a user</em></p>
  15256. <p>Only the admin user (the first user) can call the REST API.</p>
  15257. <h3 id="delete_user-parameters">Parameters</h3>
  15258. <table>
  15259. <thead>
  15260. <tr>
  15261. <th>Name</th>
  15262. <th>In</th>
  15263. <th>Type</th>
  15264. <th>Required</th>
  15265. <th>Description</th>
  15266. </tr>
  15267. </thead>
  15268. <tbody>
  15269. <tr>
  15270. <td>user</td>
  15271. <td>path</td>
  15272. <td>string</td>
  15273. <td>true</td>
  15274. <td>the ID of the user to delete</td>
  15275. </tr>
  15276. </tbody>
  15277. </table>
  15278. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15279. <p><strong>user</strong>: the ID of the user to delete</p>
  15280. <blockquote>
  15281. <p>Example responses</p>
  15282. </blockquote>
  15283. <blockquote>
  15284. <p>200 Response</p>
  15285. </blockquote>
  15286. <pre class="highlight tab tab-json"><code>{
  15287. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15288. }
  15289. </code></pre>
  15290. <h3 id="delete_user-responses">Responses</h3>
  15291. <table>
  15292. <thead>
  15293. <tr>
  15294. <th>Status</th>
  15295. <th>Meaning</th>
  15296. <th>Description</th>
  15297. <th>Schema</th>
  15298. </tr>
  15299. </thead>
  15300. <tbody>
  15301. <tr>
  15302. <td>200</td>
  15303. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15304. <td>200 response</td>
  15305. <td>Inline</td>
  15306. </tr>
  15307. </tbody>
  15308. </table>
  15309. <h3 id="delete_user-responseschema">Response Schema</h3>
  15310. <p>Status Code <strong>200</strong></p>
  15311. <table>
  15312. <thead>
  15313. <tr>
  15314. <th>Name</th>
  15315. <th>Type</th>
  15316. <th>Required</th>
  15317. <th>Restrictions</th>
  15318. <th>Description</th>
  15319. </tr>
  15320. </thead>
  15321. <tbody>
  15322. <tr>
  15323. <td>» _id</td>
  15324. <td>string</td>
  15325. <td>false</td>
  15326. <td>none</td>
  15327. <td>none</td>
  15328. </tr>
  15329. </tbody>
  15330. </table>
  15331. <aside class="warning">
  15332. To perform this operation, you must be authenticated by means of one of the following methods:
  15333. UserSecurity
  15334. </aside>
  15335. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15336. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15337. <p><a id="opIdget_all_swimlanes"></a></p>
  15338. <blockquote>
  15339. <p>Code samples</p>
  15340. </blockquote>
  15341. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15342. curl -X GET /api/boards/{board}/swimlanes \
  15343. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15344. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15345. </code></pre>
  15346. <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>
  15347. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15348. </span></code></pre>
  15349. <pre class="highlight tab tab-javascript"><code>
  15350. <span class="hljs-keyword">const</span> headers = {
  15351. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15352. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15353. };
  15354. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15355. {
  15356. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15357. <span class="hljs-attr">headers</span>: headers
  15358. })
  15359. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15360. <span class="hljs-keyword">return</span> res.json();
  15361. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15362. <span class="hljs-built_in">console</span>.log(body);
  15363. });
  15364. </code></pre>
  15365. <pre class="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>);
  15366. <span class="hljs-keyword">const</span> headers = {
  15367. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15368. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15369. };
  15370. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15371. {
  15372. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15373. <span class="hljs-attr">headers</span>: headers
  15374. })
  15375. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15376. <span class="hljs-keyword">return</span> res.json();
  15377. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15378. <span class="hljs-built_in">console</span>.log(body);
  15379. });
  15380. </code></pre>
  15381. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15382. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15383. headers = {
  15384. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15385. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15386. }
  15387. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15388. <span class="hljs-symbol">params:</span> {
  15389. }, <span class="hljs-symbol">headers:</span> headers
  15390. p JSON.parse(result)
  15391. </code></pre>
  15392. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15393. headers = {
  15394. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15395. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15396. }
  15397. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15398. <span class="hljs-built_in">print</span>(r.json())
  15399. </code></pre>
  15400. <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>);
  15401. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15402. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15403. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15404. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15405. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15406. String inputLine;
  15407. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15408. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15409. response.append(inputLine);
  15410. }
  15411. in.close();
  15412. System.out.println(response.toString());
  15413. </code></pre>
  15414. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15415. <span class="hljs-keyword">import</span> (
  15416. <span class="hljs-string">&quot;bytes&quot;</span>
  15417. <span class="hljs-string">&quot;net/http&quot;</span>
  15418. )
  15419. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15420. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15421. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15422. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15423. }
  15424. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15425. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15426. req.Header = headers
  15427. client := &amp;http.Client{}
  15428. resp, err := client.Do(req)
  15429. <span class="hljs-comment">// ...</span>
  15430. }
  15431. </code></pre>
  15432. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15433. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15434. );
  15435. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15436. <span class="hljs-comment">// Define array of request body.</span>
  15437. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15438. <span class="hljs-keyword">try</span> {
  15439. <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>(
  15440. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15441. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15442. )
  15443. );
  15444. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15445. }
  15446. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15447. <span class="hljs-comment">// handle exception or api errors.</span>
  15448. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15449. }
  15450. <span class="hljs-comment">// ...</span>
  15451. </code></pre>
  15452. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15453. <p><em>Get the list of swimlanes attached to a board</em></p>
  15454. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15455. <table>
  15456. <thead>
  15457. <tr>
  15458. <th>Name</th>
  15459. <th>In</th>
  15460. <th>Type</th>
  15461. <th>Required</th>
  15462. <th>Description</th>
  15463. </tr>
  15464. </thead>
  15465. <tbody>
  15466. <tr>
  15467. <td>board</td>
  15468. <td>path</td>
  15469. <td>string</td>
  15470. <td>true</td>
  15471. <td>the ID of the board</td>
  15472. </tr>
  15473. </tbody>
  15474. </table>
  15475. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15476. <p><strong>board</strong>: the ID of the board</p>
  15477. <blockquote>
  15478. <p>Example responses</p>
  15479. </blockquote>
  15480. <blockquote>
  15481. <p>200 Response</p>
  15482. </blockquote>
  15483. <pre class="highlight tab tab-json"><code>[
  15484. {
  15485. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15486. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15487. }
  15488. ]
  15489. </code></pre>
  15490. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15491. <table>
  15492. <thead>
  15493. <tr>
  15494. <th>Status</th>
  15495. <th>Meaning</th>
  15496. <th>Description</th>
  15497. <th>Schema</th>
  15498. </tr>
  15499. </thead>
  15500. <tbody>
  15501. <tr>
  15502. <td>200</td>
  15503. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15504. <td>200 response</td>
  15505. <td>Inline</td>
  15506. </tr>
  15507. </tbody>
  15508. </table>
  15509. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15510. <p>Status Code <strong>200</strong></p>
  15511. <table>
  15512. <thead>
  15513. <tr>
  15514. <th>Name</th>
  15515. <th>Type</th>
  15516. <th>Required</th>
  15517. <th>Restrictions</th>
  15518. <th>Description</th>
  15519. </tr>
  15520. </thead>
  15521. <tbody>
  15522. <tr>
  15523. <td>» _id</td>
  15524. <td>string</td>
  15525. <td>false</td>
  15526. <td>none</td>
  15527. <td>none</td>
  15528. </tr>
  15529. <tr>
  15530. <td>» title</td>
  15531. <td>string</td>
  15532. <td>false</td>
  15533. <td>none</td>
  15534. <td>none</td>
  15535. </tr>
  15536. </tbody>
  15537. </table>
  15538. <aside class="warning">
  15539. To perform this operation, you must be authenticated by means of one of the following methods:
  15540. UserSecurity
  15541. </aside>
  15542. <h2 id="new_swimlane">new_swimlane</h2>
  15543. <p><a id="opIdnew_swimlane"></a></p>
  15544. <blockquote>
  15545. <p>Code samples</p>
  15546. </blockquote>
  15547. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15548. curl -X POST /api/boards/{board}/swimlanes \
  15549. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15550. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15551. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15552. </code></pre>
  15553. <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>
  15554. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15555. Accept: application/json
  15556. </span></code></pre>
  15557. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15558. &quot;title&quot;: &quot;string&quot;
  15559. }&#x27;</span>;
  15560. <span class="hljs-keyword">const</span> headers = {
  15561. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15562. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15563. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15564. };
  15565. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15566. {
  15567. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15568. <span class="hljs-attr">body</span>: inputBody,
  15569. <span class="hljs-attr">headers</span>: headers
  15570. })
  15571. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15572. <span class="hljs-keyword">return</span> res.json();
  15573. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15574. <span class="hljs-built_in">console</span>.log(body);
  15575. });
  15576. </code></pre>
  15577. <pre class="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>);
  15578. <span class="hljs-keyword">const</span> inputBody = {
  15579. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15580. };
  15581. <span class="hljs-keyword">const</span> headers = {
  15582. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15583. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15584. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15585. };
  15586. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15587. {
  15588. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15589. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15590. <span class="hljs-attr">headers</span>: headers
  15591. })
  15592. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15593. <span class="hljs-keyword">return</span> res.json();
  15594. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15595. <span class="hljs-built_in">console</span>.log(body);
  15596. });
  15597. </code></pre>
  15598. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15599. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15600. headers = {
  15601. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15602. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15603. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15604. }
  15605. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15606. <span class="hljs-symbol">params:</span> {
  15607. }, <span class="hljs-symbol">headers:</span> headers
  15608. p JSON.parse(result)
  15609. </code></pre>
  15610. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15611. headers = {
  15612. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15613. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15614. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15615. }
  15616. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15617. <span class="hljs-built_in">print</span>(r.json())
  15618. </code></pre>
  15619. <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>);
  15620. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15621. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15622. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15623. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15624. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15625. String inputLine;
  15626. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15627. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15628. response.append(inputLine);
  15629. }
  15630. in.close();
  15631. System.out.println(response.toString());
  15632. </code></pre>
  15633. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15634. <span class="hljs-keyword">import</span> (
  15635. <span class="hljs-string">&quot;bytes&quot;</span>
  15636. <span class="hljs-string">&quot;net/http&quot;</span>
  15637. )
  15638. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15639. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15640. <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>},
  15641. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15642. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15643. }
  15644. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15645. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15646. req.Header = headers
  15647. client := &amp;http.Client{}
  15648. resp, err := client.Do(req)
  15649. <span class="hljs-comment">// ...</span>
  15650. }
  15651. </code></pre>
  15652. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15653. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15654. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15655. );
  15656. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15657. <span class="hljs-comment">// Define array of request body.</span>
  15658. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15659. <span class="hljs-keyword">try</span> {
  15660. <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>(
  15661. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15662. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15663. )
  15664. );
  15665. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15666. }
  15667. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15668. <span class="hljs-comment">// handle exception or api errors.</span>
  15669. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15670. }
  15671. <span class="hljs-comment">// ...</span>
  15672. </code></pre>
  15673. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  15674. <p><em>Add a swimlane to a board</em></p>
  15675. <blockquote>
  15676. <p>Body parameter</p>
  15677. </blockquote>
  15678. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15679. </code></pre>
  15680. <h3 id="new_swimlane-parameters">Parameters</h3>
  15681. <table>
  15682. <thead>
  15683. <tr>
  15684. <th>Name</th>
  15685. <th>In</th>
  15686. <th>Type</th>
  15687. <th>Required</th>
  15688. <th>Description</th>
  15689. </tr>
  15690. </thead>
  15691. <tbody>
  15692. <tr>
  15693. <td>board</td>
  15694. <td>path</td>
  15695. <td>string</td>
  15696. <td>true</td>
  15697. <td>the ID of the board</td>
  15698. </tr>
  15699. <tr>
  15700. <td>body</td>
  15701. <td>body</td>
  15702. <td>object</td>
  15703. <td>true</td>
  15704. <td>none</td>
  15705. </tr>
  15706. <tr>
  15707. <td>» title</td>
  15708. <td>body</td>
  15709. <td>string</td>
  15710. <td>true</td>
  15711. <td>the new title of the swimlane</td>
  15712. </tr>
  15713. </tbody>
  15714. </table>
  15715. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15716. <p><strong>board</strong>: the ID of the board</p>
  15717. <blockquote>
  15718. <p>Example responses</p>
  15719. </blockquote>
  15720. <blockquote>
  15721. <p>200 Response</p>
  15722. </blockquote>
  15723. <pre class="highlight tab tab-json"><code>{
  15724. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15725. }
  15726. </code></pre>
  15727. <h3 id="new_swimlane-responses">Responses</h3>
  15728. <table>
  15729. <thead>
  15730. <tr>
  15731. <th>Status</th>
  15732. <th>Meaning</th>
  15733. <th>Description</th>
  15734. <th>Schema</th>
  15735. </tr>
  15736. </thead>
  15737. <tbody>
  15738. <tr>
  15739. <td>200</td>
  15740. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15741. <td>200 response</td>
  15742. <td>Inline</td>
  15743. </tr>
  15744. </tbody>
  15745. </table>
  15746. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15747. <p>Status Code <strong>200</strong></p>
  15748. <table>
  15749. <thead>
  15750. <tr>
  15751. <th>Name</th>
  15752. <th>Type</th>
  15753. <th>Required</th>
  15754. <th>Restrictions</th>
  15755. <th>Description</th>
  15756. </tr>
  15757. </thead>
  15758. <tbody>
  15759. <tr>
  15760. <td>» _id</td>
  15761. <td>string</td>
  15762. <td>false</td>
  15763. <td>none</td>
  15764. <td>none</td>
  15765. </tr>
  15766. </tbody>
  15767. </table>
  15768. <aside class="warning">
  15769. To perform this operation, you must be authenticated by means of one of the following methods:
  15770. UserSecurity
  15771. </aside>
  15772. <h2 id="get_swimlane">get_swimlane</h2>
  15773. <p><a id="opIdget_swimlane"></a></p>
  15774. <blockquote>
  15775. <p>Code samples</p>
  15776. </blockquote>
  15777. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15778. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15779. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15780. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15781. </code></pre>
  15782. <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>
  15783. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15784. </span></code></pre>
  15785. <pre class="highlight tab tab-javascript"><code>
  15786. <span class="hljs-keyword">const</span> headers = {
  15787. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15788. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15789. };
  15790. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15791. {
  15792. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15793. <span class="hljs-attr">headers</span>: headers
  15794. })
  15795. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15796. <span class="hljs-keyword">return</span> res.json();
  15797. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15798. <span class="hljs-built_in">console</span>.log(body);
  15799. });
  15800. </code></pre>
  15801. <pre class="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>);
  15802. <span class="hljs-keyword">const</span> headers = {
  15803. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15804. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15805. };
  15806. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15807. {
  15808. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15809. <span class="hljs-attr">headers</span>: headers
  15810. })
  15811. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15812. <span class="hljs-keyword">return</span> res.json();
  15813. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15814. <span class="hljs-built_in">console</span>.log(body);
  15815. });
  15816. </code></pre>
  15817. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15818. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15819. headers = {
  15820. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15821. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15822. }
  15823. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15824. <span class="hljs-symbol">params:</span> {
  15825. }, <span class="hljs-symbol">headers:</span> headers
  15826. p JSON.parse(result)
  15827. </code></pre>
  15828. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15829. headers = {
  15830. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15831. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15832. }
  15833. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15834. <span class="hljs-built_in">print</span>(r.json())
  15835. </code></pre>
  15836. <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>);
  15837. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15838. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15839. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15840. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15841. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15842. String inputLine;
  15843. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15844. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15845. response.append(inputLine);
  15846. }
  15847. in.close();
  15848. System.out.println(response.toString());
  15849. </code></pre>
  15850. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15851. <span class="hljs-keyword">import</span> (
  15852. <span class="hljs-string">&quot;bytes&quot;</span>
  15853. <span class="hljs-string">&quot;net/http&quot;</span>
  15854. )
  15855. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15856. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15857. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15858. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15859. }
  15860. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15861. 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)
  15862. req.Header = headers
  15863. client := &amp;http.Client{}
  15864. resp, err := client.Do(req)
  15865. <span class="hljs-comment">// ...</span>
  15866. }
  15867. </code></pre>
  15868. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15869. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15870. );
  15871. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15872. <span class="hljs-comment">// Define array of request body.</span>
  15873. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15874. <span class="hljs-keyword">try</span> {
  15875. <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>(
  15876. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15877. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15878. )
  15879. );
  15880. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15881. }
  15882. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15883. <span class="hljs-comment">// handle exception or api errors.</span>
  15884. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15885. }
  15886. <span class="hljs-comment">// ...</span>
  15887. </code></pre>
  15888. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15889. <p><em>Get a swimlane</em></p>
  15890. <h3 id="get_swimlane-parameters">Parameters</h3>
  15891. <table>
  15892. <thead>
  15893. <tr>
  15894. <th>Name</th>
  15895. <th>In</th>
  15896. <th>Type</th>
  15897. <th>Required</th>
  15898. <th>Description</th>
  15899. </tr>
  15900. </thead>
  15901. <tbody>
  15902. <tr>
  15903. <td>board</td>
  15904. <td>path</td>
  15905. <td>string</td>
  15906. <td>true</td>
  15907. <td>the ID of the board</td>
  15908. </tr>
  15909. <tr>
  15910. <td>swimlane</td>
  15911. <td>path</td>
  15912. <td>string</td>
  15913. <td>true</td>
  15914. <td>the ID of the swimlane</td>
  15915. </tr>
  15916. </tbody>
  15917. </table>
  15918. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15919. <p><strong>board</strong>: the ID of the board</p>
  15920. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15921. <blockquote>
  15922. <p>Example responses</p>
  15923. </blockquote>
  15924. <blockquote>
  15925. <p>200 Response</p>
  15926. </blockquote>
  15927. <pre class="highlight tab tab-json"><code>{
  15928. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15929. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15930. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15931. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15932. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15933. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15934. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15935. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15936. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15937. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15938. }
  15939. </code></pre>
  15940. <h3 id="get_swimlane-responses">Responses</h3>
  15941. <table>
  15942. <thead>
  15943. <tr>
  15944. <th>Status</th>
  15945. <th>Meaning</th>
  15946. <th>Description</th>
  15947. <th>Schema</th>
  15948. </tr>
  15949. </thead>
  15950. <tbody>
  15951. <tr>
  15952. <td>200</td>
  15953. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15954. <td>200 response</td>
  15955. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15956. </tr>
  15957. </tbody>
  15958. </table>
  15959. <aside class="warning">
  15960. To perform this operation, you must be authenticated by means of one of the following methods:
  15961. UserSecurity
  15962. </aside>
  15963. <h2 id="delete_swimlane">delete_swimlane</h2>
  15964. <p><a id="opIddelete_swimlane"></a></p>
  15965. <blockquote>
  15966. <p>Code samples</p>
  15967. </blockquote>
  15968. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15969. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15970. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15971. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15972. </code></pre>
  15973. <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>
  15974. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15975. </span></code></pre>
  15976. <pre class="highlight tab tab-javascript"><code>
  15977. <span class="hljs-keyword">const</span> headers = {
  15978. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15979. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15980. };
  15981. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15982. {
  15983. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15984. <span class="hljs-attr">headers</span>: headers
  15985. })
  15986. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15987. <span class="hljs-keyword">return</span> res.json();
  15988. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15989. <span class="hljs-built_in">console</span>.log(body);
  15990. });
  15991. </code></pre>
  15992. <pre class="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>);
  15993. <span class="hljs-keyword">const</span> headers = {
  15994. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15995. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15996. };
  15997. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15998. {
  15999. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16000. <span class="hljs-attr">headers</span>: headers
  16001. })
  16002. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16003. <span class="hljs-keyword">return</span> res.json();
  16004. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16005. <span class="hljs-built_in">console</span>.log(body);
  16006. });
  16007. </code></pre>
  16008. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16009. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16010. headers = {
  16011. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16012. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16013. }
  16014. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16015. <span class="hljs-symbol">params:</span> {
  16016. }, <span class="hljs-symbol">headers:</span> headers
  16017. p JSON.parse(result)
  16018. </code></pre>
  16019. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16020. headers = {
  16021. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16022. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16023. }
  16024. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16025. <span class="hljs-built_in">print</span>(r.json())
  16026. </code></pre>
  16027. <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>);
  16028. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16029. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16030. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16031. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16032. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16033. String inputLine;
  16034. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16035. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16036. response.append(inputLine);
  16037. }
  16038. in.close();
  16039. System.out.println(response.toString());
  16040. </code></pre>
  16041. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16042. <span class="hljs-keyword">import</span> (
  16043. <span class="hljs-string">&quot;bytes&quot;</span>
  16044. <span class="hljs-string">&quot;net/http&quot;</span>
  16045. )
  16046. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16047. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16048. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16049. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16050. }
  16051. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16052. 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)
  16053. req.Header = headers
  16054. client := &amp;http.Client{}
  16055. resp, err := client.Do(req)
  16056. <span class="hljs-comment">// ...</span>
  16057. }
  16058. </code></pre>
  16059. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16060. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16061. );
  16062. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16063. <span class="hljs-comment">// Define array of request body.</span>
  16064. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16065. <span class="hljs-keyword">try</span> {
  16066. <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>(
  16067. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16068. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16069. )
  16070. );
  16071. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16072. }
  16073. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16074. <span class="hljs-comment">// handle exception or api errors.</span>
  16075. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16076. }
  16077. <span class="hljs-comment">// ...</span>
  16078. </code></pre>
  16079. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16080. <p><em>Delete a swimlane</em></p>
  16081. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16082. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16083. <table>
  16084. <thead>
  16085. <tr>
  16086. <th>Name</th>
  16087. <th>In</th>
  16088. <th>Type</th>
  16089. <th>Required</th>
  16090. <th>Description</th>
  16091. </tr>
  16092. </thead>
  16093. <tbody>
  16094. <tr>
  16095. <td>board</td>
  16096. <td>path</td>
  16097. <td>string</td>
  16098. <td>true</td>
  16099. <td>the ID of the board</td>
  16100. </tr>
  16101. <tr>
  16102. <td>swimlane</td>
  16103. <td>path</td>
  16104. <td>string</td>
  16105. <td>true</td>
  16106. <td>the ID of the swimlane</td>
  16107. </tr>
  16108. </tbody>
  16109. </table>
  16110. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16111. <p><strong>board</strong>: the ID of the board</p>
  16112. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16113. <blockquote>
  16114. <p>Example responses</p>
  16115. </blockquote>
  16116. <blockquote>
  16117. <p>200 Response</p>
  16118. </blockquote>
  16119. <pre class="highlight tab tab-json"><code>{
  16120. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16121. }
  16122. </code></pre>
  16123. <h3 id="delete_swimlane-responses">Responses</h3>
  16124. <table>
  16125. <thead>
  16126. <tr>
  16127. <th>Status</th>
  16128. <th>Meaning</th>
  16129. <th>Description</th>
  16130. <th>Schema</th>
  16131. </tr>
  16132. </thead>
  16133. <tbody>
  16134. <tr>
  16135. <td>200</td>
  16136. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16137. <td>200 response</td>
  16138. <td>Inline</td>
  16139. </tr>
  16140. </tbody>
  16141. </table>
  16142. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16143. <p>Status Code <strong>200</strong></p>
  16144. <table>
  16145. <thead>
  16146. <tr>
  16147. <th>Name</th>
  16148. <th>Type</th>
  16149. <th>Required</th>
  16150. <th>Restrictions</th>
  16151. <th>Description</th>
  16152. </tr>
  16153. </thead>
  16154. <tbody>
  16155. <tr>
  16156. <td>» _id</td>
  16157. <td>string</td>
  16158. <td>false</td>
  16159. <td>none</td>
  16160. <td>none</td>
  16161. </tr>
  16162. </tbody>
  16163. </table>
  16164. <aside class="warning">
  16165. To perform this operation, you must be authenticated by means of one of the following methods:
  16166. UserSecurity
  16167. </aside>
  16168. <h1 id="schemas">Schemas</h1>
  16169. <h2 id="tocs_boards">Boards</h2>
  16170. <p><a id="schemaboards"></a>
  16171. <a id="schema_Boards"></a>
  16172. <a id="tocSboards"></a>
  16173. <a id="tocsboards"></a></p>
  16174. <pre class="highlight tab tab-json"><code>{
  16175. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16176. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16177. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16178. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16179. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16180. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16181. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16182. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16183. {
  16184. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16185. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16186. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16187. }
  16188. ],
  16189. <span class="hljs-attr">&quot;members&quot;</span>: [
  16190. {
  16191. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16192. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16193. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16194. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16195. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16196. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16197. }
  16198. ],
  16199. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16200. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16201. {
  16202. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16203. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16204. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16205. }
  16206. ],
  16207. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16208. {
  16209. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16210. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16211. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16212. }
  16213. ],
  16214. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16215. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16216. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16217. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16218. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16219. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16220. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16221. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16222. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16223. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16224. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16225. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16226. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16227. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16228. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16229. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16230. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16231. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16232. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16233. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16234. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  16235. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16236. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16237. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16238. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16239. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16240. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16241. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16242. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16243. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16244. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16245. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16246. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16247. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16248. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16249. }
  16250. </code></pre>
  16251. <p>This is a Board.</p>
  16252. <h3 id="properties">Properties</h3>
  16253. <table>
  16254. <thead>
  16255. <tr>
  16256. <th>Name</th>
  16257. <th>Type</th>
  16258. <th>Required</th>
  16259. <th>Restrictions</th>
  16260. <th>Description</th>
  16261. </tr>
  16262. </thead>
  16263. <tbody>
  16264. <tr>
  16265. <td>title</td>
  16266. <td>string</td>
  16267. <td>true</td>
  16268. <td>none</td>
  16269. <td>The title of the board</td>
  16270. </tr>
  16271. <tr>
  16272. <td>slug</td>
  16273. <td>string</td>
  16274. <td>true</td>
  16275. <td>none</td>
  16276. <td>The title slugified.</td>
  16277. </tr>
  16278. <tr>
  16279. <td>archived</td>
  16280. <td>boolean</td>
  16281. <td>true</td>
  16282. <td>none</td>
  16283. <td>Is the board archived?</td>
  16284. </tr>
  16285. <tr>
  16286. <td>archivedAt</td>
  16287. <td>string¦null</td>
  16288. <td>false</td>
  16289. <td>none</td>
  16290. <td>Latest archiving time of the board</td>
  16291. </tr>
  16292. <tr>
  16293. <td>createdAt</td>
  16294. <td>string</td>
  16295. <td>true</td>
  16296. <td>none</td>
  16297. <td>Creation time of the board</td>
  16298. </tr>
  16299. <tr>
  16300. <td>modifiedAt</td>
  16301. <td>string¦null</td>
  16302. <td>false</td>
  16303. <td>none</td>
  16304. <td>Last modification time of the board</td>
  16305. </tr>
  16306. <tr>
  16307. <td>stars</td>
  16308. <td>number</td>
  16309. <td>true</td>
  16310. <td>none</td>
  16311. <td>How many stars the board has</td>
  16312. </tr>
  16313. <tr>
  16314. <td>labels</td>
  16315. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16316. <td>false</td>
  16317. <td>none</td>
  16318. <td>List of labels attached to a board</td>
  16319. </tr>
  16320. <tr>
  16321. <td>members</td>
  16322. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16323. <td>true</td>
  16324. <td>none</td>
  16325. <td>List of members of a board</td>
  16326. </tr>
  16327. <tr>
  16328. <td>permission</td>
  16329. <td>string</td>
  16330. <td>true</td>
  16331. <td>none</td>
  16332. <td>visibility of the board</td>
  16333. </tr>
  16334. <tr>
  16335. <td>orgs</td>
  16336. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16337. <td>false</td>
  16338. <td>none</td>
  16339. <td>the list of organizations that a board belongs to</td>
  16340. </tr>
  16341. <tr>
  16342. <td>teams</td>
  16343. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16344. <td>false</td>
  16345. <td>none</td>
  16346. <td>the list of teams that a board belongs to</td>
  16347. </tr>
  16348. <tr>
  16349. <td>color</td>
  16350. <td>string</td>
  16351. <td>true</td>
  16352. <td>none</td>
  16353. <td>The color of the board.</td>
  16354. </tr>
  16355. <tr>
  16356. <td>description</td>
  16357. <td>string¦null</td>
  16358. <td>false</td>
  16359. <td>none</td>
  16360. <td>The description of the board</td>
  16361. </tr>
  16362. <tr>
  16363. <td>subtasksDefaultBoardId</td>
  16364. <td>string¦null</td>
  16365. <td>false</td>
  16366. <td>none</td>
  16367. <td>The default board ID assigned to subtasks.</td>
  16368. </tr>
  16369. <tr>
  16370. <td>subtasksDefaultListId</td>
  16371. <td>string¦null</td>
  16372. <td>false</td>
  16373. <td>none</td>
  16374. <td>The default List ID assigned to subtasks.</td>
  16375. </tr>
  16376. <tr>
  16377. <td>dateSettingsDefaultBoardId</td>
  16378. <td>string¦null</td>
  16379. <td>false</td>
  16380. <td>none</td>
  16381. <td>none</td>
  16382. </tr>
  16383. <tr>
  16384. <td>dateSettingsDefaultListId</td>
  16385. <td>string¦null</td>
  16386. <td>false</td>
  16387. <td>none</td>
  16388. <td>none</td>
  16389. </tr>
  16390. <tr>
  16391. <td>allowsSubtasks</td>
  16392. <td>boolean</td>
  16393. <td>true</td>
  16394. <td>none</td>
  16395. <td>Does the board allows subtasks?</td>
  16396. </tr>
  16397. <tr>
  16398. <td>allowsAttachments</td>
  16399. <td>boolean</td>
  16400. <td>true</td>
  16401. <td>none</td>
  16402. <td>Does the board allows attachments?</td>
  16403. </tr>
  16404. <tr>
  16405. <td>allowsChecklists</td>
  16406. <td>boolean</td>
  16407. <td>true</td>
  16408. <td>none</td>
  16409. <td>Does the board allows checklists?</td>
  16410. </tr>
  16411. <tr>
  16412. <td>allowsComments</td>
  16413. <td>boolean</td>
  16414. <td>true</td>
  16415. <td>none</td>
  16416. <td>Does the board allows comments?</td>
  16417. </tr>
  16418. <tr>
  16419. <td>allowsDescriptionTitle</td>
  16420. <td>boolean</td>
  16421. <td>true</td>
  16422. <td>none</td>
  16423. <td>Does the board allows description title?</td>
  16424. </tr>
  16425. <tr>
  16426. <td>allowsDescriptionText</td>
  16427. <td>boolean</td>
  16428. <td>true</td>
  16429. <td>none</td>
  16430. <td>Does the board allows description text?</td>
  16431. </tr>
  16432. <tr>
  16433. <td>allowsCardNumber</td>
  16434. <td>boolean</td>
  16435. <td>true</td>
  16436. <td>none</td>
  16437. <td>Does the board allows card numbers?</td>
  16438. </tr>
  16439. <tr>
  16440. <td>allowsActivities</td>
  16441. <td>boolean</td>
  16442. <td>true</td>
  16443. <td>none</td>
  16444. <td>Does the board allows comments?</td>
  16445. </tr>
  16446. <tr>
  16447. <td>allowsLabels</td>
  16448. <td>boolean</td>
  16449. <td>true</td>
  16450. <td>none</td>
  16451. <td>Does the board allows labels?</td>
  16452. </tr>
  16453. <tr>
  16454. <td>allowsCreator</td>
  16455. <td>boolean</td>
  16456. <td>true</td>
  16457. <td>none</td>
  16458. <td>Does the board allow creator?</td>
  16459. </tr>
  16460. <tr>
  16461. <td>allowsAssignee</td>
  16462. <td>boolean</td>
  16463. <td>true</td>
  16464. <td>none</td>
  16465. <td>Does the board allows assignee?</td>
  16466. </tr>
  16467. <tr>
  16468. <td>allowsMembers</td>
  16469. <td>boolean</td>
  16470. <td>true</td>
  16471. <td>none</td>
  16472. <td>Does the board allows members?</td>
  16473. </tr>
  16474. <tr>
  16475. <td>allowsRequestedBy</td>
  16476. <td>boolean</td>
  16477. <td>true</td>
  16478. <td>none</td>
  16479. <td>Does the board allows requested by?</td>
  16480. </tr>
  16481. <tr>
  16482. <td>allowsCardSortingByNumber</td>
  16483. <td>boolean</td>
  16484. <td>true</td>
  16485. <td>none</td>
  16486. <td>Does the board allows card sorting by number?</td>
  16487. </tr>
  16488. <tr>
  16489. <td>allowsShowLists</td>
  16490. <td>boolean</td>
  16491. <td>true</td>
  16492. <td>none</td>
  16493. <td>Does the board allows show lists on the card?</td>
  16494. </tr>
  16495. <tr>
  16496. <td>allowsAssignedBy</td>
  16497. <td>boolean</td>
  16498. <td>true</td>
  16499. <td>none</td>
  16500. <td>Does the board allows requested by?</td>
  16501. </tr>
  16502. <tr>
  16503. <td>allowsReceivedDate</td>
  16504. <td>boolean</td>
  16505. <td>true</td>
  16506. <td>none</td>
  16507. <td>Does the board allows received date?</td>
  16508. </tr>
  16509. <tr>
  16510. <td>allowsStartDate</td>
  16511. <td>boolean</td>
  16512. <td>true</td>
  16513. <td>none</td>
  16514. <td>Does the board allows start date?</td>
  16515. </tr>
  16516. <tr>
  16517. <td>allowsEndDate</td>
  16518. <td>boolean</td>
  16519. <td>true</td>
  16520. <td>none</td>
  16521. <td>Does the board allows end date?</td>
  16522. </tr>
  16523. <tr>
  16524. <td>allowsDueDate</td>
  16525. <td>boolean</td>
  16526. <td>true</td>
  16527. <td>none</td>
  16528. <td>Does the board allows due date?</td>
  16529. </tr>
  16530. <tr>
  16531. <td>presentParentTask</td>
  16532. <td>string¦null</td>
  16533. <td>false</td>
  16534. <td>none</td>
  16535. <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>
  16536. </tr>
  16537. <tr>
  16538. <td>receivedAt</td>
  16539. <td>string¦null</td>
  16540. <td>false</td>
  16541. <td>none</td>
  16542. <td>Date the card was received</td>
  16543. </tr>
  16544. <tr>
  16545. <td>startAt</td>
  16546. <td>string¦null</td>
  16547. <td>false</td>
  16548. <td>none</td>
  16549. <td>Starting date of the board.</td>
  16550. </tr>
  16551. <tr>
  16552. <td>dueAt</td>
  16553. <td>string¦null</td>
  16554. <td>false</td>
  16555. <td>none</td>
  16556. <td>Due date of the board.</td>
  16557. </tr>
  16558. <tr>
  16559. <td>endAt</td>
  16560. <td>string¦null</td>
  16561. <td>false</td>
  16562. <td>none</td>
  16563. <td>End date of the board.</td>
  16564. </tr>
  16565. <tr>
  16566. <td>spentTime</td>
  16567. <td>number¦null</td>
  16568. <td>false</td>
  16569. <td>none</td>
  16570. <td>Time spent in the board.</td>
  16571. </tr>
  16572. <tr>
  16573. <td>isOvertime</td>
  16574. <td>boolean¦null</td>
  16575. <td>false</td>
  16576. <td>none</td>
  16577. <td>Is the board overtimed?</td>
  16578. </tr>
  16579. <tr>
  16580. <td>type</td>
  16581. <td>string</td>
  16582. <td>true</td>
  16583. <td>none</td>
  16584. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16585. </tr>
  16586. <tr>
  16587. <td>sort</td>
  16588. <td>number</td>
  16589. <td>true</td>
  16590. <td>none</td>
  16591. <td>Sort value</td>
  16592. </tr>
  16593. </tbody>
  16594. </table>
  16595. <h4 id="enumerated-values">Enumerated Values</h4>
  16596. <table>
  16597. <thead>
  16598. <tr>
  16599. <th>Property</th>
  16600. <th>Value</th>
  16601. </tr>
  16602. </thead>
  16603. <tbody>
  16604. <tr>
  16605. <td>permission</td>
  16606. <td>public</td>
  16607. </tr>
  16608. <tr>
  16609. <td>permission</td>
  16610. <td>private</td>
  16611. </tr>
  16612. <tr>
  16613. <td>color</td>
  16614. <td>belize</td>
  16615. </tr>
  16616. <tr>
  16617. <td>color</td>
  16618. <td>nephritis</td>
  16619. </tr>
  16620. <tr>
  16621. <td>color</td>
  16622. <td>pomegranate</td>
  16623. </tr>
  16624. <tr>
  16625. <td>color</td>
  16626. <td>pumpkin</td>
  16627. </tr>
  16628. <tr>
  16629. <td>color</td>
  16630. <td>wisteria</td>
  16631. </tr>
  16632. <tr>
  16633. <td>color</td>
  16634. <td>moderatepink</td>
  16635. </tr>
  16636. <tr>
  16637. <td>color</td>
  16638. <td>strongcyan</td>
  16639. </tr>
  16640. <tr>
  16641. <td>color</td>
  16642. <td>limegreen</td>
  16643. </tr>
  16644. <tr>
  16645. <td>color</td>
  16646. <td>midnight</td>
  16647. </tr>
  16648. <tr>
  16649. <td>color</td>
  16650. <td>dark</td>
  16651. </tr>
  16652. <tr>
  16653. <td>color</td>
  16654. <td>relax</td>
  16655. </tr>
  16656. <tr>
  16657. <td>color</td>
  16658. <td>corteza</td>
  16659. </tr>
  16660. <tr>
  16661. <td>color</td>
  16662. <td>clearblue</td>
  16663. </tr>
  16664. <tr>
  16665. <td>color</td>
  16666. <td>natural</td>
  16667. </tr>
  16668. <tr>
  16669. <td>color</td>
  16670. <td>modern</td>
  16671. </tr>
  16672. <tr>
  16673. <td>color</td>
  16674. <td>moderndark</td>
  16675. </tr>
  16676. <tr>
  16677. <td>presentParentTask</td>
  16678. <td>prefix-with-full-path</td>
  16679. </tr>
  16680. <tr>
  16681. <td>presentParentTask</td>
  16682. <td>prefix-with-parent</td>
  16683. </tr>
  16684. <tr>
  16685. <td>presentParentTask</td>
  16686. <td>subtext-with-full-path</td>
  16687. </tr>
  16688. <tr>
  16689. <td>presentParentTask</td>
  16690. <td>subtext-with-parent</td>
  16691. </tr>
  16692. <tr>
  16693. <td>presentParentTask</td>
  16694. <td>no-parent</td>
  16695. </tr>
  16696. <tr>
  16697. <td>type</td>
  16698. <td>board</td>
  16699. </tr>
  16700. <tr>
  16701. <td>type</td>
  16702. <td>template-board</td>
  16703. </tr>
  16704. <tr>
  16705. <td>type</td>
  16706. <td>template-container</td>
  16707. </tr>
  16708. </tbody>
  16709. </table>
  16710. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16711. <p><a id="schemaboardslabels"></a>
  16712. <a id="schema_BoardsLabels"></a>
  16713. <a id="tocSboardslabels"></a>
  16714. <a id="tocsboardslabels"></a></p>
  16715. <pre class="highlight tab tab-json"><code>{
  16716. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16717. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16718. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16719. }
  16720. </code></pre>
  16721. <h3 id="properties-2">Properties</h3>
  16722. <table>
  16723. <thead>
  16724. <tr>
  16725. <th>Name</th>
  16726. <th>Type</th>
  16727. <th>Required</th>
  16728. <th>Restrictions</th>
  16729. <th>Description</th>
  16730. </tr>
  16731. </thead>
  16732. <tbody>
  16733. <tr>
  16734. <td>_id</td>
  16735. <td>string</td>
  16736. <td>true</td>
  16737. <td>none</td>
  16738. <td>Unique id of a label</td>
  16739. </tr>
  16740. <tr>
  16741. <td>name</td>
  16742. <td>string</td>
  16743. <td>false</td>
  16744. <td>none</td>
  16745. <td>Name of a label</td>
  16746. </tr>
  16747. <tr>
  16748. <td>color</td>
  16749. <td>string</td>
  16750. <td>true</td>
  16751. <td>none</td>
  16752. <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>
  16753. </tr>
  16754. </tbody>
  16755. </table>
  16756. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16757. <table>
  16758. <thead>
  16759. <tr>
  16760. <th>Property</th>
  16761. <th>Value</th>
  16762. </tr>
  16763. </thead>
  16764. <tbody>
  16765. <tr>
  16766. <td>color</td>
  16767. <td>white</td>
  16768. </tr>
  16769. <tr>
  16770. <td>color</td>
  16771. <td>green</td>
  16772. </tr>
  16773. <tr>
  16774. <td>color</td>
  16775. <td>yellow</td>
  16776. </tr>
  16777. <tr>
  16778. <td>color</td>
  16779. <td>orange</td>
  16780. </tr>
  16781. <tr>
  16782. <td>color</td>
  16783. <td>red</td>
  16784. </tr>
  16785. <tr>
  16786. <td>color</td>
  16787. <td>purple</td>
  16788. </tr>
  16789. <tr>
  16790. <td>color</td>
  16791. <td>blue</td>
  16792. </tr>
  16793. <tr>
  16794. <td>color</td>
  16795. <td>sky</td>
  16796. </tr>
  16797. <tr>
  16798. <td>color</td>
  16799. <td>lime</td>
  16800. </tr>
  16801. <tr>
  16802. <td>color</td>
  16803. <td>pink</td>
  16804. </tr>
  16805. <tr>
  16806. <td>color</td>
  16807. <td>black</td>
  16808. </tr>
  16809. <tr>
  16810. <td>color</td>
  16811. <td>silver</td>
  16812. </tr>
  16813. <tr>
  16814. <td>color</td>
  16815. <td>peachpuff</td>
  16816. </tr>
  16817. <tr>
  16818. <td>color</td>
  16819. <td>crimson</td>
  16820. </tr>
  16821. <tr>
  16822. <td>color</td>
  16823. <td>plum</td>
  16824. </tr>
  16825. <tr>
  16826. <td>color</td>
  16827. <td>darkgreen</td>
  16828. </tr>
  16829. <tr>
  16830. <td>color</td>
  16831. <td>slateblue</td>
  16832. </tr>
  16833. <tr>
  16834. <td>color</td>
  16835. <td>magenta</td>
  16836. </tr>
  16837. <tr>
  16838. <td>color</td>
  16839. <td>gold</td>
  16840. </tr>
  16841. <tr>
  16842. <td>color</td>
  16843. <td>navy</td>
  16844. </tr>
  16845. <tr>
  16846. <td>color</td>
  16847. <td>gray</td>
  16848. </tr>
  16849. <tr>
  16850. <td>color</td>
  16851. <td>saddlebrown</td>
  16852. </tr>
  16853. <tr>
  16854. <td>color</td>
  16855. <td>paleturquoise</td>
  16856. </tr>
  16857. <tr>
  16858. <td>color</td>
  16859. <td>mistyrose</td>
  16860. </tr>
  16861. <tr>
  16862. <td>color</td>
  16863. <td>indigo</td>
  16864. </tr>
  16865. </tbody>
  16866. </table>
  16867. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16868. <p><a id="schemaboardsmembers"></a>
  16869. <a id="schema_BoardsMembers"></a>
  16870. <a id="tocSboardsmembers"></a>
  16871. <a id="tocsboardsmembers"></a></p>
  16872. <pre class="highlight tab tab-json"><code>{
  16873. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16874. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16875. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16876. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16877. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16878. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16879. }
  16880. </code></pre>
  16881. <h3 id="properties-3">Properties</h3>
  16882. <table>
  16883. <thead>
  16884. <tr>
  16885. <th>Name</th>
  16886. <th>Type</th>
  16887. <th>Required</th>
  16888. <th>Restrictions</th>
  16889. <th>Description</th>
  16890. </tr>
  16891. </thead>
  16892. <tbody>
  16893. <tr>
  16894. <td>userId</td>
  16895. <td>string</td>
  16896. <td>true</td>
  16897. <td>none</td>
  16898. <td>The uniq ID of the member</td>
  16899. </tr>
  16900. <tr>
  16901. <td>isAdmin</td>
  16902. <td>boolean</td>
  16903. <td>true</td>
  16904. <td>none</td>
  16905. <td>Is the member an admin of the board?</td>
  16906. </tr>
  16907. <tr>
  16908. <td>isActive</td>
  16909. <td>boolean</td>
  16910. <td>true</td>
  16911. <td>none</td>
  16912. <td>Is the member active?</td>
  16913. </tr>
  16914. <tr>
  16915. <td>isNoComments</td>
  16916. <td>boolean</td>
  16917. <td>false</td>
  16918. <td>none</td>
  16919. <td>Is the member not allowed to make comments</td>
  16920. </tr>
  16921. <tr>
  16922. <td>isCommentOnly</td>
  16923. <td>boolean</td>
  16924. <td>false</td>
  16925. <td>none</td>
  16926. <td>Is the member only allowed to comment on the board</td>
  16927. </tr>
  16928. <tr>
  16929. <td>isWorker</td>
  16930. <td>boolean</td>
  16931. <td>false</td>
  16932. <td>none</td>
  16933. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16934. </tr>
  16935. </tbody>
  16936. </table>
  16937. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16938. <p><a id="schemaboardsorgs"></a>
  16939. <a id="schema_BoardsOrgs"></a>
  16940. <a id="tocSboardsorgs"></a>
  16941. <a id="tocsboardsorgs"></a></p>
  16942. <pre class="highlight tab tab-json"><code>{
  16943. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16944. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16945. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16946. }
  16947. </code></pre>
  16948. <h3 id="properties-4">Properties</h3>
  16949. <table>
  16950. <thead>
  16951. <tr>
  16952. <th>Name</th>
  16953. <th>Type</th>
  16954. <th>Required</th>
  16955. <th>Restrictions</th>
  16956. <th>Description</th>
  16957. </tr>
  16958. </thead>
  16959. <tbody>
  16960. <tr>
  16961. <td>orgId</td>
  16962. <td>string</td>
  16963. <td>true</td>
  16964. <td>none</td>
  16965. <td>The uniq ID of the organization</td>
  16966. </tr>
  16967. <tr>
  16968. <td>orgDisplayName</td>
  16969. <td>string</td>
  16970. <td>true</td>
  16971. <td>none</td>
  16972. <td>The display name of the organization</td>
  16973. </tr>
  16974. <tr>
  16975. <td>isActive</td>
  16976. <td>boolean</td>
  16977. <td>true</td>
  16978. <td>none</td>
  16979. <td>Is the organization active?</td>
  16980. </tr>
  16981. </tbody>
  16982. </table>
  16983. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16984. <p><a id="schemaboardsteams"></a>
  16985. <a id="schema_BoardsTeams"></a>
  16986. <a id="tocSboardsteams"></a>
  16987. <a id="tocsboardsteams"></a></p>
  16988. <pre class="highlight tab tab-json"><code>{
  16989. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16990. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16991. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16992. }
  16993. </code></pre>
  16994. <h3 id="properties-5">Properties</h3>
  16995. <table>
  16996. <thead>
  16997. <tr>
  16998. <th>Name</th>
  16999. <th>Type</th>
  17000. <th>Required</th>
  17001. <th>Restrictions</th>
  17002. <th>Description</th>
  17003. </tr>
  17004. </thead>
  17005. <tbody>
  17006. <tr>
  17007. <td>teamId</td>
  17008. <td>string</td>
  17009. <td>true</td>
  17010. <td>none</td>
  17011. <td>The uniq ID of the team</td>
  17012. </tr>
  17013. <tr>
  17014. <td>teamDisplayName</td>
  17015. <td>string</td>
  17016. <td>true</td>
  17017. <td>none</td>
  17018. <td>The display name of the team</td>
  17019. </tr>
  17020. <tr>
  17021. <td>isActive</td>
  17022. <td>boolean</td>
  17023. <td>true</td>
  17024. <td>none</td>
  17025. <td>Is the team active?</td>
  17026. </tr>
  17027. </tbody>
  17028. </table>
  17029. <h2 id="tocs_cardcomments">CardComments</h2>
  17030. <p><a id="schemacardcomments"></a>
  17031. <a id="schema_CardComments"></a>
  17032. <a id="tocScardcomments"></a>
  17033. <a id="tocscardcomments"></a></p>
  17034. <pre class="highlight tab tab-json"><code>{
  17035. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17036. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17037. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17038. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17039. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17040. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17041. }
  17042. </code></pre>
  17043. <p>A comment on a card</p>
  17044. <h3 id="properties-6">Properties</h3>
  17045. <table>
  17046. <thead>
  17047. <tr>
  17048. <th>Name</th>
  17049. <th>Type</th>
  17050. <th>Required</th>
  17051. <th>Restrictions</th>
  17052. <th>Description</th>
  17053. </tr>
  17054. </thead>
  17055. <tbody>
  17056. <tr>
  17057. <td>boardId</td>
  17058. <td>string</td>
  17059. <td>true</td>
  17060. <td>none</td>
  17061. <td>the board ID</td>
  17062. </tr>
  17063. <tr>
  17064. <td>cardId</td>
  17065. <td>string</td>
  17066. <td>true</td>
  17067. <td>none</td>
  17068. <td>the card ID</td>
  17069. </tr>
  17070. <tr>
  17071. <td>text</td>
  17072. <td>string</td>
  17073. <td>true</td>
  17074. <td>none</td>
  17075. <td>the text of the comment</td>
  17076. </tr>
  17077. <tr>
  17078. <td>createdAt</td>
  17079. <td>string</td>
  17080. <td>true</td>
  17081. <td>none</td>
  17082. <td>when was the comment created</td>
  17083. </tr>
  17084. <tr>
  17085. <td>modifiedAt</td>
  17086. <td>string</td>
  17087. <td>true</td>
  17088. <td>none</td>
  17089. <td>none</td>
  17090. </tr>
  17091. <tr>
  17092. <td>userId</td>
  17093. <td>string</td>
  17094. <td>true</td>
  17095. <td>none</td>
  17096. <td>the author ID of the comment</td>
  17097. </tr>
  17098. </tbody>
  17099. </table>
  17100. <h2 id="tocs_cards">Cards</h2>
  17101. <p><a id="schemacards"></a>
  17102. <a id="schema_Cards"></a>
  17103. <a id="tocScards"></a>
  17104. <a id="tocscards"></a></p>
  17105. <pre class="highlight tab tab-json"><code>{
  17106. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17107. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17108. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17109. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17110. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17111. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17112. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17113. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17114. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17115. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17116. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17117. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17118. {}
  17119. ],
  17120. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17121. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17122. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17123. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17124. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17125. <span class="hljs-string">&quot;string&quot;</span>
  17126. ],
  17127. <span class="hljs-attr">&quot;members&quot;</span>: [
  17128. <span class="hljs-string">&quot;string&quot;</span>
  17129. ],
  17130. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17131. <span class="hljs-string">&quot;string&quot;</span>
  17132. ],
  17133. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17134. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17135. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17136. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17137. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17138. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17139. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17140. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17141. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17142. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17143. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17144. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17145. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17146. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17147. <span class="hljs-string">&quot;string&quot;</span>
  17148. ],
  17149. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17150. <span class="hljs-string">&quot;string&quot;</span>
  17151. ],
  17152. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17153. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17154. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17155. },
  17156. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17157. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17158. <span class="hljs-attr">&quot;one&quot;</span>: [
  17159. <span class="hljs-string">&quot;string&quot;</span>
  17160. ],
  17161. <span class="hljs-attr">&quot;two&quot;</span>: [
  17162. <span class="hljs-string">&quot;string&quot;</span>
  17163. ],
  17164. <span class="hljs-attr">&quot;three&quot;</span>: [
  17165. <span class="hljs-string">&quot;string&quot;</span>
  17166. ],
  17167. <span class="hljs-attr">&quot;five&quot;</span>: [
  17168. <span class="hljs-string">&quot;string&quot;</span>
  17169. ],
  17170. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17171. <span class="hljs-string">&quot;string&quot;</span>
  17172. ],
  17173. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17174. <span class="hljs-string">&quot;string&quot;</span>
  17175. ],
  17176. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17177. <span class="hljs-string">&quot;string&quot;</span>
  17178. ],
  17179. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17180. <span class="hljs-string">&quot;string&quot;</span>
  17181. ],
  17182. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17183. <span class="hljs-string">&quot;string&quot;</span>
  17184. ],
  17185. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17186. <span class="hljs-string">&quot;string&quot;</span>
  17187. ],
  17188. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17189. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17190. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17191. },
  17192. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17193. <span class="hljs-string">&quot;string&quot;</span>
  17194. ],
  17195. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17196. <span class="hljs-number">0</span>
  17197. ],
  17198. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17199. <span class="hljs-string">&quot;string&quot;</span>
  17200. ],
  17201. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17202. }
  17203. </code></pre>
  17204. <h3 id="properties-7">Properties</h3>
  17205. <table>
  17206. <thead>
  17207. <tr>
  17208. <th>Name</th>
  17209. <th>Type</th>
  17210. <th>Required</th>
  17211. <th>Restrictions</th>
  17212. <th>Description</th>
  17213. </tr>
  17214. </thead>
  17215. <tbody>
  17216. <tr>
  17217. <td>title</td>
  17218. <td>string¦null</td>
  17219. <td>false</td>
  17220. <td>none</td>
  17221. <td>the title of the card</td>
  17222. </tr>
  17223. <tr>
  17224. <td>archived</td>
  17225. <td>boolean</td>
  17226. <td>true</td>
  17227. <td>none</td>
  17228. <td>is the card archived</td>
  17229. </tr>
  17230. <tr>
  17231. <td>archivedAt</td>
  17232. <td>string¦null</td>
  17233. <td>false</td>
  17234. <td>none</td>
  17235. <td>latest archiving date</td>
  17236. </tr>
  17237. <tr>
  17238. <td>parentId</td>
  17239. <td>string¦null</td>
  17240. <td>false</td>
  17241. <td>none</td>
  17242. <td>ID of the parent card</td>
  17243. </tr>
  17244. <tr>
  17245. <td>listId</td>
  17246. <td>string¦null</td>
  17247. <td>false</td>
  17248. <td>none</td>
  17249. <td>List ID where the card is</td>
  17250. </tr>
  17251. <tr>
  17252. <td>swimlaneId</td>
  17253. <td>string</td>
  17254. <td>true</td>
  17255. <td>none</td>
  17256. <td>Swimlane ID where the card is</td>
  17257. </tr>
  17258. <tr>
  17259. <td>boardId</td>
  17260. <td>string¦null</td>
  17261. <td>false</td>
  17262. <td>none</td>
  17263. <td>Board ID of the card</td>
  17264. </tr>
  17265. <tr>
  17266. <td>coverId</td>
  17267. <td>string¦null</td>
  17268. <td>false</td>
  17269. <td>none</td>
  17270. <td>Cover ID of the card</td>
  17271. </tr>
  17272. <tr>
  17273. <td>color</td>
  17274. <td>string¦null</td>
  17275. <td>false</td>
  17276. <td>none</td>
  17277. <td>none</td>
  17278. </tr>
  17279. <tr>
  17280. <td>createdAt</td>
  17281. <td>string</td>
  17282. <td>true</td>
  17283. <td>none</td>
  17284. <td>creation date</td>
  17285. </tr>
  17286. <tr>
  17287. <td>modifiedAt</td>
  17288. <td>string</td>
  17289. <td>true</td>
  17290. <td>none</td>
  17291. <td>none</td>
  17292. </tr>
  17293. <tr>
  17294. <td>customFields</td>
  17295. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17296. <td>false</td>
  17297. <td>none</td>
  17298. <td>list of custom fields</td>
  17299. </tr>
  17300. <tr>
  17301. <td>dateLastActivity</td>
  17302. <td>string</td>
  17303. <td>true</td>
  17304. <td>none</td>
  17305. <td>Date of last activity</td>
  17306. </tr>
  17307. <tr>
  17308. <td>description</td>
  17309. <td>string¦null</td>
  17310. <td>false</td>
  17311. <td>none</td>
  17312. <td>description of the card</td>
  17313. </tr>
  17314. <tr>
  17315. <td>requestedBy</td>
  17316. <td>string¦null</td>
  17317. <td>false</td>
  17318. <td>none</td>
  17319. <td>who requested the card (ID of the user)</td>
  17320. </tr>
  17321. <tr>
  17322. <td>assignedBy</td>
  17323. <td>string¦null</td>
  17324. <td>false</td>
  17325. <td>none</td>
  17326. <td>who assigned the card (ID of the user)</td>
  17327. </tr>
  17328. <tr>
  17329. <td>labelIds</td>
  17330. <td>[string]¦null</td>
  17331. <td>false</td>
  17332. <td>none</td>
  17333. <td>list of labels ID the card has</td>
  17334. </tr>
  17335. <tr>
  17336. <td>members</td>
  17337. <td>[string]¦null</td>
  17338. <td>false</td>
  17339. <td>none</td>
  17340. <td>list of members (user IDs)</td>
  17341. </tr>
  17342. <tr>
  17343. <td>assignees</td>
  17344. <td>[string]¦null</td>
  17345. <td>false</td>
  17346. <td>none</td>
  17347. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  17348. </tr>
  17349. <tr>
  17350. <td>receivedAt</td>
  17351. <td>string¦null</td>
  17352. <td>false</td>
  17353. <td>none</td>
  17354. <td>Date the card was received</td>
  17355. </tr>
  17356. <tr>
  17357. <td>startAt</td>
  17358. <td>string¦null</td>
  17359. <td>false</td>
  17360. <td>none</td>
  17361. <td>Date the card was started to be worked on</td>
  17362. </tr>
  17363. <tr>
  17364. <td>dueAt</td>
  17365. <td>string¦null</td>
  17366. <td>false</td>
  17367. <td>none</td>
  17368. <td>Date the card is due</td>
  17369. </tr>
  17370. <tr>
  17371. <td>endAt</td>
  17372. <td>string¦null</td>
  17373. <td>false</td>
  17374. <td>none</td>
  17375. <td>Date the card ended</td>
  17376. </tr>
  17377. <tr>
  17378. <td>spentTime</td>
  17379. <td>number¦null</td>
  17380. <td>false</td>
  17381. <td>none</td>
  17382. <td>How much time has been spent on this</td>
  17383. </tr>
  17384. <tr>
  17385. <td>isOvertime</td>
  17386. <td>boolean¦null</td>
  17387. <td>false</td>
  17388. <td>none</td>
  17389. <td>is the card over time?</td>
  17390. </tr>
  17391. <tr>
  17392. <td>userId</td>
  17393. <td>string</td>
  17394. <td>true</td>
  17395. <td>none</td>
  17396. <td>user ID of the author of the card</td>
  17397. </tr>
  17398. <tr>
  17399. <td>sort</td>
  17400. <td>number¦null</td>
  17401. <td>false</td>
  17402. <td>none</td>
  17403. <td>Sort value</td>
  17404. </tr>
  17405. <tr>
  17406. <td>subtaskSort</td>
  17407. <td>number¦null</td>
  17408. <td>false</td>
  17409. <td>none</td>
  17410. <td>subtask sort value</td>
  17411. </tr>
  17412. <tr>
  17413. <td>type</td>
  17414. <td>string</td>
  17415. <td>true</td>
  17416. <td>none</td>
  17417. <td>type of the card</td>
  17418. </tr>
  17419. <tr>
  17420. <td>linkedId</td>
  17421. <td>string¦null</td>
  17422. <td>false</td>
  17423. <td>none</td>
  17424. <td>ID of the linked card</td>
  17425. </tr>
  17426. <tr>
  17427. <td>vote</td>
  17428. <td><a href="#schemacardsvote">CardsVote</a></td>
  17429. <td>false</td>
  17430. <td>none</td>
  17431. <td>none</td>
  17432. </tr>
  17433. <tr>
  17434. <td>poker</td>
  17435. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17436. <td>false</td>
  17437. <td>none</td>
  17438. <td>none</td>
  17439. </tr>
  17440. <tr>
  17441. <td>targetId_gantt</td>
  17442. <td>[string]¦null</td>
  17443. <td>false</td>
  17444. <td>none</td>
  17445. <td>ID of card which is the child link in gantt view</td>
  17446. </tr>
  17447. <tr>
  17448. <td>linkType_gantt</td>
  17449. <td>[number]¦null</td>
  17450. <td>false</td>
  17451. <td>none</td>
  17452. <td>ID of card which is the parent link in gantt view</td>
  17453. </tr>
  17454. <tr>
  17455. <td>linkId_gantt</td>
  17456. <td>[string]¦null</td>
  17457. <td>false</td>
  17458. <td>none</td>
  17459. <td>ID of card which is the parent link in gantt view</td>
  17460. </tr>
  17461. <tr>
  17462. <td>cardNumber</td>
  17463. <td>number¦null</td>
  17464. <td>false</td>
  17465. <td>none</td>
  17466. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17467. </tr>
  17468. </tbody>
  17469. </table>
  17470. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17471. <table>
  17472. <thead>
  17473. <tr>
  17474. <th>Property</th>
  17475. <th>Value</th>
  17476. </tr>
  17477. </thead>
  17478. <tbody>
  17479. <tr>
  17480. <td>color</td>
  17481. <td>white</td>
  17482. </tr>
  17483. <tr>
  17484. <td>color</td>
  17485. <td>green</td>
  17486. </tr>
  17487. <tr>
  17488. <td>color</td>
  17489. <td>yellow</td>
  17490. </tr>
  17491. <tr>
  17492. <td>color</td>
  17493. <td>orange</td>
  17494. </tr>
  17495. <tr>
  17496. <td>color</td>
  17497. <td>red</td>
  17498. </tr>
  17499. <tr>
  17500. <td>color</td>
  17501. <td>purple</td>
  17502. </tr>
  17503. <tr>
  17504. <td>color</td>
  17505. <td>blue</td>
  17506. </tr>
  17507. <tr>
  17508. <td>color</td>
  17509. <td>sky</td>
  17510. </tr>
  17511. <tr>
  17512. <td>color</td>
  17513. <td>lime</td>
  17514. </tr>
  17515. <tr>
  17516. <td>color</td>
  17517. <td>pink</td>
  17518. </tr>
  17519. <tr>
  17520. <td>color</td>
  17521. <td>black</td>
  17522. </tr>
  17523. <tr>
  17524. <td>color</td>
  17525. <td>silver</td>
  17526. </tr>
  17527. <tr>
  17528. <td>color</td>
  17529. <td>peachpuff</td>
  17530. </tr>
  17531. <tr>
  17532. <td>color</td>
  17533. <td>crimson</td>
  17534. </tr>
  17535. <tr>
  17536. <td>color</td>
  17537. <td>plum</td>
  17538. </tr>
  17539. <tr>
  17540. <td>color</td>
  17541. <td>darkgreen</td>
  17542. </tr>
  17543. <tr>
  17544. <td>color</td>
  17545. <td>slateblue</td>
  17546. </tr>
  17547. <tr>
  17548. <td>color</td>
  17549. <td>magenta</td>
  17550. </tr>
  17551. <tr>
  17552. <td>color</td>
  17553. <td>gold</td>
  17554. </tr>
  17555. <tr>
  17556. <td>color</td>
  17557. <td>navy</td>
  17558. </tr>
  17559. <tr>
  17560. <td>color</td>
  17561. <td>gray</td>
  17562. </tr>
  17563. <tr>
  17564. <td>color</td>
  17565. <td>saddlebrown</td>
  17566. </tr>
  17567. <tr>
  17568. <td>color</td>
  17569. <td>paleturquoise</td>
  17570. </tr>
  17571. <tr>
  17572. <td>color</td>
  17573. <td>mistyrose</td>
  17574. </tr>
  17575. <tr>
  17576. <td>color</td>
  17577. <td>indigo</td>
  17578. </tr>
  17579. </tbody>
  17580. </table>
  17581. <h2 id="tocs_cardsvote">CardsVote</h2>
  17582. <p><a id="schemacardsvote"></a>
  17583. <a id="schema_CardsVote"></a>
  17584. <a id="tocScardsvote"></a>
  17585. <a id="tocscardsvote"></a></p>
  17586. <pre class="highlight tab tab-json"><code>{
  17587. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17588. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17589. <span class="hljs-string">&quot;string&quot;</span>
  17590. ],
  17591. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17592. <span class="hljs-string">&quot;string&quot;</span>
  17593. ],
  17594. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17595. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17596. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17597. }
  17598. </code></pre>
  17599. <h3 id="properties-8">Properties</h3>
  17600. <table>
  17601. <thead>
  17602. <tr>
  17603. <th>Name</th>
  17604. <th>Type</th>
  17605. <th>Required</th>
  17606. <th>Restrictions</th>
  17607. <th>Description</th>
  17608. </tr>
  17609. </thead>
  17610. <tbody>
  17611. <tr>
  17612. <td>question</td>
  17613. <td>string</td>
  17614. <td>true</td>
  17615. <td>none</td>
  17616. <td>none</td>
  17617. </tr>
  17618. <tr>
  17619. <td>positive</td>
  17620. <td>[string]</td>
  17621. <td>false</td>
  17622. <td>none</td>
  17623. <td>list of members (user IDs)</td>
  17624. </tr>
  17625. <tr>
  17626. <td>negative</td>
  17627. <td>[string]</td>
  17628. <td>false</td>
  17629. <td>none</td>
  17630. <td>list of members (user IDs)</td>
  17631. </tr>
  17632. <tr>
  17633. <td>end</td>
  17634. <td>string</td>
  17635. <td>false</td>
  17636. <td>none</td>
  17637. <td>none</td>
  17638. </tr>
  17639. <tr>
  17640. <td>public</td>
  17641. <td>boolean</td>
  17642. <td>true</td>
  17643. <td>none</td>
  17644. <td>none</td>
  17645. </tr>
  17646. <tr>
  17647. <td>allowNonBoardMembers</td>
  17648. <td>boolean</td>
  17649. <td>true</td>
  17650. <td>none</td>
  17651. <td>none</td>
  17652. </tr>
  17653. </tbody>
  17654. </table>
  17655. <h2 id="tocs_cardspoker">CardsPoker</h2>
  17656. <p><a id="schemacardspoker"></a>
  17657. <a id="schema_CardsPoker"></a>
  17658. <a id="tocScardspoker"></a>
  17659. <a id="tocscardspoker"></a></p>
  17660. <pre class="highlight tab tab-json"><code>{
  17661. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17662. <span class="hljs-attr">&quot;one&quot;</span>: [
  17663. <span class="hljs-string">&quot;string&quot;</span>
  17664. ],
  17665. <span class="hljs-attr">&quot;two&quot;</span>: [
  17666. <span class="hljs-string">&quot;string&quot;</span>
  17667. ],
  17668. <span class="hljs-attr">&quot;three&quot;</span>: [
  17669. <span class="hljs-string">&quot;string&quot;</span>
  17670. ],
  17671. <span class="hljs-attr">&quot;five&quot;</span>: [
  17672. <span class="hljs-string">&quot;string&quot;</span>
  17673. ],
  17674. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17675. <span class="hljs-string">&quot;string&quot;</span>
  17676. ],
  17677. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17678. <span class="hljs-string">&quot;string&quot;</span>
  17679. ],
  17680. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17681. <span class="hljs-string">&quot;string&quot;</span>
  17682. ],
  17683. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17684. <span class="hljs-string">&quot;string&quot;</span>
  17685. ],
  17686. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17687. <span class="hljs-string">&quot;string&quot;</span>
  17688. ],
  17689. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17690. <span class="hljs-string">&quot;string&quot;</span>
  17691. ],
  17692. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17693. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17694. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17695. }
  17696. </code></pre>
  17697. <h3 id="properties-9">Properties</h3>
  17698. <table>
  17699. <thead>
  17700. <tr>
  17701. <th>Name</th>
  17702. <th>Type</th>
  17703. <th>Required</th>
  17704. <th>Restrictions</th>
  17705. <th>Description</th>
  17706. </tr>
  17707. </thead>
  17708. <tbody>
  17709. <tr>
  17710. <td>question</td>
  17711. <td>boolean</td>
  17712. <td>true</td>
  17713. <td>none</td>
  17714. <td>none</td>
  17715. </tr>
  17716. <tr>
  17717. <td>one</td>
  17718. <td>[string]</td>
  17719. <td>false</td>
  17720. <td>none</td>
  17721. <td>poker card one</td>
  17722. </tr>
  17723. <tr>
  17724. <td>two</td>
  17725. <td>[string]</td>
  17726. <td>false</td>
  17727. <td>none</td>
  17728. <td>poker card two</td>
  17729. </tr>
  17730. <tr>
  17731. <td>three</td>
  17732. <td>[string]</td>
  17733. <td>false</td>
  17734. <td>none</td>
  17735. <td>poker card three</td>
  17736. </tr>
  17737. <tr>
  17738. <td>five</td>
  17739. <td>[string]</td>
  17740. <td>false</td>
  17741. <td>none</td>
  17742. <td>poker card five</td>
  17743. </tr>
  17744. <tr>
  17745. <td>eight</td>
  17746. <td>[string]</td>
  17747. <td>false</td>
  17748. <td>none</td>
  17749. <td>poker card eight</td>
  17750. </tr>
  17751. <tr>
  17752. <td>thirteen</td>
  17753. <td>[string]</td>
  17754. <td>false</td>
  17755. <td>none</td>
  17756. <td>poker card thirteen</td>
  17757. </tr>
  17758. <tr>
  17759. <td>twenty</td>
  17760. <td>[string]</td>
  17761. <td>false</td>
  17762. <td>none</td>
  17763. <td>poker card twenty</td>
  17764. </tr>
  17765. <tr>
  17766. <td>forty</td>
  17767. <td>[string]</td>
  17768. <td>false</td>
  17769. <td>none</td>
  17770. <td>poker card forty</td>
  17771. </tr>
  17772. <tr>
  17773. <td>oneHundred</td>
  17774. <td>[string]</td>
  17775. <td>false</td>
  17776. <td>none</td>
  17777. <td>poker card oneHundred</td>
  17778. </tr>
  17779. <tr>
  17780. <td>unsure</td>
  17781. <td>[string]</td>
  17782. <td>false</td>
  17783. <td>none</td>
  17784. <td>poker card unsure</td>
  17785. </tr>
  17786. <tr>
  17787. <td>end</td>
  17788. <td>string</td>
  17789. <td>false</td>
  17790. <td>none</td>
  17791. <td>none</td>
  17792. </tr>
  17793. <tr>
  17794. <td>allowNonBoardMembers</td>
  17795. <td>boolean</td>
  17796. <td>true</td>
  17797. <td>none</td>
  17798. <td>none</td>
  17799. </tr>
  17800. <tr>
  17801. <td>estimation</td>
  17802. <td>number</td>
  17803. <td>false</td>
  17804. <td>none</td>
  17805. <td>poker estimation value</td>
  17806. </tr>
  17807. </tbody>
  17808. </table>
  17809. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17810. <p><a id="schemacardscustomfields"></a>
  17811. <a id="schema_CardsCustomfields"></a>
  17812. <a id="tocScardscustomfields"></a>
  17813. <a id="tocscardscustomfields"></a></p>
  17814. <pre class="highlight tab tab-json"><code>{}
  17815. </code></pre>
  17816. <h3 id="properties-10">Properties</h3>
  17817. <p><em>None</em></p>
  17818. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17819. <p><a id="schemachecklistitems"></a>
  17820. <a id="schema_ChecklistItems"></a>
  17821. <a id="tocSchecklistitems"></a>
  17822. <a id="tocschecklistitems"></a></p>
  17823. <pre class="highlight tab tab-json"><code>{
  17824. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17825. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17826. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17827. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17828. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17829. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17830. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17831. }
  17832. </code></pre>
  17833. <p>An item in a checklist</p>
  17834. <h3 id="properties-11">Properties</h3>
  17835. <table>
  17836. <thead>
  17837. <tr>
  17838. <th>Name</th>
  17839. <th>Type</th>
  17840. <th>Required</th>
  17841. <th>Restrictions</th>
  17842. <th>Description</th>
  17843. </tr>
  17844. </thead>
  17845. <tbody>
  17846. <tr>
  17847. <td>title</td>
  17848. <td>string</td>
  17849. <td>true</td>
  17850. <td>none</td>
  17851. <td>the text of the item</td>
  17852. </tr>
  17853. <tr>
  17854. <td>sort</td>
  17855. <td>number</td>
  17856. <td>true</td>
  17857. <td>none</td>
  17858. <td>the sorting field of the item</td>
  17859. </tr>
  17860. <tr>
  17861. <td>isFinished</td>
  17862. <td>boolean</td>
  17863. <td>true</td>
  17864. <td>none</td>
  17865. <td>Is the item checked?</td>
  17866. </tr>
  17867. <tr>
  17868. <td>checklistId</td>
  17869. <td>string</td>
  17870. <td>true</td>
  17871. <td>none</td>
  17872. <td>the checklist ID the item is attached to</td>
  17873. </tr>
  17874. <tr>
  17875. <td>cardId</td>
  17876. <td>string</td>
  17877. <td>true</td>
  17878. <td>none</td>
  17879. <td>the card ID the item is attached to</td>
  17880. </tr>
  17881. <tr>
  17882. <td>createdAt</td>
  17883. <td>string¦null</td>
  17884. <td>false</td>
  17885. <td>none</td>
  17886. <td>none</td>
  17887. </tr>
  17888. <tr>
  17889. <td>modifiedAt</td>
  17890. <td>string</td>
  17891. <td>true</td>
  17892. <td>none</td>
  17893. <td>none</td>
  17894. </tr>
  17895. </tbody>
  17896. </table>
  17897. <h2 id="tocs_checklists">Checklists</h2>
  17898. <p><a id="schemachecklists"></a>
  17899. <a id="schema_Checklists"></a>
  17900. <a id="tocSchecklists"></a>
  17901. <a id="tocschecklists"></a></p>
  17902. <pre class="highlight tab tab-json"><code>{
  17903. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17904. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17905. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17906. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17907. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17908. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17909. }
  17910. </code></pre>
  17911. <p>A Checklist</p>
  17912. <h3 id="properties-12">Properties</h3>
  17913. <table>
  17914. <thead>
  17915. <tr>
  17916. <th>Name</th>
  17917. <th>Type</th>
  17918. <th>Required</th>
  17919. <th>Restrictions</th>
  17920. <th>Description</th>
  17921. </tr>
  17922. </thead>
  17923. <tbody>
  17924. <tr>
  17925. <td>cardId</td>
  17926. <td>string</td>
  17927. <td>true</td>
  17928. <td>none</td>
  17929. <td>The ID of the card the checklist is in</td>
  17930. </tr>
  17931. <tr>
  17932. <td>title</td>
  17933. <td>string</td>
  17934. <td>true</td>
  17935. <td>none</td>
  17936. <td>the title of the checklist</td>
  17937. </tr>
  17938. <tr>
  17939. <td>finishedAt</td>
  17940. <td>string¦null</td>
  17941. <td>false</td>
  17942. <td>none</td>
  17943. <td>When was the checklist finished</td>
  17944. </tr>
  17945. <tr>
  17946. <td>createdAt</td>
  17947. <td>string</td>
  17948. <td>true</td>
  17949. <td>none</td>
  17950. <td>Creation date of the checklist</td>
  17951. </tr>
  17952. <tr>
  17953. <td>modifiedAt</td>
  17954. <td>string</td>
  17955. <td>true</td>
  17956. <td>none</td>
  17957. <td>none</td>
  17958. </tr>
  17959. <tr>
  17960. <td>sort</td>
  17961. <td>number</td>
  17962. <td>true</td>
  17963. <td>none</td>
  17964. <td>sorting value of the checklist</td>
  17965. </tr>
  17966. </tbody>
  17967. </table>
  17968. <h2 id="tocs_customfields">CustomFields</h2>
  17969. <p><a id="schemacustomfields"></a>
  17970. <a id="schema_CustomFields"></a>
  17971. <a id="tocScustomfields"></a>
  17972. <a id="tocscustomfields"></a></p>
  17973. <pre class="highlight tab tab-json"><code>{
  17974. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17975. <span class="hljs-string">&quot;string&quot;</span>
  17976. ],
  17977. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17978. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17979. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17980. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17981. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17982. {}
  17983. ],
  17984. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17985. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17986. },
  17987. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17988. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17989. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17990. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17991. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  17992. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17993. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17994. }
  17995. </code></pre>
  17996. <p>A custom field on a card in the board</p>
  17997. <h3 id="properties-13">Properties</h3>
  17998. <table>
  17999. <thead>
  18000. <tr>
  18001. <th>Name</th>
  18002. <th>Type</th>
  18003. <th>Required</th>
  18004. <th>Restrictions</th>
  18005. <th>Description</th>
  18006. </tr>
  18007. </thead>
  18008. <tbody>
  18009. <tr>
  18010. <td>boardIds</td>
  18011. <td>[string]</td>
  18012. <td>true</td>
  18013. <td>none</td>
  18014. <td>the ID of the board</td>
  18015. </tr>
  18016. <tr>
  18017. <td>name</td>
  18018. <td>string</td>
  18019. <td>true</td>
  18020. <td>none</td>
  18021. <td>name of the custom field</td>
  18022. </tr>
  18023. <tr>
  18024. <td>type</td>
  18025. <td>string</td>
  18026. <td>true</td>
  18027. <td>none</td>
  18028. <td>type of the custom field</td>
  18029. </tr>
  18030. <tr>
  18031. <td>settings</td>
  18032. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  18033. <td>true</td>
  18034. <td>none</td>
  18035. <td>none</td>
  18036. </tr>
  18037. <tr>
  18038. <td>showOnCard</td>
  18039. <td>boolean</td>
  18040. <td>true</td>
  18041. <td>none</td>
  18042. <td>should we show on the cards this custom field</td>
  18043. </tr>
  18044. <tr>
  18045. <td>automaticallyOnCard</td>
  18046. <td>boolean</td>
  18047. <td>true</td>
  18048. <td>none</td>
  18049. <td>should the custom fields automatically be added on cards?</td>
  18050. </tr>
  18051. <tr>
  18052. <td>alwaysOnCard</td>
  18053. <td>boolean</td>
  18054. <td>true</td>
  18055. <td>none</td>
  18056. <td>should the custom field be automatically added to all cards?</td>
  18057. </tr>
  18058. <tr>
  18059. <td>showLabelOnMiniCard</td>
  18060. <td>boolean</td>
  18061. <td>true</td>
  18062. <td>none</td>
  18063. <td>should the label of the custom field be shown on minicards?</td>
  18064. </tr>
  18065. <tr>
  18066. <td>showSumAtTopOfList</td>
  18067. <td>boolean</td>
  18068. <td>true</td>
  18069. <td>none</td>
  18070. <td>should the sum of the custom fields be shown at top of list?</td>
  18071. </tr>
  18072. <tr>
  18073. <td>createdAt</td>
  18074. <td>string¦null</td>
  18075. <td>false</td>
  18076. <td>none</td>
  18077. <td>none</td>
  18078. </tr>
  18079. <tr>
  18080. <td>modifiedAt</td>
  18081. <td>string</td>
  18082. <td>true</td>
  18083. <td>none</td>
  18084. <td>none</td>
  18085. </tr>
  18086. </tbody>
  18087. </table>
  18088. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18089. <table>
  18090. <thead>
  18091. <tr>
  18092. <th>Property</th>
  18093. <th>Value</th>
  18094. </tr>
  18095. </thead>
  18096. <tbody>
  18097. <tr>
  18098. <td>type</td>
  18099. <td>text</td>
  18100. </tr>
  18101. <tr>
  18102. <td>type</td>
  18103. <td>number</td>
  18104. </tr>
  18105. <tr>
  18106. <td>type</td>
  18107. <td>date</td>
  18108. </tr>
  18109. <tr>
  18110. <td>type</td>
  18111. <td>dropdown</td>
  18112. </tr>
  18113. <tr>
  18114. <td>type</td>
  18115. <td>checkbox</td>
  18116. </tr>
  18117. <tr>
  18118. <td>type</td>
  18119. <td>currency</td>
  18120. </tr>
  18121. <tr>
  18122. <td>type</td>
  18123. <td>stringtemplate</td>
  18124. </tr>
  18125. </tbody>
  18126. </table>
  18127. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18128. <p><a id="schemacustomfieldssettings"></a>
  18129. <a id="schema_CustomFieldsSettings"></a>
  18130. <a id="tocScustomfieldssettings"></a>
  18131. <a id="tocscustomfieldssettings"></a></p>
  18132. <pre class="highlight tab tab-json"><code>{
  18133. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18134. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18135. {}
  18136. ],
  18137. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18138. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18139. }
  18140. </code></pre>
  18141. <h3 id="properties-14">Properties</h3>
  18142. <table>
  18143. <thead>
  18144. <tr>
  18145. <th>Name</th>
  18146. <th>Type</th>
  18147. <th>Required</th>
  18148. <th>Restrictions</th>
  18149. <th>Description</th>
  18150. </tr>
  18151. </thead>
  18152. <tbody>
  18153. <tr>
  18154. <td>currencyCode</td>
  18155. <td>string</td>
  18156. <td>false</td>
  18157. <td>none</td>
  18158. <td>none</td>
  18159. </tr>
  18160. <tr>
  18161. <td>dropdownItems</td>
  18162. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18163. <td>false</td>
  18164. <td>none</td>
  18165. <td>list of drop down items objects</td>
  18166. </tr>
  18167. <tr>
  18168. <td>stringtemplateFormat</td>
  18169. <td>string</td>
  18170. <td>false</td>
  18171. <td>none</td>
  18172. <td>none</td>
  18173. </tr>
  18174. <tr>
  18175. <td>stringtemplateSeparator</td>
  18176. <td>string</td>
  18177. <td>false</td>
  18178. <td>none</td>
  18179. <td>none</td>
  18180. </tr>
  18181. </tbody>
  18182. </table>
  18183. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18184. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18185. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18186. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18187. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18188. <pre class="highlight tab tab-json"><code>{}
  18189. </code></pre>
  18190. <h3 id="properties-15">Properties</h3>
  18191. <p><em>None</em></p>
  18192. <h2 id="tocs_integrations">Integrations</h2>
  18193. <p><a id="schemaintegrations"></a>
  18194. <a id="schema_Integrations"></a>
  18195. <a id="tocSintegrations"></a>
  18196. <a id="tocsintegrations"></a></p>
  18197. <pre class="highlight tab tab-json"><code>{
  18198. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18199. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18200. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18201. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18202. <span class="hljs-string">&quot;string&quot;</span>
  18203. ],
  18204. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18205. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18206. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18207. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18208. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18209. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18210. }
  18211. </code></pre>
  18212. <p>Integration with third-party applications</p>
  18213. <h3 id="properties-16">Properties</h3>
  18214. <table>
  18215. <thead>
  18216. <tr>
  18217. <th>Name</th>
  18218. <th>Type</th>
  18219. <th>Required</th>
  18220. <th>Restrictions</th>
  18221. <th>Description</th>
  18222. </tr>
  18223. </thead>
  18224. <tbody>
  18225. <tr>
  18226. <td>enabled</td>
  18227. <td>boolean</td>
  18228. <td>true</td>
  18229. <td>none</td>
  18230. <td>is the integration enabled?</td>
  18231. </tr>
  18232. <tr>
  18233. <td>title</td>
  18234. <td>string¦null</td>
  18235. <td>false</td>
  18236. <td>none</td>
  18237. <td>name of the integration</td>
  18238. </tr>
  18239. <tr>
  18240. <td>type</td>
  18241. <td>string</td>
  18242. <td>true</td>
  18243. <td>none</td>
  18244. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18245. </tr>
  18246. <tr>
  18247. <td>activities</td>
  18248. <td>[string]</td>
  18249. <td>true</td>
  18250. <td>none</td>
  18251. <td>activities the integration gets triggered (list)</td>
  18252. </tr>
  18253. <tr>
  18254. <td>url</td>
  18255. <td>string</td>
  18256. <td>true</td>
  18257. <td>none</td>
  18258. <td>none</td>
  18259. </tr>
  18260. <tr>
  18261. <td>token</td>
  18262. <td>string¦null</td>
  18263. <td>false</td>
  18264. <td>none</td>
  18265. <td>token of the integration</td>
  18266. </tr>
  18267. <tr>
  18268. <td>boardId</td>
  18269. <td>string</td>
  18270. <td>true</td>
  18271. <td>none</td>
  18272. <td>Board ID of the integration</td>
  18273. </tr>
  18274. <tr>
  18275. <td>createdAt</td>
  18276. <td>string</td>
  18277. <td>true</td>
  18278. <td>none</td>
  18279. <td>Creation date of the integration</td>
  18280. </tr>
  18281. <tr>
  18282. <td>modifiedAt</td>
  18283. <td>string</td>
  18284. <td>true</td>
  18285. <td>none</td>
  18286. <td>none</td>
  18287. </tr>
  18288. <tr>
  18289. <td>userId</td>
  18290. <td>string</td>
  18291. <td>true</td>
  18292. <td>none</td>
  18293. <td>user ID who created the interation</td>
  18294. </tr>
  18295. </tbody>
  18296. </table>
  18297. <h2 id="tocs_lists">Lists</h2>
  18298. <p><a id="schemalists"></a>
  18299. <a id="schema_Lists"></a>
  18300. <a id="tocSlists"></a>
  18301. <a id="tocslists"></a></p>
  18302. <pre class="highlight tab tab-json"><code>{
  18303. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18304. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18305. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18306. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18307. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18308. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18309. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18310. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18311. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18312. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18313. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18314. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18315. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18316. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18317. },
  18318. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18319. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18320. }
  18321. </code></pre>
  18322. <p>A list (column) in the Wekan board.</p>
  18323. <h3 id="properties-17">Properties</h3>
  18324. <table>
  18325. <thead>
  18326. <tr>
  18327. <th>Name</th>
  18328. <th>Type</th>
  18329. <th>Required</th>
  18330. <th>Restrictions</th>
  18331. <th>Description</th>
  18332. </tr>
  18333. </thead>
  18334. <tbody>
  18335. <tr>
  18336. <td>title</td>
  18337. <td>string</td>
  18338. <td>true</td>
  18339. <td>none</td>
  18340. <td>the title of the list</td>
  18341. </tr>
  18342. <tr>
  18343. <td>starred</td>
  18344. <td>boolean¦null</td>
  18345. <td>false</td>
  18346. <td>none</td>
  18347. <td>if a list is stared<br />then we put it on the top</td>
  18348. </tr>
  18349. <tr>
  18350. <td>archived</td>
  18351. <td>boolean</td>
  18352. <td>true</td>
  18353. <td>none</td>
  18354. <td>is the list archived</td>
  18355. </tr>
  18356. <tr>
  18357. <td>archivedAt</td>
  18358. <td>string¦null</td>
  18359. <td>false</td>
  18360. <td>none</td>
  18361. <td>latest archiving date</td>
  18362. </tr>
  18363. <tr>
  18364. <td>boardId</td>
  18365. <td>string</td>
  18366. <td>true</td>
  18367. <td>none</td>
  18368. <td>the board associated to this list</td>
  18369. </tr>
  18370. <tr>
  18371. <td>swimlaneId</td>
  18372. <td>string</td>
  18373. <td>true</td>
  18374. <td>none</td>
  18375. <td>the swimlane associated to this list. Used for templates</td>
  18376. </tr>
  18377. <tr>
  18378. <td>createdAt</td>
  18379. <td>string</td>
  18380. <td>true</td>
  18381. <td>none</td>
  18382. <td>creation date</td>
  18383. </tr>
  18384. <tr>
  18385. <td>sort</td>
  18386. <td>number¦null</td>
  18387. <td>false</td>
  18388. <td>none</td>
  18389. <td>is the list sorted</td>
  18390. </tr>
  18391. <tr>
  18392. <td>updatedAt</td>
  18393. <td>string¦null</td>
  18394. <td>false</td>
  18395. <td>none</td>
  18396. <td>last update of the list</td>
  18397. </tr>
  18398. <tr>
  18399. <td>modifiedAt</td>
  18400. <td>string</td>
  18401. <td>true</td>
  18402. <td>none</td>
  18403. <td>none</td>
  18404. </tr>
  18405. <tr>
  18406. <td>wipLimit</td>
  18407. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  18408. <td>false</td>
  18409. <td>none</td>
  18410. <td>none</td>
  18411. </tr>
  18412. <tr>
  18413. <td>color</td>
  18414. <td>string¦null</td>
  18415. <td>false</td>
  18416. <td>none</td>
  18417. <td>the color of the list</td>
  18418. </tr>
  18419. <tr>
  18420. <td>type</td>
  18421. <td>string</td>
  18422. <td>true</td>
  18423. <td>none</td>
  18424. <td>The type of list</td>
  18425. </tr>
  18426. </tbody>
  18427. </table>
  18428. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18429. <table>
  18430. <thead>
  18431. <tr>
  18432. <th>Property</th>
  18433. <th>Value</th>
  18434. </tr>
  18435. </thead>
  18436. <tbody>
  18437. <tr>
  18438. <td>color</td>
  18439. <td>white</td>
  18440. </tr>
  18441. <tr>
  18442. <td>color</td>
  18443. <td>green</td>
  18444. </tr>
  18445. <tr>
  18446. <td>color</td>
  18447. <td>yellow</td>
  18448. </tr>
  18449. <tr>
  18450. <td>color</td>
  18451. <td>orange</td>
  18452. </tr>
  18453. <tr>
  18454. <td>color</td>
  18455. <td>red</td>
  18456. </tr>
  18457. <tr>
  18458. <td>color</td>
  18459. <td>purple</td>
  18460. </tr>
  18461. <tr>
  18462. <td>color</td>
  18463. <td>blue</td>
  18464. </tr>
  18465. <tr>
  18466. <td>color</td>
  18467. <td>sky</td>
  18468. </tr>
  18469. <tr>
  18470. <td>color</td>
  18471. <td>lime</td>
  18472. </tr>
  18473. <tr>
  18474. <td>color</td>
  18475. <td>pink</td>
  18476. </tr>
  18477. <tr>
  18478. <td>color</td>
  18479. <td>black</td>
  18480. </tr>
  18481. <tr>
  18482. <td>color</td>
  18483. <td>silver</td>
  18484. </tr>
  18485. <tr>
  18486. <td>color</td>
  18487. <td>peachpuff</td>
  18488. </tr>
  18489. <tr>
  18490. <td>color</td>
  18491. <td>crimson</td>
  18492. </tr>
  18493. <tr>
  18494. <td>color</td>
  18495. <td>plum</td>
  18496. </tr>
  18497. <tr>
  18498. <td>color</td>
  18499. <td>darkgreen</td>
  18500. </tr>
  18501. <tr>
  18502. <td>color</td>
  18503. <td>slateblue</td>
  18504. </tr>
  18505. <tr>
  18506. <td>color</td>
  18507. <td>magenta</td>
  18508. </tr>
  18509. <tr>
  18510. <td>color</td>
  18511. <td>gold</td>
  18512. </tr>
  18513. <tr>
  18514. <td>color</td>
  18515. <td>navy</td>
  18516. </tr>
  18517. <tr>
  18518. <td>color</td>
  18519. <td>gray</td>
  18520. </tr>
  18521. <tr>
  18522. <td>color</td>
  18523. <td>saddlebrown</td>
  18524. </tr>
  18525. <tr>
  18526. <td>color</td>
  18527. <td>paleturquoise</td>
  18528. </tr>
  18529. <tr>
  18530. <td>color</td>
  18531. <td>mistyrose</td>
  18532. </tr>
  18533. <tr>
  18534. <td>color</td>
  18535. <td>indigo</td>
  18536. </tr>
  18537. </tbody>
  18538. </table>
  18539. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18540. <p><a id="schemalistswiplimit"></a>
  18541. <a id="schema_ListsWiplimit"></a>
  18542. <a id="tocSlistswiplimit"></a>
  18543. <a id="tocslistswiplimit"></a></p>
  18544. <pre class="highlight tab tab-json"><code>{
  18545. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18546. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18547. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18548. }
  18549. </code></pre>
  18550. <h3 id="properties-18">Properties</h3>
  18551. <table>
  18552. <thead>
  18553. <tr>
  18554. <th>Name</th>
  18555. <th>Type</th>
  18556. <th>Required</th>
  18557. <th>Restrictions</th>
  18558. <th>Description</th>
  18559. </tr>
  18560. </thead>
  18561. <tbody>
  18562. <tr>
  18563. <td>value</td>
  18564. <td>number</td>
  18565. <td>true</td>
  18566. <td>none</td>
  18567. <td>value of the WIP</td>
  18568. </tr>
  18569. <tr>
  18570. <td>enabled</td>
  18571. <td>boolean</td>
  18572. <td>true</td>
  18573. <td>none</td>
  18574. <td>is the WIP enabled</td>
  18575. </tr>
  18576. <tr>
  18577. <td>soft</td>
  18578. <td>boolean</td>
  18579. <td>true</td>
  18580. <td>none</td>
  18581. <td>is the WIP a soft or hard requirement</td>
  18582. </tr>
  18583. </tbody>
  18584. </table>
  18585. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18586. <p><a id="schemaswimlanes"></a>
  18587. <a id="schema_Swimlanes"></a>
  18588. <a id="tocSswimlanes"></a>
  18589. <a id="tocsswimlanes"></a></p>
  18590. <pre class="highlight tab tab-json"><code>{
  18591. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18592. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18593. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18594. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18595. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18596. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18597. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18598. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18599. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18600. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18601. }
  18602. </code></pre>
  18603. <p>A swimlane is an line in the kaban board.</p>
  18604. <h3 id="properties-19">Properties</h3>
  18605. <table>
  18606. <thead>
  18607. <tr>
  18608. <th>Name</th>
  18609. <th>Type</th>
  18610. <th>Required</th>
  18611. <th>Restrictions</th>
  18612. <th>Description</th>
  18613. </tr>
  18614. </thead>
  18615. <tbody>
  18616. <tr>
  18617. <td>title</td>
  18618. <td>string</td>
  18619. <td>true</td>
  18620. <td>none</td>
  18621. <td>the title of the swimlane</td>
  18622. </tr>
  18623. <tr>
  18624. <td>archived</td>
  18625. <td>boolean</td>
  18626. <td>true</td>
  18627. <td>none</td>
  18628. <td>is the swimlane archived?</td>
  18629. </tr>
  18630. <tr>
  18631. <td>archivedAt</td>
  18632. <td>string¦null</td>
  18633. <td>false</td>
  18634. <td>none</td>
  18635. <td>latest archiving date of the swimlane</td>
  18636. </tr>
  18637. <tr>
  18638. <td>boardId</td>
  18639. <td>string</td>
  18640. <td>true</td>
  18641. <td>none</td>
  18642. <td>the ID of the board the swimlane is attached to</td>
  18643. </tr>
  18644. <tr>
  18645. <td>createdAt</td>
  18646. <td>string</td>
  18647. <td>true</td>
  18648. <td>none</td>
  18649. <td>creation date of the swimlane</td>
  18650. </tr>
  18651. <tr>
  18652. <td>sort</td>
  18653. <td>number¦null</td>
  18654. <td>false</td>
  18655. <td>none</td>
  18656. <td>the sort value of the swimlane</td>
  18657. </tr>
  18658. <tr>
  18659. <td>color</td>
  18660. <td>string¦null</td>
  18661. <td>false</td>
  18662. <td>none</td>
  18663. <td>the color of the swimlane</td>
  18664. </tr>
  18665. <tr>
  18666. <td>updatedAt</td>
  18667. <td>string¦null</td>
  18668. <td>false</td>
  18669. <td>none</td>
  18670. <td>when was the swimlane last edited</td>
  18671. </tr>
  18672. <tr>
  18673. <td>modifiedAt</td>
  18674. <td>string</td>
  18675. <td>true</td>
  18676. <td>none</td>
  18677. <td>none</td>
  18678. </tr>
  18679. <tr>
  18680. <td>type</td>
  18681. <td>string</td>
  18682. <td>true</td>
  18683. <td>none</td>
  18684. <td>The type of swimlane</td>
  18685. </tr>
  18686. </tbody>
  18687. </table>
  18688. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18689. <table>
  18690. <thead>
  18691. <tr>
  18692. <th>Property</th>
  18693. <th>Value</th>
  18694. </tr>
  18695. </thead>
  18696. <tbody>
  18697. <tr>
  18698. <td>color</td>
  18699. <td>white</td>
  18700. </tr>
  18701. <tr>
  18702. <td>color</td>
  18703. <td>green</td>
  18704. </tr>
  18705. <tr>
  18706. <td>color</td>
  18707. <td>yellow</td>
  18708. </tr>
  18709. <tr>
  18710. <td>color</td>
  18711. <td>orange</td>
  18712. </tr>
  18713. <tr>
  18714. <td>color</td>
  18715. <td>red</td>
  18716. </tr>
  18717. <tr>
  18718. <td>color</td>
  18719. <td>purple</td>
  18720. </tr>
  18721. <tr>
  18722. <td>color</td>
  18723. <td>blue</td>
  18724. </tr>
  18725. <tr>
  18726. <td>color</td>
  18727. <td>sky</td>
  18728. </tr>
  18729. <tr>
  18730. <td>color</td>
  18731. <td>lime</td>
  18732. </tr>
  18733. <tr>
  18734. <td>color</td>
  18735. <td>pink</td>
  18736. </tr>
  18737. <tr>
  18738. <td>color</td>
  18739. <td>black</td>
  18740. </tr>
  18741. <tr>
  18742. <td>color</td>
  18743. <td>silver</td>
  18744. </tr>
  18745. <tr>
  18746. <td>color</td>
  18747. <td>peachpuff</td>
  18748. </tr>
  18749. <tr>
  18750. <td>color</td>
  18751. <td>crimson</td>
  18752. </tr>
  18753. <tr>
  18754. <td>color</td>
  18755. <td>plum</td>
  18756. </tr>
  18757. <tr>
  18758. <td>color</td>
  18759. <td>darkgreen</td>
  18760. </tr>
  18761. <tr>
  18762. <td>color</td>
  18763. <td>slateblue</td>
  18764. </tr>
  18765. <tr>
  18766. <td>color</td>
  18767. <td>magenta</td>
  18768. </tr>
  18769. <tr>
  18770. <td>color</td>
  18771. <td>gold</td>
  18772. </tr>
  18773. <tr>
  18774. <td>color</td>
  18775. <td>navy</td>
  18776. </tr>
  18777. <tr>
  18778. <td>color</td>
  18779. <td>gray</td>
  18780. </tr>
  18781. <tr>
  18782. <td>color</td>
  18783. <td>saddlebrown</td>
  18784. </tr>
  18785. <tr>
  18786. <td>color</td>
  18787. <td>paleturquoise</td>
  18788. </tr>
  18789. <tr>
  18790. <td>color</td>
  18791. <td>mistyrose</td>
  18792. </tr>
  18793. <tr>
  18794. <td>color</td>
  18795. <td>indigo</td>
  18796. </tr>
  18797. </tbody>
  18798. </table>
  18799. <h2 id="tocs_users">Users</h2>
  18800. <p><a id="schemausers"></a>
  18801. <a id="schema_Users"></a>
  18802. <a id="tocSusers"></a>
  18803. <a id="tocsusers"></a></p>
  18804. <pre class="highlight tab tab-json"><code>{
  18805. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18806. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  18807. {
  18808. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18809. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18810. }
  18811. ],
  18812. <span class="hljs-attr">&quot;teams&quot;</span>: [
  18813. {
  18814. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18815. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18816. }
  18817. ],
  18818. <span class="hljs-attr">&quot;emails&quot;</span>: [
  18819. {
  18820. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18821. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18822. }
  18823. ],
  18824. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18825. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18826. <span class="hljs-attr">&quot;profile&quot;</span>: {
  18827. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18828. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18829. <span class="hljs-string">&quot;string&quot;</span>
  18830. ],
  18831. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18832. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18833. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18834. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18835. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  18836. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18837. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18838. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18839. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18840. <span class="hljs-string">&quot;string&quot;</span>
  18841. ],
  18842. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18843. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  18844. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  18845. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  18846. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  18847. {
  18848. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18849. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18850. }
  18851. ],
  18852. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18853. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18854. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18855. <span class="hljs-string">&quot;string&quot;</span>
  18856. ],
  18857. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18858. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18859. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18860. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18861. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18862. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18863. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18864. },
  18865. <span class="hljs-attr">&quot;services&quot;</span>: {},
  18866. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18867. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18868. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  18869. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  18870. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18871. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  18872. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  18873. },
  18874. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  18875. <span class="hljs-string">&quot;string&quot;</span>
  18876. ]
  18877. }
  18878. </code></pre>
  18879. <p>A User in wekan</p>
  18880. <h3 id="properties-20">Properties</h3>
  18881. <table>
  18882. <thead>
  18883. <tr>
  18884. <th>Name</th>
  18885. <th>Type</th>
  18886. <th>Required</th>
  18887. <th>Restrictions</th>
  18888. <th>Description</th>
  18889. </tr>
  18890. </thead>
  18891. <tbody>
  18892. <tr>
  18893. <td>username</td>
  18894. <td>string¦null</td>
  18895. <td>false</td>
  18896. <td>none</td>
  18897. <td>the username of the user</td>
  18898. </tr>
  18899. <tr>
  18900. <td>orgs</td>
  18901. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  18902. <td>false</td>
  18903. <td>none</td>
  18904. <td>the list of organizations that a user belongs to</td>
  18905. </tr>
  18906. <tr>
  18907. <td>teams</td>
  18908. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  18909. <td>false</td>
  18910. <td>none</td>
  18911. <td>the list of teams that a user belongs to</td>
  18912. </tr>
  18913. <tr>
  18914. <td>emails</td>
  18915. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  18916. <td>false</td>
  18917. <td>none</td>
  18918. <td>the list of emails attached to a user</td>
  18919. </tr>
  18920. <tr>
  18921. <td>createdAt</td>
  18922. <td>string</td>
  18923. <td>true</td>
  18924. <td>none</td>
  18925. <td>creation date of the user</td>
  18926. </tr>
  18927. <tr>
  18928. <td>modifiedAt</td>
  18929. <td>string</td>
  18930. <td>true</td>
  18931. <td>none</td>
  18932. <td>none</td>
  18933. </tr>
  18934. <tr>
  18935. <td>profile</td>
  18936. <td><a href="#schemausersprofile">UsersProfile</a></td>
  18937. <td>false</td>
  18938. <td>none</td>
  18939. <td>none</td>
  18940. </tr>
  18941. <tr>
  18942. <td>services</td>
  18943. <td>object¦null</td>
  18944. <td>false</td>
  18945. <td>none</td>
  18946. <td>services field of the user</td>
  18947. </tr>
  18948. <tr>
  18949. <td>heartbeat</td>
  18950. <td>string¦null</td>
  18951. <td>false</td>
  18952. <td>none</td>
  18953. <td>last time the user has been seen</td>
  18954. </tr>
  18955. <tr>
  18956. <td>isAdmin</td>
  18957. <td>boolean¦null</td>
  18958. <td>false</td>
  18959. <td>none</td>
  18960. <td>is the user an admin of the board?</td>
  18961. </tr>
  18962. <tr>
  18963. <td>createdThroughApi</td>
  18964. <td>boolean¦null</td>
  18965. <td>false</td>
  18966. <td>none</td>
  18967. <td>was the user created through the API?</td>
  18968. </tr>
  18969. <tr>
  18970. <td>loginDisabled</td>
  18971. <td>boolean¦null</td>
  18972. <td>false</td>
  18973. <td>none</td>
  18974. <td>loginDisabled field of the user</td>
  18975. </tr>
  18976. <tr>
  18977. <td>authenticationMethod</td>
  18978. <td>string</td>
  18979. <td>true</td>
  18980. <td>none</td>
  18981. <td>authentication method of the user</td>
  18982. </tr>
  18983. <tr>
  18984. <td>sessionData</td>
  18985. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  18986. <td>false</td>
  18987. <td>none</td>
  18988. <td>none</td>
  18989. </tr>
  18990. <tr>
  18991. <td>importUsernames</td>
  18992. <td>[string]¦null</td>
  18993. <td>false</td>
  18994. <td>none</td>
  18995. <td>username for imported</td>
  18996. </tr>
  18997. </tbody>
  18998. </table>
  18999. <h2 id="tocs_usersprofile">UsersProfile</h2>
  19000. <p><a id="schemausersprofile"></a>
  19001. <a id="schema_UsersProfile"></a>
  19002. <a id="tocSusersprofile"></a>
  19003. <a id="tocsusersprofile"></a></p>
  19004. <pre class="highlight tab tab-json"><code>{
  19005. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19006. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  19007. <span class="hljs-string">&quot;string&quot;</span>
  19008. ],
  19009. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19010. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19011. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19012. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19013. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19014. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19015. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19016. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19017. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19018. <span class="hljs-string">&quot;string&quot;</span>
  19019. ],
  19020. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19021. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19022. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19023. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19024. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19025. {
  19026. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19027. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19028. }
  19029. ],
  19030. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19031. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19032. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19033. <span class="hljs-string">&quot;string&quot;</span>
  19034. ],
  19035. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19036. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19037. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19038. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19039. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19040. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19041. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19042. }
  19043. </code></pre>
  19044. <h3 id="properties-21">Properties</h3>
  19045. <table>
  19046. <thead>
  19047. <tr>
  19048. <th>Name</th>
  19049. <th>Type</th>
  19050. <th>Required</th>
  19051. <th>Restrictions</th>
  19052. <th>Description</th>
  19053. </tr>
  19054. </thead>
  19055. <tbody>
  19056. <tr>
  19057. <td>avatarUrl</td>
  19058. <td>string</td>
  19059. <td>false</td>
  19060. <td>none</td>
  19061. <td>URL of the avatar of the user</td>
  19062. </tr>
  19063. <tr>
  19064. <td>emailBuffer</td>
  19065. <td>[string]</td>
  19066. <td>false</td>
  19067. <td>none</td>
  19068. <td>list of email buffers of the user</td>
  19069. </tr>
  19070. <tr>
  19071. <td>fullname</td>
  19072. <td>string</td>
  19073. <td>false</td>
  19074. <td>none</td>
  19075. <td>full name of the user</td>
  19076. </tr>
  19077. <tr>
  19078. <td>showDesktopDragHandles</td>
  19079. <td>boolean</td>
  19080. <td>false</td>
  19081. <td>none</td>
  19082. <td>does the user want to show desktop drag handles?</td>
  19083. </tr>
  19084. <tr>
  19085. <td>hideCheckedItems</td>
  19086. <td>boolean</td>
  19087. <td>false</td>
  19088. <td>none</td>
  19089. <td>does the user want to hide checked checklist items?</td>
  19090. </tr>
  19091. <tr>
  19092. <td>cardMaximized</td>
  19093. <td>boolean</td>
  19094. <td>false</td>
  19095. <td>none</td>
  19096. <td>has user clicked maximize card?</td>
  19097. </tr>
  19098. <tr>
  19099. <td>customFieldsGrid</td>
  19100. <td>boolean</td>
  19101. <td>false</td>
  19102. <td>none</td>
  19103. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  19104. </tr>
  19105. <tr>
  19106. <td>hiddenSystemMessages</td>
  19107. <td>boolean</td>
  19108. <td>false</td>
  19109. <td>none</td>
  19110. <td>does the user want to hide system messages?</td>
  19111. </tr>
  19112. <tr>
  19113. <td>hiddenMinicardLabelText</td>
  19114. <td>boolean</td>
  19115. <td>false</td>
  19116. <td>none</td>
  19117. <td>does the user want to hide minicard label texts?</td>
  19118. </tr>
  19119. <tr>
  19120. <td>initials</td>
  19121. <td>string</td>
  19122. <td>false</td>
  19123. <td>none</td>
  19124. <td>initials of the user</td>
  19125. </tr>
  19126. <tr>
  19127. <td>invitedBoards</td>
  19128. <td>[string]</td>
  19129. <td>false</td>
  19130. <td>none</td>
  19131. <td>board IDs the user has been invited to</td>
  19132. </tr>
  19133. <tr>
  19134. <td>language</td>
  19135. <td>string</td>
  19136. <td>false</td>
  19137. <td>none</td>
  19138. <td>language of the user</td>
  19139. </tr>
  19140. <tr>
  19141. <td>moveAndCopyDialog</td>
  19142. <td>object</td>
  19143. <td>false</td>
  19144. <td>none</td>
  19145. <td>move and copy card dialog</td>
  19146. </tr>
  19147. <tr>
  19148. <td>moveChecklistDialog</td>
  19149. <td>object</td>
  19150. <td>false</td>
  19151. <td>none</td>
  19152. <td>move checklist dialog</td>
  19153. </tr>
  19154. <tr>
  19155. <td>copyChecklistDialog</td>
  19156. <td>object</td>
  19157. <td>false</td>
  19158. <td>none</td>
  19159. <td>copy checklist dialog</td>
  19160. </tr>
  19161. <tr>
  19162. <td>notifications</td>
  19163. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19164. <td>false</td>
  19165. <td>none</td>
  19166. <td>enabled notifications for the user</td>
  19167. </tr>
  19168. <tr>
  19169. <td>showCardsCountAt</td>
  19170. <td>number</td>
  19171. <td>false</td>
  19172. <td>none</td>
  19173. <td>showCardCountAt field of the user</td>
  19174. </tr>
  19175. <tr>
  19176. <td>startDayOfWeek</td>
  19177. <td>number</td>
  19178. <td>false</td>
  19179. <td>none</td>
  19180. <td>startDayOfWeek field of the user</td>
  19181. </tr>
  19182. <tr>
  19183. <td>starredBoards</td>
  19184. <td>[string]</td>
  19185. <td>false</td>
  19186. <td>none</td>
  19187. <td>list of starred board IDs</td>
  19188. </tr>
  19189. <tr>
  19190. <td>icode</td>
  19191. <td>string</td>
  19192. <td>false</td>
  19193. <td>none</td>
  19194. <td>icode</td>
  19195. </tr>
  19196. <tr>
  19197. <td>boardView</td>
  19198. <td>string</td>
  19199. <td>false</td>
  19200. <td>none</td>
  19201. <td>boardView field of the user</td>
  19202. </tr>
  19203. <tr>
  19204. <td>listSortBy</td>
  19205. <td>string</td>
  19206. <td>false</td>
  19207. <td>none</td>
  19208. <td>default sort list for user</td>
  19209. </tr>
  19210. <tr>
  19211. <td>templatesBoardId</td>
  19212. <td>string</td>
  19213. <td>true</td>
  19214. <td>none</td>
  19215. <td>Reference to the templates board</td>
  19216. </tr>
  19217. <tr>
  19218. <td>cardTemplatesSwimlaneId</td>
  19219. <td>string</td>
  19220. <td>true</td>
  19221. <td>none</td>
  19222. <td>Reference to the card templates swimlane Id</td>
  19223. </tr>
  19224. <tr>
  19225. <td>listTemplatesSwimlaneId</td>
  19226. <td>string</td>
  19227. <td>true</td>
  19228. <td>none</td>
  19229. <td>Reference to the list templates swimlane Id</td>
  19230. </tr>
  19231. <tr>
  19232. <td>boardTemplatesSwimlaneId</td>
  19233. <td>string</td>
  19234. <td>true</td>
  19235. <td>none</td>
  19236. <td>Reference to the board templates swimlane Id</td>
  19237. </tr>
  19238. </tbody>
  19239. </table>
  19240. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19241. <table>
  19242. <thead>
  19243. <tr>
  19244. <th>Property</th>
  19245. <th>Value</th>
  19246. </tr>
  19247. </thead>
  19248. <tbody>
  19249. <tr>
  19250. <td>boardView</td>
  19251. <td>board-view-swimlanes</td>
  19252. </tr>
  19253. <tr>
  19254. <td>boardView</td>
  19255. <td>board-view-lists</td>
  19256. </tr>
  19257. <tr>
  19258. <td>boardView</td>
  19259. <td>board-view-cal</td>
  19260. </tr>
  19261. <tr>
  19262. <td>listSortBy</td>
  19263. <td>-modifiedat</td>
  19264. </tr>
  19265. <tr>
  19266. <td>listSortBy</td>
  19267. <td>modifiedat</td>
  19268. </tr>
  19269. <tr>
  19270. <td>listSortBy</td>
  19271. <td>-title</td>
  19272. </tr>
  19273. <tr>
  19274. <td>listSortBy</td>
  19275. <td>title</td>
  19276. </tr>
  19277. <tr>
  19278. <td>listSortBy</td>
  19279. <td>-sort</td>
  19280. </tr>
  19281. <tr>
  19282. <td>listSortBy</td>
  19283. <td>sort</td>
  19284. </tr>
  19285. </tbody>
  19286. </table>
  19287. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19288. <p><a id="schemauserssessiondata"></a>
  19289. <a id="schema_UsersSessiondata"></a>
  19290. <a id="tocSuserssessiondata"></a>
  19291. <a id="tocsuserssessiondata"></a></p>
  19292. <pre class="highlight tab tab-json"><code>{
  19293. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19294. }
  19295. </code></pre>
  19296. <h3 id="properties-22">Properties</h3>
  19297. <table>
  19298. <thead>
  19299. <tr>
  19300. <th>Name</th>
  19301. <th>Type</th>
  19302. <th>Required</th>
  19303. <th>Restrictions</th>
  19304. <th>Description</th>
  19305. </tr>
  19306. </thead>
  19307. <tbody>
  19308. <tr>
  19309. <td>totalHits</td>
  19310. <td>number</td>
  19311. <td>false</td>
  19312. <td>none</td>
  19313. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  19314. </tr>
  19315. </tbody>
  19316. </table>
  19317. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  19318. <p><a id="schemausersorgs"></a>
  19319. <a id="schema_UsersOrgs"></a>
  19320. <a id="tocSusersorgs"></a>
  19321. <a id="tocsusersorgs"></a></p>
  19322. <pre class="highlight tab tab-json"><code>{
  19323. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19324. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19325. }
  19326. </code></pre>
  19327. <h3 id="properties-23">Properties</h3>
  19328. <table>
  19329. <thead>
  19330. <tr>
  19331. <th>Name</th>
  19332. <th>Type</th>
  19333. <th>Required</th>
  19334. <th>Restrictions</th>
  19335. <th>Description</th>
  19336. </tr>
  19337. </thead>
  19338. <tbody>
  19339. <tr>
  19340. <td>orgId</td>
  19341. <td>string</td>
  19342. <td>true</td>
  19343. <td>none</td>
  19344. <td>The uniq ID of the organization</td>
  19345. </tr>
  19346. <tr>
  19347. <td>orgDisplayName</td>
  19348. <td>string</td>
  19349. <td>true</td>
  19350. <td>none</td>
  19351. <td>The display name of the organization</td>
  19352. </tr>
  19353. </tbody>
  19354. </table>
  19355. <h2 id="tocs_usersteams">UsersTeams</h2>
  19356. <p><a id="schemausersteams"></a>
  19357. <a id="schema_UsersTeams"></a>
  19358. <a id="tocSusersteams"></a>
  19359. <a id="tocsusersteams"></a></p>
  19360. <pre class="highlight tab tab-json"><code>{
  19361. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19362. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19363. }
  19364. </code></pre>
  19365. <h3 id="properties-24">Properties</h3>
  19366. <table>
  19367. <thead>
  19368. <tr>
  19369. <th>Name</th>
  19370. <th>Type</th>
  19371. <th>Required</th>
  19372. <th>Restrictions</th>
  19373. <th>Description</th>
  19374. </tr>
  19375. </thead>
  19376. <tbody>
  19377. <tr>
  19378. <td>teamId</td>
  19379. <td>string</td>
  19380. <td>true</td>
  19381. <td>none</td>
  19382. <td>The uniq ID of the team</td>
  19383. </tr>
  19384. <tr>
  19385. <td>teamDisplayName</td>
  19386. <td>string</td>
  19387. <td>true</td>
  19388. <td>none</td>
  19389. <td>The display name of the team</td>
  19390. </tr>
  19391. </tbody>
  19392. </table>
  19393. <h2 id="tocs_usersemails">UsersEmails</h2>
  19394. <p><a id="schemausersemails"></a>
  19395. <a id="schema_UsersEmails"></a>
  19396. <a id="tocSusersemails"></a>
  19397. <a id="tocsusersemails"></a></p>
  19398. <pre class="highlight tab tab-json"><code>{
  19399. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19400. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19401. }
  19402. </code></pre>
  19403. <h3 id="properties-25">Properties</h3>
  19404. <table>
  19405. <thead>
  19406. <tr>
  19407. <th>Name</th>
  19408. <th>Type</th>
  19409. <th>Required</th>
  19410. <th>Restrictions</th>
  19411. <th>Description</th>
  19412. </tr>
  19413. </thead>
  19414. <tbody>
  19415. <tr>
  19416. <td>address</td>
  19417. <td>string</td>
  19418. <td>true</td>
  19419. <td>none</td>
  19420. <td>The email address</td>
  19421. </tr>
  19422. <tr>
  19423. <td>verified</td>
  19424. <td>boolean</td>
  19425. <td>true</td>
  19426. <td>none</td>
  19427. <td>Has the email been verified</td>
  19428. </tr>
  19429. </tbody>
  19430. </table>
  19431. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  19432. <p><a id="schemausersprofilemoveandcopydialog"></a>
  19433. <a id="schema_UsersProfileMoveandcopydialog"></a>
  19434. <a id="tocSusersprofilemoveandcopydialog"></a>
  19435. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  19436. <pre class="highlight tab tab-json"><code>{
  19437. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19438. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19439. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19440. }
  19441. </code></pre>
  19442. <h3 id="properties-26">Properties</h3>
  19443. <table>
  19444. <thead>
  19445. <tr>
  19446. <th>Name</th>
  19447. <th>Type</th>
  19448. <th>Required</th>
  19449. <th>Restrictions</th>
  19450. <th>Description</th>
  19451. </tr>
  19452. </thead>
  19453. <tbody>
  19454. <tr>
  19455. <td>boardId</td>
  19456. <td>string</td>
  19457. <td>true</td>
  19458. <td>none</td>
  19459. <td>last selected board id</td>
  19460. </tr>
  19461. <tr>
  19462. <td>swimlaneId</td>
  19463. <td>string</td>
  19464. <td>true</td>
  19465. <td>none</td>
  19466. <td>last selected swimlane id</td>
  19467. </tr>
  19468. <tr>
  19469. <td>listId</td>
  19470. <td>string</td>
  19471. <td>true</td>
  19472. <td>none</td>
  19473. <td>last selected list id</td>
  19474. </tr>
  19475. </tbody>
  19476. </table>
  19477. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  19478. <p><a id="schemausersprofilemovechecklistdialog"></a>
  19479. <a id="schema_UsersProfileMovechecklistdialog"></a>
  19480. <a id="tocSusersprofilemovechecklistdialog"></a>
  19481. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  19482. <pre class="highlight tab tab-json"><code>{
  19483. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19484. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19485. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19486. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19487. }
  19488. </code></pre>
  19489. <h3 id="properties-27">Properties</h3>
  19490. <table>
  19491. <thead>
  19492. <tr>
  19493. <th>Name</th>
  19494. <th>Type</th>
  19495. <th>Required</th>
  19496. <th>Restrictions</th>
  19497. <th>Description</th>
  19498. </tr>
  19499. </thead>
  19500. <tbody>
  19501. <tr>
  19502. <td>boardId</td>
  19503. <td>string</td>
  19504. <td>true</td>
  19505. <td>none</td>
  19506. <td>last selected board id</td>
  19507. </tr>
  19508. <tr>
  19509. <td>swimlaneId</td>
  19510. <td>string</td>
  19511. <td>true</td>
  19512. <td>none</td>
  19513. <td>last selected swimlane id</td>
  19514. </tr>
  19515. <tr>
  19516. <td>listId</td>
  19517. <td>string</td>
  19518. <td>true</td>
  19519. <td>none</td>
  19520. <td>last selected list id</td>
  19521. </tr>
  19522. <tr>
  19523. <td>cardId</td>
  19524. <td>string</td>
  19525. <td>true</td>
  19526. <td>none</td>
  19527. <td>last selected card id</td>
  19528. </tr>
  19529. </tbody>
  19530. </table>
  19531. <h2 id="tocs_usersprofilecopychecklistdialog">UsersProfileCopychecklistdialog</h2>
  19532. <p><a id="schemausersprofilecopychecklistdialog"></a>
  19533. <a id="schema_UsersProfileCopychecklistdialog"></a>
  19534. <a id="tocSusersprofilecopychecklistdialog"></a>
  19535. <a id="tocsusersprofilecopychecklistdialog"></a></p>
  19536. <pre class="highlight tab tab-json"><code>{
  19537. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19538. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19539. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19540. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19541. }
  19542. </code></pre>
  19543. <h3 id="properties-28">Properties</h3>
  19544. <table>
  19545. <thead>
  19546. <tr>
  19547. <th>Name</th>
  19548. <th>Type</th>
  19549. <th>Required</th>
  19550. <th>Restrictions</th>
  19551. <th>Description</th>
  19552. </tr>
  19553. </thead>
  19554. <tbody>
  19555. <tr>
  19556. <td>boardId</td>
  19557. <td>string</td>
  19558. <td>true</td>
  19559. <td>none</td>
  19560. <td>last selected board id</td>
  19561. </tr>
  19562. <tr>
  19563. <td>swimlaneId</td>
  19564. <td>string</td>
  19565. <td>true</td>
  19566. <td>none</td>
  19567. <td>last selected swimlane id</td>
  19568. </tr>
  19569. <tr>
  19570. <td>listId</td>
  19571. <td>string</td>
  19572. <td>true</td>
  19573. <td>none</td>
  19574. <td>last selected list id</td>
  19575. </tr>
  19576. <tr>
  19577. <td>cardId</td>
  19578. <td>string</td>
  19579. <td>true</td>
  19580. <td>none</td>
  19581. <td>last selected card id</td>
  19582. </tr>
  19583. </tbody>
  19584. </table>
  19585. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  19586. <p><a id="schemausersprofilenotifications"></a>
  19587. <a id="schema_UsersProfileNotifications"></a>
  19588. <a id="tocSusersprofilenotifications"></a>
  19589. <a id="tocsusersprofilenotifications"></a></p>
  19590. <pre class="highlight tab tab-json"><code>{
  19591. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19592. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19593. }
  19594. </code></pre>
  19595. <h3 id="properties-29">Properties</h3>
  19596. <table>
  19597. <thead>
  19598. <tr>
  19599. <th>Name</th>
  19600. <th>Type</th>
  19601. <th>Required</th>
  19602. <th>Restrictions</th>
  19603. <th>Description</th>
  19604. </tr>
  19605. </thead>
  19606. <tbody>
  19607. <tr>
  19608. <td>activity</td>
  19609. <td>string</td>
  19610. <td>true</td>
  19611. <td>none</td>
  19612. <td>The id of the activity this notification references</td>
  19613. </tr>
  19614. <tr>
  19615. <td>read</td>
  19616. <td>string</td>
  19617. <td>false</td>
  19618. <td>none</td>
  19619. <td>the date on which this notification was read</td>
  19620. </tr>
  19621. </tbody>
  19622. </table>
  19623. <!-- Renderer: Shins v2.6.0 -->
  19624. <!-- Generator: Widdershins v4.0.1 -->
  19625. <!-- backwards compatibility -->
  19626. <!-- backwards compatibility -->
  19627. <!-- backwards compatibility -->
  19628. <!-- backwards compatibility -->
  19629. <!-- backwards compatibility -->
  19630. <!-- backwards compatibility -->
  19631. <!-- backwards compatibility -->
  19632. <!-- backwards compatibility -->
  19633. <!-- backwards compatibility -->
  19634. <!-- backwards compatibility -->
  19635. <!-- backwards compatibility -->
  19636. <!-- backwards compatibility -->
  19637. <!-- backwards compatibility -->
  19638. <!-- backwards compatibility -->
  19639. <!-- backwards compatibility -->
  19640. <!-- backwards compatibility -->
  19641. <!-- backwards compatibility -->
  19642. <!-- backwards compatibility -->
  19643. <!-- backwards compatibility -->
  19644. <!-- backwards compatibility -->
  19645. <!-- backwards compatibility -->
  19646. <!-- backwards compatibility -->
  19647. <!-- backwards compatibility -->
  19648. <!-- backwards compatibility -->
  19649. <!-- backwards compatibility -->
  19650. <!-- backwards compatibility -->
  19651. <!-- backwards compatibility -->
  19652. <!-- backwards compatibility -->
  19653. <!-- backwards compatibility -->
  19654. </div>
  19655. <div class="dark-box">
  19656. <div class="lang-selector">
  19657. <a href="#" data-language-name="shell">Shell</a>
  19658. <a href="#" data-language-name="http">HTTP</a>
  19659. <a href="#" data-language-name="javascript">JavaScript</a>
  19660. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  19661. <a href="#" data-language-name="ruby">Ruby</a>
  19662. <a href="#" data-language-name="python">Python</a>
  19663. <a href="#" data-language-name="java">Java</a>
  19664. <a href="#" data-language-name="go">Go</a>
  19665. <a href="#" data-language-name="php">PHP</a>
  19666. </div>
  19667. </div>
  19668. </div>
  19669. </body>
  19670. </html>