wekan.html 924 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API v5.95</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. </head>
  1349. <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;]">
  1350. <a href="#" id="nav-button">
  1351. <span>
  1352. NAV
  1353. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1354. </span>
  1355. </a>
  1356. <div class="toc-wrapper">
  1357. <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">
  1358. <div class="lang-selector">
  1359. <a href="#" data-language-name="shell">Shell</a>
  1360. <a href="#" data-language-name="http">HTTP</a>
  1361. <a href="#" data-language-name="javascript">JavaScript</a>
  1362. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1363. <a href="#" data-language-name="ruby">Ruby</a>
  1364. <a href="#" data-language-name="python">Python</a>
  1365. <a href="#" data-language-name="java">Java</a>
  1366. <a href="#" data-language-name="go">Go</a>
  1367. <a href="#" data-language-name="php">PHP</a>
  1368. </div>
  1369. <div class="search">
  1370. <input type="text" class="search" id="input-search" placeholder="Search">
  1371. </div>
  1372. <ul class="search-results"></ul>
  1373. <div id="toc" class="toc-list-h1">
  1374. <ul class="toc-list-h1">
  1375. <li>
  1376. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v5.95">Wekan REST API v5.95</a>
  1377. </li>
  1378. <li>
  1379. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1380. </li>
  1381. <li>
  1382. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1383. </li>
  1384. <li>
  1385. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1386. <ul class="toc-list-h2">
  1387. <li>
  1388. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1389. </li>
  1390. <li>
  1391. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1392. </li>
  1393. </ul>
  1394. </li>
  1395. <li>
  1396. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1397. <ul class="toc-list-h2">
  1398. <li>
  1399. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1400. </li>
  1401. <li>
  1402. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1403. </li>
  1404. <li>
  1405. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1406. </li>
  1407. <li>
  1408. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1409. </li>
  1410. <li>
  1411. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1412. </li>
  1413. <li>
  1414. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1415. </li>
  1416. <li>
  1417. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1418. </li>
  1419. <li>
  1420. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1421. </li>
  1422. <li>
  1423. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1424. </li>
  1425. <li>
  1426. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1427. </li>
  1428. </ul>
  1429. </li>
  1430. <li>
  1431. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1432. <ul class="toc-list-h2">
  1433. <li>
  1434. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1435. </li>
  1436. <li>
  1437. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1438. </li>
  1439. <li>
  1440. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1441. </li>
  1442. <li>
  1443. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1444. </li>
  1445. </ul>
  1446. </li>
  1447. <li>
  1448. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1449. <ul class="toc-list-h2">
  1450. <li>
  1451. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1452. </li>
  1453. <li>
  1454. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1455. </li>
  1456. <li>
  1457. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1458. </li>
  1459. </ul>
  1460. </li>
  1461. <li>
  1462. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1463. <ul class="toc-list-h2">
  1464. <li>
  1465. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1466. </li>
  1467. <li>
  1468. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1469. </li>
  1470. <li>
  1471. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1472. </li>
  1473. <li>
  1474. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1475. </li>
  1476. </ul>
  1477. </li>
  1478. <li>
  1479. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1480. <ul class="toc-list-h2">
  1481. <li>
  1482. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1483. </li>
  1484. <li>
  1485. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1486. </li>
  1487. <li>
  1488. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1489. </li>
  1490. <li>
  1491. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1492. </li>
  1493. <li>
  1494. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1495. </li>
  1496. <li>
  1497. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1498. </li>
  1499. <li>
  1500. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1501. </li>
  1502. </ul>
  1503. </li>
  1504. <li>
  1505. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1506. <ul class="toc-list-h2">
  1507. <li>
  1508. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1509. </li>
  1510. <li>
  1511. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1512. </li>
  1513. <li>
  1514. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1515. </li>
  1516. <li>
  1517. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1518. </li>
  1519. <li>
  1520. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1521. </li>
  1522. <li>
  1523. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1524. </li>
  1525. <li>
  1526. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1527. </li>
  1528. <li>
  1529. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1530. </li>
  1531. </ul>
  1532. </li>
  1533. <li>
  1534. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1535. <ul class="toc-list-h2">
  1536. <li>
  1537. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1538. </li>
  1539. <li>
  1540. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1541. </li>
  1542. <li>
  1543. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1544. </li>
  1545. <li>
  1546. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1547. </li>
  1548. <li>
  1549. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1550. </li>
  1551. <li>
  1552. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1553. </li>
  1554. <li>
  1555. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1556. </li>
  1557. </ul>
  1558. </li>
  1559. <li>
  1560. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1561. <ul class="toc-list-h2">
  1562. <li>
  1563. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1564. </li>
  1565. <li>
  1566. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1567. </li>
  1568. <li>
  1569. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1570. </li>
  1571. <li>
  1572. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1573. </li>
  1574. </ul>
  1575. </li>
  1576. <li>
  1577. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1578. <ul class="toc-list-h2">
  1579. <li>
  1580. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1581. </li>
  1582. <li>
  1583. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1584. </li>
  1585. <li>
  1586. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1587. </li>
  1588. <li>
  1589. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1590. </li>
  1591. <li>
  1592. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1593. </li>
  1594. <li>
  1595. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1596. </li>
  1597. <li>
  1598. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1599. </li>
  1600. <li>
  1601. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1602. </li>
  1603. <li>
  1604. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1605. </li>
  1606. </ul>
  1607. </li>
  1608. <li>
  1609. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1610. <ul class="toc-list-h2">
  1611. <li>
  1612. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1613. </li>
  1614. <li>
  1615. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1616. </li>
  1617. <li>
  1618. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1619. </li>
  1620. <li>
  1621. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1622. </li>
  1623. </ul>
  1624. </li>
  1625. <li>
  1626. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1627. <ul class="toc-list-h2">
  1628. <li>
  1629. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1630. </li>
  1631. <li>
  1632. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1633. </li>
  1634. <li>
  1635. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1636. </li>
  1637. <li>
  1638. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1639. </li>
  1640. <li>
  1641. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1642. </li>
  1643. <li>
  1644. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1645. </li>
  1646. <li>
  1647. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1648. </li>
  1649. <li>
  1650. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1651. </li>
  1652. <li>
  1653. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1654. </li>
  1655. <li>
  1656. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1657. </li>
  1658. <li>
  1659. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1660. </li>
  1661. <li>
  1662. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1663. </li>
  1664. <li>
  1665. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1666. </li>
  1667. <li>
  1668. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1669. </li>
  1670. <li>
  1671. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1672. </li>
  1673. <li>
  1674. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1675. </li>
  1676. <li>
  1677. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1678. </li>
  1679. <li>
  1680. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1681. </li>
  1682. <li>
  1683. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1684. </li>
  1685. <li>
  1686. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1687. </li>
  1688. <li>
  1689. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1690. </li>
  1691. <li>
  1692. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1693. </li>
  1694. <li>
  1695. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1696. </li>
  1697. <li>
  1698. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1699. </li>
  1700. <li>
  1701. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1702. </li>
  1703. <li>
  1704. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1705. </li>
  1706. <li>
  1707. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1708. </li>
  1709. <li>
  1710. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1711. </li>
  1712. </ul>
  1713. </li>
  1714. </ul>
  1715. </div>
  1716. <ul class="toc-footer">
  1717. </ul>
  1718. </div>
  1719. <div class="page-wrapper">
  1720. <div class="dark-box"></div>
  1721. <div class="content">
  1722. <h1 id="wekan-rest-api">Wekan REST API v5.95</h1>
  1723. <blockquote>
  1724. <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>
  1725. </blockquote>
  1726. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1727. <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>
  1728. <blockquote>
  1729. <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>
  1730. </blockquote>
  1731. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1732. <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>
  1733. <ul>
  1734. <li>Only call via HTTPS</li>
  1735. <li>Implement a timed authorization token expiration strategy</li>
  1736. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1737. </ul>
  1738. <h1 id="authentication">Authentication</h1>
  1739. <ul>
  1740. <li>API Key (UserSecurity)
  1741. <ul>
  1742. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1743. </ul>
  1744. </li>
  1745. </ul>
  1746. <h1 id="wekan-rest-api-login">Login</h1>
  1747. <h2 id="login">login</h2>
  1748. <p><a id="opIdlogin"></a></p>
  1749. <blockquote>
  1750. <p>Code samples</p>
  1751. </blockquote>
  1752. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1753. curl -X POST /users/login \
  1754. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1755. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1756. </code></pre>
  1757. <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>
  1758. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1759. <span class="hljs-keyword">Accept</span>: */*
  1760. </span></code></pre>
  1761. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1762. &quot;username&quot;: &quot;string&quot;,
  1763. &quot;password&quot;: &quot;pa$$word&quot;
  1764. }&#x27;</span>;
  1765. <span class="hljs-keyword">const</span> headers = {
  1766. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1767. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1768. };
  1769. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1770. {
  1771. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1772. <span class="hljs-attr">body</span>: inputBody,
  1773. <span class="hljs-attr">headers</span>: headers
  1774. })
  1775. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1776. <span class="hljs-keyword">return</span> res.json();
  1777. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1778. <span class="hljs-built_in">console</span>.log(body);
  1779. });
  1780. </code></pre>
  1781. <pre class="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>);
  1782. <span class="hljs-keyword">const</span> inputBody = {
  1783. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1784. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1785. };
  1786. <span class="hljs-keyword">const</span> headers = {
  1787. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1788. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1789. };
  1790. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1791. {
  1792. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1793. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1794. <span class="hljs-attr">headers</span>: headers
  1795. })
  1796. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1797. <span class="hljs-keyword">return</span> res.json();
  1798. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1799. <span class="hljs-built_in">console</span>.log(body);
  1800. });
  1801. </code></pre>
  1802. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1803. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1804. headers = {
  1805. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1806. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1807. }
  1808. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1809. <span class="hljs-symbol">params:</span> {
  1810. }, <span class="hljs-symbol">headers:</span> headers
  1811. p JSON.parse(result)
  1812. </code></pre>
  1813. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1814. headers = {
  1815. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1816. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1817. }
  1818. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1819. <span class="hljs-built_in">print</span>(r.json())
  1820. </code></pre>
  1821. <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>);
  1822. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1823. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1824. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1825. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1826. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1827. String inputLine;
  1828. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1829. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1830. response.append(inputLine);
  1831. }
  1832. in.close();
  1833. System.out.println(response.toString());
  1834. </code></pre>
  1835. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1836. <span class="hljs-keyword">import</span> (
  1837. <span class="hljs-string">&quot;bytes&quot;</span>
  1838. <span class="hljs-string">&quot;net/http&quot;</span>
  1839. )
  1840. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1841. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1842. <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>},
  1843. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1844. }
  1845. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1846. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1847. req.Header = headers
  1848. client := &amp;http.Client{}
  1849. resp, err := client.Do(req)
  1850. <span class="hljs-comment">// ...</span>
  1851. }
  1852. </code></pre>
  1853. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1854. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1855. );
  1856. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1857. <span class="hljs-comment">// Define array of request body.</span>
  1858. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1859. <span class="hljs-keyword">try</span> {
  1860. <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>(
  1861. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1862. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1863. )
  1864. );
  1865. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1866. }
  1867. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1868. <span class="hljs-comment">// handle exception or api errors.</span>
  1869. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1870. }
  1871. <span class="hljs-comment">// ...</span>
  1872. </code></pre>
  1873. <p><code>POST /users/login</code></p>
  1874. <p><em>Login with REST API</em></p>
  1875. <blockquote>
  1876. <p>Body parameter</p>
  1877. </blockquote>
  1878. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1879. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1880. </code></pre>
  1881. <h3 id="login-parameters">Parameters</h3>
  1882. <table>
  1883. <thead>
  1884. <tr>
  1885. <th>Name</th>
  1886. <th>In</th>
  1887. <th>Type</th>
  1888. <th>Required</th>
  1889. <th>Description</th>
  1890. </tr>
  1891. </thead>
  1892. <tbody>
  1893. <tr>
  1894. <td>body</td>
  1895. <td>body</td>
  1896. <td>object</td>
  1897. <td>true</td>
  1898. <td>none</td>
  1899. </tr>
  1900. <tr>
  1901. <td>» username</td>
  1902. <td>body</td>
  1903. <td>string</td>
  1904. <td>true</td>
  1905. <td>Your username</td>
  1906. </tr>
  1907. <tr>
  1908. <td>» password</td>
  1909. <td>body</td>
  1910. <td>string(password)</td>
  1911. <td>true</td>
  1912. <td>Your password</td>
  1913. </tr>
  1914. </tbody>
  1915. </table>
  1916. <blockquote>
  1917. <p>Example responses</p>
  1918. </blockquote>
  1919. <blockquote>
  1920. <p>200 Response</p>
  1921. </blockquote>
  1922. <h3 id="login-responses">Responses</h3>
  1923. <table>
  1924. <thead>
  1925. <tr>
  1926. <th>Status</th>
  1927. <th>Meaning</th>
  1928. <th>Description</th>
  1929. <th>Schema</th>
  1930. </tr>
  1931. </thead>
  1932. <tbody>
  1933. <tr>
  1934. <td>200</td>
  1935. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1936. <td>Successful authentication</td>
  1937. <td>Inline</td>
  1938. </tr>
  1939. <tr>
  1940. <td>400</td>
  1941. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1942. <td>Error in authentication</td>
  1943. <td>Inline</td>
  1944. </tr>
  1945. <tr>
  1946. <td>default</td>
  1947. <td>Default</td>
  1948. <td>Error in authentication</td>
  1949. <td>None</td>
  1950. </tr>
  1951. </tbody>
  1952. </table>
  1953. <h3 id="login-responseschema">Response Schema</h3>
  1954. <p>Status Code <strong>200</strong></p>
  1955. <table>
  1956. <thead>
  1957. <tr>
  1958. <th>Name</th>
  1959. <th>Type</th>
  1960. <th>Required</th>
  1961. <th>Restrictions</th>
  1962. <th>Description</th>
  1963. </tr>
  1964. </thead>
  1965. <tbody>
  1966. <tr>
  1967. <td>» id</td>
  1968. <td>string</td>
  1969. <td>false</td>
  1970. <td>none</td>
  1971. <td>none</td>
  1972. </tr>
  1973. <tr>
  1974. <td>» token</td>
  1975. <td>string</td>
  1976. <td>false</td>
  1977. <td>none</td>
  1978. <td>none</td>
  1979. </tr>
  1980. <tr>
  1981. <td>» tokenExpires</td>
  1982. <td>string</td>
  1983. <td>false</td>
  1984. <td>none</td>
  1985. <td>none</td>
  1986. </tr>
  1987. </tbody>
  1988. </table>
  1989. <p>Status Code <strong>400</strong></p>
  1990. <table>
  1991. <thead>
  1992. <tr>
  1993. <th>Name</th>
  1994. <th>Type</th>
  1995. <th>Required</th>
  1996. <th>Restrictions</th>
  1997. <th>Description</th>
  1998. </tr>
  1999. </thead>
  2000. <tbody>
  2001. <tr>
  2002. <td>» error</td>
  2003. <td>number</td>
  2004. <td>false</td>
  2005. <td>none</td>
  2006. <td>none</td>
  2007. </tr>
  2008. <tr>
  2009. <td>» reason</td>
  2010. <td>string</td>
  2011. <td>false</td>
  2012. <td>none</td>
  2013. <td>none</td>
  2014. </tr>
  2015. </tbody>
  2016. </table>
  2017. <aside class="success">
  2018. This operation does not require authentication
  2019. </aside>
  2020. <h2 id="register">register</h2>
  2021. <p><a id="opIdregister"></a></p>
  2022. <blockquote>
  2023. <p>Code samples</p>
  2024. </blockquote>
  2025. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2026. curl -X POST /users/register \
  2027. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2028. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2029. </code></pre>
  2030. <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>
  2031. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2032. <span class="hljs-keyword">Accept</span>: */*
  2033. </span></code></pre>
  2034. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2035. &quot;username&quot;: &quot;string&quot;,
  2036. &quot;password&quot;: &quot;pa$$word&quot;,
  2037. &quot;email&quot;: &quot;string&quot;
  2038. }&#x27;</span>;
  2039. <span class="hljs-keyword">const</span> headers = {
  2040. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2041. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2042. };
  2043. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2044. {
  2045. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2046. <span class="hljs-attr">body</span>: inputBody,
  2047. <span class="hljs-attr">headers</span>: headers
  2048. })
  2049. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2050. <span class="hljs-keyword">return</span> res.json();
  2051. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2052. <span class="hljs-built_in">console</span>.log(body);
  2053. });
  2054. </code></pre>
  2055. <pre class="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>);
  2056. <span class="hljs-keyword">const</span> inputBody = {
  2057. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2058. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2059. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2060. };
  2061. <span class="hljs-keyword">const</span> headers = {
  2062. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2063. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2064. };
  2065. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2066. {
  2067. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2068. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2069. <span class="hljs-attr">headers</span>: headers
  2070. })
  2071. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2072. <span class="hljs-keyword">return</span> res.json();
  2073. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2074. <span class="hljs-built_in">console</span>.log(body);
  2075. });
  2076. </code></pre>
  2077. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2078. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2079. headers = {
  2080. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2081. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2082. }
  2083. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2084. <span class="hljs-symbol">params:</span> {
  2085. }, <span class="hljs-symbol">headers:</span> headers
  2086. p JSON.parse(result)
  2087. </code></pre>
  2088. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2089. headers = {
  2090. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2091. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2092. }
  2093. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2094. <span class="hljs-built_in">print</span>(r.json())
  2095. </code></pre>
  2096. <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>);
  2097. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2098. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2099. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2100. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2101. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2102. String inputLine;
  2103. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2104. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2105. response.append(inputLine);
  2106. }
  2107. in.close();
  2108. System.out.println(response.toString());
  2109. </code></pre>
  2110. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2111. <span class="hljs-keyword">import</span> (
  2112. <span class="hljs-string">&quot;bytes&quot;</span>
  2113. <span class="hljs-string">&quot;net/http&quot;</span>
  2114. )
  2115. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2116. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2117. <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>},
  2118. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2119. }
  2120. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2121. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2122. req.Header = headers
  2123. client := &amp;http.Client{}
  2124. resp, err := client.Do(req)
  2125. <span class="hljs-comment">// ...</span>
  2126. }
  2127. </code></pre>
  2128. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2129. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2130. );
  2131. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2132. <span class="hljs-comment">// Define array of request body.</span>
  2133. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2134. <span class="hljs-keyword">try</span> {
  2135. <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>(
  2136. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2137. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2138. )
  2139. );
  2140. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2141. }
  2142. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2143. <span class="hljs-comment">// handle exception or api errors.</span>
  2144. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2145. }
  2146. <span class="hljs-comment">// ...</span>
  2147. </code></pre>
  2148. <p><code>POST /users/register</code></p>
  2149. <p><em>Register with REST API</em></p>
  2150. <p>Notes:</p>
  2151. <ul>
  2152. <li>You will need to provide the token for any of the authenticated methods.</li>
  2153. </ul>
  2154. <blockquote>
  2155. <p>Body parameter</p>
  2156. </blockquote>
  2157. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2158. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2159. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2160. </code></pre>
  2161. <h3 id="register-parameters">Parameters</h3>
  2162. <table>
  2163. <thead>
  2164. <tr>
  2165. <th>Name</th>
  2166. <th>In</th>
  2167. <th>Type</th>
  2168. <th>Required</th>
  2169. <th>Description</th>
  2170. </tr>
  2171. </thead>
  2172. <tbody>
  2173. <tr>
  2174. <td>body</td>
  2175. <td>body</td>
  2176. <td>object</td>
  2177. <td>true</td>
  2178. <td>none</td>
  2179. </tr>
  2180. <tr>
  2181. <td>» username</td>
  2182. <td>body</td>
  2183. <td>string</td>
  2184. <td>true</td>
  2185. <td>Your username</td>
  2186. </tr>
  2187. <tr>
  2188. <td>» password</td>
  2189. <td>body</td>
  2190. <td>string(password)</td>
  2191. <td>true</td>
  2192. <td>Your password</td>
  2193. </tr>
  2194. <tr>
  2195. <td>» email</td>
  2196. <td>body</td>
  2197. <td>string</td>
  2198. <td>true</td>
  2199. <td>Your email</td>
  2200. </tr>
  2201. </tbody>
  2202. </table>
  2203. <blockquote>
  2204. <p>Example responses</p>
  2205. </blockquote>
  2206. <blockquote>
  2207. <p>200 Response</p>
  2208. </blockquote>
  2209. <h3 id="register-responses">Responses</h3>
  2210. <table>
  2211. <thead>
  2212. <tr>
  2213. <th>Status</th>
  2214. <th>Meaning</th>
  2215. <th>Description</th>
  2216. <th>Schema</th>
  2217. </tr>
  2218. </thead>
  2219. <tbody>
  2220. <tr>
  2221. <td>200</td>
  2222. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2223. <td>Successful registration</td>
  2224. <td>Inline</td>
  2225. </tr>
  2226. <tr>
  2227. <td>400</td>
  2228. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2229. <td>Error in registration</td>
  2230. <td>Inline</td>
  2231. </tr>
  2232. <tr>
  2233. <td>default</td>
  2234. <td>Default</td>
  2235. <td>Error in registration</td>
  2236. <td>None</td>
  2237. </tr>
  2238. </tbody>
  2239. </table>
  2240. <h3 id="register-responseschema">Response Schema</h3>
  2241. <p>Status Code <strong>200</strong></p>
  2242. <table>
  2243. <thead>
  2244. <tr>
  2245. <th>Name</th>
  2246. <th>Type</th>
  2247. <th>Required</th>
  2248. <th>Restrictions</th>
  2249. <th>Description</th>
  2250. </tr>
  2251. </thead>
  2252. <tbody>
  2253. <tr>
  2254. <td>» id</td>
  2255. <td>string</td>
  2256. <td>false</td>
  2257. <td>none</td>
  2258. <td>none</td>
  2259. </tr>
  2260. <tr>
  2261. <td>» token</td>
  2262. <td>string</td>
  2263. <td>false</td>
  2264. <td>none</td>
  2265. <td>none</td>
  2266. </tr>
  2267. <tr>
  2268. <td>» tokenExpires</td>
  2269. <td>string</td>
  2270. <td>false</td>
  2271. <td>none</td>
  2272. <td>none</td>
  2273. </tr>
  2274. </tbody>
  2275. </table>
  2276. <p>Status Code <strong>400</strong></p>
  2277. <table>
  2278. <thead>
  2279. <tr>
  2280. <th>Name</th>
  2281. <th>Type</th>
  2282. <th>Required</th>
  2283. <th>Restrictions</th>
  2284. <th>Description</th>
  2285. </tr>
  2286. </thead>
  2287. <tbody>
  2288. <tr>
  2289. <td>» error</td>
  2290. <td>number</td>
  2291. <td>false</td>
  2292. <td>none</td>
  2293. <td>none</td>
  2294. </tr>
  2295. <tr>
  2296. <td>» reason</td>
  2297. <td>string</td>
  2298. <td>false</td>
  2299. <td>none</td>
  2300. <td>none</td>
  2301. </tr>
  2302. </tbody>
  2303. </table>
  2304. <aside class="success">
  2305. This operation does not require authentication
  2306. </aside>
  2307. <h1 id="wekan-rest-api-boards">Boards</h1>
  2308. <h2 id="get_public_boards">get_public_boards</h2>
  2309. <p><a id="opIdget_public_boards"></a></p>
  2310. <blockquote>
  2311. <p>Code samples</p>
  2312. </blockquote>
  2313. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2314. curl -X GET /api/boards \
  2315. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2316. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2317. </code></pre>
  2318. <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>
  2319. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2320. </span></code></pre>
  2321. <pre class="highlight tab tab-javascript"><code>
  2322. <span class="hljs-keyword">const</span> headers = {
  2323. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2324. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2325. };
  2326. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2327. {
  2328. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2329. <span class="hljs-attr">headers</span>: headers
  2330. })
  2331. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2332. <span class="hljs-keyword">return</span> res.json();
  2333. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2334. <span class="hljs-built_in">console</span>.log(body);
  2335. });
  2336. </code></pre>
  2337. <pre class="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>);
  2338. <span class="hljs-keyword">const</span> headers = {
  2339. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2340. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2341. };
  2342. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2343. {
  2344. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2345. <span class="hljs-attr">headers</span>: headers
  2346. })
  2347. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2348. <span class="hljs-keyword">return</span> res.json();
  2349. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2350. <span class="hljs-built_in">console</span>.log(body);
  2351. });
  2352. </code></pre>
  2353. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2354. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2355. headers = {
  2356. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2357. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2358. }
  2359. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2360. <span class="hljs-symbol">params:</span> {
  2361. }, <span class="hljs-symbol">headers:</span> headers
  2362. p JSON.parse(result)
  2363. </code></pre>
  2364. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2365. headers = {
  2366. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2367. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2368. }
  2369. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2370. <span class="hljs-built_in">print</span>(r.json())
  2371. </code></pre>
  2372. <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>);
  2373. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2374. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2375. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2376. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2377. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2378. String inputLine;
  2379. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2380. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2381. response.append(inputLine);
  2382. }
  2383. in.close();
  2384. System.out.println(response.toString());
  2385. </code></pre>
  2386. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2387. <span class="hljs-keyword">import</span> (
  2388. <span class="hljs-string">&quot;bytes&quot;</span>
  2389. <span class="hljs-string">&quot;net/http&quot;</span>
  2390. )
  2391. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2392. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2393. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2394. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2395. }
  2396. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2397. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2398. req.Header = headers
  2399. client := &amp;http.Client{}
  2400. resp, err := client.Do(req)
  2401. <span class="hljs-comment">// ...</span>
  2402. }
  2403. </code></pre>
  2404. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2405. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2406. );
  2407. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2408. <span class="hljs-comment">// Define array of request body.</span>
  2409. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2410. <span class="hljs-keyword">try</span> {
  2411. <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>(
  2412. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2413. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2414. )
  2415. );
  2416. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2417. }
  2418. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2419. <span class="hljs-comment">// handle exception or api errors.</span>
  2420. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2421. }
  2422. <span class="hljs-comment">// ...</span>
  2423. </code></pre>
  2424. <p><code>GET /api/boards</code></p>
  2425. <p><em>Get all public boards</em></p>
  2426. <blockquote>
  2427. <p>Example responses</p>
  2428. </blockquote>
  2429. <blockquote>
  2430. <p>200 Response</p>
  2431. </blockquote>
  2432. <pre class="highlight tab tab-json"><code>[
  2433. {
  2434. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2435. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2436. }
  2437. ]
  2438. </code></pre>
  2439. <h3 id="get_public_boards-responses">Responses</h3>
  2440. <table>
  2441. <thead>
  2442. <tr>
  2443. <th>Status</th>
  2444. <th>Meaning</th>
  2445. <th>Description</th>
  2446. <th>Schema</th>
  2447. </tr>
  2448. </thead>
  2449. <tbody>
  2450. <tr>
  2451. <td>200</td>
  2452. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2453. <td>200 response</td>
  2454. <td>Inline</td>
  2455. </tr>
  2456. </tbody>
  2457. </table>
  2458. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2459. <p>Status Code <strong>200</strong></p>
  2460. <table>
  2461. <thead>
  2462. <tr>
  2463. <th>Name</th>
  2464. <th>Type</th>
  2465. <th>Required</th>
  2466. <th>Restrictions</th>
  2467. <th>Description</th>
  2468. </tr>
  2469. </thead>
  2470. <tbody>
  2471. <tr>
  2472. <td>» _id</td>
  2473. <td>string</td>
  2474. <td>false</td>
  2475. <td>none</td>
  2476. <td>none</td>
  2477. </tr>
  2478. <tr>
  2479. <td>» title</td>
  2480. <td>string</td>
  2481. <td>false</td>
  2482. <td>none</td>
  2483. <td>none</td>
  2484. </tr>
  2485. </tbody>
  2486. </table>
  2487. <aside class="warning">
  2488. To perform this operation, you must be authenticated by means of one of the following methods:
  2489. UserSecurity
  2490. </aside>
  2491. <h2 id="new_board">new_board</h2>
  2492. <p><a id="opIdnew_board"></a></p>
  2493. <blockquote>
  2494. <p>Code samples</p>
  2495. </blockquote>
  2496. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2497. curl -X POST /api/boards \
  2498. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2499. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2500. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2501. </code></pre>
  2502. <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>
  2503. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2504. Accept: application/json
  2505. </span></code></pre>
  2506. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2507. &quot;title&quot;: &quot;string&quot;,
  2508. &quot;owner&quot;: &quot;string&quot;,
  2509. &quot;isAdmin&quot;: true,
  2510. &quot;isActive&quot;: true,
  2511. &quot;isNoComments&quot;: true,
  2512. &quot;isCommentOnly&quot;: true,
  2513. &quot;isWorker&quot;: true,
  2514. &quot;permission&quot;: &quot;string&quot;,
  2515. &quot;color&quot;: &quot;string&quot;
  2516. }&#x27;</span>;
  2517. <span class="hljs-keyword">const</span> headers = {
  2518. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2519. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2520. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2521. };
  2522. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2523. {
  2524. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2525. <span class="hljs-attr">body</span>: inputBody,
  2526. <span class="hljs-attr">headers</span>: headers
  2527. })
  2528. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2529. <span class="hljs-keyword">return</span> res.json();
  2530. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2531. <span class="hljs-built_in">console</span>.log(body);
  2532. });
  2533. </code></pre>
  2534. <pre class="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>);
  2535. <span class="hljs-keyword">const</span> inputBody = {
  2536. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2537. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2538. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2539. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2540. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2541. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2542. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2543. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2544. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2545. };
  2546. <span class="hljs-keyword">const</span> headers = {
  2547. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2548. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2549. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2550. };
  2551. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2552. {
  2553. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2554. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2555. <span class="hljs-attr">headers</span>: headers
  2556. })
  2557. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2558. <span class="hljs-keyword">return</span> res.json();
  2559. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2560. <span class="hljs-built_in">console</span>.log(body);
  2561. });
  2562. </code></pre>
  2563. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2564. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2565. headers = {
  2566. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2567. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2568. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2569. }
  2570. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2571. <span class="hljs-symbol">params:</span> {
  2572. }, <span class="hljs-symbol">headers:</span> headers
  2573. p JSON.parse(result)
  2574. </code></pre>
  2575. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2576. headers = {
  2577. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2578. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2579. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2580. }
  2581. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2582. <span class="hljs-built_in">print</span>(r.json())
  2583. </code></pre>
  2584. <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>);
  2585. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2586. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2587. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2588. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2589. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2590. String inputLine;
  2591. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2592. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2593. response.append(inputLine);
  2594. }
  2595. in.close();
  2596. System.out.println(response.toString());
  2597. </code></pre>
  2598. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2599. <span class="hljs-keyword">import</span> (
  2600. <span class="hljs-string">&quot;bytes&quot;</span>
  2601. <span class="hljs-string">&quot;net/http&quot;</span>
  2602. )
  2603. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2604. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2605. <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>},
  2606. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2607. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2608. }
  2609. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2610. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2611. req.Header = headers
  2612. client := &amp;http.Client{}
  2613. resp, err := client.Do(req)
  2614. <span class="hljs-comment">// ...</span>
  2615. }
  2616. </code></pre>
  2617. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2618. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2619. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2620. );
  2621. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2622. <span class="hljs-comment">// Define array of request body.</span>
  2623. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2624. <span class="hljs-keyword">try</span> {
  2625. <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>(
  2626. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2627. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2628. )
  2629. );
  2630. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2631. }
  2632. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2633. <span class="hljs-comment">// handle exception or api errors.</span>
  2634. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2635. }
  2636. <span class="hljs-comment">// ...</span>
  2637. </code></pre>
  2638. <p><code>POST /api/boards</code></p>
  2639. <p><em>Create a board</em></p>
  2640. <p>This allows to create a board.</p>
  2641. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2642. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2643. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2644. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2645. <blockquote>
  2646. <p>Body parameter</p>
  2647. </blockquote>
  2648. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2649. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2650. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2651. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2652. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2653. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2654. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2655. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2656. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2657. </code></pre>
  2658. <h3 id="new_board-parameters">Parameters</h3>
  2659. <table>
  2660. <thead>
  2661. <tr>
  2662. <th>Name</th>
  2663. <th>In</th>
  2664. <th>Type</th>
  2665. <th>Required</th>
  2666. <th>Description</th>
  2667. </tr>
  2668. </thead>
  2669. <tbody>
  2670. <tr>
  2671. <td>body</td>
  2672. <td>body</td>
  2673. <td>object</td>
  2674. <td>true</td>
  2675. <td>none</td>
  2676. </tr>
  2677. <tr>
  2678. <td>» title</td>
  2679. <td>body</td>
  2680. <td>string</td>
  2681. <td>true</td>
  2682. <td>the new title of the board</td>
  2683. </tr>
  2684. <tr>
  2685. <td>» owner</td>
  2686. <td>body</td>
  2687. <td>string</td>
  2688. <td>true</td>
  2689. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2690. </tr>
  2691. <tr>
  2692. <td>» isAdmin</td>
  2693. <td>body</td>
  2694. <td>boolean</td>
  2695. <td>false</td>
  2696. <td>is the owner an admin of the board (default true)</td>
  2697. </tr>
  2698. <tr>
  2699. <td>» isActive</td>
  2700. <td>body</td>
  2701. <td>boolean</td>
  2702. <td>false</td>
  2703. <td>is the board active (default true)</td>
  2704. </tr>
  2705. <tr>
  2706. <td>» isNoComments</td>
  2707. <td>body</td>
  2708. <td>boolean</td>
  2709. <td>false</td>
  2710. <td>disable comments (default false)</td>
  2711. </tr>
  2712. <tr>
  2713. <td>» isCommentOnly</td>
  2714. <td>body</td>
  2715. <td>boolean</td>
  2716. <td>false</td>
  2717. <td>only enable comments (default false)</td>
  2718. </tr>
  2719. <tr>
  2720. <td>» isWorker</td>
  2721. <td>body</td>
  2722. <td>boolean</td>
  2723. <td>false</td>
  2724. <td>only move cards, assign himself to card and comment (default false)</td>
  2725. </tr>
  2726. <tr>
  2727. <td>» permission</td>
  2728. <td>body</td>
  2729. <td>string</td>
  2730. <td>false</td>
  2731. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2732. </tr>
  2733. <tr>
  2734. <td>» color</td>
  2735. <td>body</td>
  2736. <td>string</td>
  2737. <td>false</td>
  2738. <td>the color of the board</td>
  2739. </tr>
  2740. </tbody>
  2741. </table>
  2742. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2743. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2744. (Not username or email)</p>
  2745. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2746. want public Wekan board</p>
  2747. <blockquote>
  2748. <p>Example responses</p>
  2749. </blockquote>
  2750. <blockquote>
  2751. <p>200 Response</p>
  2752. </blockquote>
  2753. <pre class="highlight tab tab-json"><code>{
  2754. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2755. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2756. }
  2757. </code></pre>
  2758. <h3 id="new_board-responses">Responses</h3>
  2759. <table>
  2760. <thead>
  2761. <tr>
  2762. <th>Status</th>
  2763. <th>Meaning</th>
  2764. <th>Description</th>
  2765. <th>Schema</th>
  2766. </tr>
  2767. </thead>
  2768. <tbody>
  2769. <tr>
  2770. <td>200</td>
  2771. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2772. <td>200 response</td>
  2773. <td>Inline</td>
  2774. </tr>
  2775. </tbody>
  2776. </table>
  2777. <h3 id="new_board-responseschema">Response Schema</h3>
  2778. <p>Status Code <strong>200</strong></p>
  2779. <table>
  2780. <thead>
  2781. <tr>
  2782. <th>Name</th>
  2783. <th>Type</th>
  2784. <th>Required</th>
  2785. <th>Restrictions</th>
  2786. <th>Description</th>
  2787. </tr>
  2788. </thead>
  2789. <tbody>
  2790. <tr>
  2791. <td>» _id</td>
  2792. <td>string</td>
  2793. <td>false</td>
  2794. <td>none</td>
  2795. <td>none</td>
  2796. </tr>
  2797. <tr>
  2798. <td>» defaultSwimlaneId</td>
  2799. <td>string</td>
  2800. <td>false</td>
  2801. <td>none</td>
  2802. <td>none</td>
  2803. </tr>
  2804. </tbody>
  2805. </table>
  2806. <aside class="warning">
  2807. To perform this operation, you must be authenticated by means of one of the following methods:
  2808. UserSecurity
  2809. </aside>
  2810. <h2 id="get_board">get_board</h2>
  2811. <p><a id="opIdget_board"></a></p>
  2812. <blockquote>
  2813. <p>Code samples</p>
  2814. </blockquote>
  2815. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2816. curl -X GET /api/boards/{board} \
  2817. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2818. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2819. </code></pre>
  2820. <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>
  2821. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2822. </span></code></pre>
  2823. <pre class="highlight tab tab-javascript"><code>
  2824. <span class="hljs-keyword">const</span> headers = {
  2825. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2826. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2827. };
  2828. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2829. {
  2830. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2831. <span class="hljs-attr">headers</span>: headers
  2832. })
  2833. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2834. <span class="hljs-keyword">return</span> res.json();
  2835. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2836. <span class="hljs-built_in">console</span>.log(body);
  2837. });
  2838. </code></pre>
  2839. <pre class="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>);
  2840. <span class="hljs-keyword">const</span> headers = {
  2841. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2842. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2843. };
  2844. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2845. {
  2846. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2847. <span class="hljs-attr">headers</span>: headers
  2848. })
  2849. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2850. <span class="hljs-keyword">return</span> res.json();
  2851. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2852. <span class="hljs-built_in">console</span>.log(body);
  2853. });
  2854. </code></pre>
  2855. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2856. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2857. headers = {
  2858. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2859. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2860. }
  2861. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2862. <span class="hljs-symbol">params:</span> {
  2863. }, <span class="hljs-symbol">headers:</span> headers
  2864. p JSON.parse(result)
  2865. </code></pre>
  2866. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2867. headers = {
  2868. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2869. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2870. }
  2871. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2872. <span class="hljs-built_in">print</span>(r.json())
  2873. </code></pre>
  2874. <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>);
  2875. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2876. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2877. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2878. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2879. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2880. String inputLine;
  2881. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2882. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2883. response.append(inputLine);
  2884. }
  2885. in.close();
  2886. System.out.println(response.toString());
  2887. </code></pre>
  2888. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2889. <span class="hljs-keyword">import</span> (
  2890. <span class="hljs-string">&quot;bytes&quot;</span>
  2891. <span class="hljs-string">&quot;net/http&quot;</span>
  2892. )
  2893. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2894. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2895. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2896. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2897. }
  2898. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2899. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2900. req.Header = headers
  2901. client := &amp;http.Client{}
  2902. resp, err := client.Do(req)
  2903. <span class="hljs-comment">// ...</span>
  2904. }
  2905. </code></pre>
  2906. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2907. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2908. );
  2909. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2910. <span class="hljs-comment">// Define array of request body.</span>
  2911. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2912. <span class="hljs-keyword">try</span> {
  2913. <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>(
  2914. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2915. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2916. )
  2917. );
  2918. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2919. }
  2920. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2921. <span class="hljs-comment">// handle exception or api errors.</span>
  2922. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2923. }
  2924. <span class="hljs-comment">// ...</span>
  2925. </code></pre>
  2926. <p><code>GET /api/boards/{board}</code></p>
  2927. <p><em>Get the board with that particular ID</em></p>
  2928. <h3 id="get_board-parameters">Parameters</h3>
  2929. <table>
  2930. <thead>
  2931. <tr>
  2932. <th>Name</th>
  2933. <th>In</th>
  2934. <th>Type</th>
  2935. <th>Required</th>
  2936. <th>Description</th>
  2937. </tr>
  2938. </thead>
  2939. <tbody>
  2940. <tr>
  2941. <td>board</td>
  2942. <td>path</td>
  2943. <td>string</td>
  2944. <td>true</td>
  2945. <td>the ID of the board to retrieve the data</td>
  2946. </tr>
  2947. </tbody>
  2948. </table>
  2949. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2950. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2951. <blockquote>
  2952. <p>Example responses</p>
  2953. </blockquote>
  2954. <blockquote>
  2955. <p>200 Response</p>
  2956. </blockquote>
  2957. <pre class="highlight tab tab-json"><code>{
  2958. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2959. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2960. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2961. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2962. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2963. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2964. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2965. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2966. {
  2967. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2968. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2969. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2970. }
  2971. ],
  2972. <span class="hljs-attr">&quot;members&quot;</span>: [
  2973. {
  2974. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2975. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2976. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2977. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2978. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2979. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2980. }
  2981. ],
  2982. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2983. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2984. {
  2985. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2986. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2987. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2988. }
  2989. ],
  2990. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2991. {
  2992. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2993. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2994. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2995. }
  2996. ],
  2997. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  2998. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2999. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3000. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3001. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3002. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3003. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3004. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3005. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3006. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3007. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3008. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3009. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3010. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3011. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3012. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3013. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3014. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3015. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3016. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3017. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3018. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3019. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3021. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3023. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3024. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3025. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3026. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3027. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3028. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3029. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3030. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3031. }
  3032. </code></pre>
  3033. <h3 id="get_board-responses">Responses</h3>
  3034. <table>
  3035. <thead>
  3036. <tr>
  3037. <th>Status</th>
  3038. <th>Meaning</th>
  3039. <th>Description</th>
  3040. <th>Schema</th>
  3041. </tr>
  3042. </thead>
  3043. <tbody>
  3044. <tr>
  3045. <td>200</td>
  3046. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3047. <td>200 response</td>
  3048. <td><a href="#schemaboards">Boards</a></td>
  3049. </tr>
  3050. </tbody>
  3051. </table>
  3052. <aside class="warning">
  3053. To perform this operation, you must be authenticated by means of one of the following methods:
  3054. UserSecurity
  3055. </aside>
  3056. <h2 id="delete_board">delete_board</h2>
  3057. <p><a id="opIddelete_board"></a></p>
  3058. <blockquote>
  3059. <p>Code samples</p>
  3060. </blockquote>
  3061. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3062. curl -X DELETE /api/boards/{board} \
  3063. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3064. </code></pre>
  3065. <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>
  3066. </code></pre>
  3067. <pre class="highlight tab tab-javascript"><code>
  3068. <span class="hljs-keyword">const</span> headers = {
  3069. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3070. };
  3071. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3072. {
  3073. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3074. <span class="hljs-attr">headers</span>: headers
  3075. })
  3076. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3077. <span class="hljs-keyword">return</span> res.json();
  3078. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3079. <span class="hljs-built_in">console</span>.log(body);
  3080. });
  3081. </code></pre>
  3082. <pre class="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>);
  3083. <span class="hljs-keyword">const</span> headers = {
  3084. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3085. };
  3086. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3087. {
  3088. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3089. <span class="hljs-attr">headers</span>: headers
  3090. })
  3091. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3092. <span class="hljs-keyword">return</span> res.json();
  3093. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3094. <span class="hljs-built_in">console</span>.log(body);
  3095. });
  3096. </code></pre>
  3097. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3098. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3099. headers = {
  3100. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3101. }
  3102. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3103. <span class="hljs-symbol">params:</span> {
  3104. }, <span class="hljs-symbol">headers:</span> headers
  3105. p JSON.parse(result)
  3106. </code></pre>
  3107. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3108. headers = {
  3109. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3110. }
  3111. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3112. <span class="hljs-built_in">print</span>(r.json())
  3113. </code></pre>
  3114. <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>);
  3115. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3116. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3117. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3118. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3119. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3120. String inputLine;
  3121. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3122. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3123. response.append(inputLine);
  3124. }
  3125. in.close();
  3126. System.out.println(response.toString());
  3127. </code></pre>
  3128. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3129. <span class="hljs-keyword">import</span> (
  3130. <span class="hljs-string">&quot;bytes&quot;</span>
  3131. <span class="hljs-string">&quot;net/http&quot;</span>
  3132. )
  3133. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3134. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3135. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3136. }
  3137. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3138. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3139. req.Header = headers
  3140. client := &amp;http.Client{}
  3141. resp, err := client.Do(req)
  3142. <span class="hljs-comment">// ...</span>
  3143. }
  3144. </code></pre>
  3145. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3146. );
  3147. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3148. <span class="hljs-comment">// Define array of request body.</span>
  3149. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3150. <span class="hljs-keyword">try</span> {
  3151. <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>(
  3152. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3153. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3154. )
  3155. );
  3156. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3157. }
  3158. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3159. <span class="hljs-comment">// handle exception or api errors.</span>
  3160. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3161. }
  3162. <span class="hljs-comment">// ...</span>
  3163. </code></pre>
  3164. <p><code>DELETE /api/boards/{board}</code></p>
  3165. <p><em>Delete a board</em></p>
  3166. <h3 id="delete_board-parameters">Parameters</h3>
  3167. <table>
  3168. <thead>
  3169. <tr>
  3170. <th>Name</th>
  3171. <th>In</th>
  3172. <th>Type</th>
  3173. <th>Required</th>
  3174. <th>Description</th>
  3175. </tr>
  3176. </thead>
  3177. <tbody>
  3178. <tr>
  3179. <td>board</td>
  3180. <td>path</td>
  3181. <td>string</td>
  3182. <td>true</td>
  3183. <td>the ID of the board</td>
  3184. </tr>
  3185. </tbody>
  3186. </table>
  3187. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3188. <p><strong>board</strong>: the ID of the board</p>
  3189. <h3 id="delete_board-responses">Responses</h3>
  3190. <table>
  3191. <thead>
  3192. <tr>
  3193. <th>Status</th>
  3194. <th>Meaning</th>
  3195. <th>Description</th>
  3196. <th>Schema</th>
  3197. </tr>
  3198. </thead>
  3199. <tbody>
  3200. <tr>
  3201. <td>200</td>
  3202. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3203. <td>200 response</td>
  3204. <td>None</td>
  3205. </tr>
  3206. </tbody>
  3207. </table>
  3208. <aside class="warning">
  3209. To perform this operation, you must be authenticated by means of one of the following methods:
  3210. UserSecurity
  3211. </aside>
  3212. <h2 id="get_board_attachments">get_board_attachments</h2>
  3213. <p><a id="opIdget_board_attachments"></a></p>
  3214. <blockquote>
  3215. <p>Code samples</p>
  3216. </blockquote>
  3217. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3218. curl -X GET /api/boards/{board}/attachments \
  3219. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3220. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3221. </code></pre>
  3222. <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>
  3223. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3224. </span></code></pre>
  3225. <pre class="highlight tab tab-javascript"><code>
  3226. <span class="hljs-keyword">const</span> headers = {
  3227. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3228. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3229. };
  3230. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3231. {
  3232. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3233. <span class="hljs-attr">headers</span>: headers
  3234. })
  3235. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3236. <span class="hljs-keyword">return</span> res.json();
  3237. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3238. <span class="hljs-built_in">console</span>.log(body);
  3239. });
  3240. </code></pre>
  3241. <pre class="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>);
  3242. <span class="hljs-keyword">const</span> headers = {
  3243. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3244. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3245. };
  3246. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3247. {
  3248. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3249. <span class="hljs-attr">headers</span>: headers
  3250. })
  3251. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3252. <span class="hljs-keyword">return</span> res.json();
  3253. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3254. <span class="hljs-built_in">console</span>.log(body);
  3255. });
  3256. </code></pre>
  3257. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3258. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3259. headers = {
  3260. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3261. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3262. }
  3263. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3264. <span class="hljs-symbol">params:</span> {
  3265. }, <span class="hljs-symbol">headers:</span> headers
  3266. p JSON.parse(result)
  3267. </code></pre>
  3268. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3269. headers = {
  3270. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3271. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3272. }
  3273. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3274. <span class="hljs-built_in">print</span>(r.json())
  3275. </code></pre>
  3276. <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>);
  3277. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3278. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3279. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3280. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3281. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3282. String inputLine;
  3283. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3284. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3285. response.append(inputLine);
  3286. }
  3287. in.close();
  3288. System.out.println(response.toString());
  3289. </code></pre>
  3290. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3291. <span class="hljs-keyword">import</span> (
  3292. <span class="hljs-string">&quot;bytes&quot;</span>
  3293. <span class="hljs-string">&quot;net/http&quot;</span>
  3294. )
  3295. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3296. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3297. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3298. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3299. }
  3300. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3301. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3302. req.Header = headers
  3303. client := &amp;http.Client{}
  3304. resp, err := client.Do(req)
  3305. <span class="hljs-comment">// ...</span>
  3306. }
  3307. </code></pre>
  3308. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3309. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3310. );
  3311. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3312. <span class="hljs-comment">// Define array of request body.</span>
  3313. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3314. <span class="hljs-keyword">try</span> {
  3315. <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>(
  3316. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3317. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3318. )
  3319. );
  3320. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3321. }
  3322. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3323. <span class="hljs-comment">// handle exception or api errors.</span>
  3324. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3325. }
  3326. <span class="hljs-comment">// ...</span>
  3327. </code></pre>
  3328. <p><code>GET /api/boards/{board}/attachments</code></p>
  3329. <p><em>Get the list of attachments of a board</em></p>
  3330. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3331. <table>
  3332. <thead>
  3333. <tr>
  3334. <th>Name</th>
  3335. <th>In</th>
  3336. <th>Type</th>
  3337. <th>Required</th>
  3338. <th>Description</th>
  3339. </tr>
  3340. </thead>
  3341. <tbody>
  3342. <tr>
  3343. <td>board</td>
  3344. <td>path</td>
  3345. <td>string</td>
  3346. <td>true</td>
  3347. <td>the board ID</td>
  3348. </tr>
  3349. </tbody>
  3350. </table>
  3351. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3352. <p><strong>board</strong>: the board ID</p>
  3353. <blockquote>
  3354. <p>Example responses</p>
  3355. </blockquote>
  3356. <blockquote>
  3357. <p>200 Response</p>
  3358. </blockquote>
  3359. <pre class="highlight tab tab-json"><code>[
  3360. {
  3361. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3362. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3363. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3364. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3365. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3366. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3367. }
  3368. ]
  3369. </code></pre>
  3370. <h3 id="get_board_attachments-responses">Responses</h3>
  3371. <table>
  3372. <thead>
  3373. <tr>
  3374. <th>Status</th>
  3375. <th>Meaning</th>
  3376. <th>Description</th>
  3377. <th>Schema</th>
  3378. </tr>
  3379. </thead>
  3380. <tbody>
  3381. <tr>
  3382. <td>200</td>
  3383. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3384. <td>200 response</td>
  3385. <td>Inline</td>
  3386. </tr>
  3387. </tbody>
  3388. </table>
  3389. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3390. <p>Status Code <strong>200</strong></p>
  3391. <table>
  3392. <thead>
  3393. <tr>
  3394. <th>Name</th>
  3395. <th>Type</th>
  3396. <th>Required</th>
  3397. <th>Restrictions</th>
  3398. <th>Description</th>
  3399. </tr>
  3400. </thead>
  3401. <tbody>
  3402. <tr>
  3403. <td>» attachmentId</td>
  3404. <td>string</td>
  3405. <td>false</td>
  3406. <td>none</td>
  3407. <td>none</td>
  3408. </tr>
  3409. <tr>
  3410. <td>» attachmentName</td>
  3411. <td>string</td>
  3412. <td>false</td>
  3413. <td>none</td>
  3414. <td>none</td>
  3415. </tr>
  3416. <tr>
  3417. <td>» attachmentType</td>
  3418. <td>string</td>
  3419. <td>false</td>
  3420. <td>none</td>
  3421. <td>none</td>
  3422. </tr>
  3423. <tr>
  3424. <td>» cardId</td>
  3425. <td>string</td>
  3426. <td>false</td>
  3427. <td>none</td>
  3428. <td>none</td>
  3429. </tr>
  3430. <tr>
  3431. <td>» listId</td>
  3432. <td>string</td>
  3433. <td>false</td>
  3434. <td>none</td>
  3435. <td>none</td>
  3436. </tr>
  3437. <tr>
  3438. <td>» swimlaneId</td>
  3439. <td>string</td>
  3440. <td>false</td>
  3441. <td>none</td>
  3442. <td>none</td>
  3443. </tr>
  3444. </tbody>
  3445. </table>
  3446. <aside class="warning">
  3447. To perform this operation, you must be authenticated by means of one of the following methods:
  3448. UserSecurity
  3449. </aside>
  3450. <h2 id="exportjson">exportJson</h2>
  3451. <p><a id="opIdexportJson"></a></p>
  3452. <blockquote>
  3453. <p>Code samples</p>
  3454. </blockquote>
  3455. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3456. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3457. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3458. </code></pre>
  3459. <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>
  3460. </code></pre>
  3461. <pre class="highlight tab tab-javascript"><code>
  3462. <span class="hljs-keyword">const</span> headers = {
  3463. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3464. };
  3465. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3466. {
  3467. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3468. <span class="hljs-attr">headers</span>: headers
  3469. })
  3470. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3471. <span class="hljs-keyword">return</span> res.json();
  3472. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3473. <span class="hljs-built_in">console</span>.log(body);
  3474. });
  3475. </code></pre>
  3476. <pre class="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>);
  3477. <span class="hljs-keyword">const</span> headers = {
  3478. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3479. };
  3480. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3481. {
  3482. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3483. <span class="hljs-attr">headers</span>: headers
  3484. })
  3485. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3486. <span class="hljs-keyword">return</span> res.json();
  3487. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3488. <span class="hljs-built_in">console</span>.log(body);
  3489. });
  3490. </code></pre>
  3491. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3492. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3493. headers = {
  3494. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3495. }
  3496. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3497. <span class="hljs-symbol">params:</span> {
  3498. }, <span class="hljs-symbol">headers:</span> headers
  3499. p JSON.parse(result)
  3500. </code></pre>
  3501. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3502. headers = {
  3503. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3504. }
  3505. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3506. <span class="hljs-built_in">print</span>(r.json())
  3507. </code></pre>
  3508. <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>);
  3509. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3510. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3511. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3512. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3513. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3514. String inputLine;
  3515. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3516. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3517. response.append(inputLine);
  3518. }
  3519. in.close();
  3520. System.out.println(response.toString());
  3521. </code></pre>
  3522. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3523. <span class="hljs-keyword">import</span> (
  3524. <span class="hljs-string">&quot;bytes&quot;</span>
  3525. <span class="hljs-string">&quot;net/http&quot;</span>
  3526. )
  3527. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3528. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3529. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3530. }
  3531. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3532. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3533. req.Header = headers
  3534. client := &amp;http.Client{}
  3535. resp, err := client.Do(req)
  3536. <span class="hljs-comment">// ...</span>
  3537. }
  3538. </code></pre>
  3539. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3540. );
  3541. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3542. <span class="hljs-comment">// Define array of request body.</span>
  3543. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3544. <span class="hljs-keyword">try</span> {
  3545. <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>(
  3546. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3547. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3548. )
  3549. );
  3550. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3551. }
  3552. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3553. <span class="hljs-comment">// handle exception or api errors.</span>
  3554. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3555. }
  3556. <span class="hljs-comment">// ...</span>
  3557. </code></pre>
  3558. <p><code>GET /api/boards/{board}/export</code></p>
  3559. <p><em>This route is used to export the board to a json file format.</em></p>
  3560. <p>If user is already logged-in, pass loginToken as param
  3561. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3562. <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>
  3563. for detailed explanations</p>
  3564. <h3 id="exportjson-parameters">Parameters</h3>
  3565. <table>
  3566. <thead>
  3567. <tr>
  3568. <th>Name</th>
  3569. <th>In</th>
  3570. <th>Type</th>
  3571. <th>Required</th>
  3572. <th>Description</th>
  3573. </tr>
  3574. </thead>
  3575. <tbody>
  3576. <tr>
  3577. <td>board</td>
  3578. <td>path</td>
  3579. <td>string</td>
  3580. <td>true</td>
  3581. <td>the ID of the board we are exporting</td>
  3582. </tr>
  3583. </tbody>
  3584. </table>
  3585. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3586. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3587. <h3 id="exportjson-responses">Responses</h3>
  3588. <table>
  3589. <thead>
  3590. <tr>
  3591. <th>Status</th>
  3592. <th>Meaning</th>
  3593. <th>Description</th>
  3594. <th>Schema</th>
  3595. </tr>
  3596. </thead>
  3597. <tbody>
  3598. <tr>
  3599. <td>200</td>
  3600. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3601. <td>200 response</td>
  3602. <td>None</td>
  3603. </tr>
  3604. </tbody>
  3605. </table>
  3606. <aside class="warning">
  3607. To perform this operation, you must be authenticated by means of one of the following methods:
  3608. UserSecurity
  3609. </aside>
  3610. <h2 id="add_board_label">add_board_label</h2>
  3611. <p><a id="opIdadd_board_label"></a></p>
  3612. <blockquote>
  3613. <p>Code samples</p>
  3614. </blockquote>
  3615. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3616. curl -X PUT /api/boards/{board}/labels \
  3617. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3618. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3619. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3620. </code></pre>
  3621. <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>
  3622. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3623. Accept: application/json
  3624. </span></code></pre>
  3625. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3626. &quot;label&quot;: &quot;string&quot;
  3627. }&#x27;</span>;
  3628. <span class="hljs-keyword">const</span> headers = {
  3629. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3630. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3631. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3632. };
  3633. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3634. {
  3635. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3636. <span class="hljs-attr">body</span>: inputBody,
  3637. <span class="hljs-attr">headers</span>: headers
  3638. })
  3639. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3640. <span class="hljs-keyword">return</span> res.json();
  3641. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3642. <span class="hljs-built_in">console</span>.log(body);
  3643. });
  3644. </code></pre>
  3645. <pre class="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>);
  3646. <span class="hljs-keyword">const</span> inputBody = {
  3647. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3648. };
  3649. <span class="hljs-keyword">const</span> headers = {
  3650. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3651. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3652. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3653. };
  3654. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3655. {
  3656. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3657. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3658. <span class="hljs-attr">headers</span>: headers
  3659. })
  3660. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3661. <span class="hljs-keyword">return</span> res.json();
  3662. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3663. <span class="hljs-built_in">console</span>.log(body);
  3664. });
  3665. </code></pre>
  3666. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3667. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3668. headers = {
  3669. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3670. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3671. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3672. }
  3673. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3674. <span class="hljs-symbol">params:</span> {
  3675. }, <span class="hljs-symbol">headers:</span> headers
  3676. p JSON.parse(result)
  3677. </code></pre>
  3678. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3679. headers = {
  3680. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3681. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3682. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3683. }
  3684. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3685. <span class="hljs-built_in">print</span>(r.json())
  3686. </code></pre>
  3687. <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>);
  3688. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3689. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3690. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3691. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3692. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3693. String inputLine;
  3694. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3695. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3696. response.append(inputLine);
  3697. }
  3698. in.close();
  3699. System.out.println(response.toString());
  3700. </code></pre>
  3701. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3702. <span class="hljs-keyword">import</span> (
  3703. <span class="hljs-string">&quot;bytes&quot;</span>
  3704. <span class="hljs-string">&quot;net/http&quot;</span>
  3705. )
  3706. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3707. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3708. <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>},
  3709. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3710. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3711. }
  3712. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3713. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3714. req.Header = headers
  3715. client := &amp;http.Client{}
  3716. resp, err := client.Do(req)
  3717. <span class="hljs-comment">// ...</span>
  3718. }
  3719. </code></pre>
  3720. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3721. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3722. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3723. );
  3724. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3725. <span class="hljs-comment">// Define array of request body.</span>
  3726. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3727. <span class="hljs-keyword">try</span> {
  3728. <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>(
  3729. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3730. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3731. )
  3732. );
  3733. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3734. }
  3735. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3736. <span class="hljs-comment">// handle exception or api errors.</span>
  3737. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3738. }
  3739. <span class="hljs-comment">// ...</span>
  3740. </code></pre>
  3741. <p><code>PUT /api/boards/{board}/labels</code></p>
  3742. <p><em>Add a label to a board</em></p>
  3743. <p>If the board doesn't have the name/color label, this function
  3744. adds the label to the board.</p>
  3745. <blockquote>
  3746. <p>Body parameter</p>
  3747. </blockquote>
  3748. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3749. </code></pre>
  3750. <h3 id="add_board_label-parameters">Parameters</h3>
  3751. <table>
  3752. <thead>
  3753. <tr>
  3754. <th>Name</th>
  3755. <th>In</th>
  3756. <th>Type</th>
  3757. <th>Required</th>
  3758. <th>Description</th>
  3759. </tr>
  3760. </thead>
  3761. <tbody>
  3762. <tr>
  3763. <td>board</td>
  3764. <td>path</td>
  3765. <td>string</td>
  3766. <td>true</td>
  3767. <td>the board</td>
  3768. </tr>
  3769. <tr>
  3770. <td>body</td>
  3771. <td>body</td>
  3772. <td>object</td>
  3773. <td>true</td>
  3774. <td>none</td>
  3775. </tr>
  3776. <tr>
  3777. <td>» label</td>
  3778. <td>body</td>
  3779. <td>string</td>
  3780. <td>true</td>
  3781. <td>the label value</td>
  3782. </tr>
  3783. </tbody>
  3784. </table>
  3785. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3786. <p><strong>board</strong>: the board</p>
  3787. <blockquote>
  3788. <p>Example responses</p>
  3789. </blockquote>
  3790. <blockquote>
  3791. <p>200 Response</p>
  3792. </blockquote>
  3793. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3794. </code></pre>
  3795. <h3 id="add_board_label-responses">Responses</h3>
  3796. <table>
  3797. <thead>
  3798. <tr>
  3799. <th>Status</th>
  3800. <th>Meaning</th>
  3801. <th>Description</th>
  3802. <th>Schema</th>
  3803. </tr>
  3804. </thead>
  3805. <tbody>
  3806. <tr>
  3807. <td>200</td>
  3808. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3809. <td>200 response</td>
  3810. <td>string</td>
  3811. </tr>
  3812. </tbody>
  3813. </table>
  3814. <aside class="warning">
  3815. To perform this operation, you must be authenticated by means of one of the following methods:
  3816. UserSecurity
  3817. </aside>
  3818. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3819. <p><a id="opIdset_board_member_permission"></a></p>
  3820. <blockquote>
  3821. <p>Code samples</p>
  3822. </blockquote>
  3823. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3824. curl -X POST /api/boards/{board}/members/{member} \
  3825. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3826. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3827. </code></pre>
  3828. <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>
  3829. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3830. </span></code></pre>
  3831. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3832. &quot;isAdmin&quot;: true,
  3833. &quot;isNoComments&quot;: true,
  3834. &quot;isCommentOnly&quot;: true,
  3835. &quot;isWorker&quot;: true
  3836. }&#x27;</span>;
  3837. <span class="hljs-keyword">const</span> headers = {
  3838. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3839. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3840. };
  3841. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3842. {
  3843. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3844. <span class="hljs-attr">body</span>: inputBody,
  3845. <span class="hljs-attr">headers</span>: headers
  3846. })
  3847. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3848. <span class="hljs-keyword">return</span> res.json();
  3849. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3850. <span class="hljs-built_in">console</span>.log(body);
  3851. });
  3852. </code></pre>
  3853. <pre class="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>);
  3854. <span class="hljs-keyword">const</span> inputBody = {
  3855. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3856. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3857. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3858. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3859. };
  3860. <span class="hljs-keyword">const</span> headers = {
  3861. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3862. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3863. };
  3864. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3865. {
  3866. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3867. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3868. <span class="hljs-attr">headers</span>: headers
  3869. })
  3870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3871. <span class="hljs-keyword">return</span> res.json();
  3872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3873. <span class="hljs-built_in">console</span>.log(body);
  3874. });
  3875. </code></pre>
  3876. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3877. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3878. headers = {
  3879. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3880. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3881. }
  3882. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3883. <span class="hljs-symbol">params:</span> {
  3884. }, <span class="hljs-symbol">headers:</span> headers
  3885. p JSON.parse(result)
  3886. </code></pre>
  3887. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3888. headers = {
  3889. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3890. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3891. }
  3892. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3893. <span class="hljs-built_in">print</span>(r.json())
  3894. </code></pre>
  3895. <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>);
  3896. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3897. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3898. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3899. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3900. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3901. String inputLine;
  3902. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3903. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3904. response.append(inputLine);
  3905. }
  3906. in.close();
  3907. System.out.println(response.toString());
  3908. </code></pre>
  3909. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3910. <span class="hljs-keyword">import</span> (
  3911. <span class="hljs-string">&quot;bytes&quot;</span>
  3912. <span class="hljs-string">&quot;net/http&quot;</span>
  3913. )
  3914. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3915. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3916. <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>},
  3917. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3918. }
  3919. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3920. 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)
  3921. req.Header = headers
  3922. client := &amp;http.Client{}
  3923. resp, err := client.Do(req)
  3924. <span class="hljs-comment">// ...</span>
  3925. }
  3926. </code></pre>
  3927. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3928. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3929. );
  3930. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3931. <span class="hljs-comment">// Define array of request body.</span>
  3932. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3933. <span class="hljs-keyword">try</span> {
  3934. <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>(
  3935. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3936. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3937. )
  3938. );
  3939. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3940. }
  3941. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3942. <span class="hljs-comment">// handle exception or api errors.</span>
  3943. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3944. }
  3945. <span class="hljs-comment">// ...</span>
  3946. </code></pre>
  3947. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3948. <p><em>Change the permission of a member of a board</em></p>
  3949. <blockquote>
  3950. <p>Body parameter</p>
  3951. </blockquote>
  3952. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3953. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3954. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3955. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3956. </code></pre>
  3957. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3958. <table>
  3959. <thead>
  3960. <tr>
  3961. <th>Name</th>
  3962. <th>In</th>
  3963. <th>Type</th>
  3964. <th>Required</th>
  3965. <th>Description</th>
  3966. </tr>
  3967. </thead>
  3968. <tbody>
  3969. <tr>
  3970. <td>board</td>
  3971. <td>path</td>
  3972. <td>string</td>
  3973. <td>true</td>
  3974. <td>the ID of the board that we are changing</td>
  3975. </tr>
  3976. <tr>
  3977. <td>member</td>
  3978. <td>path</td>
  3979. <td>string</td>
  3980. <td>true</td>
  3981. <td>the ID of the user to change permissions</td>
  3982. </tr>
  3983. <tr>
  3984. <td>body</td>
  3985. <td>body</td>
  3986. <td>object</td>
  3987. <td>true</td>
  3988. <td>none</td>
  3989. </tr>
  3990. <tr>
  3991. <td>» isAdmin</td>
  3992. <td>body</td>
  3993. <td>boolean</td>
  3994. <td>true</td>
  3995. <td>admin capability</td>
  3996. </tr>
  3997. <tr>
  3998. <td>» isNoComments</td>
  3999. <td>body</td>
  4000. <td>boolean</td>
  4001. <td>true</td>
  4002. <td>NoComments capability</td>
  4003. </tr>
  4004. <tr>
  4005. <td>» isCommentOnly</td>
  4006. <td>body</td>
  4007. <td>boolean</td>
  4008. <td>true</td>
  4009. <td>CommentsOnly capability</td>
  4010. </tr>
  4011. <tr>
  4012. <td>» isWorker</td>
  4013. <td>body</td>
  4014. <td>boolean</td>
  4015. <td>true</td>
  4016. <td>Worker capability</td>
  4017. </tr>
  4018. </tbody>
  4019. </table>
  4020. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4021. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4022. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4023. <h3 id="set_board_member_permission-responses">Responses</h3>
  4024. <table>
  4025. <thead>
  4026. <tr>
  4027. <th>Status</th>
  4028. <th>Meaning</th>
  4029. <th>Description</th>
  4030. <th>Schema</th>
  4031. </tr>
  4032. </thead>
  4033. <tbody>
  4034. <tr>
  4035. <td>200</td>
  4036. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4037. <td>200 response</td>
  4038. <td>None</td>
  4039. </tr>
  4040. </tbody>
  4041. </table>
  4042. <aside class="warning">
  4043. To perform this operation, you must be authenticated by means of one of the following methods:
  4044. UserSecurity
  4045. </aside>
  4046. <h2 id="get_boards_count">get_boards_count</h2>
  4047. <p><a id="opIdget_boards_count"></a></p>
  4048. <blockquote>
  4049. <p>Code samples</p>
  4050. </blockquote>
  4051. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4052. curl -X GET /api/boards_count \
  4053. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4054. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4055. </code></pre>
  4056. <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>
  4057. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4058. </span></code></pre>
  4059. <pre class="highlight tab tab-javascript"><code>
  4060. <span class="hljs-keyword">const</span> headers = {
  4061. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4062. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4063. };
  4064. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4065. {
  4066. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4067. <span class="hljs-attr">headers</span>: headers
  4068. })
  4069. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4070. <span class="hljs-keyword">return</span> res.json();
  4071. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4072. <span class="hljs-built_in">console</span>.log(body);
  4073. });
  4074. </code></pre>
  4075. <pre class="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>);
  4076. <span class="hljs-keyword">const</span> headers = {
  4077. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4078. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4079. };
  4080. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4081. {
  4082. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4083. <span class="hljs-attr">headers</span>: headers
  4084. })
  4085. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4086. <span class="hljs-keyword">return</span> res.json();
  4087. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4088. <span class="hljs-built_in">console</span>.log(body);
  4089. });
  4090. </code></pre>
  4091. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4092. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4093. headers = {
  4094. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4095. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4096. }
  4097. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4098. <span class="hljs-symbol">params:</span> {
  4099. }, <span class="hljs-symbol">headers:</span> headers
  4100. p JSON.parse(result)
  4101. </code></pre>
  4102. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4103. headers = {
  4104. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4105. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4106. }
  4107. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4108. <span class="hljs-built_in">print</span>(r.json())
  4109. </code></pre>
  4110. <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>);
  4111. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4112. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4113. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4114. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4115. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4116. String inputLine;
  4117. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4118. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4119. response.append(inputLine);
  4120. }
  4121. in.close();
  4122. System.out.println(response.toString());
  4123. </code></pre>
  4124. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4125. <span class="hljs-keyword">import</span> (
  4126. <span class="hljs-string">&quot;bytes&quot;</span>
  4127. <span class="hljs-string">&quot;net/http&quot;</span>
  4128. )
  4129. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4130. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4131. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4132. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4133. }
  4134. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4135. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4136. req.Header = headers
  4137. client := &amp;http.Client{}
  4138. resp, err := client.Do(req)
  4139. <span class="hljs-comment">// ...</span>
  4140. }
  4141. </code></pre>
  4142. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4143. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4144. );
  4145. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4146. <span class="hljs-comment">// Define array of request body.</span>
  4147. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4148. <span class="hljs-keyword">try</span> {
  4149. <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>(
  4150. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4151. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4152. )
  4153. );
  4154. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4155. }
  4156. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4157. <span class="hljs-comment">// handle exception or api errors.</span>
  4158. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4159. }
  4160. <span class="hljs-comment">// ...</span>
  4161. </code></pre>
  4162. <p><code>GET /api/boards_count</code></p>
  4163. <p><em>Get public and private boards count</em></p>
  4164. <blockquote>
  4165. <p>Example responses</p>
  4166. </blockquote>
  4167. <blockquote>
  4168. <p>200 Response</p>
  4169. </blockquote>
  4170. <pre class="highlight tab tab-json"><code>{
  4171. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4172. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4173. }
  4174. </code></pre>
  4175. <h3 id="get_boards_count-responses">Responses</h3>
  4176. <table>
  4177. <thead>
  4178. <tr>
  4179. <th>Status</th>
  4180. <th>Meaning</th>
  4181. <th>Description</th>
  4182. <th>Schema</th>
  4183. </tr>
  4184. </thead>
  4185. <tbody>
  4186. <tr>
  4187. <td>200</td>
  4188. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4189. <td>200 response</td>
  4190. <td>Inline</td>
  4191. </tr>
  4192. </tbody>
  4193. </table>
  4194. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4195. <p>Status Code <strong>200</strong></p>
  4196. <table>
  4197. <thead>
  4198. <tr>
  4199. <th>Name</th>
  4200. <th>Type</th>
  4201. <th>Required</th>
  4202. <th>Restrictions</th>
  4203. <th>Description</th>
  4204. </tr>
  4205. </thead>
  4206. <tbody>
  4207. <tr>
  4208. <td>» private</td>
  4209. <td>integer</td>
  4210. <td>false</td>
  4211. <td>none</td>
  4212. <td>none</td>
  4213. </tr>
  4214. <tr>
  4215. <td>» public</td>
  4216. <td>integer</td>
  4217. <td>false</td>
  4218. <td>none</td>
  4219. <td>none</td>
  4220. </tr>
  4221. </tbody>
  4222. </table>
  4223. <aside class="warning">
  4224. To perform this operation, you must be authenticated by means of one of the following methods:
  4225. UserSecurity
  4226. </aside>
  4227. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4228. <p><a id="opIdget_boards_from_user"></a></p>
  4229. <blockquote>
  4230. <p>Code samples</p>
  4231. </blockquote>
  4232. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4233. curl -X GET /api/users/{user}/boards \
  4234. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4235. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4236. </code></pre>
  4237. <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>
  4238. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4239. </span></code></pre>
  4240. <pre class="highlight tab tab-javascript"><code>
  4241. <span class="hljs-keyword">const</span> headers = {
  4242. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4243. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4244. };
  4245. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4246. {
  4247. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4248. <span class="hljs-attr">headers</span>: headers
  4249. })
  4250. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4251. <span class="hljs-keyword">return</span> res.json();
  4252. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4253. <span class="hljs-built_in">console</span>.log(body);
  4254. });
  4255. </code></pre>
  4256. <pre class="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>);
  4257. <span class="hljs-keyword">const</span> headers = {
  4258. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4259. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4260. };
  4261. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4262. {
  4263. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4264. <span class="hljs-attr">headers</span>: headers
  4265. })
  4266. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4267. <span class="hljs-keyword">return</span> res.json();
  4268. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4269. <span class="hljs-built_in">console</span>.log(body);
  4270. });
  4271. </code></pre>
  4272. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4273. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4274. headers = {
  4275. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4276. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4277. }
  4278. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4279. <span class="hljs-symbol">params:</span> {
  4280. }, <span class="hljs-symbol">headers:</span> headers
  4281. p JSON.parse(result)
  4282. </code></pre>
  4283. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4284. headers = {
  4285. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4286. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4287. }
  4288. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4289. <span class="hljs-built_in">print</span>(r.json())
  4290. </code></pre>
  4291. <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>);
  4292. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4293. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4294. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4295. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4296. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4297. String inputLine;
  4298. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4299. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4300. response.append(inputLine);
  4301. }
  4302. in.close();
  4303. System.out.println(response.toString());
  4304. </code></pre>
  4305. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4306. <span class="hljs-keyword">import</span> (
  4307. <span class="hljs-string">&quot;bytes&quot;</span>
  4308. <span class="hljs-string">&quot;net/http&quot;</span>
  4309. )
  4310. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4311. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4312. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4313. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4314. }
  4315. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4316. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4317. req.Header = headers
  4318. client := &amp;http.Client{}
  4319. resp, err := client.Do(req)
  4320. <span class="hljs-comment">// ...</span>
  4321. }
  4322. </code></pre>
  4323. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4324. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4325. );
  4326. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4327. <span class="hljs-comment">// Define array of request body.</span>
  4328. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4329. <span class="hljs-keyword">try</span> {
  4330. <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>(
  4331. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4332. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4333. )
  4334. );
  4335. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4336. }
  4337. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4338. <span class="hljs-comment">// handle exception or api errors.</span>
  4339. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4340. }
  4341. <span class="hljs-comment">// ...</span>
  4342. </code></pre>
  4343. <p><code>GET /api/users/{user}/boards</code></p>
  4344. <p><em>Get all boards attached to a user</em></p>
  4345. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4346. <table>
  4347. <thead>
  4348. <tr>
  4349. <th>Name</th>
  4350. <th>In</th>
  4351. <th>Type</th>
  4352. <th>Required</th>
  4353. <th>Description</th>
  4354. </tr>
  4355. </thead>
  4356. <tbody>
  4357. <tr>
  4358. <td>user</td>
  4359. <td>path</td>
  4360. <td>string</td>
  4361. <td>true</td>
  4362. <td>the ID of the user to retrieve the data</td>
  4363. </tr>
  4364. </tbody>
  4365. </table>
  4366. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4367. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4368. <blockquote>
  4369. <p>Example responses</p>
  4370. </blockquote>
  4371. <blockquote>
  4372. <p>200 Response</p>
  4373. </blockquote>
  4374. <pre class="highlight tab tab-json"><code>[
  4375. {
  4376. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4377. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4378. }
  4379. ]
  4380. </code></pre>
  4381. <h3 id="get_boards_from_user-responses">Responses</h3>
  4382. <table>
  4383. <thead>
  4384. <tr>
  4385. <th>Status</th>
  4386. <th>Meaning</th>
  4387. <th>Description</th>
  4388. <th>Schema</th>
  4389. </tr>
  4390. </thead>
  4391. <tbody>
  4392. <tr>
  4393. <td>200</td>
  4394. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4395. <td>200 response</td>
  4396. <td>Inline</td>
  4397. </tr>
  4398. </tbody>
  4399. </table>
  4400. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4401. <p>Status Code <strong>200</strong></p>
  4402. <table>
  4403. <thead>
  4404. <tr>
  4405. <th>Name</th>
  4406. <th>Type</th>
  4407. <th>Required</th>
  4408. <th>Restrictions</th>
  4409. <th>Description</th>
  4410. </tr>
  4411. </thead>
  4412. <tbody>
  4413. <tr>
  4414. <td>» _id</td>
  4415. <td>string</td>
  4416. <td>false</td>
  4417. <td>none</td>
  4418. <td>none</td>
  4419. </tr>
  4420. <tr>
  4421. <td>» title</td>
  4422. <td>string</td>
  4423. <td>false</td>
  4424. <td>none</td>
  4425. <td>none</td>
  4426. </tr>
  4427. </tbody>
  4428. </table>
  4429. <aside class="warning">
  4430. To perform this operation, you must be authenticated by means of one of the following methods:
  4431. UserSecurity
  4432. </aside>
  4433. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4434. <h2 id="get_all_checklists">get_all_checklists</h2>
  4435. <p><a id="opIdget_all_checklists"></a></p>
  4436. <blockquote>
  4437. <p>Code samples</p>
  4438. </blockquote>
  4439. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4440. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4441. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4442. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4443. </code></pre>
  4444. <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>
  4445. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4446. </span></code></pre>
  4447. <pre class="highlight tab tab-javascript"><code>
  4448. <span class="hljs-keyword">const</span> headers = {
  4449. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4450. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4451. };
  4452. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4453. {
  4454. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4455. <span class="hljs-attr">headers</span>: headers
  4456. })
  4457. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4458. <span class="hljs-keyword">return</span> res.json();
  4459. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4460. <span class="hljs-built_in">console</span>.log(body);
  4461. });
  4462. </code></pre>
  4463. <pre class="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>);
  4464. <span class="hljs-keyword">const</span> headers = {
  4465. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4466. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4467. };
  4468. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4469. {
  4470. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4471. <span class="hljs-attr">headers</span>: headers
  4472. })
  4473. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4474. <span class="hljs-keyword">return</span> res.json();
  4475. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4476. <span class="hljs-built_in">console</span>.log(body);
  4477. });
  4478. </code></pre>
  4479. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4480. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4481. headers = {
  4482. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4483. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4484. }
  4485. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4486. <span class="hljs-symbol">params:</span> {
  4487. }, <span class="hljs-symbol">headers:</span> headers
  4488. p JSON.parse(result)
  4489. </code></pre>
  4490. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4491. headers = {
  4492. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4493. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4494. }
  4495. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4496. <span class="hljs-built_in">print</span>(r.json())
  4497. </code></pre>
  4498. <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>);
  4499. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4500. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4501. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4502. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4503. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4504. String inputLine;
  4505. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4506. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4507. response.append(inputLine);
  4508. }
  4509. in.close();
  4510. System.out.println(response.toString());
  4511. </code></pre>
  4512. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4513. <span class="hljs-keyword">import</span> (
  4514. <span class="hljs-string">&quot;bytes&quot;</span>
  4515. <span class="hljs-string">&quot;net/http&quot;</span>
  4516. )
  4517. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4518. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4519. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4520. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4521. }
  4522. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4523. 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)
  4524. req.Header = headers
  4525. client := &amp;http.Client{}
  4526. resp, err := client.Do(req)
  4527. <span class="hljs-comment">// ...</span>
  4528. }
  4529. </code></pre>
  4530. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4531. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4532. );
  4533. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4534. <span class="hljs-comment">// Define array of request body.</span>
  4535. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4536. <span class="hljs-keyword">try</span> {
  4537. <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>(
  4538. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4539. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4540. )
  4541. );
  4542. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4543. }
  4544. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4545. <span class="hljs-comment">// handle exception or api errors.</span>
  4546. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4547. }
  4548. <span class="hljs-comment">// ...</span>
  4549. </code></pre>
  4550. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4551. <p><em>Get the list of checklists attached to a card</em></p>
  4552. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4553. <table>
  4554. <thead>
  4555. <tr>
  4556. <th>Name</th>
  4557. <th>In</th>
  4558. <th>Type</th>
  4559. <th>Required</th>
  4560. <th>Description</th>
  4561. </tr>
  4562. </thead>
  4563. <tbody>
  4564. <tr>
  4565. <td>board</td>
  4566. <td>path</td>
  4567. <td>string</td>
  4568. <td>true</td>
  4569. <td>the board ID</td>
  4570. </tr>
  4571. <tr>
  4572. <td>card</td>
  4573. <td>path</td>
  4574. <td>string</td>
  4575. <td>true</td>
  4576. <td>the card ID</td>
  4577. </tr>
  4578. </tbody>
  4579. </table>
  4580. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4581. <p><strong>board</strong>: the board ID</p>
  4582. <p><strong>card</strong>: the card ID</p>
  4583. <blockquote>
  4584. <p>Example responses</p>
  4585. </blockquote>
  4586. <blockquote>
  4587. <p>200 Response</p>
  4588. </blockquote>
  4589. <pre class="highlight tab tab-json"><code>[
  4590. {
  4591. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4592. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4593. }
  4594. ]
  4595. </code></pre>
  4596. <h3 id="get_all_checklists-responses">Responses</h3>
  4597. <table>
  4598. <thead>
  4599. <tr>
  4600. <th>Status</th>
  4601. <th>Meaning</th>
  4602. <th>Description</th>
  4603. <th>Schema</th>
  4604. </tr>
  4605. </thead>
  4606. <tbody>
  4607. <tr>
  4608. <td>200</td>
  4609. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4610. <td>200 response</td>
  4611. <td>Inline</td>
  4612. </tr>
  4613. </tbody>
  4614. </table>
  4615. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4616. <p>Status Code <strong>200</strong></p>
  4617. <table>
  4618. <thead>
  4619. <tr>
  4620. <th>Name</th>
  4621. <th>Type</th>
  4622. <th>Required</th>
  4623. <th>Restrictions</th>
  4624. <th>Description</th>
  4625. </tr>
  4626. </thead>
  4627. <tbody>
  4628. <tr>
  4629. <td>» _id</td>
  4630. <td>string</td>
  4631. <td>false</td>
  4632. <td>none</td>
  4633. <td>none</td>
  4634. </tr>
  4635. <tr>
  4636. <td>» title</td>
  4637. <td>string</td>
  4638. <td>false</td>
  4639. <td>none</td>
  4640. <td>none</td>
  4641. </tr>
  4642. </tbody>
  4643. </table>
  4644. <aside class="warning">
  4645. To perform this operation, you must be authenticated by means of one of the following methods:
  4646. UserSecurity
  4647. </aside>
  4648. <h2 id="new_checklist">new_checklist</h2>
  4649. <p><a id="opIdnew_checklist"></a></p>
  4650. <blockquote>
  4651. <p>Code samples</p>
  4652. </blockquote>
  4653. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4654. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4655. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4656. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4657. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4658. </code></pre>
  4659. <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>
  4660. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4661. Accept: application/json
  4662. </span></code></pre>
  4663. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4664. &quot;title&quot;: &quot;string&quot;,
  4665. &quot;items&quot;: &quot;string&quot;
  4666. }&#x27;</span>;
  4667. <span class="hljs-keyword">const</span> headers = {
  4668. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4669. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4670. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4671. };
  4672. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4673. {
  4674. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4675. <span class="hljs-attr">body</span>: inputBody,
  4676. <span class="hljs-attr">headers</span>: headers
  4677. })
  4678. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4679. <span class="hljs-keyword">return</span> res.json();
  4680. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4681. <span class="hljs-built_in">console</span>.log(body);
  4682. });
  4683. </code></pre>
  4684. <pre class="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>);
  4685. <span class="hljs-keyword">const</span> inputBody = {
  4686. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4687. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4688. };
  4689. <span class="hljs-keyword">const</span> headers = {
  4690. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4691. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4692. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4693. };
  4694. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4695. {
  4696. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4697. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4698. <span class="hljs-attr">headers</span>: headers
  4699. })
  4700. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4701. <span class="hljs-keyword">return</span> res.json();
  4702. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4703. <span class="hljs-built_in">console</span>.log(body);
  4704. });
  4705. </code></pre>
  4706. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4707. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4708. headers = {
  4709. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4710. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4711. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4712. }
  4713. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4714. <span class="hljs-symbol">params:</span> {
  4715. }, <span class="hljs-symbol">headers:</span> headers
  4716. p JSON.parse(result)
  4717. </code></pre>
  4718. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4719. headers = {
  4720. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4721. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4722. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4723. }
  4724. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4725. <span class="hljs-built_in">print</span>(r.json())
  4726. </code></pre>
  4727. <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>);
  4728. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4729. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4730. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4731. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4732. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4733. String inputLine;
  4734. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4735. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4736. response.append(inputLine);
  4737. }
  4738. in.close();
  4739. System.out.println(response.toString());
  4740. </code></pre>
  4741. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4742. <span class="hljs-keyword">import</span> (
  4743. <span class="hljs-string">&quot;bytes&quot;</span>
  4744. <span class="hljs-string">&quot;net/http&quot;</span>
  4745. )
  4746. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4747. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4748. <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>},
  4749. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4750. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4751. }
  4752. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4753. 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)
  4754. req.Header = headers
  4755. client := &amp;http.Client{}
  4756. resp, err := client.Do(req)
  4757. <span class="hljs-comment">// ...</span>
  4758. }
  4759. </code></pre>
  4760. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4761. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4762. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4763. );
  4764. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4765. <span class="hljs-comment">// Define array of request body.</span>
  4766. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4767. <span class="hljs-keyword">try</span> {
  4768. <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>(
  4769. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4770. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4771. )
  4772. );
  4773. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4774. }
  4775. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4776. <span class="hljs-comment">// handle exception or api errors.</span>
  4777. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4778. }
  4779. <span class="hljs-comment">// ...</span>
  4780. </code></pre>
  4781. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4782. <p><em>create a new checklist</em></p>
  4783. <blockquote>
  4784. <p>Body parameter</p>
  4785. </blockquote>
  4786. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4787. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4788. </code></pre>
  4789. <h3 id="new_checklist-parameters">Parameters</h3>
  4790. <table>
  4791. <thead>
  4792. <tr>
  4793. <th>Name</th>
  4794. <th>In</th>
  4795. <th>Type</th>
  4796. <th>Required</th>
  4797. <th>Description</th>
  4798. </tr>
  4799. </thead>
  4800. <tbody>
  4801. <tr>
  4802. <td>board</td>
  4803. <td>path</td>
  4804. <td>string</td>
  4805. <td>true</td>
  4806. <td>the board ID</td>
  4807. </tr>
  4808. <tr>
  4809. <td>card</td>
  4810. <td>path</td>
  4811. <td>string</td>
  4812. <td>true</td>
  4813. <td>the card ID</td>
  4814. </tr>
  4815. <tr>
  4816. <td>body</td>
  4817. <td>body</td>
  4818. <td>object</td>
  4819. <td>true</td>
  4820. <td>none</td>
  4821. </tr>
  4822. <tr>
  4823. <td>» title</td>
  4824. <td>body</td>
  4825. <td>string</td>
  4826. <td>true</td>
  4827. <td>the title of the new checklist</td>
  4828. </tr>
  4829. <tr>
  4830. <td>» items</td>
  4831. <td>body</td>
  4832. <td>string</td>
  4833. <td>false</td>
  4834. <td>the list of items on the new checklist</td>
  4835. </tr>
  4836. </tbody>
  4837. </table>
  4838. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4839. <p><strong>board</strong>: the board ID</p>
  4840. <p><strong>card</strong>: the card ID</p>
  4841. <blockquote>
  4842. <p>Example responses</p>
  4843. </blockquote>
  4844. <blockquote>
  4845. <p>200 Response</p>
  4846. </blockquote>
  4847. <pre class="highlight tab tab-json"><code>{
  4848. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4849. }
  4850. </code></pre>
  4851. <h3 id="new_checklist-responses">Responses</h3>
  4852. <table>
  4853. <thead>
  4854. <tr>
  4855. <th>Status</th>
  4856. <th>Meaning</th>
  4857. <th>Description</th>
  4858. <th>Schema</th>
  4859. </tr>
  4860. </thead>
  4861. <tbody>
  4862. <tr>
  4863. <td>200</td>
  4864. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4865. <td>200 response</td>
  4866. <td>Inline</td>
  4867. </tr>
  4868. </tbody>
  4869. </table>
  4870. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4871. <p>Status Code <strong>200</strong></p>
  4872. <table>
  4873. <thead>
  4874. <tr>
  4875. <th>Name</th>
  4876. <th>Type</th>
  4877. <th>Required</th>
  4878. <th>Restrictions</th>
  4879. <th>Description</th>
  4880. </tr>
  4881. </thead>
  4882. <tbody>
  4883. <tr>
  4884. <td>» _id</td>
  4885. <td>string</td>
  4886. <td>false</td>
  4887. <td>none</td>
  4888. <td>none</td>
  4889. </tr>
  4890. </tbody>
  4891. </table>
  4892. <aside class="warning">
  4893. To perform this operation, you must be authenticated by means of one of the following methods:
  4894. UserSecurity
  4895. </aside>
  4896. <h2 id="get_checklist">get_checklist</h2>
  4897. <p><a id="opIdget_checklist"></a></p>
  4898. <blockquote>
  4899. <p>Code samples</p>
  4900. </blockquote>
  4901. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4902. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4903. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4904. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4905. </code></pre>
  4906. <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>
  4907. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4908. </span></code></pre>
  4909. <pre class="highlight tab tab-javascript"><code>
  4910. <span class="hljs-keyword">const</span> headers = {
  4911. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4912. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4913. };
  4914. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4915. {
  4916. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4917. <span class="hljs-attr">headers</span>: headers
  4918. })
  4919. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4920. <span class="hljs-keyword">return</span> res.json();
  4921. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4922. <span class="hljs-built_in">console</span>.log(body);
  4923. });
  4924. </code></pre>
  4925. <pre class="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>);
  4926. <span class="hljs-keyword">const</span> headers = {
  4927. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4928. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4929. };
  4930. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4931. {
  4932. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4933. <span class="hljs-attr">headers</span>: headers
  4934. })
  4935. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4936. <span class="hljs-keyword">return</span> res.json();
  4937. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4938. <span class="hljs-built_in">console</span>.log(body);
  4939. });
  4940. </code></pre>
  4941. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4942. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4943. headers = {
  4944. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4945. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4946. }
  4947. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4948. <span class="hljs-symbol">params:</span> {
  4949. }, <span class="hljs-symbol">headers:</span> headers
  4950. p JSON.parse(result)
  4951. </code></pre>
  4952. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4953. headers = {
  4954. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4955. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4956. }
  4957. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4958. <span class="hljs-built_in">print</span>(r.json())
  4959. </code></pre>
  4960. <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>);
  4961. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4962. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4963. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4964. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4965. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4966. String inputLine;
  4967. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4968. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4969. response.append(inputLine);
  4970. }
  4971. in.close();
  4972. System.out.println(response.toString());
  4973. </code></pre>
  4974. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4975. <span class="hljs-keyword">import</span> (
  4976. <span class="hljs-string">&quot;bytes&quot;</span>
  4977. <span class="hljs-string">&quot;net/http&quot;</span>
  4978. )
  4979. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4980. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4981. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4982. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4983. }
  4984. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4985. 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)
  4986. req.Header = headers
  4987. client := &amp;http.Client{}
  4988. resp, err := client.Do(req)
  4989. <span class="hljs-comment">// ...</span>
  4990. }
  4991. </code></pre>
  4992. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4993. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4994. );
  4995. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4996. <span class="hljs-comment">// Define array of request body.</span>
  4997. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4998. <span class="hljs-keyword">try</span> {
  4999. <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>(
  5000. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5001. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5002. )
  5003. );
  5004. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5005. }
  5006. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5007. <span class="hljs-comment">// handle exception or api errors.</span>
  5008. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5009. }
  5010. <span class="hljs-comment">// ...</span>
  5011. </code></pre>
  5012. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5013. <p><em>Get a checklist</em></p>
  5014. <h3 id="get_checklist-parameters">Parameters</h3>
  5015. <table>
  5016. <thead>
  5017. <tr>
  5018. <th>Name</th>
  5019. <th>In</th>
  5020. <th>Type</th>
  5021. <th>Required</th>
  5022. <th>Description</th>
  5023. </tr>
  5024. </thead>
  5025. <tbody>
  5026. <tr>
  5027. <td>board</td>
  5028. <td>path</td>
  5029. <td>string</td>
  5030. <td>true</td>
  5031. <td>the board ID</td>
  5032. </tr>
  5033. <tr>
  5034. <td>card</td>
  5035. <td>path</td>
  5036. <td>string</td>
  5037. <td>true</td>
  5038. <td>the card ID</td>
  5039. </tr>
  5040. <tr>
  5041. <td>checklist</td>
  5042. <td>path</td>
  5043. <td>string</td>
  5044. <td>true</td>
  5045. <td>the ID of the checklist</td>
  5046. </tr>
  5047. </tbody>
  5048. </table>
  5049. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5050. <p><strong>board</strong>: the board ID</p>
  5051. <p><strong>card</strong>: the card ID</p>
  5052. <p><strong>checklist</strong>: the ID of the checklist</p>
  5053. <blockquote>
  5054. <p>Example responses</p>
  5055. </blockquote>
  5056. <blockquote>
  5057. <p>200 Response</p>
  5058. </blockquote>
  5059. <pre class="highlight tab tab-json"><code>{
  5060. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5061. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5062. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5063. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5064. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5065. <span class="hljs-attr">&quot;items&quot;</span>: [
  5066. {
  5067. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5068. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5069. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5070. }
  5071. ]
  5072. }
  5073. </code></pre>
  5074. <h3 id="get_checklist-responses">Responses</h3>
  5075. <table>
  5076. <thead>
  5077. <tr>
  5078. <th>Status</th>
  5079. <th>Meaning</th>
  5080. <th>Description</th>
  5081. <th>Schema</th>
  5082. </tr>
  5083. </thead>
  5084. <tbody>
  5085. <tr>
  5086. <td>200</td>
  5087. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5088. <td>200 response</td>
  5089. <td>Inline</td>
  5090. </tr>
  5091. </tbody>
  5092. </table>
  5093. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5094. <p>Status Code <strong>200</strong></p>
  5095. <table>
  5096. <thead>
  5097. <tr>
  5098. <th>Name</th>
  5099. <th>Type</th>
  5100. <th>Required</th>
  5101. <th>Restrictions</th>
  5102. <th>Description</th>
  5103. </tr>
  5104. </thead>
  5105. <tbody>
  5106. <tr>
  5107. <td>» cardId</td>
  5108. <td>string</td>
  5109. <td>false</td>
  5110. <td>none</td>
  5111. <td>none</td>
  5112. </tr>
  5113. <tr>
  5114. <td>» title</td>
  5115. <td>string</td>
  5116. <td>false</td>
  5117. <td>none</td>
  5118. <td>none</td>
  5119. </tr>
  5120. <tr>
  5121. <td>» finishedAt</td>
  5122. <td>string</td>
  5123. <td>false</td>
  5124. <td>none</td>
  5125. <td>none</td>
  5126. </tr>
  5127. <tr>
  5128. <td>» createdAt</td>
  5129. <td>string</td>
  5130. <td>false</td>
  5131. <td>none</td>
  5132. <td>none</td>
  5133. </tr>
  5134. <tr>
  5135. <td>» sort</td>
  5136. <td>number</td>
  5137. <td>false</td>
  5138. <td>none</td>
  5139. <td>none</td>
  5140. </tr>
  5141. <tr>
  5142. <td>» items</td>
  5143. <td>[object]</td>
  5144. <td>false</td>
  5145. <td>none</td>
  5146. <td>none</td>
  5147. </tr>
  5148. <tr>
  5149. <td>»» _id</td>
  5150. <td>string</td>
  5151. <td>false</td>
  5152. <td>none</td>
  5153. <td>none</td>
  5154. </tr>
  5155. <tr>
  5156. <td>»» title</td>
  5157. <td>string</td>
  5158. <td>false</td>
  5159. <td>none</td>
  5160. <td>none</td>
  5161. </tr>
  5162. <tr>
  5163. <td>»» isFinished</td>
  5164. <td>boolean</td>
  5165. <td>false</td>
  5166. <td>none</td>
  5167. <td>none</td>
  5168. </tr>
  5169. </tbody>
  5170. </table>
  5171. <aside class="warning">
  5172. To perform this operation, you must be authenticated by means of one of the following methods:
  5173. UserSecurity
  5174. </aside>
  5175. <h2 id="delete_checklist">delete_checklist</h2>
  5176. <p><a id="opIddelete_checklist"></a></p>
  5177. <blockquote>
  5178. <p>Code samples</p>
  5179. </blockquote>
  5180. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5181. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5182. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5183. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5184. </code></pre>
  5185. <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>
  5186. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5187. </span></code></pre>
  5188. <pre class="highlight tab tab-javascript"><code>
  5189. <span class="hljs-keyword">const</span> headers = {
  5190. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5191. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5192. };
  5193. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5194. {
  5195. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5196. <span class="hljs-attr">headers</span>: headers
  5197. })
  5198. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5199. <span class="hljs-keyword">return</span> res.json();
  5200. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5201. <span class="hljs-built_in">console</span>.log(body);
  5202. });
  5203. </code></pre>
  5204. <pre class="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>);
  5205. <span class="hljs-keyword">const</span> headers = {
  5206. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5207. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5208. };
  5209. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5210. {
  5211. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5212. <span class="hljs-attr">headers</span>: headers
  5213. })
  5214. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5215. <span class="hljs-keyword">return</span> res.json();
  5216. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5217. <span class="hljs-built_in">console</span>.log(body);
  5218. });
  5219. </code></pre>
  5220. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5221. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5222. headers = {
  5223. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5224. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5225. }
  5226. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5227. <span class="hljs-symbol">params:</span> {
  5228. }, <span class="hljs-symbol">headers:</span> headers
  5229. p JSON.parse(result)
  5230. </code></pre>
  5231. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5232. headers = {
  5233. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5234. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5235. }
  5236. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5237. <span class="hljs-built_in">print</span>(r.json())
  5238. </code></pre>
  5239. <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>);
  5240. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5241. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5242. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5243. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5244. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5245. String inputLine;
  5246. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5247. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5248. response.append(inputLine);
  5249. }
  5250. in.close();
  5251. System.out.println(response.toString());
  5252. </code></pre>
  5253. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5254. <span class="hljs-keyword">import</span> (
  5255. <span class="hljs-string">&quot;bytes&quot;</span>
  5256. <span class="hljs-string">&quot;net/http&quot;</span>
  5257. )
  5258. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5259. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5260. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5261. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5262. }
  5263. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5264. 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)
  5265. req.Header = headers
  5266. client := &amp;http.Client{}
  5267. resp, err := client.Do(req)
  5268. <span class="hljs-comment">// ...</span>
  5269. }
  5270. </code></pre>
  5271. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5272. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5273. );
  5274. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5275. <span class="hljs-comment">// Define array of request body.</span>
  5276. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5277. <span class="hljs-keyword">try</span> {
  5278. <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>(
  5279. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5280. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5281. )
  5282. );
  5283. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5284. }
  5285. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5286. <span class="hljs-comment">// handle exception or api errors.</span>
  5287. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5288. }
  5289. <span class="hljs-comment">// ...</span>
  5290. </code></pre>
  5291. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5292. <p><em>Delete a checklist</em></p>
  5293. <p>The checklist will be removed, not put in the recycle bin.</p>
  5294. <h3 id="delete_checklist-parameters">Parameters</h3>
  5295. <table>
  5296. <thead>
  5297. <tr>
  5298. <th>Name</th>
  5299. <th>In</th>
  5300. <th>Type</th>
  5301. <th>Required</th>
  5302. <th>Description</th>
  5303. </tr>
  5304. </thead>
  5305. <tbody>
  5306. <tr>
  5307. <td>board</td>
  5308. <td>path</td>
  5309. <td>string</td>
  5310. <td>true</td>
  5311. <td>the board ID</td>
  5312. </tr>
  5313. <tr>
  5314. <td>card</td>
  5315. <td>path</td>
  5316. <td>string</td>
  5317. <td>true</td>
  5318. <td>the card ID</td>
  5319. </tr>
  5320. <tr>
  5321. <td>checklist</td>
  5322. <td>path</td>
  5323. <td>string</td>
  5324. <td>true</td>
  5325. <td>the ID of the checklist to remove</td>
  5326. </tr>
  5327. </tbody>
  5328. </table>
  5329. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5330. <p><strong>board</strong>: the board ID</p>
  5331. <p><strong>card</strong>: the card ID</p>
  5332. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5333. <blockquote>
  5334. <p>Example responses</p>
  5335. </blockquote>
  5336. <blockquote>
  5337. <p>200 Response</p>
  5338. </blockquote>
  5339. <pre class="highlight tab tab-json"><code>{
  5340. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5341. }
  5342. </code></pre>
  5343. <h3 id="delete_checklist-responses">Responses</h3>
  5344. <table>
  5345. <thead>
  5346. <tr>
  5347. <th>Status</th>
  5348. <th>Meaning</th>
  5349. <th>Description</th>
  5350. <th>Schema</th>
  5351. </tr>
  5352. </thead>
  5353. <tbody>
  5354. <tr>
  5355. <td>200</td>
  5356. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5357. <td>200 response</td>
  5358. <td>Inline</td>
  5359. </tr>
  5360. </tbody>
  5361. </table>
  5362. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5363. <p>Status Code <strong>200</strong></p>
  5364. <table>
  5365. <thead>
  5366. <tr>
  5367. <th>Name</th>
  5368. <th>Type</th>
  5369. <th>Required</th>
  5370. <th>Restrictions</th>
  5371. <th>Description</th>
  5372. </tr>
  5373. </thead>
  5374. <tbody>
  5375. <tr>
  5376. <td>» _id</td>
  5377. <td>string</td>
  5378. <td>false</td>
  5379. <td>none</td>
  5380. <td>none</td>
  5381. </tr>
  5382. </tbody>
  5383. </table>
  5384. <aside class="warning">
  5385. To perform this operation, you must be authenticated by means of one of the following methods:
  5386. UserSecurity
  5387. </aside>
  5388. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5389. <h2 id="get_checklist_item">get_checklist_item</h2>
  5390. <p><a id="opIdget_checklist_item"></a></p>
  5391. <blockquote>
  5392. <p>Code samples</p>
  5393. </blockquote>
  5394. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5395. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5396. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5397. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5398. </code></pre>
  5399. <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>
  5400. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5401. </span></code></pre>
  5402. <pre class="highlight tab tab-javascript"><code>
  5403. <span class="hljs-keyword">const</span> headers = {
  5404. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5405. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5406. };
  5407. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5408. {
  5409. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5410. <span class="hljs-attr">headers</span>: headers
  5411. })
  5412. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5413. <span class="hljs-keyword">return</span> res.json();
  5414. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5415. <span class="hljs-built_in">console</span>.log(body);
  5416. });
  5417. </code></pre>
  5418. <pre class="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>);
  5419. <span class="hljs-keyword">const</span> headers = {
  5420. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5421. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5422. };
  5423. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5424. {
  5425. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5426. <span class="hljs-attr">headers</span>: headers
  5427. })
  5428. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5429. <span class="hljs-keyword">return</span> res.json();
  5430. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5431. <span class="hljs-built_in">console</span>.log(body);
  5432. });
  5433. </code></pre>
  5434. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5435. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5436. headers = {
  5437. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5438. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5439. }
  5440. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5441. <span class="hljs-symbol">params:</span> {
  5442. }, <span class="hljs-symbol">headers:</span> headers
  5443. p JSON.parse(result)
  5444. </code></pre>
  5445. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5446. headers = {
  5447. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5448. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5449. }
  5450. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5451. <span class="hljs-built_in">print</span>(r.json())
  5452. </code></pre>
  5453. <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>);
  5454. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5455. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5456. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5457. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5458. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5459. String inputLine;
  5460. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5461. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5462. response.append(inputLine);
  5463. }
  5464. in.close();
  5465. System.out.println(response.toString());
  5466. </code></pre>
  5467. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5468. <span class="hljs-keyword">import</span> (
  5469. <span class="hljs-string">&quot;bytes&quot;</span>
  5470. <span class="hljs-string">&quot;net/http&quot;</span>
  5471. )
  5472. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5473. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5474. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5475. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5476. }
  5477. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5478. 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)
  5479. req.Header = headers
  5480. client := &amp;http.Client{}
  5481. resp, err := client.Do(req)
  5482. <span class="hljs-comment">// ...</span>
  5483. }
  5484. </code></pre>
  5485. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5486. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5487. );
  5488. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5489. <span class="hljs-comment">// Define array of request body.</span>
  5490. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5491. <span class="hljs-keyword">try</span> {
  5492. <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>(
  5493. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5494. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5495. )
  5496. );
  5497. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5498. }
  5499. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5500. <span class="hljs-comment">// handle exception or api errors.</span>
  5501. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5502. }
  5503. <span class="hljs-comment">// ...</span>
  5504. </code></pre>
  5505. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5506. <p><em>Get a checklist item</em></p>
  5507. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5508. <table>
  5509. <thead>
  5510. <tr>
  5511. <th>Name</th>
  5512. <th>In</th>
  5513. <th>Type</th>
  5514. <th>Required</th>
  5515. <th>Description</th>
  5516. </tr>
  5517. </thead>
  5518. <tbody>
  5519. <tr>
  5520. <td>board</td>
  5521. <td>path</td>
  5522. <td>string</td>
  5523. <td>true</td>
  5524. <td>the board ID</td>
  5525. </tr>
  5526. <tr>
  5527. <td>card</td>
  5528. <td>path</td>
  5529. <td>string</td>
  5530. <td>true</td>
  5531. <td>the card ID</td>
  5532. </tr>
  5533. <tr>
  5534. <td>checklist</td>
  5535. <td>path</td>
  5536. <td>string</td>
  5537. <td>true</td>
  5538. <td>the checklist ID</td>
  5539. </tr>
  5540. <tr>
  5541. <td>item</td>
  5542. <td>path</td>
  5543. <td>string</td>
  5544. <td>true</td>
  5545. <td>the ID of the item</td>
  5546. </tr>
  5547. </tbody>
  5548. </table>
  5549. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5550. <p><strong>board</strong>: the board ID</p>
  5551. <p><strong>card</strong>: the card ID</p>
  5552. <p><strong>checklist</strong>: the checklist ID</p>
  5553. <p><strong>item</strong>: the ID of the item</p>
  5554. <blockquote>
  5555. <p>Example responses</p>
  5556. </blockquote>
  5557. <blockquote>
  5558. <p>200 Response</p>
  5559. </blockquote>
  5560. <pre class="highlight tab tab-json"><code>{
  5561. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5562. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5563. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5564. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5565. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5566. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5567. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5568. }
  5569. </code></pre>
  5570. <h3 id="get_checklist_item-responses">Responses</h3>
  5571. <table>
  5572. <thead>
  5573. <tr>
  5574. <th>Status</th>
  5575. <th>Meaning</th>
  5576. <th>Description</th>
  5577. <th>Schema</th>
  5578. </tr>
  5579. </thead>
  5580. <tbody>
  5581. <tr>
  5582. <td>200</td>
  5583. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5584. <td>200 response</td>
  5585. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5586. </tr>
  5587. </tbody>
  5588. </table>
  5589. <aside class="warning">
  5590. To perform this operation, you must be authenticated by means of one of the following methods:
  5591. UserSecurity
  5592. </aside>
  5593. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5594. <p><a id="opIdedit_checklist_item"></a></p>
  5595. <blockquote>
  5596. <p>Code samples</p>
  5597. </blockquote>
  5598. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5599. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5600. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5601. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5602. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5603. </code></pre>
  5604. <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>
  5605. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5606. Accept: application/json
  5607. </span></code></pre>
  5608. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5609. &quot;isFinished&quot;: &quot;string&quot;,
  5610. &quot;title&quot;: &quot;string&quot;
  5611. }&#x27;</span>;
  5612. <span class="hljs-keyword">const</span> headers = {
  5613. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5614. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5615. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5616. };
  5617. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5618. {
  5619. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5620. <span class="hljs-attr">body</span>: inputBody,
  5621. <span class="hljs-attr">headers</span>: headers
  5622. })
  5623. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5624. <span class="hljs-keyword">return</span> res.json();
  5625. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5626. <span class="hljs-built_in">console</span>.log(body);
  5627. });
  5628. </code></pre>
  5629. <pre class="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>);
  5630. <span class="hljs-keyword">const</span> inputBody = {
  5631. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5632. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5633. };
  5634. <span class="hljs-keyword">const</span> headers = {
  5635. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5636. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5637. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5638. };
  5639. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5640. {
  5641. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5642. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5643. <span class="hljs-attr">headers</span>: headers
  5644. })
  5645. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5646. <span class="hljs-keyword">return</span> res.json();
  5647. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5648. <span class="hljs-built_in">console</span>.log(body);
  5649. });
  5650. </code></pre>
  5651. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5652. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5653. headers = {
  5654. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5655. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5656. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5657. }
  5658. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5659. <span class="hljs-symbol">params:</span> {
  5660. }, <span class="hljs-symbol">headers:</span> headers
  5661. p JSON.parse(result)
  5662. </code></pre>
  5663. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5664. headers = {
  5665. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5666. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5667. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5668. }
  5669. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5670. <span class="hljs-built_in">print</span>(r.json())
  5671. </code></pre>
  5672. <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>);
  5673. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5674. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5675. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5676. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5677. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5678. String inputLine;
  5679. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5680. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5681. response.append(inputLine);
  5682. }
  5683. in.close();
  5684. System.out.println(response.toString());
  5685. </code></pre>
  5686. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5687. <span class="hljs-keyword">import</span> (
  5688. <span class="hljs-string">&quot;bytes&quot;</span>
  5689. <span class="hljs-string">&quot;net/http&quot;</span>
  5690. )
  5691. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5692. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5693. <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>},
  5694. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5695. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5696. }
  5697. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5698. 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)
  5699. req.Header = headers
  5700. client := &amp;http.Client{}
  5701. resp, err := client.Do(req)
  5702. <span class="hljs-comment">// ...</span>
  5703. }
  5704. </code></pre>
  5705. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5706. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5707. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5708. );
  5709. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5710. <span class="hljs-comment">// Define array of request body.</span>
  5711. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5712. <span class="hljs-keyword">try</span> {
  5713. <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>(
  5714. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5715. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5716. )
  5717. );
  5718. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5719. }
  5720. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5721. <span class="hljs-comment">// handle exception or api errors.</span>
  5722. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5723. }
  5724. <span class="hljs-comment">// ...</span>
  5725. </code></pre>
  5726. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5727. <p><em>Edit a checklist item</em></p>
  5728. <blockquote>
  5729. <p>Body parameter</p>
  5730. </blockquote>
  5731. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5732. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5733. </code></pre>
  5734. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5735. <table>
  5736. <thead>
  5737. <tr>
  5738. <th>Name</th>
  5739. <th>In</th>
  5740. <th>Type</th>
  5741. <th>Required</th>
  5742. <th>Description</th>
  5743. </tr>
  5744. </thead>
  5745. <tbody>
  5746. <tr>
  5747. <td>board</td>
  5748. <td>path</td>
  5749. <td>string</td>
  5750. <td>true</td>
  5751. <td>the board ID</td>
  5752. </tr>
  5753. <tr>
  5754. <td>card</td>
  5755. <td>path</td>
  5756. <td>string</td>
  5757. <td>true</td>
  5758. <td>the card ID</td>
  5759. </tr>
  5760. <tr>
  5761. <td>checklist</td>
  5762. <td>path</td>
  5763. <td>string</td>
  5764. <td>true</td>
  5765. <td>the checklist ID</td>
  5766. </tr>
  5767. <tr>
  5768. <td>item</td>
  5769. <td>path</td>
  5770. <td>string</td>
  5771. <td>true</td>
  5772. <td>the ID of the item</td>
  5773. </tr>
  5774. <tr>
  5775. <td>body</td>
  5776. <td>body</td>
  5777. <td>object</td>
  5778. <td>false</td>
  5779. <td>none</td>
  5780. </tr>
  5781. <tr>
  5782. <td>» isFinished</td>
  5783. <td>body</td>
  5784. <td>string</td>
  5785. <td>false</td>
  5786. <td>is the item checked?</td>
  5787. </tr>
  5788. <tr>
  5789. <td>» title</td>
  5790. <td>body</td>
  5791. <td>string</td>
  5792. <td>false</td>
  5793. <td>the new text of the item</td>
  5794. </tr>
  5795. </tbody>
  5796. </table>
  5797. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5798. <p><strong>board</strong>: the board ID</p>
  5799. <p><strong>card</strong>: the card ID</p>
  5800. <p><strong>checklist</strong>: the checklist ID</p>
  5801. <p><strong>item</strong>: the ID of the item</p>
  5802. <blockquote>
  5803. <p>Example responses</p>
  5804. </blockquote>
  5805. <blockquote>
  5806. <p>200 Response</p>
  5807. </blockquote>
  5808. <pre class="highlight tab tab-json"><code>{
  5809. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5810. }
  5811. </code></pre>
  5812. <h3 id="edit_checklist_item-responses">Responses</h3>
  5813. <table>
  5814. <thead>
  5815. <tr>
  5816. <th>Status</th>
  5817. <th>Meaning</th>
  5818. <th>Description</th>
  5819. <th>Schema</th>
  5820. </tr>
  5821. </thead>
  5822. <tbody>
  5823. <tr>
  5824. <td>200</td>
  5825. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5826. <td>200 response</td>
  5827. <td>Inline</td>
  5828. </tr>
  5829. </tbody>
  5830. </table>
  5831. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5832. <p>Status Code <strong>200</strong></p>
  5833. <table>
  5834. <thead>
  5835. <tr>
  5836. <th>Name</th>
  5837. <th>Type</th>
  5838. <th>Required</th>
  5839. <th>Restrictions</th>
  5840. <th>Description</th>
  5841. </tr>
  5842. </thead>
  5843. <tbody>
  5844. <tr>
  5845. <td>» _id</td>
  5846. <td>string</td>
  5847. <td>false</td>
  5848. <td>none</td>
  5849. <td>none</td>
  5850. </tr>
  5851. </tbody>
  5852. </table>
  5853. <aside class="warning">
  5854. To perform this operation, you must be authenticated by means of one of the following methods:
  5855. UserSecurity
  5856. </aside>
  5857. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5858. <p><a id="opIddelete_checklist_item"></a></p>
  5859. <blockquote>
  5860. <p>Code samples</p>
  5861. </blockquote>
  5862. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5863. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5864. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5865. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5866. </code></pre>
  5867. <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>
  5868. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5869. </span></code></pre>
  5870. <pre class="highlight tab tab-javascript"><code>
  5871. <span class="hljs-keyword">const</span> headers = {
  5872. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5873. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5874. };
  5875. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5876. {
  5877. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5878. <span class="hljs-attr">headers</span>: headers
  5879. })
  5880. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5881. <span class="hljs-keyword">return</span> res.json();
  5882. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5883. <span class="hljs-built_in">console</span>.log(body);
  5884. });
  5885. </code></pre>
  5886. <pre class="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>);
  5887. <span class="hljs-keyword">const</span> headers = {
  5888. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5889. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5890. };
  5891. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5892. {
  5893. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5894. <span class="hljs-attr">headers</span>: headers
  5895. })
  5896. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5897. <span class="hljs-keyword">return</span> res.json();
  5898. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5899. <span class="hljs-built_in">console</span>.log(body);
  5900. });
  5901. </code></pre>
  5902. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5903. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5904. headers = {
  5905. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5906. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5907. }
  5908. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5909. <span class="hljs-symbol">params:</span> {
  5910. }, <span class="hljs-symbol">headers:</span> headers
  5911. p JSON.parse(result)
  5912. </code></pre>
  5913. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5914. headers = {
  5915. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5916. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5917. }
  5918. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5919. <span class="hljs-built_in">print</span>(r.json())
  5920. </code></pre>
  5921. <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>);
  5922. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5923. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5924. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5925. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5926. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5927. String inputLine;
  5928. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5929. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5930. response.append(inputLine);
  5931. }
  5932. in.close();
  5933. System.out.println(response.toString());
  5934. </code></pre>
  5935. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5936. <span class="hljs-keyword">import</span> (
  5937. <span class="hljs-string">&quot;bytes&quot;</span>
  5938. <span class="hljs-string">&quot;net/http&quot;</span>
  5939. )
  5940. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5941. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5942. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5943. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5944. }
  5945. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5946. 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)
  5947. req.Header = headers
  5948. client := &amp;http.Client{}
  5949. resp, err := client.Do(req)
  5950. <span class="hljs-comment">// ...</span>
  5951. }
  5952. </code></pre>
  5953. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5954. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5955. );
  5956. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5957. <span class="hljs-comment">// Define array of request body.</span>
  5958. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5959. <span class="hljs-keyword">try</span> {
  5960. <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>(
  5961. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5962. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5963. )
  5964. );
  5965. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5966. }
  5967. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5968. <span class="hljs-comment">// handle exception or api errors.</span>
  5969. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5970. }
  5971. <span class="hljs-comment">// ...</span>
  5972. </code></pre>
  5973. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5974. <p><em>Delete a checklist item</em></p>
  5975. <p>Note: this operation can't be reverted.</p>
  5976. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5977. <table>
  5978. <thead>
  5979. <tr>
  5980. <th>Name</th>
  5981. <th>In</th>
  5982. <th>Type</th>
  5983. <th>Required</th>
  5984. <th>Description</th>
  5985. </tr>
  5986. </thead>
  5987. <tbody>
  5988. <tr>
  5989. <td>board</td>
  5990. <td>path</td>
  5991. <td>string</td>
  5992. <td>true</td>
  5993. <td>the board ID</td>
  5994. </tr>
  5995. <tr>
  5996. <td>card</td>
  5997. <td>path</td>
  5998. <td>string</td>
  5999. <td>true</td>
  6000. <td>the card ID</td>
  6001. </tr>
  6002. <tr>
  6003. <td>checklist</td>
  6004. <td>path</td>
  6005. <td>string</td>
  6006. <td>true</td>
  6007. <td>the checklist ID</td>
  6008. </tr>
  6009. <tr>
  6010. <td>item</td>
  6011. <td>path</td>
  6012. <td>string</td>
  6013. <td>true</td>
  6014. <td>the ID of the item to be removed</td>
  6015. </tr>
  6016. </tbody>
  6017. </table>
  6018. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6019. <p><strong>board</strong>: the board ID</p>
  6020. <p><strong>card</strong>: the card ID</p>
  6021. <p><strong>checklist</strong>: the checklist ID</p>
  6022. <p><strong>item</strong>: the ID of the item to be removed</p>
  6023. <blockquote>
  6024. <p>Example responses</p>
  6025. </blockquote>
  6026. <blockquote>
  6027. <p>200 Response</p>
  6028. </blockquote>
  6029. <pre class="highlight tab tab-json"><code>{
  6030. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6031. }
  6032. </code></pre>
  6033. <h3 id="delete_checklist_item-responses">Responses</h3>
  6034. <table>
  6035. <thead>
  6036. <tr>
  6037. <th>Status</th>
  6038. <th>Meaning</th>
  6039. <th>Description</th>
  6040. <th>Schema</th>
  6041. </tr>
  6042. </thead>
  6043. <tbody>
  6044. <tr>
  6045. <td>200</td>
  6046. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6047. <td>200 response</td>
  6048. <td>Inline</td>
  6049. </tr>
  6050. </tbody>
  6051. </table>
  6052. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6053. <p>Status Code <strong>200</strong></p>
  6054. <table>
  6055. <thead>
  6056. <tr>
  6057. <th>Name</th>
  6058. <th>Type</th>
  6059. <th>Required</th>
  6060. <th>Restrictions</th>
  6061. <th>Description</th>
  6062. </tr>
  6063. </thead>
  6064. <tbody>
  6065. <tr>
  6066. <td>» _id</td>
  6067. <td>string</td>
  6068. <td>false</td>
  6069. <td>none</td>
  6070. <td>none</td>
  6071. </tr>
  6072. </tbody>
  6073. </table>
  6074. <aside class="warning">
  6075. To perform this operation, you must be authenticated by means of one of the following methods:
  6076. UserSecurity
  6077. </aside>
  6078. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6079. <h2 id="get_all_comments">get_all_comments</h2>
  6080. <p><a id="opIdget_all_comments"></a></p>
  6081. <blockquote>
  6082. <p>Code samples</p>
  6083. </blockquote>
  6084. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6085. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6086. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6087. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6088. </code></pre>
  6089. <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>
  6090. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6091. </span></code></pre>
  6092. <pre class="highlight tab tab-javascript"><code>
  6093. <span class="hljs-keyword">const</span> headers = {
  6094. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6095. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6096. };
  6097. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6098. {
  6099. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6100. <span class="hljs-attr">headers</span>: headers
  6101. })
  6102. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6103. <span class="hljs-keyword">return</span> res.json();
  6104. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6105. <span class="hljs-built_in">console</span>.log(body);
  6106. });
  6107. </code></pre>
  6108. <pre class="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>);
  6109. <span class="hljs-keyword">const</span> headers = {
  6110. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6111. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6112. };
  6113. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6114. {
  6115. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6116. <span class="hljs-attr">headers</span>: headers
  6117. })
  6118. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6119. <span class="hljs-keyword">return</span> res.json();
  6120. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6121. <span class="hljs-built_in">console</span>.log(body);
  6122. });
  6123. </code></pre>
  6124. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6125. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6126. headers = {
  6127. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6128. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6129. }
  6130. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6131. <span class="hljs-symbol">params:</span> {
  6132. }, <span class="hljs-symbol">headers:</span> headers
  6133. p JSON.parse(result)
  6134. </code></pre>
  6135. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6136. headers = {
  6137. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6138. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6139. }
  6140. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6141. <span class="hljs-built_in">print</span>(r.json())
  6142. </code></pre>
  6143. <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>);
  6144. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6145. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6146. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6147. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6148. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6149. String inputLine;
  6150. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6151. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6152. response.append(inputLine);
  6153. }
  6154. in.close();
  6155. System.out.println(response.toString());
  6156. </code></pre>
  6157. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6158. <span class="hljs-keyword">import</span> (
  6159. <span class="hljs-string">&quot;bytes&quot;</span>
  6160. <span class="hljs-string">&quot;net/http&quot;</span>
  6161. )
  6162. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6163. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6164. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6165. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6166. }
  6167. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6168. 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)
  6169. req.Header = headers
  6170. client := &amp;http.Client{}
  6171. resp, err := client.Do(req)
  6172. <span class="hljs-comment">// ...</span>
  6173. }
  6174. </code></pre>
  6175. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6176. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6177. );
  6178. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6179. <span class="hljs-comment">// Define array of request body.</span>
  6180. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6181. <span class="hljs-keyword">try</span> {
  6182. <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>(
  6183. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6184. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6185. )
  6186. );
  6187. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6188. }
  6189. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6190. <span class="hljs-comment">// handle exception or api errors.</span>
  6191. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6192. }
  6193. <span class="hljs-comment">// ...</span>
  6194. </code></pre>
  6195. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6196. <p><em>Get all comments attached to a card</em></p>
  6197. <h3 id="get_all_comments-parameters">Parameters</h3>
  6198. <table>
  6199. <thead>
  6200. <tr>
  6201. <th>Name</th>
  6202. <th>In</th>
  6203. <th>Type</th>
  6204. <th>Required</th>
  6205. <th>Description</th>
  6206. </tr>
  6207. </thead>
  6208. <tbody>
  6209. <tr>
  6210. <td>board</td>
  6211. <td>path</td>
  6212. <td>string</td>
  6213. <td>true</td>
  6214. <td>the board ID of the card</td>
  6215. </tr>
  6216. <tr>
  6217. <td>card</td>
  6218. <td>path</td>
  6219. <td>string</td>
  6220. <td>true</td>
  6221. <td>the ID of the card</td>
  6222. </tr>
  6223. </tbody>
  6224. </table>
  6225. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6226. <p><strong>board</strong>: the board ID of the card</p>
  6227. <p><strong>card</strong>: the ID of the card</p>
  6228. <blockquote>
  6229. <p>Example responses</p>
  6230. </blockquote>
  6231. <blockquote>
  6232. <p>200 Response</p>
  6233. </blockquote>
  6234. <pre class="highlight tab tab-json"><code>[
  6235. {
  6236. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6237. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6238. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6239. }
  6240. ]
  6241. </code></pre>
  6242. <h3 id="get_all_comments-responses">Responses</h3>
  6243. <table>
  6244. <thead>
  6245. <tr>
  6246. <th>Status</th>
  6247. <th>Meaning</th>
  6248. <th>Description</th>
  6249. <th>Schema</th>
  6250. </tr>
  6251. </thead>
  6252. <tbody>
  6253. <tr>
  6254. <td>200</td>
  6255. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6256. <td>200 response</td>
  6257. <td>Inline</td>
  6258. </tr>
  6259. </tbody>
  6260. </table>
  6261. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6262. <p>Status Code <strong>200</strong></p>
  6263. <table>
  6264. <thead>
  6265. <tr>
  6266. <th>Name</th>
  6267. <th>Type</th>
  6268. <th>Required</th>
  6269. <th>Restrictions</th>
  6270. <th>Description</th>
  6271. </tr>
  6272. </thead>
  6273. <tbody>
  6274. <tr>
  6275. <td>» _id</td>
  6276. <td>string</td>
  6277. <td>false</td>
  6278. <td>none</td>
  6279. <td>none</td>
  6280. </tr>
  6281. <tr>
  6282. <td>» comment</td>
  6283. <td>string</td>
  6284. <td>false</td>
  6285. <td>none</td>
  6286. <td>none</td>
  6287. </tr>
  6288. <tr>
  6289. <td>» authorId</td>
  6290. <td>string</td>
  6291. <td>false</td>
  6292. <td>none</td>
  6293. <td>none</td>
  6294. </tr>
  6295. </tbody>
  6296. </table>
  6297. <aside class="warning">
  6298. To perform this operation, you must be authenticated by means of one of the following methods:
  6299. UserSecurity
  6300. </aside>
  6301. <h2 id="new_comment">new_comment</h2>
  6302. <p><a id="opIdnew_comment"></a></p>
  6303. <blockquote>
  6304. <p>Code samples</p>
  6305. </blockquote>
  6306. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6307. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6308. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6309. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6310. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6311. </code></pre>
  6312. <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>
  6313. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6314. Accept: application/json
  6315. </span></code></pre>
  6316. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6317. &quot;authorId&quot;: &quot;string&quot;,
  6318. &quot;comment&quot;: &quot;string&quot;
  6319. }&#x27;</span>;
  6320. <span class="hljs-keyword">const</span> headers = {
  6321. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6322. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6323. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6324. };
  6325. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6326. {
  6327. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6328. <span class="hljs-attr">body</span>: inputBody,
  6329. <span class="hljs-attr">headers</span>: headers
  6330. })
  6331. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6332. <span class="hljs-keyword">return</span> res.json();
  6333. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6334. <span class="hljs-built_in">console</span>.log(body);
  6335. });
  6336. </code></pre>
  6337. <pre class="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>);
  6338. <span class="hljs-keyword">const</span> inputBody = {
  6339. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6340. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6341. };
  6342. <span class="hljs-keyword">const</span> headers = {
  6343. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6344. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6345. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6346. };
  6347. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6348. {
  6349. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6350. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6351. <span class="hljs-attr">headers</span>: headers
  6352. })
  6353. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6354. <span class="hljs-keyword">return</span> res.json();
  6355. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6356. <span class="hljs-built_in">console</span>.log(body);
  6357. });
  6358. </code></pre>
  6359. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6360. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6361. headers = {
  6362. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6363. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6364. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6365. }
  6366. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6367. <span class="hljs-symbol">params:</span> {
  6368. }, <span class="hljs-symbol">headers:</span> headers
  6369. p JSON.parse(result)
  6370. </code></pre>
  6371. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6372. headers = {
  6373. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6374. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6375. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6376. }
  6377. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6378. <span class="hljs-built_in">print</span>(r.json())
  6379. </code></pre>
  6380. <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>);
  6381. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6382. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6383. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6384. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6385. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6386. String inputLine;
  6387. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6388. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6389. response.append(inputLine);
  6390. }
  6391. in.close();
  6392. System.out.println(response.toString());
  6393. </code></pre>
  6394. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6395. <span class="hljs-keyword">import</span> (
  6396. <span class="hljs-string">&quot;bytes&quot;</span>
  6397. <span class="hljs-string">&quot;net/http&quot;</span>
  6398. )
  6399. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6400. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6401. <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>},
  6402. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6403. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6404. }
  6405. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6406. 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)
  6407. req.Header = headers
  6408. client := &amp;http.Client{}
  6409. resp, err := client.Do(req)
  6410. <span class="hljs-comment">// ...</span>
  6411. }
  6412. </code></pre>
  6413. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6414. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6415. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6416. );
  6417. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6418. <span class="hljs-comment">// Define array of request body.</span>
  6419. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6420. <span class="hljs-keyword">try</span> {
  6421. <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>(
  6422. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6423. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6424. )
  6425. );
  6426. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6427. }
  6428. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6429. <span class="hljs-comment">// handle exception or api errors.</span>
  6430. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6431. }
  6432. <span class="hljs-comment">// ...</span>
  6433. </code></pre>
  6434. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6435. <p><em>Add a comment on a card</em></p>
  6436. <blockquote>
  6437. <p>Body parameter</p>
  6438. </blockquote>
  6439. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6440. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6441. </code></pre>
  6442. <h3 id="new_comment-parameters">Parameters</h3>
  6443. <table>
  6444. <thead>
  6445. <tr>
  6446. <th>Name</th>
  6447. <th>In</th>
  6448. <th>Type</th>
  6449. <th>Required</th>
  6450. <th>Description</th>
  6451. </tr>
  6452. </thead>
  6453. <tbody>
  6454. <tr>
  6455. <td>board</td>
  6456. <td>path</td>
  6457. <td>string</td>
  6458. <td>true</td>
  6459. <td>the board ID of the card</td>
  6460. </tr>
  6461. <tr>
  6462. <td>card</td>
  6463. <td>path</td>
  6464. <td>string</td>
  6465. <td>true</td>
  6466. <td>the ID of the card</td>
  6467. </tr>
  6468. <tr>
  6469. <td>body</td>
  6470. <td>body</td>
  6471. <td>object</td>
  6472. <td>true</td>
  6473. <td>none</td>
  6474. </tr>
  6475. <tr>
  6476. <td>» authorId</td>
  6477. <td>body</td>
  6478. <td>string</td>
  6479. <td>true</td>
  6480. <td>the user who 'posted' the comment</td>
  6481. </tr>
  6482. <tr>
  6483. <td>» comment</td>
  6484. <td>body</td>
  6485. <td>string</td>
  6486. <td>true</td>
  6487. <td>the comment value</td>
  6488. </tr>
  6489. </tbody>
  6490. </table>
  6491. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6492. <p><strong>board</strong>: the board ID of the card</p>
  6493. <p><strong>card</strong>: the ID of the card</p>
  6494. <blockquote>
  6495. <p>Example responses</p>
  6496. </blockquote>
  6497. <blockquote>
  6498. <p>200 Response</p>
  6499. </blockquote>
  6500. <pre class="highlight tab tab-json"><code>{
  6501. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6502. }
  6503. </code></pre>
  6504. <h3 id="new_comment-responses">Responses</h3>
  6505. <table>
  6506. <thead>
  6507. <tr>
  6508. <th>Status</th>
  6509. <th>Meaning</th>
  6510. <th>Description</th>
  6511. <th>Schema</th>
  6512. </tr>
  6513. </thead>
  6514. <tbody>
  6515. <tr>
  6516. <td>200</td>
  6517. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6518. <td>200 response</td>
  6519. <td>Inline</td>
  6520. </tr>
  6521. </tbody>
  6522. </table>
  6523. <h3 id="new_comment-responseschema">Response Schema</h3>
  6524. <p>Status Code <strong>200</strong></p>
  6525. <table>
  6526. <thead>
  6527. <tr>
  6528. <th>Name</th>
  6529. <th>Type</th>
  6530. <th>Required</th>
  6531. <th>Restrictions</th>
  6532. <th>Description</th>
  6533. </tr>
  6534. </thead>
  6535. <tbody>
  6536. <tr>
  6537. <td>» _id</td>
  6538. <td>string</td>
  6539. <td>false</td>
  6540. <td>none</td>
  6541. <td>none</td>
  6542. </tr>
  6543. </tbody>
  6544. </table>
  6545. <aside class="warning">
  6546. To perform this operation, you must be authenticated by means of one of the following methods:
  6547. UserSecurity
  6548. </aside>
  6549. <h2 id="get_comment">get_comment</h2>
  6550. <p><a id="opIdget_comment"></a></p>
  6551. <blockquote>
  6552. <p>Code samples</p>
  6553. </blockquote>
  6554. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6555. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6556. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6557. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6558. </code></pre>
  6559. <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>
  6560. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6561. </span></code></pre>
  6562. <pre class="highlight tab tab-javascript"><code>
  6563. <span class="hljs-keyword">const</span> headers = {
  6564. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6565. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6566. };
  6567. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6568. {
  6569. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6570. <span class="hljs-attr">headers</span>: headers
  6571. })
  6572. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6573. <span class="hljs-keyword">return</span> res.json();
  6574. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6575. <span class="hljs-built_in">console</span>.log(body);
  6576. });
  6577. </code></pre>
  6578. <pre class="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>);
  6579. <span class="hljs-keyword">const</span> headers = {
  6580. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6581. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6582. };
  6583. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6584. {
  6585. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6586. <span class="hljs-attr">headers</span>: headers
  6587. })
  6588. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6589. <span class="hljs-keyword">return</span> res.json();
  6590. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6591. <span class="hljs-built_in">console</span>.log(body);
  6592. });
  6593. </code></pre>
  6594. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6595. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6596. headers = {
  6597. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6598. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6599. }
  6600. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6601. <span class="hljs-symbol">params:</span> {
  6602. }, <span class="hljs-symbol">headers:</span> headers
  6603. p JSON.parse(result)
  6604. </code></pre>
  6605. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6606. headers = {
  6607. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6608. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6609. }
  6610. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6611. <span class="hljs-built_in">print</span>(r.json())
  6612. </code></pre>
  6613. <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>);
  6614. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6615. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6616. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6617. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6618. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6619. String inputLine;
  6620. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6621. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6622. response.append(inputLine);
  6623. }
  6624. in.close();
  6625. System.out.println(response.toString());
  6626. </code></pre>
  6627. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6628. <span class="hljs-keyword">import</span> (
  6629. <span class="hljs-string">&quot;bytes&quot;</span>
  6630. <span class="hljs-string">&quot;net/http&quot;</span>
  6631. )
  6632. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6633. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6634. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6635. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6636. }
  6637. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6638. 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)
  6639. req.Header = headers
  6640. client := &amp;http.Client{}
  6641. resp, err := client.Do(req)
  6642. <span class="hljs-comment">// ...</span>
  6643. }
  6644. </code></pre>
  6645. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6646. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6647. );
  6648. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6649. <span class="hljs-comment">// Define array of request body.</span>
  6650. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6651. <span class="hljs-keyword">try</span> {
  6652. <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>(
  6653. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6654. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6655. )
  6656. );
  6657. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6658. }
  6659. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6660. <span class="hljs-comment">// handle exception or api errors.</span>
  6661. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6662. }
  6663. <span class="hljs-comment">// ...</span>
  6664. </code></pre>
  6665. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6666. <p><em>Get a comment on a card</em></p>
  6667. <h3 id="get_comment-parameters">Parameters</h3>
  6668. <table>
  6669. <thead>
  6670. <tr>
  6671. <th>Name</th>
  6672. <th>In</th>
  6673. <th>Type</th>
  6674. <th>Required</th>
  6675. <th>Description</th>
  6676. </tr>
  6677. </thead>
  6678. <tbody>
  6679. <tr>
  6680. <td>board</td>
  6681. <td>path</td>
  6682. <td>string</td>
  6683. <td>true</td>
  6684. <td>the board ID of the card</td>
  6685. </tr>
  6686. <tr>
  6687. <td>card</td>
  6688. <td>path</td>
  6689. <td>string</td>
  6690. <td>true</td>
  6691. <td>the ID of the card</td>
  6692. </tr>
  6693. <tr>
  6694. <td>comment</td>
  6695. <td>path</td>
  6696. <td>string</td>
  6697. <td>true</td>
  6698. <td>the ID of the comment to retrieve</td>
  6699. </tr>
  6700. </tbody>
  6701. </table>
  6702. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6703. <p><strong>board</strong>: the board ID of the card</p>
  6704. <p><strong>card</strong>: the ID of the card</p>
  6705. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6706. <blockquote>
  6707. <p>Example responses</p>
  6708. </blockquote>
  6709. <blockquote>
  6710. <p>200 Response</p>
  6711. </blockquote>
  6712. <pre class="highlight tab tab-json"><code>{
  6713. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6714. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6715. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6716. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6717. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6718. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6719. }
  6720. </code></pre>
  6721. <h3 id="get_comment-responses">Responses</h3>
  6722. <table>
  6723. <thead>
  6724. <tr>
  6725. <th>Status</th>
  6726. <th>Meaning</th>
  6727. <th>Description</th>
  6728. <th>Schema</th>
  6729. </tr>
  6730. </thead>
  6731. <tbody>
  6732. <tr>
  6733. <td>200</td>
  6734. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6735. <td>200 response</td>
  6736. <td><a href="#schemacardcomments">CardComments</a></td>
  6737. </tr>
  6738. </tbody>
  6739. </table>
  6740. <aside class="warning">
  6741. To perform this operation, you must be authenticated by means of one of the following methods:
  6742. UserSecurity
  6743. </aside>
  6744. <h2 id="delete_comment">delete_comment</h2>
  6745. <p><a id="opIddelete_comment"></a></p>
  6746. <blockquote>
  6747. <p>Code samples</p>
  6748. </blockquote>
  6749. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6750. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6751. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6752. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6753. </code></pre>
  6754. <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>
  6755. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6756. </span></code></pre>
  6757. <pre class="highlight tab tab-javascript"><code>
  6758. <span class="hljs-keyword">const</span> headers = {
  6759. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6760. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6761. };
  6762. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6763. {
  6764. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6765. <span class="hljs-attr">headers</span>: headers
  6766. })
  6767. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6768. <span class="hljs-keyword">return</span> res.json();
  6769. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6770. <span class="hljs-built_in">console</span>.log(body);
  6771. });
  6772. </code></pre>
  6773. <pre class="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>);
  6774. <span class="hljs-keyword">const</span> headers = {
  6775. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6776. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6777. };
  6778. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6779. {
  6780. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6781. <span class="hljs-attr">headers</span>: headers
  6782. })
  6783. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6784. <span class="hljs-keyword">return</span> res.json();
  6785. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6786. <span class="hljs-built_in">console</span>.log(body);
  6787. });
  6788. </code></pre>
  6789. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6790. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6791. headers = {
  6792. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6793. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6794. }
  6795. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6796. <span class="hljs-symbol">params:</span> {
  6797. }, <span class="hljs-symbol">headers:</span> headers
  6798. p JSON.parse(result)
  6799. </code></pre>
  6800. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6801. headers = {
  6802. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6803. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6804. }
  6805. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6806. <span class="hljs-built_in">print</span>(r.json())
  6807. </code></pre>
  6808. <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>);
  6809. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6810. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6811. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6812. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6813. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6814. String inputLine;
  6815. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6816. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6817. response.append(inputLine);
  6818. }
  6819. in.close();
  6820. System.out.println(response.toString());
  6821. </code></pre>
  6822. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6823. <span class="hljs-keyword">import</span> (
  6824. <span class="hljs-string">&quot;bytes&quot;</span>
  6825. <span class="hljs-string">&quot;net/http&quot;</span>
  6826. )
  6827. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6828. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6829. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6830. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6831. }
  6832. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6833. 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)
  6834. req.Header = headers
  6835. client := &amp;http.Client{}
  6836. resp, err := client.Do(req)
  6837. <span class="hljs-comment">// ...</span>
  6838. }
  6839. </code></pre>
  6840. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6841. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6842. );
  6843. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6844. <span class="hljs-comment">// Define array of request body.</span>
  6845. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6846. <span class="hljs-keyword">try</span> {
  6847. <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>(
  6848. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6849. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6850. )
  6851. );
  6852. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6853. }
  6854. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6855. <span class="hljs-comment">// handle exception or api errors.</span>
  6856. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6857. }
  6858. <span class="hljs-comment">// ...</span>
  6859. </code></pre>
  6860. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6861. <p><em>Delete a comment on a card</em></p>
  6862. <h3 id="delete_comment-parameters">Parameters</h3>
  6863. <table>
  6864. <thead>
  6865. <tr>
  6866. <th>Name</th>
  6867. <th>In</th>
  6868. <th>Type</th>
  6869. <th>Required</th>
  6870. <th>Description</th>
  6871. </tr>
  6872. </thead>
  6873. <tbody>
  6874. <tr>
  6875. <td>board</td>
  6876. <td>path</td>
  6877. <td>string</td>
  6878. <td>true</td>
  6879. <td>the board ID of the card</td>
  6880. </tr>
  6881. <tr>
  6882. <td>card</td>
  6883. <td>path</td>
  6884. <td>string</td>
  6885. <td>true</td>
  6886. <td>the ID of the card</td>
  6887. </tr>
  6888. <tr>
  6889. <td>comment</td>
  6890. <td>path</td>
  6891. <td>string</td>
  6892. <td>true</td>
  6893. <td>the ID of the comment to delete</td>
  6894. </tr>
  6895. </tbody>
  6896. </table>
  6897. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6898. <p><strong>board</strong>: the board ID of the card</p>
  6899. <p><strong>card</strong>: the ID of the card</p>
  6900. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6901. <blockquote>
  6902. <p>Example responses</p>
  6903. </blockquote>
  6904. <blockquote>
  6905. <p>200 Response</p>
  6906. </blockquote>
  6907. <pre class="highlight tab tab-json"><code>{
  6908. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6909. }
  6910. </code></pre>
  6911. <h3 id="delete_comment-responses">Responses</h3>
  6912. <table>
  6913. <thead>
  6914. <tr>
  6915. <th>Status</th>
  6916. <th>Meaning</th>
  6917. <th>Description</th>
  6918. <th>Schema</th>
  6919. </tr>
  6920. </thead>
  6921. <tbody>
  6922. <tr>
  6923. <td>200</td>
  6924. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6925. <td>200 response</td>
  6926. <td>Inline</td>
  6927. </tr>
  6928. </tbody>
  6929. </table>
  6930. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6931. <p>Status Code <strong>200</strong></p>
  6932. <table>
  6933. <thead>
  6934. <tr>
  6935. <th>Name</th>
  6936. <th>Type</th>
  6937. <th>Required</th>
  6938. <th>Restrictions</th>
  6939. <th>Description</th>
  6940. </tr>
  6941. </thead>
  6942. <tbody>
  6943. <tr>
  6944. <td>» _id</td>
  6945. <td>string</td>
  6946. <td>false</td>
  6947. <td>none</td>
  6948. <td>none</td>
  6949. </tr>
  6950. </tbody>
  6951. </table>
  6952. <aside class="warning">
  6953. To perform this operation, you must be authenticated by means of one of the following methods:
  6954. UserSecurity
  6955. </aside>
  6956. <h1 id="wekan-rest-api-cards">Cards</h1>
  6957. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6958. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6959. <blockquote>
  6960. <p>Code samples</p>
  6961. </blockquote>
  6962. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6963. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6964. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6965. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6966. </code></pre>
  6967. <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>
  6968. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6969. </span></code></pre>
  6970. <pre class="highlight tab tab-javascript"><code>
  6971. <span class="hljs-keyword">const</span> headers = {
  6972. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6973. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6974. };
  6975. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6976. {
  6977. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6978. <span class="hljs-attr">headers</span>: headers
  6979. })
  6980. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6981. <span class="hljs-keyword">return</span> res.json();
  6982. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6983. <span class="hljs-built_in">console</span>.log(body);
  6984. });
  6985. </code></pre>
  6986. <pre class="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>);
  6987. <span class="hljs-keyword">const</span> headers = {
  6988. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6989. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6990. };
  6991. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6992. {
  6993. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6994. <span class="hljs-attr">headers</span>: headers
  6995. })
  6996. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6997. <span class="hljs-keyword">return</span> res.json();
  6998. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6999. <span class="hljs-built_in">console</span>.log(body);
  7000. });
  7001. </code></pre>
  7002. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7003. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7004. headers = {
  7005. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7006. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7007. }
  7008. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7009. <span class="hljs-symbol">params:</span> {
  7010. }, <span class="hljs-symbol">headers:</span> headers
  7011. p JSON.parse(result)
  7012. </code></pre>
  7013. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7014. headers = {
  7015. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7016. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7017. }
  7018. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7019. <span class="hljs-built_in">print</span>(r.json())
  7020. </code></pre>
  7021. <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>);
  7022. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7023. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7024. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7025. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7026. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7027. String inputLine;
  7028. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7029. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7030. response.append(inputLine);
  7031. }
  7032. in.close();
  7033. System.out.println(response.toString());
  7034. </code></pre>
  7035. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7036. <span class="hljs-keyword">import</span> (
  7037. <span class="hljs-string">&quot;bytes&quot;</span>
  7038. <span class="hljs-string">&quot;net/http&quot;</span>
  7039. )
  7040. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7041. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7042. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7043. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7044. }
  7045. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7046. 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)
  7047. req.Header = headers
  7048. client := &amp;http.Client{}
  7049. resp, err := client.Do(req)
  7050. <span class="hljs-comment">// ...</span>
  7051. }
  7052. </code></pre>
  7053. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7054. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7055. );
  7056. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7057. <span class="hljs-comment">// Define array of request body.</span>
  7058. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7059. <span class="hljs-keyword">try</span> {
  7060. <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>(
  7061. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7062. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7063. )
  7064. );
  7065. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7066. }
  7067. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7068. <span class="hljs-comment">// handle exception or api errors.</span>
  7069. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7070. }
  7071. <span class="hljs-comment">// ...</span>
  7072. </code></pre>
  7073. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7074. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7075. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7076. <table>
  7077. <thead>
  7078. <tr>
  7079. <th>Name</th>
  7080. <th>In</th>
  7081. <th>Type</th>
  7082. <th>Required</th>
  7083. <th>Description</th>
  7084. </tr>
  7085. </thead>
  7086. <tbody>
  7087. <tr>
  7088. <td>board</td>
  7089. <td>path</td>
  7090. <td>string</td>
  7091. <td>true</td>
  7092. <td>the board ID</td>
  7093. </tr>
  7094. <tr>
  7095. <td>customField</td>
  7096. <td>path</td>
  7097. <td>string</td>
  7098. <td>true</td>
  7099. <td>the list ID</td>
  7100. </tr>
  7101. <tr>
  7102. <td>customFieldValue</td>
  7103. <td>path</td>
  7104. <td>string</td>
  7105. <td>true</td>
  7106. <td>the value to look for</td>
  7107. </tr>
  7108. </tbody>
  7109. </table>
  7110. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7111. <p><strong>board</strong>: the board ID</p>
  7112. <p><strong>customField</strong>: the list ID</p>
  7113. <p><strong>customFieldValue</strong>: the value to look for</p>
  7114. <blockquote>
  7115. <p>Example responses</p>
  7116. </blockquote>
  7117. <blockquote>
  7118. <p>200 Response</p>
  7119. </blockquote>
  7120. <pre class="highlight tab tab-json"><code>[
  7121. {
  7122. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7123. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7124. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7125. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7126. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7127. }
  7128. ]
  7129. </code></pre>
  7130. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7131. <table>
  7132. <thead>
  7133. <tr>
  7134. <th>Status</th>
  7135. <th>Meaning</th>
  7136. <th>Description</th>
  7137. <th>Schema</th>
  7138. </tr>
  7139. </thead>
  7140. <tbody>
  7141. <tr>
  7142. <td>200</td>
  7143. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7144. <td>200 response</td>
  7145. <td>Inline</td>
  7146. </tr>
  7147. </tbody>
  7148. </table>
  7149. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7150. <p>Status Code <strong>200</strong></p>
  7151. <table>
  7152. <thead>
  7153. <tr>
  7154. <th>Name</th>
  7155. <th>Type</th>
  7156. <th>Required</th>
  7157. <th>Restrictions</th>
  7158. <th>Description</th>
  7159. </tr>
  7160. </thead>
  7161. <tbody>
  7162. <tr>
  7163. <td>» _id</td>
  7164. <td>string</td>
  7165. <td>false</td>
  7166. <td>none</td>
  7167. <td>none</td>
  7168. </tr>
  7169. <tr>
  7170. <td>» title</td>
  7171. <td>string</td>
  7172. <td>false</td>
  7173. <td>none</td>
  7174. <td>none</td>
  7175. </tr>
  7176. <tr>
  7177. <td>» description</td>
  7178. <td>string</td>
  7179. <td>false</td>
  7180. <td>none</td>
  7181. <td>none</td>
  7182. </tr>
  7183. <tr>
  7184. <td>» listId</td>
  7185. <td>string</td>
  7186. <td>false</td>
  7187. <td>none</td>
  7188. <td>none</td>
  7189. </tr>
  7190. <tr>
  7191. <td>» swinlaneId</td>
  7192. <td>string</td>
  7193. <td>false</td>
  7194. <td>none</td>
  7195. <td>none</td>
  7196. </tr>
  7197. </tbody>
  7198. </table>
  7199. <aside class="warning">
  7200. To perform this operation, you must be authenticated by means of one of the following methods:
  7201. UserSecurity
  7202. </aside>
  7203. <h2 id="get_all_cards">get_all_cards</h2>
  7204. <p><a id="opIdget_all_cards"></a></p>
  7205. <blockquote>
  7206. <p>Code samples</p>
  7207. </blockquote>
  7208. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7209. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7210. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7211. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7212. </code></pre>
  7213. <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>
  7214. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7215. </span></code></pre>
  7216. <pre class="highlight tab tab-javascript"><code>
  7217. <span class="hljs-keyword">const</span> headers = {
  7218. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7219. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7220. };
  7221. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7222. {
  7223. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7224. <span class="hljs-attr">headers</span>: headers
  7225. })
  7226. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7227. <span class="hljs-keyword">return</span> res.json();
  7228. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7229. <span class="hljs-built_in">console</span>.log(body);
  7230. });
  7231. </code></pre>
  7232. <pre class="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>);
  7233. <span class="hljs-keyword">const</span> headers = {
  7234. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7235. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7236. };
  7237. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7238. {
  7239. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7240. <span class="hljs-attr">headers</span>: headers
  7241. })
  7242. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7243. <span class="hljs-keyword">return</span> res.json();
  7244. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7245. <span class="hljs-built_in">console</span>.log(body);
  7246. });
  7247. </code></pre>
  7248. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7249. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7250. headers = {
  7251. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7252. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7253. }
  7254. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7255. <span class="hljs-symbol">params:</span> {
  7256. }, <span class="hljs-symbol">headers:</span> headers
  7257. p JSON.parse(result)
  7258. </code></pre>
  7259. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7260. headers = {
  7261. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7262. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7263. }
  7264. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7265. <span class="hljs-built_in">print</span>(r.json())
  7266. </code></pre>
  7267. <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>);
  7268. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7269. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7270. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7271. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7272. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7273. String inputLine;
  7274. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7275. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7276. response.append(inputLine);
  7277. }
  7278. in.close();
  7279. System.out.println(response.toString());
  7280. </code></pre>
  7281. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7282. <span class="hljs-keyword">import</span> (
  7283. <span class="hljs-string">&quot;bytes&quot;</span>
  7284. <span class="hljs-string">&quot;net/http&quot;</span>
  7285. )
  7286. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7287. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7288. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7289. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7290. }
  7291. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7292. 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)
  7293. req.Header = headers
  7294. client := &amp;http.Client{}
  7295. resp, err := client.Do(req)
  7296. <span class="hljs-comment">// ...</span>
  7297. }
  7298. </code></pre>
  7299. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7300. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7301. );
  7302. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7303. <span class="hljs-comment">// Define array of request body.</span>
  7304. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7305. <span class="hljs-keyword">try</span> {
  7306. <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>(
  7307. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7308. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7309. )
  7310. );
  7311. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7312. }
  7313. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7314. <span class="hljs-comment">// handle exception or api errors.</span>
  7315. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7316. }
  7317. <span class="hljs-comment">// ...</span>
  7318. </code></pre>
  7319. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7320. <p><em>Get all Cards attached to a List</em></p>
  7321. <h3 id="get_all_cards-parameters">Parameters</h3>
  7322. <table>
  7323. <thead>
  7324. <tr>
  7325. <th>Name</th>
  7326. <th>In</th>
  7327. <th>Type</th>
  7328. <th>Required</th>
  7329. <th>Description</th>
  7330. </tr>
  7331. </thead>
  7332. <tbody>
  7333. <tr>
  7334. <td>board</td>
  7335. <td>path</td>
  7336. <td>string</td>
  7337. <td>true</td>
  7338. <td>the board ID</td>
  7339. </tr>
  7340. <tr>
  7341. <td>list</td>
  7342. <td>path</td>
  7343. <td>string</td>
  7344. <td>true</td>
  7345. <td>the list ID</td>
  7346. </tr>
  7347. </tbody>
  7348. </table>
  7349. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7350. <p><strong>board</strong>: the board ID</p>
  7351. <p><strong>list</strong>: the list ID</p>
  7352. <blockquote>
  7353. <p>Example responses</p>
  7354. </blockquote>
  7355. <blockquote>
  7356. <p>200 Response</p>
  7357. </blockquote>
  7358. <pre class="highlight tab tab-json"><code>[
  7359. {
  7360. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7361. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7362. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7363. }
  7364. ]
  7365. </code></pre>
  7366. <h3 id="get_all_cards-responses">Responses</h3>
  7367. <table>
  7368. <thead>
  7369. <tr>
  7370. <th>Status</th>
  7371. <th>Meaning</th>
  7372. <th>Description</th>
  7373. <th>Schema</th>
  7374. </tr>
  7375. </thead>
  7376. <tbody>
  7377. <tr>
  7378. <td>200</td>
  7379. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7380. <td>200 response</td>
  7381. <td>Inline</td>
  7382. </tr>
  7383. </tbody>
  7384. </table>
  7385. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7386. <p>Status Code <strong>200</strong></p>
  7387. <table>
  7388. <thead>
  7389. <tr>
  7390. <th>Name</th>
  7391. <th>Type</th>
  7392. <th>Required</th>
  7393. <th>Restrictions</th>
  7394. <th>Description</th>
  7395. </tr>
  7396. </thead>
  7397. <tbody>
  7398. <tr>
  7399. <td>» _id</td>
  7400. <td>string</td>
  7401. <td>false</td>
  7402. <td>none</td>
  7403. <td>none</td>
  7404. </tr>
  7405. <tr>
  7406. <td>» title</td>
  7407. <td>string</td>
  7408. <td>false</td>
  7409. <td>none</td>
  7410. <td>none</td>
  7411. </tr>
  7412. <tr>
  7413. <td>» description</td>
  7414. <td>string</td>
  7415. <td>false</td>
  7416. <td>none</td>
  7417. <td>none</td>
  7418. </tr>
  7419. </tbody>
  7420. </table>
  7421. <aside class="warning">
  7422. To perform this operation, you must be authenticated by means of one of the following methods:
  7423. UserSecurity
  7424. </aside>
  7425. <h2 id="new_card">new_card</h2>
  7426. <p><a id="opIdnew_card"></a></p>
  7427. <blockquote>
  7428. <p>Code samples</p>
  7429. </blockquote>
  7430. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7431. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7432. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7433. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7434. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7435. </code></pre>
  7436. <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>
  7437. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7438. Accept: application/json
  7439. </span></code></pre>
  7440. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7441. &quot;authorId&quot;: &quot;string&quot;,
  7442. &quot;members&quot;: &quot;string&quot;,
  7443. &quot;assignees&quot;: &quot;string&quot;,
  7444. &quot;title&quot;: &quot;string&quot;,
  7445. &quot;description&quot;: &quot;string&quot;,
  7446. &quot;swimlaneId&quot;: &quot;string&quot;
  7447. }&#x27;</span>;
  7448. <span class="hljs-keyword">const</span> headers = {
  7449. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7450. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7451. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7452. };
  7453. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7454. {
  7455. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7456. <span class="hljs-attr">body</span>: inputBody,
  7457. <span class="hljs-attr">headers</span>: headers
  7458. })
  7459. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7460. <span class="hljs-keyword">return</span> res.json();
  7461. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7462. <span class="hljs-built_in">console</span>.log(body);
  7463. });
  7464. </code></pre>
  7465. <pre class="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>);
  7466. <span class="hljs-keyword">const</span> inputBody = {
  7467. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7468. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7469. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7470. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7471. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7472. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7473. };
  7474. <span class="hljs-keyword">const</span> headers = {
  7475. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7476. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7477. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7478. };
  7479. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7480. {
  7481. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7482. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7483. <span class="hljs-attr">headers</span>: headers
  7484. })
  7485. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7486. <span class="hljs-keyword">return</span> res.json();
  7487. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7488. <span class="hljs-built_in">console</span>.log(body);
  7489. });
  7490. </code></pre>
  7491. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7492. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7493. headers = {
  7494. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7495. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7496. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7497. }
  7498. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7499. <span class="hljs-symbol">params:</span> {
  7500. }, <span class="hljs-symbol">headers:</span> headers
  7501. p JSON.parse(result)
  7502. </code></pre>
  7503. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7504. headers = {
  7505. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7506. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7507. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7508. }
  7509. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7510. <span class="hljs-built_in">print</span>(r.json())
  7511. </code></pre>
  7512. <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>);
  7513. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7514. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7515. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7516. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7517. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7518. String inputLine;
  7519. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7520. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7521. response.append(inputLine);
  7522. }
  7523. in.close();
  7524. System.out.println(response.toString());
  7525. </code></pre>
  7526. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7527. <span class="hljs-keyword">import</span> (
  7528. <span class="hljs-string">&quot;bytes&quot;</span>
  7529. <span class="hljs-string">&quot;net/http&quot;</span>
  7530. )
  7531. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7532. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7533. <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>},
  7534. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7535. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7536. }
  7537. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7538. 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)
  7539. req.Header = headers
  7540. client := &amp;http.Client{}
  7541. resp, err := client.Do(req)
  7542. <span class="hljs-comment">// ...</span>
  7543. }
  7544. </code></pre>
  7545. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7546. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7547. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7548. );
  7549. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7550. <span class="hljs-comment">// Define array of request body.</span>
  7551. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7552. <span class="hljs-keyword">try</span> {
  7553. <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>(
  7554. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7555. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7556. )
  7557. );
  7558. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7559. }
  7560. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7561. <span class="hljs-comment">// handle exception or api errors.</span>
  7562. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7563. }
  7564. <span class="hljs-comment">// ...</span>
  7565. </code></pre>
  7566. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7567. <p><em>Create a new Card</em></p>
  7568. <blockquote>
  7569. <p>Body parameter</p>
  7570. </blockquote>
  7571. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7572. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7573. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7574. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7575. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7576. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7577. </code></pre>
  7578. <h3 id="new_card-parameters">Parameters</h3>
  7579. <table>
  7580. <thead>
  7581. <tr>
  7582. <th>Name</th>
  7583. <th>In</th>
  7584. <th>Type</th>
  7585. <th>Required</th>
  7586. <th>Description</th>
  7587. </tr>
  7588. </thead>
  7589. <tbody>
  7590. <tr>
  7591. <td>board</td>
  7592. <td>path</td>
  7593. <td>string</td>
  7594. <td>true</td>
  7595. <td>the board ID of the new card</td>
  7596. </tr>
  7597. <tr>
  7598. <td>list</td>
  7599. <td>path</td>
  7600. <td>string</td>
  7601. <td>true</td>
  7602. <td>the list ID of the new card</td>
  7603. </tr>
  7604. <tr>
  7605. <td>body</td>
  7606. <td>body</td>
  7607. <td>object</td>
  7608. <td>true</td>
  7609. <td>none</td>
  7610. </tr>
  7611. <tr>
  7612. <td>» authorId</td>
  7613. <td>body</td>
  7614. <td>string</td>
  7615. <td>true</td>
  7616. <td>the authorId value</td>
  7617. </tr>
  7618. <tr>
  7619. <td>» members</td>
  7620. <td>body</td>
  7621. <td>string</td>
  7622. <td>false</td>
  7623. <td>the member IDs list of the new card</td>
  7624. </tr>
  7625. <tr>
  7626. <td>» assignees</td>
  7627. <td>body</td>
  7628. <td>string</td>
  7629. <td>false</td>
  7630. <td>the array of maximum one ID of assignee of the new card</td>
  7631. </tr>
  7632. <tr>
  7633. <td>» title</td>
  7634. <td>body</td>
  7635. <td>string</td>
  7636. <td>true</td>
  7637. <td>the title of the new card</td>
  7638. </tr>
  7639. <tr>
  7640. <td>» description</td>
  7641. <td>body</td>
  7642. <td>string</td>
  7643. <td>true</td>
  7644. <td>the description of the new card</td>
  7645. </tr>
  7646. <tr>
  7647. <td>» swimlaneId</td>
  7648. <td>body</td>
  7649. <td>string</td>
  7650. <td>true</td>
  7651. <td>the swimlane ID of the new card</td>
  7652. </tr>
  7653. </tbody>
  7654. </table>
  7655. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7656. <p><strong>board</strong>: the board ID of the new card</p>
  7657. <p><strong>list</strong>: the list ID of the new card</p>
  7658. <blockquote>
  7659. <p>Example responses</p>
  7660. </blockquote>
  7661. <blockquote>
  7662. <p>200 Response</p>
  7663. </blockquote>
  7664. <pre class="highlight tab tab-json"><code>{
  7665. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7666. }
  7667. </code></pre>
  7668. <h3 id="new_card-responses">Responses</h3>
  7669. <table>
  7670. <thead>
  7671. <tr>
  7672. <th>Status</th>
  7673. <th>Meaning</th>
  7674. <th>Description</th>
  7675. <th>Schema</th>
  7676. </tr>
  7677. </thead>
  7678. <tbody>
  7679. <tr>
  7680. <td>200</td>
  7681. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7682. <td>200 response</td>
  7683. <td>Inline</td>
  7684. </tr>
  7685. </tbody>
  7686. </table>
  7687. <h3 id="new_card-responseschema">Response Schema</h3>
  7688. <p>Status Code <strong>200</strong></p>
  7689. <table>
  7690. <thead>
  7691. <tr>
  7692. <th>Name</th>
  7693. <th>Type</th>
  7694. <th>Required</th>
  7695. <th>Restrictions</th>
  7696. <th>Description</th>
  7697. </tr>
  7698. </thead>
  7699. <tbody>
  7700. <tr>
  7701. <td>» _id</td>
  7702. <td>string</td>
  7703. <td>false</td>
  7704. <td>none</td>
  7705. <td>none</td>
  7706. </tr>
  7707. </tbody>
  7708. </table>
  7709. <aside class="warning">
  7710. To perform this operation, you must be authenticated by means of one of the following methods:
  7711. UserSecurity
  7712. </aside>
  7713. <h2 id="get_card">get_card</h2>
  7714. <p><a id="opIdget_card"></a></p>
  7715. <blockquote>
  7716. <p>Code samples</p>
  7717. </blockquote>
  7718. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7719. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7720. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7721. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7722. </code></pre>
  7723. <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>
  7724. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7725. </span></code></pre>
  7726. <pre class="highlight tab tab-javascript"><code>
  7727. <span class="hljs-keyword">const</span> headers = {
  7728. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7729. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7730. };
  7731. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7732. {
  7733. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7734. <span class="hljs-attr">headers</span>: headers
  7735. })
  7736. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7737. <span class="hljs-keyword">return</span> res.json();
  7738. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7739. <span class="hljs-built_in">console</span>.log(body);
  7740. });
  7741. </code></pre>
  7742. <pre class="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>);
  7743. <span class="hljs-keyword">const</span> headers = {
  7744. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7745. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7746. };
  7747. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7748. {
  7749. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7750. <span class="hljs-attr">headers</span>: headers
  7751. })
  7752. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7753. <span class="hljs-keyword">return</span> res.json();
  7754. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7755. <span class="hljs-built_in">console</span>.log(body);
  7756. });
  7757. </code></pre>
  7758. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7759. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7760. headers = {
  7761. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7762. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7763. }
  7764. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7765. <span class="hljs-symbol">params:</span> {
  7766. }, <span class="hljs-symbol">headers:</span> headers
  7767. p JSON.parse(result)
  7768. </code></pre>
  7769. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7770. headers = {
  7771. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7772. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7773. }
  7774. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7775. <span class="hljs-built_in">print</span>(r.json())
  7776. </code></pre>
  7777. <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>);
  7778. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7779. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7780. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7781. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7782. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7783. String inputLine;
  7784. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7785. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7786. response.append(inputLine);
  7787. }
  7788. in.close();
  7789. System.out.println(response.toString());
  7790. </code></pre>
  7791. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7792. <span class="hljs-keyword">import</span> (
  7793. <span class="hljs-string">&quot;bytes&quot;</span>
  7794. <span class="hljs-string">&quot;net/http&quot;</span>
  7795. )
  7796. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7797. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7798. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7799. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7800. }
  7801. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7802. 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)
  7803. req.Header = headers
  7804. client := &amp;http.Client{}
  7805. resp, err := client.Do(req)
  7806. <span class="hljs-comment">// ...</span>
  7807. }
  7808. </code></pre>
  7809. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7810. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7811. );
  7812. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7813. <span class="hljs-comment">// Define array of request body.</span>
  7814. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7815. <span class="hljs-keyword">try</span> {
  7816. <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>(
  7817. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7818. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7819. )
  7820. );
  7821. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7822. }
  7823. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7824. <span class="hljs-comment">// handle exception or api errors.</span>
  7825. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7826. }
  7827. <span class="hljs-comment">// ...</span>
  7828. </code></pre>
  7829. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7830. <p><em>Get a Card</em></p>
  7831. <h3 id="get_card-parameters">Parameters</h3>
  7832. <table>
  7833. <thead>
  7834. <tr>
  7835. <th>Name</th>
  7836. <th>In</th>
  7837. <th>Type</th>
  7838. <th>Required</th>
  7839. <th>Description</th>
  7840. </tr>
  7841. </thead>
  7842. <tbody>
  7843. <tr>
  7844. <td>board</td>
  7845. <td>path</td>
  7846. <td>string</td>
  7847. <td>true</td>
  7848. <td>the board ID</td>
  7849. </tr>
  7850. <tr>
  7851. <td>list</td>
  7852. <td>path</td>
  7853. <td>string</td>
  7854. <td>true</td>
  7855. <td>the list ID of the card</td>
  7856. </tr>
  7857. <tr>
  7858. <td>card</td>
  7859. <td>path</td>
  7860. <td>string</td>
  7861. <td>true</td>
  7862. <td>the card ID</td>
  7863. </tr>
  7864. </tbody>
  7865. </table>
  7866. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7867. <p><strong>board</strong>: the board ID</p>
  7868. <p><strong>list</strong>: the list ID of the card</p>
  7869. <p><strong>card</strong>: the card ID</p>
  7870. <blockquote>
  7871. <p>Example responses</p>
  7872. </blockquote>
  7873. <blockquote>
  7874. <p>200 Response</p>
  7875. </blockquote>
  7876. <pre class="highlight tab tab-json"><code>{
  7877. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7878. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  7879. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7880. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7881. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7882. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7883. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7884. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7885. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  7886. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7887. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7888. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  7889. {}
  7890. ],
  7891. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7892. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7893. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7894. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7895. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  7896. <span class="hljs-string">&quot;string&quot;</span>
  7897. ],
  7898. <span class="hljs-attr">&quot;members&quot;</span>: [
  7899. <span class="hljs-string">&quot;string&quot;</span>
  7900. ],
  7901. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  7902. <span class="hljs-string">&quot;string&quot;</span>
  7903. ],
  7904. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7905. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7906. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7907. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7908. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  7909. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  7910. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7911. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  7912. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  7913. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7914. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7915. <span class="hljs-attr">&quot;vote&quot;</span>: {
  7916. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7917. <span class="hljs-attr">&quot;positive&quot;</span>: [
  7918. <span class="hljs-string">&quot;string&quot;</span>
  7919. ],
  7920. <span class="hljs-attr">&quot;negative&quot;</span>: [
  7921. <span class="hljs-string">&quot;string&quot;</span>
  7922. ],
  7923. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7924. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  7925. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  7926. },
  7927. <span class="hljs-attr">&quot;poker&quot;</span>: {
  7928. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  7929. <span class="hljs-attr">&quot;one&quot;</span>: [
  7930. <span class="hljs-string">&quot;string&quot;</span>
  7931. ],
  7932. <span class="hljs-attr">&quot;two&quot;</span>: [
  7933. <span class="hljs-string">&quot;string&quot;</span>
  7934. ],
  7935. <span class="hljs-attr">&quot;three&quot;</span>: [
  7936. <span class="hljs-string">&quot;string&quot;</span>
  7937. ],
  7938. <span class="hljs-attr">&quot;five&quot;</span>: [
  7939. <span class="hljs-string">&quot;string&quot;</span>
  7940. ],
  7941. <span class="hljs-attr">&quot;eight&quot;</span>: [
  7942. <span class="hljs-string">&quot;string&quot;</span>
  7943. ],
  7944. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  7945. <span class="hljs-string">&quot;string&quot;</span>
  7946. ],
  7947. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  7948. <span class="hljs-string">&quot;string&quot;</span>
  7949. ],
  7950. <span class="hljs-attr">&quot;forty&quot;</span>: [
  7951. <span class="hljs-string">&quot;string&quot;</span>
  7952. ],
  7953. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  7954. <span class="hljs-string">&quot;string&quot;</span>
  7955. ],
  7956. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  7957. <span class="hljs-string">&quot;string&quot;</span>
  7958. ],
  7959. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7960. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  7961. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  7962. },
  7963. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  7964. <span class="hljs-string">&quot;string&quot;</span>
  7965. ],
  7966. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  7967. <span class="hljs-number">0</span>
  7968. ],
  7969. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  7970. <span class="hljs-string">&quot;string&quot;</span>
  7971. ],
  7972. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  7973. }
  7974. </code></pre>
  7975. <h3 id="get_card-responses">Responses</h3>
  7976. <table>
  7977. <thead>
  7978. <tr>
  7979. <th>Status</th>
  7980. <th>Meaning</th>
  7981. <th>Description</th>
  7982. <th>Schema</th>
  7983. </tr>
  7984. </thead>
  7985. <tbody>
  7986. <tr>
  7987. <td>200</td>
  7988. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7989. <td>200 response</td>
  7990. <td><a href="#schemacards">Cards</a></td>
  7991. </tr>
  7992. </tbody>
  7993. </table>
  7994. <aside class="warning">
  7995. To perform this operation, you must be authenticated by means of one of the following methods:
  7996. UserSecurity
  7997. </aside>
  7998. <h2 id="edit_card">edit_card</h2>
  7999. <p><a id="opIdedit_card"></a></p>
  8000. <blockquote>
  8001. <p>Code samples</p>
  8002. </blockquote>
  8003. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8004. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8005. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8006. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8007. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8008. </code></pre>
  8009. <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>
  8010. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8011. Accept: application/json
  8012. </span></code></pre>
  8013. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8014. &quot;title&quot;: &quot;string&quot;,
  8015. &quot;sort&quot;: &quot;string&quot;,
  8016. &quot;parentId&quot;: &quot;string&quot;,
  8017. &quot;description&quot;: &quot;string&quot;,
  8018. &quot;color&quot;: &quot;string&quot;,
  8019. &quot;vote&quot;: {},
  8020. &quot;poker&quot;: {},
  8021. &quot;labelIds&quot;: &quot;string&quot;,
  8022. &quot;requestedBy&quot;: &quot;string&quot;,
  8023. &quot;assignedBy&quot;: &quot;string&quot;,
  8024. &quot;receivedAt&quot;: &quot;string&quot;,
  8025. &quot;startAt&quot;: &quot;string&quot;,
  8026. &quot;dueAt&quot;: &quot;string&quot;,
  8027. &quot;endAt&quot;: &quot;string&quot;,
  8028. &quot;spentTime&quot;: &quot;string&quot;,
  8029. &quot;isOverTime&quot;: true,
  8030. &quot;customFields&quot;: &quot;string&quot;,
  8031. &quot;members&quot;: &quot;string&quot;,
  8032. &quot;assignees&quot;: &quot;string&quot;,
  8033. &quot;swimlaneId&quot;: &quot;string&quot;,
  8034. &quot;listId&quot;: &quot;string&quot;,
  8035. &quot;authorId&quot;: &quot;string&quot;
  8036. }&#x27;</span>;
  8037. <span class="hljs-keyword">const</span> headers = {
  8038. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8039. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8040. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8041. };
  8042. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8043. {
  8044. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8045. <span class="hljs-attr">body</span>: inputBody,
  8046. <span class="hljs-attr">headers</span>: headers
  8047. })
  8048. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8049. <span class="hljs-keyword">return</span> res.json();
  8050. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8051. <span class="hljs-built_in">console</span>.log(body);
  8052. });
  8053. </code></pre>
  8054. <pre class="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>);
  8055. <span class="hljs-keyword">const</span> inputBody = {
  8056. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8057. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8058. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8059. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8060. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8061. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8062. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8063. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8064. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8065. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8066. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8067. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8068. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8069. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8070. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8071. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8072. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8073. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8074. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8075. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8076. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8077. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8078. };
  8079. <span class="hljs-keyword">const</span> headers = {
  8080. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8081. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8082. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8083. };
  8084. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8085. {
  8086. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8087. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8088. <span class="hljs-attr">headers</span>: headers
  8089. })
  8090. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8091. <span class="hljs-keyword">return</span> res.json();
  8092. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8093. <span class="hljs-built_in">console</span>.log(body);
  8094. });
  8095. </code></pre>
  8096. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8097. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8098. headers = {
  8099. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8100. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8101. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8102. }
  8103. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8104. <span class="hljs-symbol">params:</span> {
  8105. }, <span class="hljs-symbol">headers:</span> headers
  8106. p JSON.parse(result)
  8107. </code></pre>
  8108. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8109. headers = {
  8110. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8111. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8112. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8113. }
  8114. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8115. <span class="hljs-built_in">print</span>(r.json())
  8116. </code></pre>
  8117. <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>);
  8118. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8119. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8120. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8121. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8122. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8123. String inputLine;
  8124. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8125. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8126. response.append(inputLine);
  8127. }
  8128. in.close();
  8129. System.out.println(response.toString());
  8130. </code></pre>
  8131. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8132. <span class="hljs-keyword">import</span> (
  8133. <span class="hljs-string">&quot;bytes&quot;</span>
  8134. <span class="hljs-string">&quot;net/http&quot;</span>
  8135. )
  8136. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8137. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8138. <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>},
  8139. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8140. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8141. }
  8142. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8143. 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)
  8144. req.Header = headers
  8145. client := &amp;http.Client{}
  8146. resp, err := client.Do(req)
  8147. <span class="hljs-comment">// ...</span>
  8148. }
  8149. </code></pre>
  8150. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8151. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8152. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8153. );
  8154. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8155. <span class="hljs-comment">// Define array of request body.</span>
  8156. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8157. <span class="hljs-keyword">try</span> {
  8158. <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>(
  8159. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8160. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8161. )
  8162. );
  8163. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8164. }
  8165. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8166. <span class="hljs-comment">// handle exception or api errors.</span>
  8167. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8168. }
  8169. <span class="hljs-comment">// ...</span>
  8170. </code></pre>
  8171. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8172. <p><em>Edit Fields in a Card</em></p>
  8173. <p>Edit a card</p>
  8174. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8175. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8176. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8177. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8178. <code>indigo</code>:</p>
  8179. <img src="/card-colors.png" alt="Wekan card colors" />
  8180. <p>Note: setting the color to white has the same effect than removing it.</p>
  8181. <blockquote>
  8182. <p>Body parameter</p>
  8183. </blockquote>
  8184. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8185. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8186. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8187. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8188. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8189. <span class="hljs-attr">vote:</span> {}
  8190. <span class="hljs-attr">poker:</span> {}
  8191. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8192. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8193. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8194. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8195. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8196. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8197. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8198. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8199. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8200. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8201. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8202. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8203. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8204. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8205. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8206. </code></pre>
  8207. <h3 id="edit_card-parameters">Parameters</h3>
  8208. <table>
  8209. <thead>
  8210. <tr>
  8211. <th>Name</th>
  8212. <th>In</th>
  8213. <th>Type</th>
  8214. <th>Required</th>
  8215. <th>Description</th>
  8216. </tr>
  8217. </thead>
  8218. <tbody>
  8219. <tr>
  8220. <td>board</td>
  8221. <td>path</td>
  8222. <td>string</td>
  8223. <td>true</td>
  8224. <td>the board ID of the card</td>
  8225. </tr>
  8226. <tr>
  8227. <td>list</td>
  8228. <td>path</td>
  8229. <td>string</td>
  8230. <td>true</td>
  8231. <td>the list ID of the card</td>
  8232. </tr>
  8233. <tr>
  8234. <td>card</td>
  8235. <td>path</td>
  8236. <td>string</td>
  8237. <td>true</td>
  8238. <td>the ID of the card</td>
  8239. </tr>
  8240. <tr>
  8241. <td>body</td>
  8242. <td>body</td>
  8243. <td>object</td>
  8244. <td>false</td>
  8245. <td>none</td>
  8246. </tr>
  8247. <tr>
  8248. <td>» title</td>
  8249. <td>body</td>
  8250. <td>string</td>
  8251. <td>false</td>
  8252. <td>the new title of the card</td>
  8253. </tr>
  8254. <tr>
  8255. <td>» sort</td>
  8256. <td>body</td>
  8257. <td>string</td>
  8258. <td>false</td>
  8259. <td>the new sort value of the card</td>
  8260. </tr>
  8261. <tr>
  8262. <td>» parentId</td>
  8263. <td>body</td>
  8264. <td>string</td>
  8265. <td>false</td>
  8266. <td>change the parent of the card</td>
  8267. </tr>
  8268. <tr>
  8269. <td>» description</td>
  8270. <td>body</td>
  8271. <td>string</td>
  8272. <td>false</td>
  8273. <td>the new description of the card</td>
  8274. </tr>
  8275. <tr>
  8276. <td>» color</td>
  8277. <td>body</td>
  8278. <td>string</td>
  8279. <td>false</td>
  8280. <td>the new color of the card</td>
  8281. </tr>
  8282. <tr>
  8283. <td>» vote</td>
  8284. <td>body</td>
  8285. <td>object</td>
  8286. <td>false</td>
  8287. <td>the vote object</td>
  8288. </tr>
  8289. <tr>
  8290. <td>» poker</td>
  8291. <td>body</td>
  8292. <td>object</td>
  8293. <td>false</td>
  8294. <td>the poker object</td>
  8295. </tr>
  8296. <tr>
  8297. <td>» labelIds</td>
  8298. <td>body</td>
  8299. <td>string</td>
  8300. <td>false</td>
  8301. <td>the new list of label IDs attached to the card</td>
  8302. </tr>
  8303. <tr>
  8304. <td>» requestedBy</td>
  8305. <td>body</td>
  8306. <td>string</td>
  8307. <td>false</td>
  8308. <td>the new requestedBy field of the card</td>
  8309. </tr>
  8310. <tr>
  8311. <td>» assignedBy</td>
  8312. <td>body</td>
  8313. <td>string</td>
  8314. <td>false</td>
  8315. <td>the new assignedBy field of the card</td>
  8316. </tr>
  8317. <tr>
  8318. <td>» receivedAt</td>
  8319. <td>body</td>
  8320. <td>string</td>
  8321. <td>false</td>
  8322. <td>the new receivedAt field of the card</td>
  8323. </tr>
  8324. <tr>
  8325. <td>» startAt</td>
  8326. <td>body</td>
  8327. <td>string</td>
  8328. <td>false</td>
  8329. <td>the new startAt field of the card</td>
  8330. </tr>
  8331. <tr>
  8332. <td>» dueAt</td>
  8333. <td>body</td>
  8334. <td>string</td>
  8335. <td>false</td>
  8336. <td>the new dueAt field of the card</td>
  8337. </tr>
  8338. <tr>
  8339. <td>» endAt</td>
  8340. <td>body</td>
  8341. <td>string</td>
  8342. <td>false</td>
  8343. <td>the new endAt field of the card</td>
  8344. </tr>
  8345. <tr>
  8346. <td>» spentTime</td>
  8347. <td>body</td>
  8348. <td>string</td>
  8349. <td>false</td>
  8350. <td>the new spentTime field of the card</td>
  8351. </tr>
  8352. <tr>
  8353. <td>» isOverTime</td>
  8354. <td>body</td>
  8355. <td>boolean</td>
  8356. <td>false</td>
  8357. <td>the new isOverTime field of the card</td>
  8358. </tr>
  8359. <tr>
  8360. <td>» customFields</td>
  8361. <td>body</td>
  8362. <td>string</td>
  8363. <td>false</td>
  8364. <td>the new customFields value of the card</td>
  8365. </tr>
  8366. <tr>
  8367. <td>» members</td>
  8368. <td>body</td>
  8369. <td>string</td>
  8370. <td>false</td>
  8371. <td>the new list of member IDs attached to the card</td>
  8372. </tr>
  8373. <tr>
  8374. <td>» assignees</td>
  8375. <td>body</td>
  8376. <td>string</td>
  8377. <td>false</td>
  8378. <td>the array of maximum one ID of assignee attached to the card</td>
  8379. </tr>
  8380. <tr>
  8381. <td>» swimlaneId</td>
  8382. <td>body</td>
  8383. <td>string</td>
  8384. <td>false</td>
  8385. <td>the new swimlane ID of the card</td>
  8386. </tr>
  8387. <tr>
  8388. <td>» listId</td>
  8389. <td>body</td>
  8390. <td>string</td>
  8391. <td>false</td>
  8392. <td>the new list ID of the card (move operation)</td>
  8393. </tr>
  8394. <tr>
  8395. <td>» authorId</td>
  8396. <td>body</td>
  8397. <td>string</td>
  8398. <td>false</td>
  8399. <td>change the owner of the card</td>
  8400. </tr>
  8401. </tbody>
  8402. </table>
  8403. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8404. <p><strong>board</strong>: the board ID of the card</p>
  8405. <p><strong>list</strong>: the list ID of the card</p>
  8406. <p><strong>card</strong>: the ID of the card</p>
  8407. <blockquote>
  8408. <p>Example responses</p>
  8409. </blockquote>
  8410. <blockquote>
  8411. <p>200 Response</p>
  8412. </blockquote>
  8413. <pre class="highlight tab tab-json"><code>{
  8414. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8415. }
  8416. </code></pre>
  8417. <h3 id="edit_card-responses">Responses</h3>
  8418. <table>
  8419. <thead>
  8420. <tr>
  8421. <th>Status</th>
  8422. <th>Meaning</th>
  8423. <th>Description</th>
  8424. <th>Schema</th>
  8425. </tr>
  8426. </thead>
  8427. <tbody>
  8428. <tr>
  8429. <td>200</td>
  8430. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8431. <td>200 response</td>
  8432. <td>Inline</td>
  8433. </tr>
  8434. </tbody>
  8435. </table>
  8436. <h3 id="edit_card-responseschema">Response Schema</h3>
  8437. <p>Status Code <strong>200</strong></p>
  8438. <table>
  8439. <thead>
  8440. <tr>
  8441. <th>Name</th>
  8442. <th>Type</th>
  8443. <th>Required</th>
  8444. <th>Restrictions</th>
  8445. <th>Description</th>
  8446. </tr>
  8447. </thead>
  8448. <tbody>
  8449. <tr>
  8450. <td>» _id</td>
  8451. <td>string</td>
  8452. <td>false</td>
  8453. <td>none</td>
  8454. <td>none</td>
  8455. </tr>
  8456. </tbody>
  8457. </table>
  8458. <aside class="warning">
  8459. To perform this operation, you must be authenticated by means of one of the following methods:
  8460. UserSecurity
  8461. </aside>
  8462. <h2 id="delete_card">delete_card</h2>
  8463. <p><a id="opIddelete_card"></a></p>
  8464. <blockquote>
  8465. <p>Code samples</p>
  8466. </blockquote>
  8467. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8468. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8469. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8470. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8471. </code></pre>
  8472. <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>
  8473. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8474. </span></code></pre>
  8475. <pre class="highlight tab tab-javascript"><code>
  8476. <span class="hljs-keyword">const</span> headers = {
  8477. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8478. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8479. };
  8480. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8481. {
  8482. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8483. <span class="hljs-attr">headers</span>: headers
  8484. })
  8485. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8486. <span class="hljs-keyword">return</span> res.json();
  8487. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8488. <span class="hljs-built_in">console</span>.log(body);
  8489. });
  8490. </code></pre>
  8491. <pre class="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>);
  8492. <span class="hljs-keyword">const</span> headers = {
  8493. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8494. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8495. };
  8496. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8497. {
  8498. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8499. <span class="hljs-attr">headers</span>: headers
  8500. })
  8501. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8502. <span class="hljs-keyword">return</span> res.json();
  8503. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8504. <span class="hljs-built_in">console</span>.log(body);
  8505. });
  8506. </code></pre>
  8507. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8508. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8509. headers = {
  8510. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8511. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8512. }
  8513. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8514. <span class="hljs-symbol">params:</span> {
  8515. }, <span class="hljs-symbol">headers:</span> headers
  8516. p JSON.parse(result)
  8517. </code></pre>
  8518. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8519. headers = {
  8520. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8521. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8522. }
  8523. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8524. <span class="hljs-built_in">print</span>(r.json())
  8525. </code></pre>
  8526. <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>);
  8527. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8528. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8529. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8530. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8531. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8532. String inputLine;
  8533. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8534. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8535. response.append(inputLine);
  8536. }
  8537. in.close();
  8538. System.out.println(response.toString());
  8539. </code></pre>
  8540. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8541. <span class="hljs-keyword">import</span> (
  8542. <span class="hljs-string">&quot;bytes&quot;</span>
  8543. <span class="hljs-string">&quot;net/http&quot;</span>
  8544. )
  8545. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8546. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8547. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8548. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8549. }
  8550. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8551. 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)
  8552. req.Header = headers
  8553. client := &amp;http.Client{}
  8554. resp, err := client.Do(req)
  8555. <span class="hljs-comment">// ...</span>
  8556. }
  8557. </code></pre>
  8558. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8559. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8560. );
  8561. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8562. <span class="hljs-comment">// Define array of request body.</span>
  8563. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8564. <span class="hljs-keyword">try</span> {
  8565. <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>(
  8566. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8567. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8568. )
  8569. );
  8570. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8571. }
  8572. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8573. <span class="hljs-comment">// handle exception or api errors.</span>
  8574. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8575. }
  8576. <span class="hljs-comment">// ...</span>
  8577. </code></pre>
  8578. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8579. <p><em>Delete a card from a board</em></p>
  8580. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8581. is not put in the recycle bin.</p>
  8582. <h3 id="delete_card-parameters">Parameters</h3>
  8583. <table>
  8584. <thead>
  8585. <tr>
  8586. <th>Name</th>
  8587. <th>In</th>
  8588. <th>Type</th>
  8589. <th>Required</th>
  8590. <th>Description</th>
  8591. </tr>
  8592. </thead>
  8593. <tbody>
  8594. <tr>
  8595. <td>board</td>
  8596. <td>path</td>
  8597. <td>string</td>
  8598. <td>true</td>
  8599. <td>the board ID of the card</td>
  8600. </tr>
  8601. <tr>
  8602. <td>list</td>
  8603. <td>path</td>
  8604. <td>string</td>
  8605. <td>true</td>
  8606. <td>the list ID of the card</td>
  8607. </tr>
  8608. <tr>
  8609. <td>card</td>
  8610. <td>path</td>
  8611. <td>string</td>
  8612. <td>true</td>
  8613. <td>the ID of the card</td>
  8614. </tr>
  8615. </tbody>
  8616. </table>
  8617. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8618. <p><strong>board</strong>: the board ID of the card</p>
  8619. <p><strong>list</strong>: the list ID of the card</p>
  8620. <p><strong>card</strong>: the ID of the card</p>
  8621. <blockquote>
  8622. <p>Example responses</p>
  8623. </blockquote>
  8624. <blockquote>
  8625. <p>200 Response</p>
  8626. </blockquote>
  8627. <pre class="highlight tab tab-json"><code>{
  8628. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8629. }
  8630. </code></pre>
  8631. <h3 id="delete_card-responses">Responses</h3>
  8632. <table>
  8633. <thead>
  8634. <tr>
  8635. <th>Status</th>
  8636. <th>Meaning</th>
  8637. <th>Description</th>
  8638. <th>Schema</th>
  8639. </tr>
  8640. </thead>
  8641. <tbody>
  8642. <tr>
  8643. <td>200</td>
  8644. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8645. <td>200 response</td>
  8646. <td>Inline</td>
  8647. </tr>
  8648. </tbody>
  8649. </table>
  8650. <h3 id="delete_card-responseschema">Response Schema</h3>
  8651. <p>Status Code <strong>200</strong></p>
  8652. <table>
  8653. <thead>
  8654. <tr>
  8655. <th>Name</th>
  8656. <th>Type</th>
  8657. <th>Required</th>
  8658. <th>Restrictions</th>
  8659. <th>Description</th>
  8660. </tr>
  8661. </thead>
  8662. <tbody>
  8663. <tr>
  8664. <td>» _id</td>
  8665. <td>string</td>
  8666. <td>false</td>
  8667. <td>none</td>
  8668. <td>none</td>
  8669. </tr>
  8670. </tbody>
  8671. </table>
  8672. <aside class="warning">
  8673. To perform this operation, you must be authenticated by means of one of the following methods:
  8674. UserSecurity
  8675. </aside>
  8676. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  8677. <p><a id="opIdget_swimlane_cards"></a></p>
  8678. <blockquote>
  8679. <p>Code samples</p>
  8680. </blockquote>
  8681. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8682. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  8683. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8684. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8685. </code></pre>
  8686. <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>
  8687. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8688. </span></code></pre>
  8689. <pre class="highlight tab tab-javascript"><code>
  8690. <span class="hljs-keyword">const</span> headers = {
  8691. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8692. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8693. };
  8694. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8695. {
  8696. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8697. <span class="hljs-attr">headers</span>: headers
  8698. })
  8699. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8700. <span class="hljs-keyword">return</span> res.json();
  8701. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8702. <span class="hljs-built_in">console</span>.log(body);
  8703. });
  8704. </code></pre>
  8705. <pre class="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>);
  8706. <span class="hljs-keyword">const</span> headers = {
  8707. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8708. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8709. };
  8710. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8711. {
  8712. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8713. <span class="hljs-attr">headers</span>: headers
  8714. })
  8715. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8716. <span class="hljs-keyword">return</span> res.json();
  8717. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8718. <span class="hljs-built_in">console</span>.log(body);
  8719. });
  8720. </code></pre>
  8721. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8722. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8723. headers = {
  8724. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8725. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8726. }
  8727. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8728. <span class="hljs-symbol">params:</span> {
  8729. }, <span class="hljs-symbol">headers:</span> headers
  8730. p JSON.parse(result)
  8731. </code></pre>
  8732. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8733. headers = {
  8734. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8735. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8736. }
  8737. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  8738. <span class="hljs-built_in">print</span>(r.json())
  8739. </code></pre>
  8740. <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>);
  8741. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8742. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8743. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8744. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8745. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8746. String inputLine;
  8747. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8748. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8749. response.append(inputLine);
  8750. }
  8751. in.close();
  8752. System.out.println(response.toString());
  8753. </code></pre>
  8754. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8755. <span class="hljs-keyword">import</span> (
  8756. <span class="hljs-string">&quot;bytes&quot;</span>
  8757. <span class="hljs-string">&quot;net/http&quot;</span>
  8758. )
  8759. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8760. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8761. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8762. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8763. }
  8764. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8765. 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)
  8766. req.Header = headers
  8767. client := &amp;http.Client{}
  8768. resp, err := client.Do(req)
  8769. <span class="hljs-comment">// ...</span>
  8770. }
  8771. </code></pre>
  8772. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8773. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8774. );
  8775. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8776. <span class="hljs-comment">// Define array of request body.</span>
  8777. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8778. <span class="hljs-keyword">try</span> {
  8779. <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>(
  8780. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8781. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8782. )
  8783. );
  8784. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8785. }
  8786. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8787. <span class="hljs-comment">// handle exception or api errors.</span>
  8788. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8789. }
  8790. <span class="hljs-comment">// ...</span>
  8791. </code></pre>
  8792. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  8793. <p><em>get all cards attached to a swimlane</em></p>
  8794. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  8795. <table>
  8796. <thead>
  8797. <tr>
  8798. <th>Name</th>
  8799. <th>In</th>
  8800. <th>Type</th>
  8801. <th>Required</th>
  8802. <th>Description</th>
  8803. </tr>
  8804. </thead>
  8805. <tbody>
  8806. <tr>
  8807. <td>board</td>
  8808. <td>path</td>
  8809. <td>string</td>
  8810. <td>true</td>
  8811. <td>the board ID</td>
  8812. </tr>
  8813. <tr>
  8814. <td>swimlane</td>
  8815. <td>path</td>
  8816. <td>string</td>
  8817. <td>true</td>
  8818. <td>the swimlane ID</td>
  8819. </tr>
  8820. </tbody>
  8821. </table>
  8822. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8823. <p><strong>board</strong>: the board ID</p>
  8824. <p><strong>swimlane</strong>: the swimlane ID</p>
  8825. <blockquote>
  8826. <p>Example responses</p>
  8827. </blockquote>
  8828. <blockquote>
  8829. <p>200 Response</p>
  8830. </blockquote>
  8831. <pre class="highlight tab tab-json"><code>[
  8832. {
  8833. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8834. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8835. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8836. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8837. }
  8838. ]
  8839. </code></pre>
  8840. <h3 id="get_swimlane_cards-responses">Responses</h3>
  8841. <table>
  8842. <thead>
  8843. <tr>
  8844. <th>Status</th>
  8845. <th>Meaning</th>
  8846. <th>Description</th>
  8847. <th>Schema</th>
  8848. </tr>
  8849. </thead>
  8850. <tbody>
  8851. <tr>
  8852. <td>200</td>
  8853. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8854. <td>200 response</td>
  8855. <td>Inline</td>
  8856. </tr>
  8857. </tbody>
  8858. </table>
  8859. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  8860. <p>Status Code <strong>200</strong></p>
  8861. <table>
  8862. <thead>
  8863. <tr>
  8864. <th>Name</th>
  8865. <th>Type</th>
  8866. <th>Required</th>
  8867. <th>Restrictions</th>
  8868. <th>Description</th>
  8869. </tr>
  8870. </thead>
  8871. <tbody>
  8872. <tr>
  8873. <td>» _id</td>
  8874. <td>string</td>
  8875. <td>false</td>
  8876. <td>none</td>
  8877. <td>none</td>
  8878. </tr>
  8879. <tr>
  8880. <td>» title</td>
  8881. <td>string</td>
  8882. <td>false</td>
  8883. <td>none</td>
  8884. <td>none</td>
  8885. </tr>
  8886. <tr>
  8887. <td>» description</td>
  8888. <td>string</td>
  8889. <td>false</td>
  8890. <td>none</td>
  8891. <td>none</td>
  8892. </tr>
  8893. <tr>
  8894. <td>» listId</td>
  8895. <td>string</td>
  8896. <td>false</td>
  8897. <td>none</td>
  8898. <td>none</td>
  8899. </tr>
  8900. </tbody>
  8901. </table>
  8902. <aside class="warning">
  8903. To perform this operation, you must be authenticated by means of one of the following methods:
  8904. UserSecurity
  8905. </aside>
  8906. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  8907. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  8908. <p><a id="opIdget_all_custom_fields"></a></p>
  8909. <blockquote>
  8910. <p>Code samples</p>
  8911. </blockquote>
  8912. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8913. curl -X GET /api/boards/{board}/custom-fields \
  8914. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8915. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8916. </code></pre>
  8917. <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>
  8918. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8919. </span></code></pre>
  8920. <pre class="highlight tab tab-javascript"><code>
  8921. <span class="hljs-keyword">const</span> headers = {
  8922. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8923. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8924. };
  8925. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8926. {
  8927. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8928. <span class="hljs-attr">headers</span>: headers
  8929. })
  8930. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8931. <span class="hljs-keyword">return</span> res.json();
  8932. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8933. <span class="hljs-built_in">console</span>.log(body);
  8934. });
  8935. </code></pre>
  8936. <pre class="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>);
  8937. <span class="hljs-keyword">const</span> headers = {
  8938. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8939. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8940. };
  8941. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8942. {
  8943. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8944. <span class="hljs-attr">headers</span>: headers
  8945. })
  8946. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8947. <span class="hljs-keyword">return</span> res.json();
  8948. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8949. <span class="hljs-built_in">console</span>.log(body);
  8950. });
  8951. </code></pre>
  8952. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8953. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8954. headers = {
  8955. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8956. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8957. }
  8958. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8959. <span class="hljs-symbol">params:</span> {
  8960. }, <span class="hljs-symbol">headers:</span> headers
  8961. p JSON.parse(result)
  8962. </code></pre>
  8963. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8964. headers = {
  8965. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8966. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8967. }
  8968. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  8969. <span class="hljs-built_in">print</span>(r.json())
  8970. </code></pre>
  8971. <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>);
  8972. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8973. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8974. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8975. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8976. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8977. String inputLine;
  8978. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8979. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8980. response.append(inputLine);
  8981. }
  8982. in.close();
  8983. System.out.println(response.toString());
  8984. </code></pre>
  8985. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8986. <span class="hljs-keyword">import</span> (
  8987. <span class="hljs-string">&quot;bytes&quot;</span>
  8988. <span class="hljs-string">&quot;net/http&quot;</span>
  8989. )
  8990. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8991. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8992. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8993. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8994. }
  8995. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8996. 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)
  8997. req.Header = headers
  8998. client := &amp;http.Client{}
  8999. resp, err := client.Do(req)
  9000. <span class="hljs-comment">// ...</span>
  9001. }
  9002. </code></pre>
  9003. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9004. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9005. );
  9006. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9007. <span class="hljs-comment">// Define array of request body.</span>
  9008. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9009. <span class="hljs-keyword">try</span> {
  9010. <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>(
  9011. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9012. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9013. )
  9014. );
  9015. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9016. }
  9017. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9018. <span class="hljs-comment">// handle exception or api errors.</span>
  9019. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9020. }
  9021. <span class="hljs-comment">// ...</span>
  9022. </code></pre>
  9023. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9024. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9025. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9026. <table>
  9027. <thead>
  9028. <tr>
  9029. <th>Name</th>
  9030. <th>In</th>
  9031. <th>Type</th>
  9032. <th>Required</th>
  9033. <th>Description</th>
  9034. </tr>
  9035. </thead>
  9036. <tbody>
  9037. <tr>
  9038. <td>board</td>
  9039. <td>path</td>
  9040. <td>string</td>
  9041. <td>true</td>
  9042. <td>the board value</td>
  9043. </tr>
  9044. </tbody>
  9045. </table>
  9046. <blockquote>
  9047. <p>Example responses</p>
  9048. </blockquote>
  9049. <blockquote>
  9050. <p>200 Response</p>
  9051. </blockquote>
  9052. <pre class="highlight tab tab-json"><code>[
  9053. {
  9054. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9055. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9056. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9057. }
  9058. ]
  9059. </code></pre>
  9060. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9061. <table>
  9062. <thead>
  9063. <tr>
  9064. <th>Status</th>
  9065. <th>Meaning</th>
  9066. <th>Description</th>
  9067. <th>Schema</th>
  9068. </tr>
  9069. </thead>
  9070. <tbody>
  9071. <tr>
  9072. <td>200</td>
  9073. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9074. <td>200 response</td>
  9075. <td>Inline</td>
  9076. </tr>
  9077. </tbody>
  9078. </table>
  9079. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9080. <p>Status Code <strong>200</strong></p>
  9081. <table>
  9082. <thead>
  9083. <tr>
  9084. <th>Name</th>
  9085. <th>Type</th>
  9086. <th>Required</th>
  9087. <th>Restrictions</th>
  9088. <th>Description</th>
  9089. </tr>
  9090. </thead>
  9091. <tbody>
  9092. <tr>
  9093. <td>» _id</td>
  9094. <td>string</td>
  9095. <td>false</td>
  9096. <td>none</td>
  9097. <td>none</td>
  9098. </tr>
  9099. <tr>
  9100. <td>» name</td>
  9101. <td>string</td>
  9102. <td>false</td>
  9103. <td>none</td>
  9104. <td>none</td>
  9105. </tr>
  9106. <tr>
  9107. <td>» type</td>
  9108. <td>string</td>
  9109. <td>false</td>
  9110. <td>none</td>
  9111. <td>none</td>
  9112. </tr>
  9113. </tbody>
  9114. </table>
  9115. <aside class="warning">
  9116. To perform this operation, you must be authenticated by means of one of the following methods:
  9117. UserSecurity
  9118. </aside>
  9119. <h2 id="new_custom_field">new_custom_field</h2>
  9120. <p><a id="opIdnew_custom_field"></a></p>
  9121. <blockquote>
  9122. <p>Code samples</p>
  9123. </blockquote>
  9124. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9125. curl -X POST /api/boards/{board}/custom-fields \
  9126. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9127. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9128. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9129. </code></pre>
  9130. <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>
  9131. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9132. Accept: application/json
  9133. </span></code></pre>
  9134. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9135. &quot;name&quot;: &quot;string&quot;,
  9136. &quot;type&quot;: &quot;string&quot;,
  9137. &quot;settings&quot;: &quot;string&quot;,
  9138. &quot;showOnCard&quot;: true,
  9139. &quot;automaticallyOnCard&quot;: true,
  9140. &quot;showLabelOnMiniCard&quot;: true,
  9141. &quot;showSumAtTopOfList&quot;: true,
  9142. &quot;authorId&quot;: &quot;string&quot;
  9143. }&#x27;</span>;
  9144. <span class="hljs-keyword">const</span> headers = {
  9145. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9146. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9147. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9148. };
  9149. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9150. {
  9151. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9152. <span class="hljs-attr">body</span>: inputBody,
  9153. <span class="hljs-attr">headers</span>: headers
  9154. })
  9155. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9156. <span class="hljs-keyword">return</span> res.json();
  9157. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9158. <span class="hljs-built_in">console</span>.log(body);
  9159. });
  9160. </code></pre>
  9161. <pre class="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>);
  9162. <span class="hljs-keyword">const</span> inputBody = {
  9163. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9164. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9165. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9166. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9167. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9168. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9169. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  9170. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9171. };
  9172. <span class="hljs-keyword">const</span> headers = {
  9173. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9174. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9175. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9176. };
  9177. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9178. {
  9179. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9180. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9181. <span class="hljs-attr">headers</span>: headers
  9182. })
  9183. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9184. <span class="hljs-keyword">return</span> res.json();
  9185. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9186. <span class="hljs-built_in">console</span>.log(body);
  9187. });
  9188. </code></pre>
  9189. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9190. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9191. headers = {
  9192. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9193. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9194. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9195. }
  9196. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9197. <span class="hljs-symbol">params:</span> {
  9198. }, <span class="hljs-symbol">headers:</span> headers
  9199. p JSON.parse(result)
  9200. </code></pre>
  9201. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9202. headers = {
  9203. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9204. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9205. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9206. }
  9207. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9208. <span class="hljs-built_in">print</span>(r.json())
  9209. </code></pre>
  9210. <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>);
  9211. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9212. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9213. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9214. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9215. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9216. String inputLine;
  9217. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9218. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9219. response.append(inputLine);
  9220. }
  9221. in.close();
  9222. System.out.println(response.toString());
  9223. </code></pre>
  9224. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9225. <span class="hljs-keyword">import</span> (
  9226. <span class="hljs-string">&quot;bytes&quot;</span>
  9227. <span class="hljs-string">&quot;net/http&quot;</span>
  9228. )
  9229. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9230. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9231. <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>},
  9232. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9233. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9234. }
  9235. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9236. 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)
  9237. req.Header = headers
  9238. client := &amp;http.Client{}
  9239. resp, err := client.Do(req)
  9240. <span class="hljs-comment">// ...</span>
  9241. }
  9242. </code></pre>
  9243. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9244. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9245. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9246. );
  9247. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9248. <span class="hljs-comment">// Define array of request body.</span>
  9249. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9250. <span class="hljs-keyword">try</span> {
  9251. <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>(
  9252. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9253. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9254. )
  9255. );
  9256. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9257. }
  9258. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9259. <span class="hljs-comment">// handle exception or api errors.</span>
  9260. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9261. }
  9262. <span class="hljs-comment">// ...</span>
  9263. </code></pre>
  9264. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9265. <p><em>Create a Custom Field</em></p>
  9266. <blockquote>
  9267. <p>Body parameter</p>
  9268. </blockquote>
  9269. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9270. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9271. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9272. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9273. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9274. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9275. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9276. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9277. </code></pre>
  9278. <h3 id="new_custom_field-parameters">Parameters</h3>
  9279. <table>
  9280. <thead>
  9281. <tr>
  9282. <th>Name</th>
  9283. <th>In</th>
  9284. <th>Type</th>
  9285. <th>Required</th>
  9286. <th>Description</th>
  9287. </tr>
  9288. </thead>
  9289. <tbody>
  9290. <tr>
  9291. <td>board</td>
  9292. <td>path</td>
  9293. <td>string</td>
  9294. <td>true</td>
  9295. <td>the board value</td>
  9296. </tr>
  9297. <tr>
  9298. <td>body</td>
  9299. <td>body</td>
  9300. <td>object</td>
  9301. <td>true</td>
  9302. <td>none</td>
  9303. </tr>
  9304. <tr>
  9305. <td>» name</td>
  9306. <td>body</td>
  9307. <td>string</td>
  9308. <td>true</td>
  9309. <td>the name of the custom field</td>
  9310. </tr>
  9311. <tr>
  9312. <td>» type</td>
  9313. <td>body</td>
  9314. <td>string</td>
  9315. <td>true</td>
  9316. <td>the type of the custom field</td>
  9317. </tr>
  9318. <tr>
  9319. <td>» settings</td>
  9320. <td>body</td>
  9321. <td>string</td>
  9322. <td>true</td>
  9323. <td>the settings object of the custom field</td>
  9324. </tr>
  9325. <tr>
  9326. <td>» showOnCard</td>
  9327. <td>body</td>
  9328. <td>boolean</td>
  9329. <td>true</td>
  9330. <td>should we show the custom field on cards?</td>
  9331. </tr>
  9332. <tr>
  9333. <td>» automaticallyOnCard</td>
  9334. <td>body</td>
  9335. <td>boolean</td>
  9336. <td>true</td>
  9337. <td>should the custom fields automatically be added on cards?</td>
  9338. </tr>
  9339. <tr>
  9340. <td>» showLabelOnMiniCard</td>
  9341. <td>body</td>
  9342. <td>boolean</td>
  9343. <td>true</td>
  9344. <td>should the label of the custom field be shown on minicards?</td>
  9345. </tr>
  9346. <tr>
  9347. <td>» showSumAtTopOfList</td>
  9348. <td>body</td>
  9349. <td>boolean</td>
  9350. <td>true</td>
  9351. <td>should the sum of the custom fields be shown at top of list?</td>
  9352. </tr>
  9353. <tr>
  9354. <td>» authorId</td>
  9355. <td>body</td>
  9356. <td>string</td>
  9357. <td>true</td>
  9358. <td>the authorId value</td>
  9359. </tr>
  9360. </tbody>
  9361. </table>
  9362. <blockquote>
  9363. <p>Example responses</p>
  9364. </blockquote>
  9365. <blockquote>
  9366. <p>200 Response</p>
  9367. </blockquote>
  9368. <pre class="highlight tab tab-json"><code>{
  9369. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9370. }
  9371. </code></pre>
  9372. <h3 id="new_custom_field-responses">Responses</h3>
  9373. <table>
  9374. <thead>
  9375. <tr>
  9376. <th>Status</th>
  9377. <th>Meaning</th>
  9378. <th>Description</th>
  9379. <th>Schema</th>
  9380. </tr>
  9381. </thead>
  9382. <tbody>
  9383. <tr>
  9384. <td>200</td>
  9385. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9386. <td>200 response</td>
  9387. <td>Inline</td>
  9388. </tr>
  9389. </tbody>
  9390. </table>
  9391. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9392. <p>Status Code <strong>200</strong></p>
  9393. <table>
  9394. <thead>
  9395. <tr>
  9396. <th>Name</th>
  9397. <th>Type</th>
  9398. <th>Required</th>
  9399. <th>Restrictions</th>
  9400. <th>Description</th>
  9401. </tr>
  9402. </thead>
  9403. <tbody>
  9404. <tr>
  9405. <td>» _id</td>
  9406. <td>string</td>
  9407. <td>false</td>
  9408. <td>none</td>
  9409. <td>none</td>
  9410. </tr>
  9411. </tbody>
  9412. </table>
  9413. <aside class="warning">
  9414. To perform this operation, you must be authenticated by means of one of the following methods:
  9415. UserSecurity
  9416. </aside>
  9417. <h2 id="get_custom_field">get_custom_field</h2>
  9418. <p><a id="opIdget_custom_field"></a></p>
  9419. <blockquote>
  9420. <p>Code samples</p>
  9421. </blockquote>
  9422. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9423. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9424. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9425. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9426. </code></pre>
  9427. <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>
  9428. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9429. </span></code></pre>
  9430. <pre class="highlight tab tab-javascript"><code>
  9431. <span class="hljs-keyword">const</span> headers = {
  9432. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9433. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9434. };
  9435. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9436. {
  9437. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9438. <span class="hljs-attr">headers</span>: headers
  9439. })
  9440. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9441. <span class="hljs-keyword">return</span> res.json();
  9442. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9443. <span class="hljs-built_in">console</span>.log(body);
  9444. });
  9445. </code></pre>
  9446. <pre class="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>);
  9447. <span class="hljs-keyword">const</span> headers = {
  9448. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9449. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9450. };
  9451. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9452. {
  9453. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9454. <span class="hljs-attr">headers</span>: headers
  9455. })
  9456. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9457. <span class="hljs-keyword">return</span> res.json();
  9458. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9459. <span class="hljs-built_in">console</span>.log(body);
  9460. });
  9461. </code></pre>
  9462. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9463. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9464. headers = {
  9465. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9466. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9467. }
  9468. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9469. <span class="hljs-symbol">params:</span> {
  9470. }, <span class="hljs-symbol">headers:</span> headers
  9471. p JSON.parse(result)
  9472. </code></pre>
  9473. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9474. headers = {
  9475. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9476. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9477. }
  9478. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9479. <span class="hljs-built_in">print</span>(r.json())
  9480. </code></pre>
  9481. <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>);
  9482. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9483. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9484. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9485. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9486. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9487. String inputLine;
  9488. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9489. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9490. response.append(inputLine);
  9491. }
  9492. in.close();
  9493. System.out.println(response.toString());
  9494. </code></pre>
  9495. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9496. <span class="hljs-keyword">import</span> (
  9497. <span class="hljs-string">&quot;bytes&quot;</span>
  9498. <span class="hljs-string">&quot;net/http&quot;</span>
  9499. )
  9500. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9501. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9502. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9503. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9504. }
  9505. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9506. 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)
  9507. req.Header = headers
  9508. client := &amp;http.Client{}
  9509. resp, err := client.Do(req)
  9510. <span class="hljs-comment">// ...</span>
  9511. }
  9512. </code></pre>
  9513. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9514. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9515. );
  9516. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9517. <span class="hljs-comment">// Define array of request body.</span>
  9518. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9519. <span class="hljs-keyword">try</span> {
  9520. <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>(
  9521. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9522. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9523. )
  9524. );
  9525. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9526. }
  9527. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9528. <span class="hljs-comment">// handle exception or api errors.</span>
  9529. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9530. }
  9531. <span class="hljs-comment">// ...</span>
  9532. </code></pre>
  9533. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9534. <p><em>Get a Custom Fields attached to a board</em></p>
  9535. <h3 id="get_custom_field-parameters">Parameters</h3>
  9536. <table>
  9537. <thead>
  9538. <tr>
  9539. <th>Name</th>
  9540. <th>In</th>
  9541. <th>Type</th>
  9542. <th>Required</th>
  9543. <th>Description</th>
  9544. </tr>
  9545. </thead>
  9546. <tbody>
  9547. <tr>
  9548. <td>board</td>
  9549. <td>path</td>
  9550. <td>string</td>
  9551. <td>true</td>
  9552. <td>the board value</td>
  9553. </tr>
  9554. <tr>
  9555. <td>customField</td>
  9556. <td>path</td>
  9557. <td>string</td>
  9558. <td>true</td>
  9559. <td>the ID of the custom field</td>
  9560. </tr>
  9561. </tbody>
  9562. </table>
  9563. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9564. <p><strong>customField</strong>: the ID of the custom field</p>
  9565. <blockquote>
  9566. <p>Example responses</p>
  9567. </blockquote>
  9568. <blockquote>
  9569. <p>200 Response</p>
  9570. </blockquote>
  9571. <pre class="highlight tab tab-json"><code>[
  9572. {
  9573. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9574. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9575. }
  9576. ]
  9577. </code></pre>
  9578. <h3 id="get_custom_field-responses">Responses</h3>
  9579. <table>
  9580. <thead>
  9581. <tr>
  9582. <th>Status</th>
  9583. <th>Meaning</th>
  9584. <th>Description</th>
  9585. <th>Schema</th>
  9586. </tr>
  9587. </thead>
  9588. <tbody>
  9589. <tr>
  9590. <td>200</td>
  9591. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9592. <td>200 response</td>
  9593. <td>Inline</td>
  9594. </tr>
  9595. </tbody>
  9596. </table>
  9597. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  9598. <p>Status Code <strong>200</strong></p>
  9599. <table>
  9600. <thead>
  9601. <tr>
  9602. <th>Name</th>
  9603. <th>Type</th>
  9604. <th>Required</th>
  9605. <th>Restrictions</th>
  9606. <th>Description</th>
  9607. </tr>
  9608. </thead>
  9609. <tbody>
  9610. <tr>
  9611. <td>» _id</td>
  9612. <td>string</td>
  9613. <td>false</td>
  9614. <td>none</td>
  9615. <td>none</td>
  9616. </tr>
  9617. <tr>
  9618. <td>» boardIds</td>
  9619. <td>string</td>
  9620. <td>false</td>
  9621. <td>none</td>
  9622. <td>none</td>
  9623. </tr>
  9624. </tbody>
  9625. </table>
  9626. <aside class="warning">
  9627. To perform this operation, you must be authenticated by means of one of the following methods:
  9628. UserSecurity
  9629. </aside>
  9630. <h2 id="edit_custom_field">edit_custom_field</h2>
  9631. <p><a id="opIdedit_custom_field"></a></p>
  9632. <blockquote>
  9633. <p>Code samples</p>
  9634. </blockquote>
  9635. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9636. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  9637. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9638. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9639. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9640. </code></pre>
  9641. <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>
  9642. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9643. Accept: application/json
  9644. </span></code></pre>
  9645. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9646. &quot;name&quot;: &quot;string&quot;,
  9647. &quot;type&quot;: &quot;string&quot;,
  9648. &quot;settings&quot;: &quot;string&quot;,
  9649. &quot;showOnCard&quot;: true,
  9650. &quot;automaticallyOnCard&quot;: true,
  9651. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  9652. &quot;showLabelOnMiniCard&quot;: true,
  9653. &quot;showSumAtTopOfList&quot;: true
  9654. }&#x27;</span>;
  9655. <span class="hljs-keyword">const</span> headers = {
  9656. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9657. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9658. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9659. };
  9660. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9661. {
  9662. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9663. <span class="hljs-attr">body</span>: inputBody,
  9664. <span class="hljs-attr">headers</span>: headers
  9665. })
  9666. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9667. <span class="hljs-keyword">return</span> res.json();
  9668. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9669. <span class="hljs-built_in">console</span>.log(body);
  9670. });
  9671. </code></pre>
  9672. <pre class="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>);
  9673. <span class="hljs-keyword">const</span> inputBody = {
  9674. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9675. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9676. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9677. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9678. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9679. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9680. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9681. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  9682. };
  9683. <span class="hljs-keyword">const</span> headers = {
  9684. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9685. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9686. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9687. };
  9688. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9689. {
  9690. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9691. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9692. <span class="hljs-attr">headers</span>: headers
  9693. })
  9694. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9695. <span class="hljs-keyword">return</span> res.json();
  9696. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9697. <span class="hljs-built_in">console</span>.log(body);
  9698. });
  9699. </code></pre>
  9700. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9701. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9702. headers = {
  9703. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9704. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9705. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9706. }
  9707. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9708. <span class="hljs-symbol">params:</span> {
  9709. }, <span class="hljs-symbol">headers:</span> headers
  9710. p JSON.parse(result)
  9711. </code></pre>
  9712. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9713. headers = {
  9714. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9715. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9716. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9717. }
  9718. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9719. <span class="hljs-built_in">print</span>(r.json())
  9720. </code></pre>
  9721. <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>);
  9722. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9723. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  9724. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9725. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9726. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9727. String inputLine;
  9728. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9729. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9730. response.append(inputLine);
  9731. }
  9732. in.close();
  9733. System.out.println(response.toString());
  9734. </code></pre>
  9735. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9736. <span class="hljs-keyword">import</span> (
  9737. <span class="hljs-string">&quot;bytes&quot;</span>
  9738. <span class="hljs-string">&quot;net/http&quot;</span>
  9739. )
  9740. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9741. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9742. <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>},
  9743. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9744. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9745. }
  9746. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9747. 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)
  9748. req.Header = headers
  9749. client := &amp;http.Client{}
  9750. resp, err := client.Do(req)
  9751. <span class="hljs-comment">// ...</span>
  9752. }
  9753. </code></pre>
  9754. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9755. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9756. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9757. );
  9758. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9759. <span class="hljs-comment">// Define array of request body.</span>
  9760. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9761. <span class="hljs-keyword">try</span> {
  9762. <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>(
  9763. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9764. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9765. )
  9766. );
  9767. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9768. }
  9769. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9770. <span class="hljs-comment">// handle exception or api errors.</span>
  9771. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9772. }
  9773. <span class="hljs-comment">// ...</span>
  9774. </code></pre>
  9775. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  9776. <p><em>Update a Custom Field</em></p>
  9777. <blockquote>
  9778. <p>Body parameter</p>
  9779. </blockquote>
  9780. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9781. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9782. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9783. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9784. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9785. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  9786. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9787. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9788. </code></pre>
  9789. <h3 id="edit_custom_field-parameters">Parameters</h3>
  9790. <table>
  9791. <thead>
  9792. <tr>
  9793. <th>Name</th>
  9794. <th>In</th>
  9795. <th>Type</th>
  9796. <th>Required</th>
  9797. <th>Description</th>
  9798. </tr>
  9799. </thead>
  9800. <tbody>
  9801. <tr>
  9802. <td>board</td>
  9803. <td>path</td>
  9804. <td>string</td>
  9805. <td>true</td>
  9806. <td>the board value</td>
  9807. </tr>
  9808. <tr>
  9809. <td>customField</td>
  9810. <td>path</td>
  9811. <td>string</td>
  9812. <td>true</td>
  9813. <td>the customField value</td>
  9814. </tr>
  9815. <tr>
  9816. <td>body</td>
  9817. <td>body</td>
  9818. <td>object</td>
  9819. <td>true</td>
  9820. <td>none</td>
  9821. </tr>
  9822. <tr>
  9823. <td>» name</td>
  9824. <td>body</td>
  9825. <td>string</td>
  9826. <td>true</td>
  9827. <td>the name of the custom field</td>
  9828. </tr>
  9829. <tr>
  9830. <td>» type</td>
  9831. <td>body</td>
  9832. <td>string</td>
  9833. <td>true</td>
  9834. <td>the type of the custom field</td>
  9835. </tr>
  9836. <tr>
  9837. <td>» settings</td>
  9838. <td>body</td>
  9839. <td>string</td>
  9840. <td>true</td>
  9841. <td>the settings object of the custom field</td>
  9842. </tr>
  9843. <tr>
  9844. <td>» showOnCard</td>
  9845. <td>body</td>
  9846. <td>boolean</td>
  9847. <td>true</td>
  9848. <td>should we show the custom field on cards</td>
  9849. </tr>
  9850. <tr>
  9851. <td>» automaticallyOnCard</td>
  9852. <td>body</td>
  9853. <td>boolean</td>
  9854. <td>true</td>
  9855. <td>should the custom fields automatically be added on cards</td>
  9856. </tr>
  9857. <tr>
  9858. <td>» alwaysOnCard</td>
  9859. <td>body</td>
  9860. <td>string</td>
  9861. <td>true</td>
  9862. <td>the alwaysOnCard value</td>
  9863. </tr>
  9864. <tr>
  9865. <td>» showLabelOnMiniCard</td>
  9866. <td>body</td>
  9867. <td>boolean</td>
  9868. <td>true</td>
  9869. <td>should the label of the custom field be shown on minicards</td>
  9870. </tr>
  9871. <tr>
  9872. <td>» showSumAtTopOfList</td>
  9873. <td>body</td>
  9874. <td>boolean</td>
  9875. <td>true</td>
  9876. <td>should the sum of the custom fields be shown at top of list</td>
  9877. </tr>
  9878. </tbody>
  9879. </table>
  9880. <blockquote>
  9881. <p>Example responses</p>
  9882. </blockquote>
  9883. <blockquote>
  9884. <p>200 Response</p>
  9885. </blockquote>
  9886. <pre class="highlight tab tab-json"><code>{
  9887. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9888. }
  9889. </code></pre>
  9890. <h3 id="edit_custom_field-responses">Responses</h3>
  9891. <table>
  9892. <thead>
  9893. <tr>
  9894. <th>Status</th>
  9895. <th>Meaning</th>
  9896. <th>Description</th>
  9897. <th>Schema</th>
  9898. </tr>
  9899. </thead>
  9900. <tbody>
  9901. <tr>
  9902. <td>200</td>
  9903. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9904. <td>200 response</td>
  9905. <td>Inline</td>
  9906. </tr>
  9907. </tbody>
  9908. </table>
  9909. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  9910. <p>Status Code <strong>200</strong></p>
  9911. <table>
  9912. <thead>
  9913. <tr>
  9914. <th>Name</th>
  9915. <th>Type</th>
  9916. <th>Required</th>
  9917. <th>Restrictions</th>
  9918. <th>Description</th>
  9919. </tr>
  9920. </thead>
  9921. <tbody>
  9922. <tr>
  9923. <td>» _id</td>
  9924. <td>string</td>
  9925. <td>false</td>
  9926. <td>none</td>
  9927. <td>none</td>
  9928. </tr>
  9929. </tbody>
  9930. </table>
  9931. <aside class="warning">
  9932. To perform this operation, you must be authenticated by means of one of the following methods:
  9933. UserSecurity
  9934. </aside>
  9935. <h2 id="delete_custom_field">delete_custom_field</h2>
  9936. <p><a id="opIddelete_custom_field"></a></p>
  9937. <blockquote>
  9938. <p>Code samples</p>
  9939. </blockquote>
  9940. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9941. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  9942. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9943. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9944. </code></pre>
  9945. <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>
  9946. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9947. </span></code></pre>
  9948. <pre class="highlight tab tab-javascript"><code>
  9949. <span class="hljs-keyword">const</span> headers = {
  9950. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9951. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9952. };
  9953. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9954. {
  9955. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9956. <span class="hljs-attr">headers</span>: headers
  9957. })
  9958. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9959. <span class="hljs-keyword">return</span> res.json();
  9960. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9961. <span class="hljs-built_in">console</span>.log(body);
  9962. });
  9963. </code></pre>
  9964. <pre class="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>);
  9965. <span class="hljs-keyword">const</span> headers = {
  9966. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9967. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9968. };
  9969. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9970. {
  9971. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9972. <span class="hljs-attr">headers</span>: headers
  9973. })
  9974. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9975. <span class="hljs-keyword">return</span> res.json();
  9976. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9977. <span class="hljs-built_in">console</span>.log(body);
  9978. });
  9979. </code></pre>
  9980. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9981. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9982. headers = {
  9983. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9984. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9985. }
  9986. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9987. <span class="hljs-symbol">params:</span> {
  9988. }, <span class="hljs-symbol">headers:</span> headers
  9989. p JSON.parse(result)
  9990. </code></pre>
  9991. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9992. headers = {
  9993. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9994. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9995. }
  9996. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9997. <span class="hljs-built_in">print</span>(r.json())
  9998. </code></pre>
  9999. <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>);
  10000. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10001. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10002. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10003. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10004. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10005. String inputLine;
  10006. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10007. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10008. response.append(inputLine);
  10009. }
  10010. in.close();
  10011. System.out.println(response.toString());
  10012. </code></pre>
  10013. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10014. <span class="hljs-keyword">import</span> (
  10015. <span class="hljs-string">&quot;bytes&quot;</span>
  10016. <span class="hljs-string">&quot;net/http&quot;</span>
  10017. )
  10018. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10019. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10020. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10021. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10022. }
  10023. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10024. 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)
  10025. req.Header = headers
  10026. client := &amp;http.Client{}
  10027. resp, err := client.Do(req)
  10028. <span class="hljs-comment">// ...</span>
  10029. }
  10030. </code></pre>
  10031. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10032. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10033. );
  10034. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10035. <span class="hljs-comment">// Define array of request body.</span>
  10036. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10037. <span class="hljs-keyword">try</span> {
  10038. <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>(
  10039. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10040. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10041. )
  10042. );
  10043. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10044. }
  10045. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10046. <span class="hljs-comment">// handle exception or api errors.</span>
  10047. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10048. }
  10049. <span class="hljs-comment">// ...</span>
  10050. </code></pre>
  10051. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10052. <p><em>Delete a Custom Fields attached to a board</em></p>
  10053. <p>The Custom Field can't be retrieved after this operation</p>
  10054. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10055. <table>
  10056. <thead>
  10057. <tr>
  10058. <th>Name</th>
  10059. <th>In</th>
  10060. <th>Type</th>
  10061. <th>Required</th>
  10062. <th>Description</th>
  10063. </tr>
  10064. </thead>
  10065. <tbody>
  10066. <tr>
  10067. <td>board</td>
  10068. <td>path</td>
  10069. <td>string</td>
  10070. <td>true</td>
  10071. <td>the board value</td>
  10072. </tr>
  10073. <tr>
  10074. <td>customField</td>
  10075. <td>path</td>
  10076. <td>string</td>
  10077. <td>true</td>
  10078. <td>the ID of the custom field</td>
  10079. </tr>
  10080. </tbody>
  10081. </table>
  10082. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  10083. <p><strong>customField</strong>: the ID of the custom field</p>
  10084. <blockquote>
  10085. <p>Example responses</p>
  10086. </blockquote>
  10087. <blockquote>
  10088. <p>200 Response</p>
  10089. </blockquote>
  10090. <pre class="highlight tab tab-json"><code>{
  10091. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10092. }
  10093. </code></pre>
  10094. <h3 id="delete_custom_field-responses">Responses</h3>
  10095. <table>
  10096. <thead>
  10097. <tr>
  10098. <th>Status</th>
  10099. <th>Meaning</th>
  10100. <th>Description</th>
  10101. <th>Schema</th>
  10102. </tr>
  10103. </thead>
  10104. <tbody>
  10105. <tr>
  10106. <td>200</td>
  10107. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10108. <td>200 response</td>
  10109. <td>Inline</td>
  10110. </tr>
  10111. </tbody>
  10112. </table>
  10113. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10114. <p>Status Code <strong>200</strong></p>
  10115. <table>
  10116. <thead>
  10117. <tr>
  10118. <th>Name</th>
  10119. <th>Type</th>
  10120. <th>Required</th>
  10121. <th>Restrictions</th>
  10122. <th>Description</th>
  10123. </tr>
  10124. </thead>
  10125. <tbody>
  10126. <tr>
  10127. <td>» _id</td>
  10128. <td>string</td>
  10129. <td>false</td>
  10130. <td>none</td>
  10131. <td>none</td>
  10132. </tr>
  10133. </tbody>
  10134. </table>
  10135. <aside class="warning">
  10136. To perform this operation, you must be authenticated by means of one of the following methods:
  10137. UserSecurity
  10138. </aside>
  10139. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10140. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10141. <blockquote>
  10142. <p>Code samples</p>
  10143. </blockquote>
  10144. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10145. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10146. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10147. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10148. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10149. </code></pre>
  10150. <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>
  10151. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10152. Accept: application/json
  10153. </span></code></pre>
  10154. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10155. &quot;items&quot;: &quot;string&quot;
  10156. }&#x27;</span>;
  10157. <span class="hljs-keyword">const</span> headers = {
  10158. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10159. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10160. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10161. };
  10162. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10163. {
  10164. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10165. <span class="hljs-attr">body</span>: inputBody,
  10166. <span class="hljs-attr">headers</span>: headers
  10167. })
  10168. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10169. <span class="hljs-keyword">return</span> res.json();
  10170. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10171. <span class="hljs-built_in">console</span>.log(body);
  10172. });
  10173. </code></pre>
  10174. <pre class="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>);
  10175. <span class="hljs-keyword">const</span> inputBody = {
  10176. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10177. };
  10178. <span class="hljs-keyword">const</span> headers = {
  10179. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10180. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10181. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10182. };
  10183. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10184. {
  10185. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10186. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10187. <span class="hljs-attr">headers</span>: headers
  10188. })
  10189. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10190. <span class="hljs-keyword">return</span> res.json();
  10191. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10192. <span class="hljs-built_in">console</span>.log(body);
  10193. });
  10194. </code></pre>
  10195. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10196. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10197. headers = {
  10198. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10199. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10200. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10201. }
  10202. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10203. <span class="hljs-symbol">params:</span> {
  10204. }, <span class="hljs-symbol">headers:</span> headers
  10205. p JSON.parse(result)
  10206. </code></pre>
  10207. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10208. headers = {
  10209. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10210. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10211. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10212. }
  10213. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10214. <span class="hljs-built_in">print</span>(r.json())
  10215. </code></pre>
  10216. <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>);
  10217. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10218. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10219. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10220. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10221. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10222. String inputLine;
  10223. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10224. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10225. response.append(inputLine);
  10226. }
  10227. in.close();
  10228. System.out.println(response.toString());
  10229. </code></pre>
  10230. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10231. <span class="hljs-keyword">import</span> (
  10232. <span class="hljs-string">&quot;bytes&quot;</span>
  10233. <span class="hljs-string">&quot;net/http&quot;</span>
  10234. )
  10235. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10236. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10237. <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>},
  10238. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10239. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10240. }
  10241. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10242. 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)
  10243. req.Header = headers
  10244. client := &amp;http.Client{}
  10245. resp, err := client.Do(req)
  10246. <span class="hljs-comment">// ...</span>
  10247. }
  10248. </code></pre>
  10249. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10250. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10251. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10252. );
  10253. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10254. <span class="hljs-comment">// Define array of request body.</span>
  10255. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10256. <span class="hljs-keyword">try</span> {
  10257. <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>(
  10258. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10259. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10260. )
  10261. );
  10262. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10263. }
  10264. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10265. <span class="hljs-comment">// handle exception or api errors.</span>
  10266. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10267. }
  10268. <span class="hljs-comment">// ...</span>
  10269. </code></pre>
  10270. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10271. <p><em>Update a Custom Field's dropdown items</em></p>
  10272. <blockquote>
  10273. <p>Body parameter</p>
  10274. </blockquote>
  10275. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10276. </code></pre>
  10277. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10278. <table>
  10279. <thead>
  10280. <tr>
  10281. <th>Name</th>
  10282. <th>In</th>
  10283. <th>Type</th>
  10284. <th>Required</th>
  10285. <th>Description</th>
  10286. </tr>
  10287. </thead>
  10288. <tbody>
  10289. <tr>
  10290. <td>board</td>
  10291. <td>path</td>
  10292. <td>string</td>
  10293. <td>true</td>
  10294. <td>the board value</td>
  10295. </tr>
  10296. <tr>
  10297. <td>customField</td>
  10298. <td>path</td>
  10299. <td>string</td>
  10300. <td>true</td>
  10301. <td>the customField value</td>
  10302. </tr>
  10303. <tr>
  10304. <td>body</td>
  10305. <td>body</td>
  10306. <td>object</td>
  10307. <td>false</td>
  10308. <td>none</td>
  10309. </tr>
  10310. <tr>
  10311. <td>» items</td>
  10312. <td>body</td>
  10313. <td>string</td>
  10314. <td>false</td>
  10315. <td>names of the custom field</td>
  10316. </tr>
  10317. </tbody>
  10318. </table>
  10319. <blockquote>
  10320. <p>Example responses</p>
  10321. </blockquote>
  10322. <blockquote>
  10323. <p>200 Response</p>
  10324. </blockquote>
  10325. <pre class="highlight tab tab-json"><code>{
  10326. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10327. }
  10328. </code></pre>
  10329. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10330. <table>
  10331. <thead>
  10332. <tr>
  10333. <th>Status</th>
  10334. <th>Meaning</th>
  10335. <th>Description</th>
  10336. <th>Schema</th>
  10337. </tr>
  10338. </thead>
  10339. <tbody>
  10340. <tr>
  10341. <td>200</td>
  10342. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10343. <td>200 response</td>
  10344. <td>Inline</td>
  10345. </tr>
  10346. </tbody>
  10347. </table>
  10348. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10349. <p>Status Code <strong>200</strong></p>
  10350. <table>
  10351. <thead>
  10352. <tr>
  10353. <th>Name</th>
  10354. <th>Type</th>
  10355. <th>Required</th>
  10356. <th>Restrictions</th>
  10357. <th>Description</th>
  10358. </tr>
  10359. </thead>
  10360. <tbody>
  10361. <tr>
  10362. <td>» _id</td>
  10363. <td>string</td>
  10364. <td>false</td>
  10365. <td>none</td>
  10366. <td>none</td>
  10367. </tr>
  10368. </tbody>
  10369. </table>
  10370. <aside class="warning">
  10371. To perform this operation, you must be authenticated by means of one of the following methods:
  10372. UserSecurity
  10373. </aside>
  10374. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10375. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10376. <blockquote>
  10377. <p>Code samples</p>
  10378. </blockquote>
  10379. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10380. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10381. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10382. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10383. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10384. </code></pre>
  10385. <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>
  10386. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10387. Accept: application/json
  10388. </span></code></pre>
  10389. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10390. &quot;name&quot;: &quot;string&quot;
  10391. }&#x27;</span>;
  10392. <span class="hljs-keyword">const</span> headers = {
  10393. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10394. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10395. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10396. };
  10397. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10398. {
  10399. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10400. <span class="hljs-attr">body</span>: inputBody,
  10401. <span class="hljs-attr">headers</span>: headers
  10402. })
  10403. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10404. <span class="hljs-keyword">return</span> res.json();
  10405. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10406. <span class="hljs-built_in">console</span>.log(body);
  10407. });
  10408. </code></pre>
  10409. <pre class="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>);
  10410. <span class="hljs-keyword">const</span> inputBody = {
  10411. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10412. };
  10413. <span class="hljs-keyword">const</span> headers = {
  10414. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10415. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10416. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10417. };
  10418. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10419. {
  10420. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10421. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10422. <span class="hljs-attr">headers</span>: headers
  10423. })
  10424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10425. <span class="hljs-keyword">return</span> res.json();
  10426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10427. <span class="hljs-built_in">console</span>.log(body);
  10428. });
  10429. </code></pre>
  10430. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10431. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10432. headers = {
  10433. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10434. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10435. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10436. }
  10437. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10438. <span class="hljs-symbol">params:</span> {
  10439. }, <span class="hljs-symbol">headers:</span> headers
  10440. p JSON.parse(result)
  10441. </code></pre>
  10442. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10443. headers = {
  10444. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10445. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10446. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10447. }
  10448. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10449. <span class="hljs-built_in">print</span>(r.json())
  10450. </code></pre>
  10451. <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>);
  10452. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10453. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10454. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10455. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10456. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10457. String inputLine;
  10458. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10459. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10460. response.append(inputLine);
  10461. }
  10462. in.close();
  10463. System.out.println(response.toString());
  10464. </code></pre>
  10465. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10466. <span class="hljs-keyword">import</span> (
  10467. <span class="hljs-string">&quot;bytes&quot;</span>
  10468. <span class="hljs-string">&quot;net/http&quot;</span>
  10469. )
  10470. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10471. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10472. <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>},
  10473. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10474. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10475. }
  10476. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10477. 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)
  10478. req.Header = headers
  10479. client := &amp;http.Client{}
  10480. resp, err := client.Do(req)
  10481. <span class="hljs-comment">// ...</span>
  10482. }
  10483. </code></pre>
  10484. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10485. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10486. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10487. );
  10488. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10489. <span class="hljs-comment">// Define array of request body.</span>
  10490. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10491. <span class="hljs-keyword">try</span> {
  10492. <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>(
  10493. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10494. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10495. )
  10496. );
  10497. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10498. }
  10499. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10500. <span class="hljs-comment">// handle exception or api errors.</span>
  10501. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10502. }
  10503. <span class="hljs-comment">// ...</span>
  10504. </code></pre>
  10505. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10506. <p><em>Update a Custom Field's dropdown item</em></p>
  10507. <blockquote>
  10508. <p>Body parameter</p>
  10509. </blockquote>
  10510. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10511. </code></pre>
  10512. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10513. <table>
  10514. <thead>
  10515. <tr>
  10516. <th>Name</th>
  10517. <th>In</th>
  10518. <th>Type</th>
  10519. <th>Required</th>
  10520. <th>Description</th>
  10521. </tr>
  10522. </thead>
  10523. <tbody>
  10524. <tr>
  10525. <td>board</td>
  10526. <td>path</td>
  10527. <td>string</td>
  10528. <td>true</td>
  10529. <td>the board value</td>
  10530. </tr>
  10531. <tr>
  10532. <td>customField</td>
  10533. <td>path</td>
  10534. <td>string</td>
  10535. <td>true</td>
  10536. <td>the customField value</td>
  10537. </tr>
  10538. <tr>
  10539. <td>dropdownItem</td>
  10540. <td>path</td>
  10541. <td>string</td>
  10542. <td>true</td>
  10543. <td>the dropdownItem value</td>
  10544. </tr>
  10545. <tr>
  10546. <td>body</td>
  10547. <td>body</td>
  10548. <td>object</td>
  10549. <td>true</td>
  10550. <td>none</td>
  10551. </tr>
  10552. <tr>
  10553. <td>» name</td>
  10554. <td>body</td>
  10555. <td>string</td>
  10556. <td>true</td>
  10557. <td>names of the custom field</td>
  10558. </tr>
  10559. </tbody>
  10560. </table>
  10561. <blockquote>
  10562. <p>Example responses</p>
  10563. </blockquote>
  10564. <blockquote>
  10565. <p>200 Response</p>
  10566. </blockquote>
  10567. <pre class="highlight tab tab-json"><code>{
  10568. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10569. }
  10570. </code></pre>
  10571. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10572. <table>
  10573. <thead>
  10574. <tr>
  10575. <th>Status</th>
  10576. <th>Meaning</th>
  10577. <th>Description</th>
  10578. <th>Schema</th>
  10579. </tr>
  10580. </thead>
  10581. <tbody>
  10582. <tr>
  10583. <td>200</td>
  10584. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10585. <td>200 response</td>
  10586. <td>Inline</td>
  10587. </tr>
  10588. </tbody>
  10589. </table>
  10590. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10591. <p>Status Code <strong>200</strong></p>
  10592. <table>
  10593. <thead>
  10594. <tr>
  10595. <th>Name</th>
  10596. <th>Type</th>
  10597. <th>Required</th>
  10598. <th>Restrictions</th>
  10599. <th>Description</th>
  10600. </tr>
  10601. </thead>
  10602. <tbody>
  10603. <tr>
  10604. <td>» _id</td>
  10605. <td>string</td>
  10606. <td>false</td>
  10607. <td>none</td>
  10608. <td>none</td>
  10609. </tr>
  10610. </tbody>
  10611. </table>
  10612. <aside class="warning">
  10613. To perform this operation, you must be authenticated by means of one of the following methods:
  10614. UserSecurity
  10615. </aside>
  10616. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  10617. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  10618. <blockquote>
  10619. <p>Code samples</p>
  10620. </blockquote>
  10621. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10622. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10623. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10624. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10625. </code></pre>
  10626. <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>
  10627. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10628. </span></code></pre>
  10629. <pre class="highlight tab tab-javascript"><code>
  10630. <span class="hljs-keyword">const</span> headers = {
  10631. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10632. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10633. };
  10634. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10635. {
  10636. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10637. <span class="hljs-attr">headers</span>: headers
  10638. })
  10639. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10640. <span class="hljs-keyword">return</span> res.json();
  10641. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10642. <span class="hljs-built_in">console</span>.log(body);
  10643. });
  10644. </code></pre>
  10645. <pre class="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>);
  10646. <span class="hljs-keyword">const</span> headers = {
  10647. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10648. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10649. };
  10650. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10651. {
  10652. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10653. <span class="hljs-attr">headers</span>: headers
  10654. })
  10655. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10656. <span class="hljs-keyword">return</span> res.json();
  10657. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10658. <span class="hljs-built_in">console</span>.log(body);
  10659. });
  10660. </code></pre>
  10661. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10662. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10663. headers = {
  10664. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10665. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10666. }
  10667. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10668. <span class="hljs-symbol">params:</span> {
  10669. }, <span class="hljs-symbol">headers:</span> headers
  10670. p JSON.parse(result)
  10671. </code></pre>
  10672. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10673. headers = {
  10674. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10675. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10676. }
  10677. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10678. <span class="hljs-built_in">print</span>(r.json())
  10679. </code></pre>
  10680. <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>);
  10681. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10682. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10683. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10684. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10685. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10686. String inputLine;
  10687. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10688. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10689. response.append(inputLine);
  10690. }
  10691. in.close();
  10692. System.out.println(response.toString());
  10693. </code></pre>
  10694. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10695. <span class="hljs-keyword">import</span> (
  10696. <span class="hljs-string">&quot;bytes&quot;</span>
  10697. <span class="hljs-string">&quot;net/http&quot;</span>
  10698. )
  10699. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10700. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10701. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10702. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10703. }
  10704. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10705. 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)
  10706. req.Header = headers
  10707. client := &amp;http.Client{}
  10708. resp, err := client.Do(req)
  10709. <span class="hljs-comment">// ...</span>
  10710. }
  10711. </code></pre>
  10712. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10713. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10714. );
  10715. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10716. <span class="hljs-comment">// Define array of request body.</span>
  10717. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10718. <span class="hljs-keyword">try</span> {
  10719. <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>(
  10720. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10721. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10722. )
  10723. );
  10724. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10725. }
  10726. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10727. <span class="hljs-comment">// handle exception or api errors.</span>
  10728. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10729. }
  10730. <span class="hljs-comment">// ...</span>
  10731. </code></pre>
  10732. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10733. <p><em>Update a Custom Field's dropdown items</em></p>
  10734. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  10735. <table>
  10736. <thead>
  10737. <tr>
  10738. <th>Name</th>
  10739. <th>In</th>
  10740. <th>Type</th>
  10741. <th>Required</th>
  10742. <th>Description</th>
  10743. </tr>
  10744. </thead>
  10745. <tbody>
  10746. <tr>
  10747. <td>board</td>
  10748. <td>path</td>
  10749. <td>string</td>
  10750. <td>true</td>
  10751. <td>the board value</td>
  10752. </tr>
  10753. <tr>
  10754. <td>customField</td>
  10755. <td>path</td>
  10756. <td>string</td>
  10757. <td>true</td>
  10758. <td>the customField value</td>
  10759. </tr>
  10760. <tr>
  10761. <td>dropdownItem</td>
  10762. <td>path</td>
  10763. <td>string</td>
  10764. <td>true</td>
  10765. <td>the dropdownItem value</td>
  10766. </tr>
  10767. </tbody>
  10768. </table>
  10769. <blockquote>
  10770. <p>Example responses</p>
  10771. </blockquote>
  10772. <blockquote>
  10773. <p>200 Response</p>
  10774. </blockquote>
  10775. <pre class="highlight tab tab-json"><code>{
  10776. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10777. }
  10778. </code></pre>
  10779. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  10780. <table>
  10781. <thead>
  10782. <tr>
  10783. <th>Status</th>
  10784. <th>Meaning</th>
  10785. <th>Description</th>
  10786. <th>Schema</th>
  10787. </tr>
  10788. </thead>
  10789. <tbody>
  10790. <tr>
  10791. <td>200</td>
  10792. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10793. <td>200 response</td>
  10794. <td>Inline</td>
  10795. </tr>
  10796. </tbody>
  10797. </table>
  10798. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10799. <p>Status Code <strong>200</strong></p>
  10800. <table>
  10801. <thead>
  10802. <tr>
  10803. <th>Name</th>
  10804. <th>Type</th>
  10805. <th>Required</th>
  10806. <th>Restrictions</th>
  10807. <th>Description</th>
  10808. </tr>
  10809. </thead>
  10810. <tbody>
  10811. <tr>
  10812. <td>» _id</td>
  10813. <td>string</td>
  10814. <td>false</td>
  10815. <td>none</td>
  10816. <td>none</td>
  10817. </tr>
  10818. </tbody>
  10819. </table>
  10820. <aside class="warning">
  10821. To perform this operation, you must be authenticated by means of one of the following methods:
  10822. UserSecurity
  10823. </aside>
  10824. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  10825. <h2 id="get_all_integrations">get_all_integrations</h2>
  10826. <p><a id="opIdget_all_integrations"></a></p>
  10827. <blockquote>
  10828. <p>Code samples</p>
  10829. </blockquote>
  10830. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10831. curl -X GET /api/boards/{board}/integrations \
  10832. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10833. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10834. </code></pre>
  10835. <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>
  10836. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10837. </span></code></pre>
  10838. <pre class="highlight tab tab-javascript"><code>
  10839. <span class="hljs-keyword">const</span> headers = {
  10840. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10841. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10842. };
  10843. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10844. {
  10845. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10846. <span class="hljs-attr">headers</span>: headers
  10847. })
  10848. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10849. <span class="hljs-keyword">return</span> res.json();
  10850. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10851. <span class="hljs-built_in">console</span>.log(body);
  10852. });
  10853. </code></pre>
  10854. <pre class="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>);
  10855. <span class="hljs-keyword">const</span> headers = {
  10856. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10857. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10858. };
  10859. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10860. {
  10861. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10862. <span class="hljs-attr">headers</span>: headers
  10863. })
  10864. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10865. <span class="hljs-keyword">return</span> res.json();
  10866. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10867. <span class="hljs-built_in">console</span>.log(body);
  10868. });
  10869. </code></pre>
  10870. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10871. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10872. headers = {
  10873. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10874. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10875. }
  10876. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10877. <span class="hljs-symbol">params:</span> {
  10878. }, <span class="hljs-symbol">headers:</span> headers
  10879. p JSON.parse(result)
  10880. </code></pre>
  10881. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10882. headers = {
  10883. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10884. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10885. }
  10886. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  10887. <span class="hljs-built_in">print</span>(r.json())
  10888. </code></pre>
  10889. <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>);
  10890. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10891. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10892. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10893. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10894. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10895. String inputLine;
  10896. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10897. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10898. response.append(inputLine);
  10899. }
  10900. in.close();
  10901. System.out.println(response.toString());
  10902. </code></pre>
  10903. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10904. <span class="hljs-keyword">import</span> (
  10905. <span class="hljs-string">&quot;bytes&quot;</span>
  10906. <span class="hljs-string">&quot;net/http&quot;</span>
  10907. )
  10908. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10909. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10910. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10911. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10912. }
  10913. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10914. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  10915. req.Header = headers
  10916. client := &amp;http.Client{}
  10917. resp, err := client.Do(req)
  10918. <span class="hljs-comment">// ...</span>
  10919. }
  10920. </code></pre>
  10921. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10922. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10923. );
  10924. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10925. <span class="hljs-comment">// Define array of request body.</span>
  10926. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10927. <span class="hljs-keyword">try</span> {
  10928. <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>(
  10929. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10930. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10931. )
  10932. );
  10933. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10934. }
  10935. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10936. <span class="hljs-comment">// handle exception or api errors.</span>
  10937. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10938. }
  10939. <span class="hljs-comment">// ...</span>
  10940. </code></pre>
  10941. <p><code>GET /api/boards/{board}/integrations</code></p>
  10942. <p><em>Get all integrations in board</em></p>
  10943. <h3 id="get_all_integrations-parameters">Parameters</h3>
  10944. <table>
  10945. <thead>
  10946. <tr>
  10947. <th>Name</th>
  10948. <th>In</th>
  10949. <th>Type</th>
  10950. <th>Required</th>
  10951. <th>Description</th>
  10952. </tr>
  10953. </thead>
  10954. <tbody>
  10955. <tr>
  10956. <td>board</td>
  10957. <td>path</td>
  10958. <td>string</td>
  10959. <td>true</td>
  10960. <td>the board ID</td>
  10961. </tr>
  10962. </tbody>
  10963. </table>
  10964. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  10965. <p><strong>board</strong>: the board ID</p>
  10966. <blockquote>
  10967. <p>Example responses</p>
  10968. </blockquote>
  10969. <blockquote>
  10970. <p>200 Response</p>
  10971. </blockquote>
  10972. <pre class="highlight tab tab-json"><code>[
  10973. {
  10974. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  10975. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10976. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10977. <span class="hljs-attr">&quot;activities&quot;</span>: [
  10978. <span class="hljs-string">&quot;string&quot;</span>
  10979. ],
  10980. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10981. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10982. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10983. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10984. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10985. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10986. }
  10987. ]
  10988. </code></pre>
  10989. <h3 id="get_all_integrations-responses">Responses</h3>
  10990. <table>
  10991. <thead>
  10992. <tr>
  10993. <th>Status</th>
  10994. <th>Meaning</th>
  10995. <th>Description</th>
  10996. <th>Schema</th>
  10997. </tr>
  10998. </thead>
  10999. <tbody>
  11000. <tr>
  11001. <td>200</td>
  11002. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11003. <td>200 response</td>
  11004. <td>Inline</td>
  11005. </tr>
  11006. </tbody>
  11007. </table>
  11008. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11009. <p>Status Code <strong>200</strong></p>
  11010. <table>
  11011. <thead>
  11012. <tr>
  11013. <th>Name</th>
  11014. <th>Type</th>
  11015. <th>Required</th>
  11016. <th>Restrictions</th>
  11017. <th>Description</th>
  11018. </tr>
  11019. </thead>
  11020. <tbody>
  11021. <tr>
  11022. <td><em>anonymous</em></td>
  11023. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11024. <td>false</td>
  11025. <td>none</td>
  11026. <td>[Integration with third-party applications]</td>
  11027. </tr>
  11028. <tr>
  11029. <td>» enabled</td>
  11030. <td>boolean</td>
  11031. <td>true</td>
  11032. <td>none</td>
  11033. <td>is the integration enabled?</td>
  11034. </tr>
  11035. <tr>
  11036. <td>» title</td>
  11037. <td>string¦null</td>
  11038. <td>false</td>
  11039. <td>none</td>
  11040. <td>name of the integration</td>
  11041. </tr>
  11042. <tr>
  11043. <td>» type</td>
  11044. <td>string</td>
  11045. <td>true</td>
  11046. <td>none</td>
  11047. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11048. </tr>
  11049. <tr>
  11050. <td>» activities</td>
  11051. <td>[string]</td>
  11052. <td>true</td>
  11053. <td>none</td>
  11054. <td>activities the integration gets triggered (list)</td>
  11055. </tr>
  11056. <tr>
  11057. <td>» url</td>
  11058. <td>string</td>
  11059. <td>true</td>
  11060. <td>none</td>
  11061. <td>none</td>
  11062. </tr>
  11063. <tr>
  11064. <td>» token</td>
  11065. <td>string¦null</td>
  11066. <td>false</td>
  11067. <td>none</td>
  11068. <td>token of the integration</td>
  11069. </tr>
  11070. <tr>
  11071. <td>» boardId</td>
  11072. <td>string</td>
  11073. <td>true</td>
  11074. <td>none</td>
  11075. <td>Board ID of the integration</td>
  11076. </tr>
  11077. <tr>
  11078. <td>» createdAt</td>
  11079. <td>string</td>
  11080. <td>true</td>
  11081. <td>none</td>
  11082. <td>Creation date of the integration</td>
  11083. </tr>
  11084. <tr>
  11085. <td>» modifiedAt</td>
  11086. <td>string</td>
  11087. <td>true</td>
  11088. <td>none</td>
  11089. <td>none</td>
  11090. </tr>
  11091. <tr>
  11092. <td>» userId</td>
  11093. <td>string</td>
  11094. <td>true</td>
  11095. <td>none</td>
  11096. <td>user ID who created the interation</td>
  11097. </tr>
  11098. </tbody>
  11099. </table>
  11100. <aside class="warning">
  11101. To perform this operation, you must be authenticated by means of one of the following methods:
  11102. UserSecurity
  11103. </aside>
  11104. <h2 id="new_integration">new_integration</h2>
  11105. <p><a id="opIdnew_integration"></a></p>
  11106. <blockquote>
  11107. <p>Code samples</p>
  11108. </blockquote>
  11109. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11110. curl -X POST /api/boards/{board}/integrations \
  11111. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11112. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11113. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11114. </code></pre>
  11115. <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>
  11116. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11117. Accept: application/json
  11118. </span></code></pre>
  11119. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11120. &quot;url&quot;: &quot;string&quot;
  11121. }&#x27;</span>;
  11122. <span class="hljs-keyword">const</span> headers = {
  11123. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11124. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11125. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11126. };
  11127. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11128. {
  11129. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11130. <span class="hljs-attr">body</span>: inputBody,
  11131. <span class="hljs-attr">headers</span>: headers
  11132. })
  11133. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11134. <span class="hljs-keyword">return</span> res.json();
  11135. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11136. <span class="hljs-built_in">console</span>.log(body);
  11137. });
  11138. </code></pre>
  11139. <pre class="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>);
  11140. <span class="hljs-keyword">const</span> inputBody = {
  11141. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11142. };
  11143. <span class="hljs-keyword">const</span> headers = {
  11144. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11145. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11146. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11147. };
  11148. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11149. {
  11150. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11151. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11152. <span class="hljs-attr">headers</span>: headers
  11153. })
  11154. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11155. <span class="hljs-keyword">return</span> res.json();
  11156. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11157. <span class="hljs-built_in">console</span>.log(body);
  11158. });
  11159. </code></pre>
  11160. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11161. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11162. headers = {
  11163. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11164. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11165. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11166. }
  11167. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11168. <span class="hljs-symbol">params:</span> {
  11169. }, <span class="hljs-symbol">headers:</span> headers
  11170. p JSON.parse(result)
  11171. </code></pre>
  11172. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11173. headers = {
  11174. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11175. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11176. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11177. }
  11178. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11179. <span class="hljs-built_in">print</span>(r.json())
  11180. </code></pre>
  11181. <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>);
  11182. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11183. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11184. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11185. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11186. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11187. String inputLine;
  11188. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11189. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11190. response.append(inputLine);
  11191. }
  11192. in.close();
  11193. System.out.println(response.toString());
  11194. </code></pre>
  11195. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11196. <span class="hljs-keyword">import</span> (
  11197. <span class="hljs-string">&quot;bytes&quot;</span>
  11198. <span class="hljs-string">&quot;net/http&quot;</span>
  11199. )
  11200. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11201. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11202. <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>},
  11203. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11204. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11205. }
  11206. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11207. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11208. req.Header = headers
  11209. client := &amp;http.Client{}
  11210. resp, err := client.Do(req)
  11211. <span class="hljs-comment">// ...</span>
  11212. }
  11213. </code></pre>
  11214. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11215. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11216. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11217. );
  11218. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11219. <span class="hljs-comment">// Define array of request body.</span>
  11220. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11221. <span class="hljs-keyword">try</span> {
  11222. <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>(
  11223. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11224. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11225. )
  11226. );
  11227. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11228. }
  11229. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11230. <span class="hljs-comment">// handle exception or api errors.</span>
  11231. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11232. }
  11233. <span class="hljs-comment">// ...</span>
  11234. </code></pre>
  11235. <p><code>POST /api/boards/{board}/integrations</code></p>
  11236. <p><em>Create a new integration</em></p>
  11237. <blockquote>
  11238. <p>Body parameter</p>
  11239. </blockquote>
  11240. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11241. </code></pre>
  11242. <h3 id="new_integration-parameters">Parameters</h3>
  11243. <table>
  11244. <thead>
  11245. <tr>
  11246. <th>Name</th>
  11247. <th>In</th>
  11248. <th>Type</th>
  11249. <th>Required</th>
  11250. <th>Description</th>
  11251. </tr>
  11252. </thead>
  11253. <tbody>
  11254. <tr>
  11255. <td>board</td>
  11256. <td>path</td>
  11257. <td>string</td>
  11258. <td>true</td>
  11259. <td>the board ID</td>
  11260. </tr>
  11261. <tr>
  11262. <td>body</td>
  11263. <td>body</td>
  11264. <td>object</td>
  11265. <td>true</td>
  11266. <td>none</td>
  11267. </tr>
  11268. <tr>
  11269. <td>» url</td>
  11270. <td>body</td>
  11271. <td>string</td>
  11272. <td>true</td>
  11273. <td>the URL of the integration</td>
  11274. </tr>
  11275. </tbody>
  11276. </table>
  11277. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  11278. <p><strong>board</strong>: the board ID</p>
  11279. <blockquote>
  11280. <p>Example responses</p>
  11281. </blockquote>
  11282. <blockquote>
  11283. <p>200 Response</p>
  11284. </blockquote>
  11285. <pre class="highlight tab tab-json"><code>{
  11286. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11287. }
  11288. </code></pre>
  11289. <h3 id="new_integration-responses">Responses</h3>
  11290. <table>
  11291. <thead>
  11292. <tr>
  11293. <th>Status</th>
  11294. <th>Meaning</th>
  11295. <th>Description</th>
  11296. <th>Schema</th>
  11297. </tr>
  11298. </thead>
  11299. <tbody>
  11300. <tr>
  11301. <td>200</td>
  11302. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11303. <td>200 response</td>
  11304. <td>Inline</td>
  11305. </tr>
  11306. </tbody>
  11307. </table>
  11308. <h3 id="new_integration-responseschema">Response Schema</h3>
  11309. <p>Status Code <strong>200</strong></p>
  11310. <table>
  11311. <thead>
  11312. <tr>
  11313. <th>Name</th>
  11314. <th>Type</th>
  11315. <th>Required</th>
  11316. <th>Restrictions</th>
  11317. <th>Description</th>
  11318. </tr>
  11319. </thead>
  11320. <tbody>
  11321. <tr>
  11322. <td>» _id</td>
  11323. <td>string</td>
  11324. <td>false</td>
  11325. <td>none</td>
  11326. <td>none</td>
  11327. </tr>
  11328. </tbody>
  11329. </table>
  11330. <aside class="warning">
  11331. To perform this operation, you must be authenticated by means of one of the following methods:
  11332. UserSecurity
  11333. </aside>
  11334. <h2 id="get_integration">get_integration</h2>
  11335. <p><a id="opIdget_integration"></a></p>
  11336. <blockquote>
  11337. <p>Code samples</p>
  11338. </blockquote>
  11339. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11340. curl -X GET /api/boards/{board}/integrations/{int} \
  11341. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11342. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11343. </code></pre>
  11344. <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>
  11345. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11346. </span></code></pre>
  11347. <pre class="highlight tab tab-javascript"><code>
  11348. <span class="hljs-keyword">const</span> headers = {
  11349. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11350. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11351. };
  11352. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11353. {
  11354. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11355. <span class="hljs-attr">headers</span>: headers
  11356. })
  11357. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11358. <span class="hljs-keyword">return</span> res.json();
  11359. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11360. <span class="hljs-built_in">console</span>.log(body);
  11361. });
  11362. </code></pre>
  11363. <pre class="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>);
  11364. <span class="hljs-keyword">const</span> headers = {
  11365. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11366. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11367. };
  11368. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11369. {
  11370. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11371. <span class="hljs-attr">headers</span>: headers
  11372. })
  11373. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11374. <span class="hljs-keyword">return</span> res.json();
  11375. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11376. <span class="hljs-built_in">console</span>.log(body);
  11377. });
  11378. </code></pre>
  11379. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11380. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11381. headers = {
  11382. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11383. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11384. }
  11385. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11386. <span class="hljs-symbol">params:</span> {
  11387. }, <span class="hljs-symbol">headers:</span> headers
  11388. p JSON.parse(result)
  11389. </code></pre>
  11390. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11391. headers = {
  11392. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11393. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11394. }
  11395. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11396. <span class="hljs-built_in">print</span>(r.json())
  11397. </code></pre>
  11398. <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>);
  11399. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11400. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11401. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11402. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11403. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11404. String inputLine;
  11405. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11406. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11407. response.append(inputLine);
  11408. }
  11409. in.close();
  11410. System.out.println(response.toString());
  11411. </code></pre>
  11412. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11413. <span class="hljs-keyword">import</span> (
  11414. <span class="hljs-string">&quot;bytes&quot;</span>
  11415. <span class="hljs-string">&quot;net/http&quot;</span>
  11416. )
  11417. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11418. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11419. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11420. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11421. }
  11422. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11423. 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)
  11424. req.Header = headers
  11425. client := &amp;http.Client{}
  11426. resp, err := client.Do(req)
  11427. <span class="hljs-comment">// ...</span>
  11428. }
  11429. </code></pre>
  11430. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11431. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11432. );
  11433. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11434. <span class="hljs-comment">// Define array of request body.</span>
  11435. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11436. <span class="hljs-keyword">try</span> {
  11437. <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>(
  11438. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11439. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11440. )
  11441. );
  11442. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11443. }
  11444. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11445. <span class="hljs-comment">// handle exception or api errors.</span>
  11446. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11447. }
  11448. <span class="hljs-comment">// ...</span>
  11449. </code></pre>
  11450. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11451. <p><em>Get a single integration in board</em></p>
  11452. <h3 id="get_integration-parameters">Parameters</h3>
  11453. <table>
  11454. <thead>
  11455. <tr>
  11456. <th>Name</th>
  11457. <th>In</th>
  11458. <th>Type</th>
  11459. <th>Required</th>
  11460. <th>Description</th>
  11461. </tr>
  11462. </thead>
  11463. <tbody>
  11464. <tr>
  11465. <td>board</td>
  11466. <td>path</td>
  11467. <td>string</td>
  11468. <td>true</td>
  11469. <td>the board ID</td>
  11470. </tr>
  11471. <tr>
  11472. <td>int</td>
  11473. <td>path</td>
  11474. <td>string</td>
  11475. <td>true</td>
  11476. <td>the integration ID</td>
  11477. </tr>
  11478. </tbody>
  11479. </table>
  11480. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11481. <p><strong>board</strong>: the board ID</p>
  11482. <p><strong>int</strong>: the integration ID</p>
  11483. <blockquote>
  11484. <p>Example responses</p>
  11485. </blockquote>
  11486. <blockquote>
  11487. <p>200 Response</p>
  11488. </blockquote>
  11489. <pre class="highlight tab tab-json"><code>{
  11490. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11491. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11492. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11493. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11494. <span class="hljs-string">&quot;string&quot;</span>
  11495. ],
  11496. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11497. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11498. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11499. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11500. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11501. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11502. }
  11503. </code></pre>
  11504. <h3 id="get_integration-responses">Responses</h3>
  11505. <table>
  11506. <thead>
  11507. <tr>
  11508. <th>Status</th>
  11509. <th>Meaning</th>
  11510. <th>Description</th>
  11511. <th>Schema</th>
  11512. </tr>
  11513. </thead>
  11514. <tbody>
  11515. <tr>
  11516. <td>200</td>
  11517. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11518. <td>200 response</td>
  11519. <td><a href="#schemaintegrations">Integrations</a></td>
  11520. </tr>
  11521. </tbody>
  11522. </table>
  11523. <aside class="warning">
  11524. To perform this operation, you must be authenticated by means of one of the following methods:
  11525. UserSecurity
  11526. </aside>
  11527. <h2 id="edit_integration">edit_integration</h2>
  11528. <p><a id="opIdedit_integration"></a></p>
  11529. <blockquote>
  11530. <p>Code samples</p>
  11531. </blockquote>
  11532. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11533. curl -X PUT /api/boards/{board}/integrations/{int} \
  11534. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11535. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11536. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11537. </code></pre>
  11538. <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>
  11539. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11540. Accept: application/json
  11541. </span></code></pre>
  11542. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11543. &quot;enabled&quot;: &quot;string&quot;,
  11544. &quot;title&quot;: &quot;string&quot;,
  11545. &quot;url&quot;: &quot;string&quot;,
  11546. &quot;token&quot;: &quot;string&quot;,
  11547. &quot;activities&quot;: &quot;string&quot;
  11548. }&#x27;</span>;
  11549. <span class="hljs-keyword">const</span> headers = {
  11550. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11551. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11552. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11553. };
  11554. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11555. {
  11556. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11557. <span class="hljs-attr">body</span>: inputBody,
  11558. <span class="hljs-attr">headers</span>: headers
  11559. })
  11560. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11561. <span class="hljs-keyword">return</span> res.json();
  11562. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11563. <span class="hljs-built_in">console</span>.log(body);
  11564. });
  11565. </code></pre>
  11566. <pre class="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>);
  11567. <span class="hljs-keyword">const</span> inputBody = {
  11568. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11569. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11570. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11571. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11572. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11573. };
  11574. <span class="hljs-keyword">const</span> headers = {
  11575. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11576. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11577. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11578. };
  11579. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11580. {
  11581. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11582. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11583. <span class="hljs-attr">headers</span>: headers
  11584. })
  11585. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11586. <span class="hljs-keyword">return</span> res.json();
  11587. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11588. <span class="hljs-built_in">console</span>.log(body);
  11589. });
  11590. </code></pre>
  11591. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11592. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11593. headers = {
  11594. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11595. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11596. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11597. }
  11598. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11599. <span class="hljs-symbol">params:</span> {
  11600. }, <span class="hljs-symbol">headers:</span> headers
  11601. p JSON.parse(result)
  11602. </code></pre>
  11603. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11604. headers = {
  11605. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11606. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11607. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11608. }
  11609. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11610. <span class="hljs-built_in">print</span>(r.json())
  11611. </code></pre>
  11612. <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>);
  11613. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11614. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11615. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11616. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11617. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11618. String inputLine;
  11619. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11620. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11621. response.append(inputLine);
  11622. }
  11623. in.close();
  11624. System.out.println(response.toString());
  11625. </code></pre>
  11626. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11627. <span class="hljs-keyword">import</span> (
  11628. <span class="hljs-string">&quot;bytes&quot;</span>
  11629. <span class="hljs-string">&quot;net/http&quot;</span>
  11630. )
  11631. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11632. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11633. <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>},
  11634. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11635. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11636. }
  11637. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11638. 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)
  11639. req.Header = headers
  11640. client := &amp;http.Client{}
  11641. resp, err := client.Do(req)
  11642. <span class="hljs-comment">// ...</span>
  11643. }
  11644. </code></pre>
  11645. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11646. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11647. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11648. );
  11649. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11650. <span class="hljs-comment">// Define array of request body.</span>
  11651. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11652. <span class="hljs-keyword">try</span> {
  11653. <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>(
  11654. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11655. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11656. )
  11657. );
  11658. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11659. }
  11660. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11661. <span class="hljs-comment">// handle exception or api errors.</span>
  11662. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11663. }
  11664. <span class="hljs-comment">// ...</span>
  11665. </code></pre>
  11666. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  11667. <p><em>Edit integration data</em></p>
  11668. <blockquote>
  11669. <p>Body parameter</p>
  11670. </blockquote>
  11671. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  11672. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11673. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11674. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  11675. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  11676. </code></pre>
  11677. <h3 id="edit_integration-parameters">Parameters</h3>
  11678. <table>
  11679. <thead>
  11680. <tr>
  11681. <th>Name</th>
  11682. <th>In</th>
  11683. <th>Type</th>
  11684. <th>Required</th>
  11685. <th>Description</th>
  11686. </tr>
  11687. </thead>
  11688. <tbody>
  11689. <tr>
  11690. <td>board</td>
  11691. <td>path</td>
  11692. <td>string</td>
  11693. <td>true</td>
  11694. <td>the board ID</td>
  11695. </tr>
  11696. <tr>
  11697. <td>int</td>
  11698. <td>path</td>
  11699. <td>string</td>
  11700. <td>true</td>
  11701. <td>the integration ID</td>
  11702. </tr>
  11703. <tr>
  11704. <td>body</td>
  11705. <td>body</td>
  11706. <td>object</td>
  11707. <td>false</td>
  11708. <td>none</td>
  11709. </tr>
  11710. <tr>
  11711. <td>» enabled</td>
  11712. <td>body</td>
  11713. <td>string</td>
  11714. <td>false</td>
  11715. <td>is the integration enabled?</td>
  11716. </tr>
  11717. <tr>
  11718. <td>» title</td>
  11719. <td>body</td>
  11720. <td>string</td>
  11721. <td>false</td>
  11722. <td>new name of the integration</td>
  11723. </tr>
  11724. <tr>
  11725. <td>» url</td>
  11726. <td>body</td>
  11727. <td>string</td>
  11728. <td>false</td>
  11729. <td>new URL of the integration</td>
  11730. </tr>
  11731. <tr>
  11732. <td>» token</td>
  11733. <td>body</td>
  11734. <td>string</td>
  11735. <td>false</td>
  11736. <td>new token of the integration</td>
  11737. </tr>
  11738. <tr>
  11739. <td>» activities</td>
  11740. <td>body</td>
  11741. <td>string</td>
  11742. <td>false</td>
  11743. <td>new list of activities of the integration</td>
  11744. </tr>
  11745. </tbody>
  11746. </table>
  11747. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11748. <p><strong>board</strong>: the board ID</p>
  11749. <p><strong>int</strong>: the integration ID</p>
  11750. <blockquote>
  11751. <p>Example responses</p>
  11752. </blockquote>
  11753. <blockquote>
  11754. <p>200 Response</p>
  11755. </blockquote>
  11756. <pre class="highlight tab tab-json"><code>{
  11757. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11758. }
  11759. </code></pre>
  11760. <h3 id="edit_integration-responses">Responses</h3>
  11761. <table>
  11762. <thead>
  11763. <tr>
  11764. <th>Status</th>
  11765. <th>Meaning</th>
  11766. <th>Description</th>
  11767. <th>Schema</th>
  11768. </tr>
  11769. </thead>
  11770. <tbody>
  11771. <tr>
  11772. <td>200</td>
  11773. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11774. <td>200 response</td>
  11775. <td>Inline</td>
  11776. </tr>
  11777. </tbody>
  11778. </table>
  11779. <h3 id="edit_integration-responseschema">Response Schema</h3>
  11780. <p>Status Code <strong>200</strong></p>
  11781. <table>
  11782. <thead>
  11783. <tr>
  11784. <th>Name</th>
  11785. <th>Type</th>
  11786. <th>Required</th>
  11787. <th>Restrictions</th>
  11788. <th>Description</th>
  11789. </tr>
  11790. </thead>
  11791. <tbody>
  11792. <tr>
  11793. <td>» _id</td>
  11794. <td>string</td>
  11795. <td>false</td>
  11796. <td>none</td>
  11797. <td>none</td>
  11798. </tr>
  11799. </tbody>
  11800. </table>
  11801. <aside class="warning">
  11802. To perform this operation, you must be authenticated by means of one of the following methods:
  11803. UserSecurity
  11804. </aside>
  11805. <h2 id="delete_integration">delete_integration</h2>
  11806. <p><a id="opIddelete_integration"></a></p>
  11807. <blockquote>
  11808. <p>Code samples</p>
  11809. </blockquote>
  11810. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11811. curl -X DELETE /api/boards/{board}/integrations/{int} \
  11812. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11813. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11814. </code></pre>
  11815. <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>
  11816. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11817. </span></code></pre>
  11818. <pre class="highlight tab tab-javascript"><code>
  11819. <span class="hljs-keyword">const</span> headers = {
  11820. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11821. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11822. };
  11823. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11824. {
  11825. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11826. <span class="hljs-attr">headers</span>: headers
  11827. })
  11828. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11829. <span class="hljs-keyword">return</span> res.json();
  11830. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11831. <span class="hljs-built_in">console</span>.log(body);
  11832. });
  11833. </code></pre>
  11834. <pre class="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>);
  11835. <span class="hljs-keyword">const</span> headers = {
  11836. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11837. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11838. };
  11839. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11840. {
  11841. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11842. <span class="hljs-attr">headers</span>: headers
  11843. })
  11844. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11845. <span class="hljs-keyword">return</span> res.json();
  11846. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11847. <span class="hljs-built_in">console</span>.log(body);
  11848. });
  11849. </code></pre>
  11850. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11851. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11852. headers = {
  11853. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11854. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11855. }
  11856. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11857. <span class="hljs-symbol">params:</span> {
  11858. }, <span class="hljs-symbol">headers:</span> headers
  11859. p JSON.parse(result)
  11860. </code></pre>
  11861. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11862. headers = {
  11863. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11864. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11865. }
  11866. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11867. <span class="hljs-built_in">print</span>(r.json())
  11868. </code></pre>
  11869. <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>);
  11870. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11871. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11872. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11873. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11874. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11875. String inputLine;
  11876. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11877. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11878. response.append(inputLine);
  11879. }
  11880. in.close();
  11881. System.out.println(response.toString());
  11882. </code></pre>
  11883. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11884. <span class="hljs-keyword">import</span> (
  11885. <span class="hljs-string">&quot;bytes&quot;</span>
  11886. <span class="hljs-string">&quot;net/http&quot;</span>
  11887. )
  11888. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11889. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11890. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11891. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11892. }
  11893. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11894. 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)
  11895. req.Header = headers
  11896. client := &amp;http.Client{}
  11897. resp, err := client.Do(req)
  11898. <span class="hljs-comment">// ...</span>
  11899. }
  11900. </code></pre>
  11901. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11902. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11903. );
  11904. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11905. <span class="hljs-comment">// Define array of request body.</span>
  11906. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11907. <span class="hljs-keyword">try</span> {
  11908. <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>(
  11909. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11910. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11911. )
  11912. );
  11913. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11914. }
  11915. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11916. <span class="hljs-comment">// handle exception or api errors.</span>
  11917. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11918. }
  11919. <span class="hljs-comment">// ...</span>
  11920. </code></pre>
  11921. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  11922. <p><em>Delete integration</em></p>
  11923. <h3 id="delete_integration-parameters">Parameters</h3>
  11924. <table>
  11925. <thead>
  11926. <tr>
  11927. <th>Name</th>
  11928. <th>In</th>
  11929. <th>Type</th>
  11930. <th>Required</th>
  11931. <th>Description</th>
  11932. </tr>
  11933. </thead>
  11934. <tbody>
  11935. <tr>
  11936. <td>board</td>
  11937. <td>path</td>
  11938. <td>string</td>
  11939. <td>true</td>
  11940. <td>the board ID</td>
  11941. </tr>
  11942. <tr>
  11943. <td>int</td>
  11944. <td>path</td>
  11945. <td>string</td>
  11946. <td>true</td>
  11947. <td>the integration ID</td>
  11948. </tr>
  11949. </tbody>
  11950. </table>
  11951. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11952. <p><strong>board</strong>: the board ID</p>
  11953. <p><strong>int</strong>: the integration ID</p>
  11954. <blockquote>
  11955. <p>Example responses</p>
  11956. </blockquote>
  11957. <blockquote>
  11958. <p>200 Response</p>
  11959. </blockquote>
  11960. <pre class="highlight tab tab-json"><code>{
  11961. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11962. }
  11963. </code></pre>
  11964. <h3 id="delete_integration-responses">Responses</h3>
  11965. <table>
  11966. <thead>
  11967. <tr>
  11968. <th>Status</th>
  11969. <th>Meaning</th>
  11970. <th>Description</th>
  11971. <th>Schema</th>
  11972. </tr>
  11973. </thead>
  11974. <tbody>
  11975. <tr>
  11976. <td>200</td>
  11977. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11978. <td>200 response</td>
  11979. <td>Inline</td>
  11980. </tr>
  11981. </tbody>
  11982. </table>
  11983. <h3 id="delete_integration-responseschema">Response Schema</h3>
  11984. <p>Status Code <strong>200</strong></p>
  11985. <table>
  11986. <thead>
  11987. <tr>
  11988. <th>Name</th>
  11989. <th>Type</th>
  11990. <th>Required</th>
  11991. <th>Restrictions</th>
  11992. <th>Description</th>
  11993. </tr>
  11994. </thead>
  11995. <tbody>
  11996. <tr>
  11997. <td>» _id</td>
  11998. <td>string</td>
  11999. <td>false</td>
  12000. <td>none</td>
  12001. <td>none</td>
  12002. </tr>
  12003. </tbody>
  12004. </table>
  12005. <aside class="warning">
  12006. To perform this operation, you must be authenticated by means of one of the following methods:
  12007. UserSecurity
  12008. </aside>
  12009. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12010. <p><a id="opIddelete_integration_activities"></a></p>
  12011. <blockquote>
  12012. <p>Code samples</p>
  12013. </blockquote>
  12014. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12015. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12016. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12017. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12018. </code></pre>
  12019. <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>
  12020. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12021. </span></code></pre>
  12022. <pre class="highlight tab tab-javascript"><code>
  12023. <span class="hljs-keyword">const</span> headers = {
  12024. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12025. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12026. };
  12027. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12028. {
  12029. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12030. <span class="hljs-attr">headers</span>: headers
  12031. })
  12032. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12033. <span class="hljs-keyword">return</span> res.json();
  12034. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12035. <span class="hljs-built_in">console</span>.log(body);
  12036. });
  12037. </code></pre>
  12038. <pre class="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>);
  12039. <span class="hljs-keyword">const</span> headers = {
  12040. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12041. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12042. };
  12043. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12044. {
  12045. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12046. <span class="hljs-attr">headers</span>: headers
  12047. })
  12048. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12049. <span class="hljs-keyword">return</span> res.json();
  12050. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12051. <span class="hljs-built_in">console</span>.log(body);
  12052. });
  12053. </code></pre>
  12054. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12055. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12056. headers = {
  12057. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12058. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12059. }
  12060. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12061. <span class="hljs-symbol">params:</span> {
  12062. }, <span class="hljs-symbol">headers:</span> headers
  12063. p JSON.parse(result)
  12064. </code></pre>
  12065. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12066. headers = {
  12067. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12068. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12069. }
  12070. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12071. <span class="hljs-built_in">print</span>(r.json())
  12072. </code></pre>
  12073. <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>);
  12074. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12075. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12076. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12077. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12078. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12079. String inputLine;
  12080. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12081. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12082. response.append(inputLine);
  12083. }
  12084. in.close();
  12085. System.out.println(response.toString());
  12086. </code></pre>
  12087. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12088. <span class="hljs-keyword">import</span> (
  12089. <span class="hljs-string">&quot;bytes&quot;</span>
  12090. <span class="hljs-string">&quot;net/http&quot;</span>
  12091. )
  12092. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12093. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12094. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12095. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12096. }
  12097. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12098. 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)
  12099. req.Header = headers
  12100. client := &amp;http.Client{}
  12101. resp, err := client.Do(req)
  12102. <span class="hljs-comment">// ...</span>
  12103. }
  12104. </code></pre>
  12105. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12106. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12107. );
  12108. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12109. <span class="hljs-comment">// Define array of request body.</span>
  12110. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12111. <span class="hljs-keyword">try</span> {
  12112. <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>(
  12113. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12114. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12115. )
  12116. );
  12117. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12118. }
  12119. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12120. <span class="hljs-comment">// handle exception or api errors.</span>
  12121. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12122. }
  12123. <span class="hljs-comment">// ...</span>
  12124. </code></pre>
  12125. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12126. <p><em>Delete subscribed activities</em></p>
  12127. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12128. <table>
  12129. <thead>
  12130. <tr>
  12131. <th>Name</th>
  12132. <th>In</th>
  12133. <th>Type</th>
  12134. <th>Required</th>
  12135. <th>Description</th>
  12136. </tr>
  12137. </thead>
  12138. <tbody>
  12139. <tr>
  12140. <td>board</td>
  12141. <td>path</td>
  12142. <td>string</td>
  12143. <td>true</td>
  12144. <td>the board ID</td>
  12145. </tr>
  12146. <tr>
  12147. <td>int</td>
  12148. <td>path</td>
  12149. <td>string</td>
  12150. <td>true</td>
  12151. <td>the integration ID</td>
  12152. </tr>
  12153. </tbody>
  12154. </table>
  12155. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12156. <p><strong>board</strong>: the board ID</p>
  12157. <p><strong>int</strong>: the integration ID</p>
  12158. <blockquote>
  12159. <p>Example responses</p>
  12160. </blockquote>
  12161. <blockquote>
  12162. <p>200 Response</p>
  12163. </blockquote>
  12164. <pre class="highlight tab tab-json"><code>{
  12165. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12166. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12167. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12168. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12169. <span class="hljs-string">&quot;string&quot;</span>
  12170. ],
  12171. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12172. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12173. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12174. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12175. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12176. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12177. }
  12178. </code></pre>
  12179. <h3 id="delete_integration_activities-responses">Responses</h3>
  12180. <table>
  12181. <thead>
  12182. <tr>
  12183. <th>Status</th>
  12184. <th>Meaning</th>
  12185. <th>Description</th>
  12186. <th>Schema</th>
  12187. </tr>
  12188. </thead>
  12189. <tbody>
  12190. <tr>
  12191. <td>200</td>
  12192. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12193. <td>200 response</td>
  12194. <td><a href="#schemaintegrations">Integrations</a></td>
  12195. </tr>
  12196. </tbody>
  12197. </table>
  12198. <aside class="warning">
  12199. To perform this operation, you must be authenticated by means of one of the following methods:
  12200. UserSecurity
  12201. </aside>
  12202. <h2 id="new_integration_activities">new_integration_activities</h2>
  12203. <p><a id="opIdnew_integration_activities"></a></p>
  12204. <blockquote>
  12205. <p>Code samples</p>
  12206. </blockquote>
  12207. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12208. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12209. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12210. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12211. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12212. </code></pre>
  12213. <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>
  12214. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12215. Accept: application/json
  12216. </span></code></pre>
  12217. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12218. &quot;activities&quot;: &quot;string&quot;
  12219. }&#x27;</span>;
  12220. <span class="hljs-keyword">const</span> headers = {
  12221. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12222. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12223. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12224. };
  12225. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12226. {
  12227. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12228. <span class="hljs-attr">body</span>: inputBody,
  12229. <span class="hljs-attr">headers</span>: headers
  12230. })
  12231. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12232. <span class="hljs-keyword">return</span> res.json();
  12233. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12234. <span class="hljs-built_in">console</span>.log(body);
  12235. });
  12236. </code></pre>
  12237. <pre class="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>);
  12238. <span class="hljs-keyword">const</span> inputBody = {
  12239. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12240. };
  12241. <span class="hljs-keyword">const</span> headers = {
  12242. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12243. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12244. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12245. };
  12246. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12247. {
  12248. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12249. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12250. <span class="hljs-attr">headers</span>: headers
  12251. })
  12252. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12253. <span class="hljs-keyword">return</span> res.json();
  12254. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12255. <span class="hljs-built_in">console</span>.log(body);
  12256. });
  12257. </code></pre>
  12258. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12259. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12260. headers = {
  12261. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12262. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12263. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12264. }
  12265. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12266. <span class="hljs-symbol">params:</span> {
  12267. }, <span class="hljs-symbol">headers:</span> headers
  12268. p JSON.parse(result)
  12269. </code></pre>
  12270. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12271. headers = {
  12272. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12273. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12274. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12275. }
  12276. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12277. <span class="hljs-built_in">print</span>(r.json())
  12278. </code></pre>
  12279. <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>);
  12280. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12281. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12282. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12283. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12284. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12285. String inputLine;
  12286. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12287. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12288. response.append(inputLine);
  12289. }
  12290. in.close();
  12291. System.out.println(response.toString());
  12292. </code></pre>
  12293. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12294. <span class="hljs-keyword">import</span> (
  12295. <span class="hljs-string">&quot;bytes&quot;</span>
  12296. <span class="hljs-string">&quot;net/http&quot;</span>
  12297. )
  12298. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12299. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12300. <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>},
  12301. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12302. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12303. }
  12304. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12305. 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)
  12306. req.Header = headers
  12307. client := &amp;http.Client{}
  12308. resp, err := client.Do(req)
  12309. <span class="hljs-comment">// ...</span>
  12310. }
  12311. </code></pre>
  12312. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12313. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12314. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12315. );
  12316. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12317. <span class="hljs-comment">// Define array of request body.</span>
  12318. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12319. <span class="hljs-keyword">try</span> {
  12320. <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>(
  12321. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12322. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12323. )
  12324. );
  12325. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12326. }
  12327. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12328. <span class="hljs-comment">// handle exception or api errors.</span>
  12329. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12330. }
  12331. <span class="hljs-comment">// ...</span>
  12332. </code></pre>
  12333. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12334. <p><em>Add subscribed activities</em></p>
  12335. <blockquote>
  12336. <p>Body parameter</p>
  12337. </blockquote>
  12338. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12339. </code></pre>
  12340. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12341. <table>
  12342. <thead>
  12343. <tr>
  12344. <th>Name</th>
  12345. <th>In</th>
  12346. <th>Type</th>
  12347. <th>Required</th>
  12348. <th>Description</th>
  12349. </tr>
  12350. </thead>
  12351. <tbody>
  12352. <tr>
  12353. <td>board</td>
  12354. <td>path</td>
  12355. <td>string</td>
  12356. <td>true</td>
  12357. <td>the board ID</td>
  12358. </tr>
  12359. <tr>
  12360. <td>int</td>
  12361. <td>path</td>
  12362. <td>string</td>
  12363. <td>true</td>
  12364. <td>the integration ID</td>
  12365. </tr>
  12366. <tr>
  12367. <td>body</td>
  12368. <td>body</td>
  12369. <td>object</td>
  12370. <td>true</td>
  12371. <td>none</td>
  12372. </tr>
  12373. <tr>
  12374. <td>» activities</td>
  12375. <td>body</td>
  12376. <td>string</td>
  12377. <td>true</td>
  12378. <td>the activities value</td>
  12379. </tr>
  12380. </tbody>
  12381. </table>
  12382. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12383. <p><strong>board</strong>: the board ID</p>
  12384. <p><strong>int</strong>: the integration ID</p>
  12385. <blockquote>
  12386. <p>Example responses</p>
  12387. </blockquote>
  12388. <blockquote>
  12389. <p>200 Response</p>
  12390. </blockquote>
  12391. <pre class="highlight tab tab-json"><code>{
  12392. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12393. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12394. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12395. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12396. <span class="hljs-string">&quot;string&quot;</span>
  12397. ],
  12398. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12399. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12400. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12401. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12402. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12403. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12404. }
  12405. </code></pre>
  12406. <h3 id="new_integration_activities-responses">Responses</h3>
  12407. <table>
  12408. <thead>
  12409. <tr>
  12410. <th>Status</th>
  12411. <th>Meaning</th>
  12412. <th>Description</th>
  12413. <th>Schema</th>
  12414. </tr>
  12415. </thead>
  12416. <tbody>
  12417. <tr>
  12418. <td>200</td>
  12419. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12420. <td>200 response</td>
  12421. <td><a href="#schemaintegrations">Integrations</a></td>
  12422. </tr>
  12423. </tbody>
  12424. </table>
  12425. <aside class="warning">
  12426. To perform this operation, you must be authenticated by means of one of the following methods:
  12427. UserSecurity
  12428. </aside>
  12429. <h1 id="wekan-rest-api-lists">Lists</h1>
  12430. <h2 id="get_all_lists">get_all_lists</h2>
  12431. <p><a id="opIdget_all_lists"></a></p>
  12432. <blockquote>
  12433. <p>Code samples</p>
  12434. </blockquote>
  12435. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12436. curl -X GET /api/boards/{board}/lists \
  12437. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12438. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12439. </code></pre>
  12440. <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>
  12441. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12442. </span></code></pre>
  12443. <pre class="highlight tab tab-javascript"><code>
  12444. <span class="hljs-keyword">const</span> headers = {
  12445. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12446. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12447. };
  12448. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12449. {
  12450. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12451. <span class="hljs-attr">headers</span>: headers
  12452. })
  12453. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12454. <span class="hljs-keyword">return</span> res.json();
  12455. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12456. <span class="hljs-built_in">console</span>.log(body);
  12457. });
  12458. </code></pre>
  12459. <pre class="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>);
  12460. <span class="hljs-keyword">const</span> headers = {
  12461. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12462. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12463. };
  12464. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12465. {
  12466. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12467. <span class="hljs-attr">headers</span>: headers
  12468. })
  12469. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12470. <span class="hljs-keyword">return</span> res.json();
  12471. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12472. <span class="hljs-built_in">console</span>.log(body);
  12473. });
  12474. </code></pre>
  12475. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12476. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12477. headers = {
  12478. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12479. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12480. }
  12481. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12482. <span class="hljs-symbol">params:</span> {
  12483. }, <span class="hljs-symbol">headers:</span> headers
  12484. p JSON.parse(result)
  12485. </code></pre>
  12486. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12487. headers = {
  12488. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12489. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12490. }
  12491. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12492. <span class="hljs-built_in">print</span>(r.json())
  12493. </code></pre>
  12494. <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>);
  12495. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12496. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12497. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12498. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12499. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12500. String inputLine;
  12501. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12502. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12503. response.append(inputLine);
  12504. }
  12505. in.close();
  12506. System.out.println(response.toString());
  12507. </code></pre>
  12508. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12509. <span class="hljs-keyword">import</span> (
  12510. <span class="hljs-string">&quot;bytes&quot;</span>
  12511. <span class="hljs-string">&quot;net/http&quot;</span>
  12512. )
  12513. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12514. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12515. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12516. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12517. }
  12518. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12519. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12520. req.Header = headers
  12521. client := &amp;http.Client{}
  12522. resp, err := client.Do(req)
  12523. <span class="hljs-comment">// ...</span>
  12524. }
  12525. </code></pre>
  12526. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12527. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12528. );
  12529. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12530. <span class="hljs-comment">// Define array of request body.</span>
  12531. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12532. <span class="hljs-keyword">try</span> {
  12533. <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>(
  12534. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12535. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12536. )
  12537. );
  12538. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12539. }
  12540. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12541. <span class="hljs-comment">// handle exception or api errors.</span>
  12542. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12543. }
  12544. <span class="hljs-comment">// ...</span>
  12545. </code></pre>
  12546. <p><code>GET /api/boards/{board}/lists</code></p>
  12547. <p><em>Get the list of Lists attached to a board</em></p>
  12548. <h3 id="get_all_lists-parameters">Parameters</h3>
  12549. <table>
  12550. <thead>
  12551. <tr>
  12552. <th>Name</th>
  12553. <th>In</th>
  12554. <th>Type</th>
  12555. <th>Required</th>
  12556. <th>Description</th>
  12557. </tr>
  12558. </thead>
  12559. <tbody>
  12560. <tr>
  12561. <td>board</td>
  12562. <td>path</td>
  12563. <td>string</td>
  12564. <td>true</td>
  12565. <td>the board ID</td>
  12566. </tr>
  12567. </tbody>
  12568. </table>
  12569. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12570. <p><strong>board</strong>: the board ID</p>
  12571. <blockquote>
  12572. <p>Example responses</p>
  12573. </blockquote>
  12574. <blockquote>
  12575. <p>200 Response</p>
  12576. </blockquote>
  12577. <pre class="highlight tab tab-json"><code>[
  12578. {
  12579. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12580. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12581. }
  12582. ]
  12583. </code></pre>
  12584. <h3 id="get_all_lists-responses">Responses</h3>
  12585. <table>
  12586. <thead>
  12587. <tr>
  12588. <th>Status</th>
  12589. <th>Meaning</th>
  12590. <th>Description</th>
  12591. <th>Schema</th>
  12592. </tr>
  12593. </thead>
  12594. <tbody>
  12595. <tr>
  12596. <td>200</td>
  12597. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12598. <td>200 response</td>
  12599. <td>Inline</td>
  12600. </tr>
  12601. </tbody>
  12602. </table>
  12603. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12604. <p>Status Code <strong>200</strong></p>
  12605. <table>
  12606. <thead>
  12607. <tr>
  12608. <th>Name</th>
  12609. <th>Type</th>
  12610. <th>Required</th>
  12611. <th>Restrictions</th>
  12612. <th>Description</th>
  12613. </tr>
  12614. </thead>
  12615. <tbody>
  12616. <tr>
  12617. <td>» _id</td>
  12618. <td>string</td>
  12619. <td>false</td>
  12620. <td>none</td>
  12621. <td>none</td>
  12622. </tr>
  12623. <tr>
  12624. <td>» title</td>
  12625. <td>string</td>
  12626. <td>false</td>
  12627. <td>none</td>
  12628. <td>none</td>
  12629. </tr>
  12630. </tbody>
  12631. </table>
  12632. <aside class="warning">
  12633. To perform this operation, you must be authenticated by means of one of the following methods:
  12634. UserSecurity
  12635. </aside>
  12636. <h2 id="new_list">new_list</h2>
  12637. <p><a id="opIdnew_list"></a></p>
  12638. <blockquote>
  12639. <p>Code samples</p>
  12640. </blockquote>
  12641. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12642. curl -X POST /api/boards/{board}/lists \
  12643. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12644. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12645. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12646. </code></pre>
  12647. <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>
  12648. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12649. Accept: application/json
  12650. </span></code></pre>
  12651. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12652. &quot;title&quot;: &quot;string&quot;
  12653. }&#x27;</span>;
  12654. <span class="hljs-keyword">const</span> headers = {
  12655. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12656. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12657. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12658. };
  12659. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12660. {
  12661. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12662. <span class="hljs-attr">body</span>: inputBody,
  12663. <span class="hljs-attr">headers</span>: headers
  12664. })
  12665. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12666. <span class="hljs-keyword">return</span> res.json();
  12667. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12668. <span class="hljs-built_in">console</span>.log(body);
  12669. });
  12670. </code></pre>
  12671. <pre class="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>);
  12672. <span class="hljs-keyword">const</span> inputBody = {
  12673. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12674. };
  12675. <span class="hljs-keyword">const</span> headers = {
  12676. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12677. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12678. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12679. };
  12680. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12681. {
  12682. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12683. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12684. <span class="hljs-attr">headers</span>: headers
  12685. })
  12686. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12687. <span class="hljs-keyword">return</span> res.json();
  12688. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12689. <span class="hljs-built_in">console</span>.log(body);
  12690. });
  12691. </code></pre>
  12692. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12693. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12694. headers = {
  12695. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12696. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12697. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12698. }
  12699. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12700. <span class="hljs-symbol">params:</span> {
  12701. }, <span class="hljs-symbol">headers:</span> headers
  12702. p JSON.parse(result)
  12703. </code></pre>
  12704. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12705. headers = {
  12706. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12707. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12708. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12709. }
  12710. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12711. <span class="hljs-built_in">print</span>(r.json())
  12712. </code></pre>
  12713. <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>);
  12714. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12715. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12716. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12717. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12718. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12719. String inputLine;
  12720. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12721. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12722. response.append(inputLine);
  12723. }
  12724. in.close();
  12725. System.out.println(response.toString());
  12726. </code></pre>
  12727. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12728. <span class="hljs-keyword">import</span> (
  12729. <span class="hljs-string">&quot;bytes&quot;</span>
  12730. <span class="hljs-string">&quot;net/http&quot;</span>
  12731. )
  12732. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12733. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12734. <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>},
  12735. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12736. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12737. }
  12738. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12739. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12740. req.Header = headers
  12741. client := &amp;http.Client{}
  12742. resp, err := client.Do(req)
  12743. <span class="hljs-comment">// ...</span>
  12744. }
  12745. </code></pre>
  12746. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12747. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12748. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12749. );
  12750. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12751. <span class="hljs-comment">// Define array of request body.</span>
  12752. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12753. <span class="hljs-keyword">try</span> {
  12754. <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>(
  12755. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12756. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12757. )
  12758. );
  12759. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12760. }
  12761. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12762. <span class="hljs-comment">// handle exception or api errors.</span>
  12763. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12764. }
  12765. <span class="hljs-comment">// ...</span>
  12766. </code></pre>
  12767. <p><code>POST /api/boards/{board}/lists</code></p>
  12768. <p><em>Add a List to a board</em></p>
  12769. <blockquote>
  12770. <p>Body parameter</p>
  12771. </blockquote>
  12772. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12773. </code></pre>
  12774. <h3 id="new_list-parameters">Parameters</h3>
  12775. <table>
  12776. <thead>
  12777. <tr>
  12778. <th>Name</th>
  12779. <th>In</th>
  12780. <th>Type</th>
  12781. <th>Required</th>
  12782. <th>Description</th>
  12783. </tr>
  12784. </thead>
  12785. <tbody>
  12786. <tr>
  12787. <td>board</td>
  12788. <td>path</td>
  12789. <td>string</td>
  12790. <td>true</td>
  12791. <td>the board ID</td>
  12792. </tr>
  12793. <tr>
  12794. <td>body</td>
  12795. <td>body</td>
  12796. <td>object</td>
  12797. <td>true</td>
  12798. <td>none</td>
  12799. </tr>
  12800. <tr>
  12801. <td>» title</td>
  12802. <td>body</td>
  12803. <td>string</td>
  12804. <td>true</td>
  12805. <td>the title of the List</td>
  12806. </tr>
  12807. </tbody>
  12808. </table>
  12809. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12810. <p><strong>board</strong>: the board ID</p>
  12811. <blockquote>
  12812. <p>Example responses</p>
  12813. </blockquote>
  12814. <blockquote>
  12815. <p>200 Response</p>
  12816. </blockquote>
  12817. <pre class="highlight tab tab-json"><code>{
  12818. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12819. }
  12820. </code></pre>
  12821. <h3 id="new_list-responses">Responses</h3>
  12822. <table>
  12823. <thead>
  12824. <tr>
  12825. <th>Status</th>
  12826. <th>Meaning</th>
  12827. <th>Description</th>
  12828. <th>Schema</th>
  12829. </tr>
  12830. </thead>
  12831. <tbody>
  12832. <tr>
  12833. <td>200</td>
  12834. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12835. <td>200 response</td>
  12836. <td>Inline</td>
  12837. </tr>
  12838. </tbody>
  12839. </table>
  12840. <h3 id="new_list-responseschema">Response Schema</h3>
  12841. <p>Status Code <strong>200</strong></p>
  12842. <table>
  12843. <thead>
  12844. <tr>
  12845. <th>Name</th>
  12846. <th>Type</th>
  12847. <th>Required</th>
  12848. <th>Restrictions</th>
  12849. <th>Description</th>
  12850. </tr>
  12851. </thead>
  12852. <tbody>
  12853. <tr>
  12854. <td>» _id</td>
  12855. <td>string</td>
  12856. <td>false</td>
  12857. <td>none</td>
  12858. <td>none</td>
  12859. </tr>
  12860. </tbody>
  12861. </table>
  12862. <aside class="warning">
  12863. To perform this operation, you must be authenticated by means of one of the following methods:
  12864. UserSecurity
  12865. </aside>
  12866. <h2 id="get_list">get_list</h2>
  12867. <p><a id="opIdget_list"></a></p>
  12868. <blockquote>
  12869. <p>Code samples</p>
  12870. </blockquote>
  12871. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12872. curl -X GET /api/boards/{board}/lists/{list} \
  12873. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12874. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12875. </code></pre>
  12876. <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>
  12877. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12878. </span></code></pre>
  12879. <pre class="highlight tab tab-javascript"><code>
  12880. <span class="hljs-keyword">const</span> headers = {
  12881. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12882. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12883. };
  12884. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12885. {
  12886. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12887. <span class="hljs-attr">headers</span>: headers
  12888. })
  12889. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12890. <span class="hljs-keyword">return</span> res.json();
  12891. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12892. <span class="hljs-built_in">console</span>.log(body);
  12893. });
  12894. </code></pre>
  12895. <pre class="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>);
  12896. <span class="hljs-keyword">const</span> headers = {
  12897. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12898. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12899. };
  12900. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12901. {
  12902. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12903. <span class="hljs-attr">headers</span>: headers
  12904. })
  12905. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12906. <span class="hljs-keyword">return</span> res.json();
  12907. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12908. <span class="hljs-built_in">console</span>.log(body);
  12909. });
  12910. </code></pre>
  12911. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12912. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12913. headers = {
  12914. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12915. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12916. }
  12917. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12918. <span class="hljs-symbol">params:</span> {
  12919. }, <span class="hljs-symbol">headers:</span> headers
  12920. p JSON.parse(result)
  12921. </code></pre>
  12922. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12923. headers = {
  12924. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12925. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12926. }
  12927. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  12928. <span class="hljs-built_in">print</span>(r.json())
  12929. </code></pre>
  12930. <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>);
  12931. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12932. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12933. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12934. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12935. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12936. String inputLine;
  12937. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12938. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12939. response.append(inputLine);
  12940. }
  12941. in.close();
  12942. System.out.println(response.toString());
  12943. </code></pre>
  12944. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12945. <span class="hljs-keyword">import</span> (
  12946. <span class="hljs-string">&quot;bytes&quot;</span>
  12947. <span class="hljs-string">&quot;net/http&quot;</span>
  12948. )
  12949. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12950. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12951. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12952. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12953. }
  12954. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12955. 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)
  12956. req.Header = headers
  12957. client := &amp;http.Client{}
  12958. resp, err := client.Do(req)
  12959. <span class="hljs-comment">// ...</span>
  12960. }
  12961. </code></pre>
  12962. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12963. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12964. );
  12965. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12966. <span class="hljs-comment">// Define array of request body.</span>
  12967. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12968. <span class="hljs-keyword">try</span> {
  12969. <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>(
  12970. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12971. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12972. )
  12973. );
  12974. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12975. }
  12976. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12977. <span class="hljs-comment">// handle exception or api errors.</span>
  12978. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12979. }
  12980. <span class="hljs-comment">// ...</span>
  12981. </code></pre>
  12982. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  12983. <p><em>Get a List attached to a board</em></p>
  12984. <h3 id="get_list-parameters">Parameters</h3>
  12985. <table>
  12986. <thead>
  12987. <tr>
  12988. <th>Name</th>
  12989. <th>In</th>
  12990. <th>Type</th>
  12991. <th>Required</th>
  12992. <th>Description</th>
  12993. </tr>
  12994. </thead>
  12995. <tbody>
  12996. <tr>
  12997. <td>board</td>
  12998. <td>path</td>
  12999. <td>string</td>
  13000. <td>true</td>
  13001. <td>the board ID</td>
  13002. </tr>
  13003. <tr>
  13004. <td>list</td>
  13005. <td>path</td>
  13006. <td>string</td>
  13007. <td>true</td>
  13008. <td>the List ID</td>
  13009. </tr>
  13010. </tbody>
  13011. </table>
  13012. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13013. <p><strong>board</strong>: the board ID</p>
  13014. <p><strong>list</strong>: the List ID</p>
  13015. <blockquote>
  13016. <p>Example responses</p>
  13017. </blockquote>
  13018. <blockquote>
  13019. <p>200 Response</p>
  13020. </blockquote>
  13021. <pre class="highlight tab tab-json"><code>{
  13022. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13023. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13024. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13025. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13026. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13027. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13028. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13029. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13030. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13031. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13032. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13033. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13034. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13035. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13036. },
  13037. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13038. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13039. }
  13040. </code></pre>
  13041. <h3 id="get_list-responses">Responses</h3>
  13042. <table>
  13043. <thead>
  13044. <tr>
  13045. <th>Status</th>
  13046. <th>Meaning</th>
  13047. <th>Description</th>
  13048. <th>Schema</th>
  13049. </tr>
  13050. </thead>
  13051. <tbody>
  13052. <tr>
  13053. <td>200</td>
  13054. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13055. <td>200 response</td>
  13056. <td><a href="#schemalists">Lists</a></td>
  13057. </tr>
  13058. </tbody>
  13059. </table>
  13060. <aside class="warning">
  13061. To perform this operation, you must be authenticated by means of one of the following methods:
  13062. UserSecurity
  13063. </aside>
  13064. <h2 id="delete_list">delete_list</h2>
  13065. <p><a id="opIddelete_list"></a></p>
  13066. <blockquote>
  13067. <p>Code samples</p>
  13068. </blockquote>
  13069. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13070. curl -X DELETE /api/boards/{board}/lists/{list} \
  13071. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13072. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13073. </code></pre>
  13074. <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>
  13075. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13076. </span></code></pre>
  13077. <pre class="highlight tab tab-javascript"><code>
  13078. <span class="hljs-keyword">const</span> headers = {
  13079. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13080. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13081. };
  13082. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13083. {
  13084. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13085. <span class="hljs-attr">headers</span>: headers
  13086. })
  13087. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13088. <span class="hljs-keyword">return</span> res.json();
  13089. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13090. <span class="hljs-built_in">console</span>.log(body);
  13091. });
  13092. </code></pre>
  13093. <pre class="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>);
  13094. <span class="hljs-keyword">const</span> headers = {
  13095. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13096. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13097. };
  13098. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13099. {
  13100. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13101. <span class="hljs-attr">headers</span>: headers
  13102. })
  13103. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13104. <span class="hljs-keyword">return</span> res.json();
  13105. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13106. <span class="hljs-built_in">console</span>.log(body);
  13107. });
  13108. </code></pre>
  13109. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13110. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13111. headers = {
  13112. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13113. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13114. }
  13115. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13116. <span class="hljs-symbol">params:</span> {
  13117. }, <span class="hljs-symbol">headers:</span> headers
  13118. p JSON.parse(result)
  13119. </code></pre>
  13120. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13121. headers = {
  13122. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13123. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13124. }
  13125. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13126. <span class="hljs-built_in">print</span>(r.json())
  13127. </code></pre>
  13128. <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>);
  13129. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13130. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13131. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13132. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13133. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13134. String inputLine;
  13135. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13136. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13137. response.append(inputLine);
  13138. }
  13139. in.close();
  13140. System.out.println(response.toString());
  13141. </code></pre>
  13142. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13143. <span class="hljs-keyword">import</span> (
  13144. <span class="hljs-string">&quot;bytes&quot;</span>
  13145. <span class="hljs-string">&quot;net/http&quot;</span>
  13146. )
  13147. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13148. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13149. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13150. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13151. }
  13152. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13153. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>, data)
  13154. req.Header = headers
  13155. client := &amp;http.Client{}
  13156. resp, err := client.Do(req)
  13157. <span class="hljs-comment">// ...</span>
  13158. }
  13159. </code></pre>
  13160. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13161. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13162. );
  13163. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13164. <span class="hljs-comment">// Define array of request body.</span>
  13165. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13166. <span class="hljs-keyword">try</span> {
  13167. <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>(
  13168. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13169. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13170. )
  13171. );
  13172. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13173. }
  13174. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13175. <span class="hljs-comment">// handle exception or api errors.</span>
  13176. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13177. }
  13178. <span class="hljs-comment">// ...</span>
  13179. </code></pre>
  13180. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13181. <p><em>Delete a List</em></p>
  13182. <p>This <strong>deletes</strong> a list from a board.
  13183. The list is not put in the recycle bin.</p>
  13184. <h3 id="delete_list-parameters">Parameters</h3>
  13185. <table>
  13186. <thead>
  13187. <tr>
  13188. <th>Name</th>
  13189. <th>In</th>
  13190. <th>Type</th>
  13191. <th>Required</th>
  13192. <th>Description</th>
  13193. </tr>
  13194. </thead>
  13195. <tbody>
  13196. <tr>
  13197. <td>board</td>
  13198. <td>path</td>
  13199. <td>string</td>
  13200. <td>true</td>
  13201. <td>the board ID</td>
  13202. </tr>
  13203. <tr>
  13204. <td>list</td>
  13205. <td>path</td>
  13206. <td>string</td>
  13207. <td>true</td>
  13208. <td>the ID of the list to remove</td>
  13209. </tr>
  13210. </tbody>
  13211. </table>
  13212. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13213. <p><strong>board</strong>: the board ID</p>
  13214. <p><strong>list</strong>: the ID of the list to remove</p>
  13215. <blockquote>
  13216. <p>Example responses</p>
  13217. </blockquote>
  13218. <blockquote>
  13219. <p>200 Response</p>
  13220. </blockquote>
  13221. <pre class="highlight tab tab-json"><code>{
  13222. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13223. }
  13224. </code></pre>
  13225. <h3 id="delete_list-responses">Responses</h3>
  13226. <table>
  13227. <thead>
  13228. <tr>
  13229. <th>Status</th>
  13230. <th>Meaning</th>
  13231. <th>Description</th>
  13232. <th>Schema</th>
  13233. </tr>
  13234. </thead>
  13235. <tbody>
  13236. <tr>
  13237. <td>200</td>
  13238. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13239. <td>200 response</td>
  13240. <td>Inline</td>
  13241. </tr>
  13242. </tbody>
  13243. </table>
  13244. <h3 id="delete_list-responseschema">Response Schema</h3>
  13245. <p>Status Code <strong>200</strong></p>
  13246. <table>
  13247. <thead>
  13248. <tr>
  13249. <th>Name</th>
  13250. <th>Type</th>
  13251. <th>Required</th>
  13252. <th>Restrictions</th>
  13253. <th>Description</th>
  13254. </tr>
  13255. </thead>
  13256. <tbody>
  13257. <tr>
  13258. <td>» _id</td>
  13259. <td>string</td>
  13260. <td>false</td>
  13261. <td>none</td>
  13262. <td>none</td>
  13263. </tr>
  13264. </tbody>
  13265. </table>
  13266. <aside class="warning">
  13267. To perform this operation, you must be authenticated by means of one of the following methods:
  13268. UserSecurity
  13269. </aside>
  13270. <h1 id="wekan-rest-api-users">Users</h1>
  13271. <h2 id="add_board_member">add_board_member</h2>
  13272. <p><a id="opIdadd_board_member"></a></p>
  13273. <blockquote>
  13274. <p>Code samples</p>
  13275. </blockquote>
  13276. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13277. curl -X POST /api/boards/{board}/members/{user}/add \
  13278. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13279. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13280. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13281. </code></pre>
  13282. <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>
  13283. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13284. Accept: application/json
  13285. </span></code></pre>
  13286. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13287. &quot;action&quot;: &quot;string&quot;,
  13288. &quot;isAdmin&quot;: true,
  13289. &quot;isNoComments&quot;: true,
  13290. &quot;isCommentOnly&quot;: true
  13291. }&#x27;</span>;
  13292. <span class="hljs-keyword">const</span> headers = {
  13293. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13294. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13295. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13296. };
  13297. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13298. {
  13299. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13300. <span class="hljs-attr">body</span>: inputBody,
  13301. <span class="hljs-attr">headers</span>: headers
  13302. })
  13303. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13304. <span class="hljs-keyword">return</span> res.json();
  13305. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13306. <span class="hljs-built_in">console</span>.log(body);
  13307. });
  13308. </code></pre>
  13309. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13310. <span class="hljs-keyword">const</span> inputBody = {
  13311. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13312. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13313. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13314. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13315. };
  13316. <span class="hljs-keyword">const</span> headers = {
  13317. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13318. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13319. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13320. };
  13321. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13322. {
  13323. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13324. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13325. <span class="hljs-attr">headers</span>: headers
  13326. })
  13327. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13328. <span class="hljs-keyword">return</span> res.json();
  13329. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13330. <span class="hljs-built_in">console</span>.log(body);
  13331. });
  13332. </code></pre>
  13333. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13334. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13335. headers = {
  13336. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13337. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13338. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13339. }
  13340. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13341. <span class="hljs-symbol">params:</span> {
  13342. }, <span class="hljs-symbol">headers:</span> headers
  13343. p JSON.parse(result)
  13344. </code></pre>
  13345. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13346. headers = {
  13347. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13348. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13349. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13350. }
  13351. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13352. <span class="hljs-built_in">print</span>(r.json())
  13353. </code></pre>
  13354. <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>);
  13355. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13356. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13357. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13358. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13359. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13360. String inputLine;
  13361. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13362. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13363. response.append(inputLine);
  13364. }
  13365. in.close();
  13366. System.out.println(response.toString());
  13367. </code></pre>
  13368. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13369. <span class="hljs-keyword">import</span> (
  13370. <span class="hljs-string">&quot;bytes&quot;</span>
  13371. <span class="hljs-string">&quot;net/http&quot;</span>
  13372. )
  13373. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13374. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13375. <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>},
  13376. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13377. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13378. }
  13379. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13380. 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)
  13381. req.Header = headers
  13382. client := &amp;http.Client{}
  13383. resp, err := client.Do(req)
  13384. <span class="hljs-comment">// ...</span>
  13385. }
  13386. </code></pre>
  13387. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13388. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13389. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13390. );
  13391. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13392. <span class="hljs-comment">// Define array of request body.</span>
  13393. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13394. <span class="hljs-keyword">try</span> {
  13395. <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>(
  13396. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13397. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13398. )
  13399. );
  13400. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13401. }
  13402. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13403. <span class="hljs-comment">// handle exception or api errors.</span>
  13404. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13405. }
  13406. <span class="hljs-comment">// ...</span>
  13407. </code></pre>
  13408. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13409. <p><em>Add New Board Member with Role</em></p>
  13410. <p>Only the admin user (the first user) can call the REST API.</p>
  13411. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13412. to later change the permissions.</p>
  13413. <blockquote>
  13414. <p>Body parameter</p>
  13415. </blockquote>
  13416. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13417. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13418. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13419. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13420. </code></pre>
  13421. <h3 id="add_board_member-parameters">Parameters</h3>
  13422. <table>
  13423. <thead>
  13424. <tr>
  13425. <th>Name</th>
  13426. <th>In</th>
  13427. <th>Type</th>
  13428. <th>Required</th>
  13429. <th>Description</th>
  13430. </tr>
  13431. </thead>
  13432. <tbody>
  13433. <tr>
  13434. <td>board</td>
  13435. <td>path</td>
  13436. <td>string</td>
  13437. <td>true</td>
  13438. <td>the board ID</td>
  13439. </tr>
  13440. <tr>
  13441. <td>user</td>
  13442. <td>path</td>
  13443. <td>string</td>
  13444. <td>true</td>
  13445. <td>the user ID</td>
  13446. </tr>
  13447. <tr>
  13448. <td>body</td>
  13449. <td>body</td>
  13450. <td>object</td>
  13451. <td>true</td>
  13452. <td>none</td>
  13453. </tr>
  13454. <tr>
  13455. <td>» action</td>
  13456. <td>body</td>
  13457. <td>string</td>
  13458. <td>true</td>
  13459. <td>the action value</td>
  13460. </tr>
  13461. <tr>
  13462. <td>» isAdmin</td>
  13463. <td>body</td>
  13464. <td>boolean</td>
  13465. <td>true</td>
  13466. <td>is the user an admin of the board</td>
  13467. </tr>
  13468. <tr>
  13469. <td>» isNoComments</td>
  13470. <td>body</td>
  13471. <td>boolean</td>
  13472. <td>true</td>
  13473. <td>disable comments</td>
  13474. </tr>
  13475. <tr>
  13476. <td>» isCommentOnly</td>
  13477. <td>body</td>
  13478. <td>boolean</td>
  13479. <td>true</td>
  13480. <td>only enable comments</td>
  13481. </tr>
  13482. </tbody>
  13483. </table>
  13484. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13485. <p><strong>board</strong>: the board ID</p>
  13486. <p><strong>user</strong>: the user ID</p>
  13487. <blockquote>
  13488. <p>Example responses</p>
  13489. </blockquote>
  13490. <blockquote>
  13491. <p>200 Response</p>
  13492. </blockquote>
  13493. <pre class="highlight tab tab-json"><code>{
  13494. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13495. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13496. }
  13497. </code></pre>
  13498. <h3 id="add_board_member-responses">Responses</h3>
  13499. <table>
  13500. <thead>
  13501. <tr>
  13502. <th>Status</th>
  13503. <th>Meaning</th>
  13504. <th>Description</th>
  13505. <th>Schema</th>
  13506. </tr>
  13507. </thead>
  13508. <tbody>
  13509. <tr>
  13510. <td>200</td>
  13511. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13512. <td>200 response</td>
  13513. <td>Inline</td>
  13514. </tr>
  13515. </tbody>
  13516. </table>
  13517. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13518. <p>Status Code <strong>200</strong></p>
  13519. <table>
  13520. <thead>
  13521. <tr>
  13522. <th>Name</th>
  13523. <th>Type</th>
  13524. <th>Required</th>
  13525. <th>Restrictions</th>
  13526. <th>Description</th>
  13527. </tr>
  13528. </thead>
  13529. <tbody>
  13530. <tr>
  13531. <td>» _id</td>
  13532. <td>string</td>
  13533. <td>false</td>
  13534. <td>none</td>
  13535. <td>none</td>
  13536. </tr>
  13537. <tr>
  13538. <td>» title</td>
  13539. <td>string</td>
  13540. <td>false</td>
  13541. <td>none</td>
  13542. <td>none</td>
  13543. </tr>
  13544. </tbody>
  13545. </table>
  13546. <aside class="warning">
  13547. To perform this operation, you must be authenticated by means of one of the following methods:
  13548. UserSecurity
  13549. </aside>
  13550. <h2 id="remove_board_member">remove_board_member</h2>
  13551. <p><a id="opIdremove_board_member"></a></p>
  13552. <blockquote>
  13553. <p>Code samples</p>
  13554. </blockquote>
  13555. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13556. curl -X POST /api/boards/{board}/members/{user}/remove \
  13557. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13558. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13559. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13560. </code></pre>
  13561. <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>
  13562. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13563. Accept: application/json
  13564. </span></code></pre>
  13565. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13566. &quot;action&quot;: &quot;string&quot;
  13567. }&#x27;</span>;
  13568. <span class="hljs-keyword">const</span> headers = {
  13569. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13570. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13571. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13572. };
  13573. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13574. {
  13575. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13576. <span class="hljs-attr">body</span>: inputBody,
  13577. <span class="hljs-attr">headers</span>: headers
  13578. })
  13579. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13580. <span class="hljs-keyword">return</span> res.json();
  13581. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13582. <span class="hljs-built_in">console</span>.log(body);
  13583. });
  13584. </code></pre>
  13585. <pre class="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>);
  13586. <span class="hljs-keyword">const</span> inputBody = {
  13587. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13588. };
  13589. <span class="hljs-keyword">const</span> headers = {
  13590. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13591. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13592. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13593. };
  13594. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13595. {
  13596. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13597. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13598. <span class="hljs-attr">headers</span>: headers
  13599. })
  13600. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13601. <span class="hljs-keyword">return</span> res.json();
  13602. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13603. <span class="hljs-built_in">console</span>.log(body);
  13604. });
  13605. </code></pre>
  13606. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13607. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13608. headers = {
  13609. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13610. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13611. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13612. }
  13613. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13614. <span class="hljs-symbol">params:</span> {
  13615. }, <span class="hljs-symbol">headers:</span> headers
  13616. p JSON.parse(result)
  13617. </code></pre>
  13618. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13619. headers = {
  13620. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13621. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13622. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13623. }
  13624. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  13625. <span class="hljs-built_in">print</span>(r.json())
  13626. </code></pre>
  13627. <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>);
  13628. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13629. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13630. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13631. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13632. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13633. String inputLine;
  13634. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13635. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13636. response.append(inputLine);
  13637. }
  13638. in.close();
  13639. System.out.println(response.toString());
  13640. </code></pre>
  13641. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13642. <span class="hljs-keyword">import</span> (
  13643. <span class="hljs-string">&quot;bytes&quot;</span>
  13644. <span class="hljs-string">&quot;net/http&quot;</span>
  13645. )
  13646. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13647. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13648. <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>},
  13649. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13650. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13651. }
  13652. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13653. 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)
  13654. req.Header = headers
  13655. client := &amp;http.Client{}
  13656. resp, err := client.Do(req)
  13657. <span class="hljs-comment">// ...</span>
  13658. }
  13659. </code></pre>
  13660. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13661. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13662. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13663. );
  13664. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13665. <span class="hljs-comment">// Define array of request body.</span>
  13666. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13667. <span class="hljs-keyword">try</span> {
  13668. <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>(
  13669. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13670. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13671. )
  13672. );
  13673. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13674. }
  13675. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13676. <span class="hljs-comment">// handle exception or api errors.</span>
  13677. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13678. }
  13679. <span class="hljs-comment">// ...</span>
  13680. </code></pre>
  13681. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  13682. <p><em>Remove Member from Board</em></p>
  13683. <p>Only the admin user (the first user) can call the REST API.</p>
  13684. <blockquote>
  13685. <p>Body parameter</p>
  13686. </blockquote>
  13687. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13688. </code></pre>
  13689. <h3 id="remove_board_member-parameters">Parameters</h3>
  13690. <table>
  13691. <thead>
  13692. <tr>
  13693. <th>Name</th>
  13694. <th>In</th>
  13695. <th>Type</th>
  13696. <th>Required</th>
  13697. <th>Description</th>
  13698. </tr>
  13699. </thead>
  13700. <tbody>
  13701. <tr>
  13702. <td>board</td>
  13703. <td>path</td>
  13704. <td>string</td>
  13705. <td>true</td>
  13706. <td>the board ID</td>
  13707. </tr>
  13708. <tr>
  13709. <td>user</td>
  13710. <td>path</td>
  13711. <td>string</td>
  13712. <td>true</td>
  13713. <td>the user ID</td>
  13714. </tr>
  13715. <tr>
  13716. <td>body</td>
  13717. <td>body</td>
  13718. <td>object</td>
  13719. <td>true</td>
  13720. <td>none</td>
  13721. </tr>
  13722. <tr>
  13723. <td>» action</td>
  13724. <td>body</td>
  13725. <td>string</td>
  13726. <td>true</td>
  13727. <td>the action (needs to be <code>remove</code>)</td>
  13728. </tr>
  13729. </tbody>
  13730. </table>
  13731. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13732. <p><strong>board</strong>: the board ID</p>
  13733. <p><strong>user</strong>: the user ID</p>
  13734. <blockquote>
  13735. <p>Example responses</p>
  13736. </blockquote>
  13737. <blockquote>
  13738. <p>200 Response</p>
  13739. </blockquote>
  13740. <pre class="highlight tab tab-json"><code>{
  13741. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13742. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13743. }
  13744. </code></pre>
  13745. <h3 id="remove_board_member-responses">Responses</h3>
  13746. <table>
  13747. <thead>
  13748. <tr>
  13749. <th>Status</th>
  13750. <th>Meaning</th>
  13751. <th>Description</th>
  13752. <th>Schema</th>
  13753. </tr>
  13754. </thead>
  13755. <tbody>
  13756. <tr>
  13757. <td>200</td>
  13758. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13759. <td>200 response</td>
  13760. <td>Inline</td>
  13761. </tr>
  13762. </tbody>
  13763. </table>
  13764. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  13765. <p>Status Code <strong>200</strong></p>
  13766. <table>
  13767. <thead>
  13768. <tr>
  13769. <th>Name</th>
  13770. <th>Type</th>
  13771. <th>Required</th>
  13772. <th>Restrictions</th>
  13773. <th>Description</th>
  13774. </tr>
  13775. </thead>
  13776. <tbody>
  13777. <tr>
  13778. <td>» _id</td>
  13779. <td>string</td>
  13780. <td>false</td>
  13781. <td>none</td>
  13782. <td>none</td>
  13783. </tr>
  13784. <tr>
  13785. <td>» title</td>
  13786. <td>string</td>
  13787. <td>false</td>
  13788. <td>none</td>
  13789. <td>none</td>
  13790. </tr>
  13791. </tbody>
  13792. </table>
  13793. <aside class="warning">
  13794. To perform this operation, you must be authenticated by means of one of the following methods:
  13795. UserSecurity
  13796. </aside>
  13797. <h2 id="create_user_token">create_user_token</h2>
  13798. <p><a id="opIdcreate_user_token"></a></p>
  13799. <blockquote>
  13800. <p>Code samples</p>
  13801. </blockquote>
  13802. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13803. curl -X POST /api/createtoken/{user} \
  13804. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13805. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13806. </code></pre>
  13807. <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>
  13808. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13809. </span></code></pre>
  13810. <pre class="highlight tab tab-javascript"><code>
  13811. <span class="hljs-keyword">const</span> headers = {
  13812. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13813. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13814. };
  13815. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13816. {
  13817. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13818. <span class="hljs-attr">headers</span>: headers
  13819. })
  13820. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13821. <span class="hljs-keyword">return</span> res.json();
  13822. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13823. <span class="hljs-built_in">console</span>.log(body);
  13824. });
  13825. </code></pre>
  13826. <pre class="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>);
  13827. <span class="hljs-keyword">const</span> headers = {
  13828. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13829. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13830. };
  13831. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13832. {
  13833. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13834. <span class="hljs-attr">headers</span>: headers
  13835. })
  13836. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13837. <span class="hljs-keyword">return</span> res.json();
  13838. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13839. <span class="hljs-built_in">console</span>.log(body);
  13840. });
  13841. </code></pre>
  13842. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13843. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13844. headers = {
  13845. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13846. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13847. }
  13848. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13849. <span class="hljs-symbol">params:</span> {
  13850. }, <span class="hljs-symbol">headers:</span> headers
  13851. p JSON.parse(result)
  13852. </code></pre>
  13853. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13854. headers = {
  13855. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13856. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13857. }
  13858. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  13859. <span class="hljs-built_in">print</span>(r.json())
  13860. </code></pre>
  13861. <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>);
  13862. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13863. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13864. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13865. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13866. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13867. String inputLine;
  13868. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13869. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13870. response.append(inputLine);
  13871. }
  13872. in.close();
  13873. System.out.println(response.toString());
  13874. </code></pre>
  13875. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13876. <span class="hljs-keyword">import</span> (
  13877. <span class="hljs-string">&quot;bytes&quot;</span>
  13878. <span class="hljs-string">&quot;net/http&quot;</span>
  13879. )
  13880. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13881. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13882. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13883. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13884. }
  13885. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13886. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  13887. req.Header = headers
  13888. client := &amp;http.Client{}
  13889. resp, err := client.Do(req)
  13890. <span class="hljs-comment">// ...</span>
  13891. }
  13892. </code></pre>
  13893. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13894. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13895. );
  13896. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13897. <span class="hljs-comment">// Define array of request body.</span>
  13898. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13899. <span class="hljs-keyword">try</span> {
  13900. <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>(
  13901. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13902. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13903. )
  13904. );
  13905. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13906. }
  13907. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13908. <span class="hljs-comment">// handle exception or api errors.</span>
  13909. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13910. }
  13911. <span class="hljs-comment">// ...</span>
  13912. </code></pre>
  13913. <p><code>POST /api/createtoken/{user}</code></p>
  13914. <p><em>Create a user token</em></p>
  13915. <p>Only the admin user (the first user) can call the REST API.</p>
  13916. <h3 id="create_user_token-parameters">Parameters</h3>
  13917. <table>
  13918. <thead>
  13919. <tr>
  13920. <th>Name</th>
  13921. <th>In</th>
  13922. <th>Type</th>
  13923. <th>Required</th>
  13924. <th>Description</th>
  13925. </tr>
  13926. </thead>
  13927. <tbody>
  13928. <tr>
  13929. <td>user</td>
  13930. <td>path</td>
  13931. <td>string</td>
  13932. <td>true</td>
  13933. <td>the ID of the user to create token for.</td>
  13934. </tr>
  13935. </tbody>
  13936. </table>
  13937. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13938. <p><strong>user</strong>: the ID of the user to create token for.</p>
  13939. <blockquote>
  13940. <p>Example responses</p>
  13941. </blockquote>
  13942. <blockquote>
  13943. <p>200 Response</p>
  13944. </blockquote>
  13945. <pre class="highlight tab tab-json"><code>{
  13946. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13947. }
  13948. </code></pre>
  13949. <h3 id="create_user_token-responses">Responses</h3>
  13950. <table>
  13951. <thead>
  13952. <tr>
  13953. <th>Status</th>
  13954. <th>Meaning</th>
  13955. <th>Description</th>
  13956. <th>Schema</th>
  13957. </tr>
  13958. </thead>
  13959. <tbody>
  13960. <tr>
  13961. <td>200</td>
  13962. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13963. <td>200 response</td>
  13964. <td>Inline</td>
  13965. </tr>
  13966. </tbody>
  13967. </table>
  13968. <h3 id="create_user_token-responseschema">Response Schema</h3>
  13969. <p>Status Code <strong>200</strong></p>
  13970. <table>
  13971. <thead>
  13972. <tr>
  13973. <th>Name</th>
  13974. <th>Type</th>
  13975. <th>Required</th>
  13976. <th>Restrictions</th>
  13977. <th>Description</th>
  13978. </tr>
  13979. </thead>
  13980. <tbody>
  13981. <tr>
  13982. <td>» _id</td>
  13983. <td>string</td>
  13984. <td>false</td>
  13985. <td>none</td>
  13986. <td>none</td>
  13987. </tr>
  13988. </tbody>
  13989. </table>
  13990. <aside class="warning">
  13991. To perform this operation, you must be authenticated by means of one of the following methods:
  13992. UserSecurity
  13993. </aside>
  13994. <h2 id="get_current_user">get_current_user</h2>
  13995. <p><a id="opIdget_current_user"></a></p>
  13996. <blockquote>
  13997. <p>Code samples</p>
  13998. </blockquote>
  13999. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14000. curl -X GET /api/user \
  14001. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14002. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14003. </code></pre>
  14004. <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>
  14005. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14006. </span></code></pre>
  14007. <pre class="highlight tab tab-javascript"><code>
  14008. <span class="hljs-keyword">const</span> headers = {
  14009. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14010. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14011. };
  14012. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14013. {
  14014. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14015. <span class="hljs-attr">headers</span>: headers
  14016. })
  14017. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14018. <span class="hljs-keyword">return</span> res.json();
  14019. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14020. <span class="hljs-built_in">console</span>.log(body);
  14021. });
  14022. </code></pre>
  14023. <pre class="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>);
  14024. <span class="hljs-keyword">const</span> headers = {
  14025. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14026. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14027. };
  14028. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14029. {
  14030. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14031. <span class="hljs-attr">headers</span>: headers
  14032. })
  14033. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14034. <span class="hljs-keyword">return</span> res.json();
  14035. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14036. <span class="hljs-built_in">console</span>.log(body);
  14037. });
  14038. </code></pre>
  14039. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14040. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14041. headers = {
  14042. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14043. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14044. }
  14045. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14046. <span class="hljs-symbol">params:</span> {
  14047. }, <span class="hljs-symbol">headers:</span> headers
  14048. p JSON.parse(result)
  14049. </code></pre>
  14050. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14051. headers = {
  14052. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14053. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14054. }
  14055. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14056. <span class="hljs-built_in">print</span>(r.json())
  14057. </code></pre>
  14058. <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>);
  14059. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14060. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14061. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14062. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14063. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14064. String inputLine;
  14065. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14066. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14067. response.append(inputLine);
  14068. }
  14069. in.close();
  14070. System.out.println(response.toString());
  14071. </code></pre>
  14072. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14073. <span class="hljs-keyword">import</span> (
  14074. <span class="hljs-string">&quot;bytes&quot;</span>
  14075. <span class="hljs-string">&quot;net/http&quot;</span>
  14076. )
  14077. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14078. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14079. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14080. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14081. }
  14082. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14083. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14084. req.Header = headers
  14085. client := &amp;http.Client{}
  14086. resp, err := client.Do(req)
  14087. <span class="hljs-comment">// ...</span>
  14088. }
  14089. </code></pre>
  14090. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14091. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14092. );
  14093. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14094. <span class="hljs-comment">// Define array of request body.</span>
  14095. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14096. <span class="hljs-keyword">try</span> {
  14097. <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>(
  14098. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14099. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14100. )
  14101. );
  14102. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14103. }
  14104. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14105. <span class="hljs-comment">// handle exception or api errors.</span>
  14106. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14107. }
  14108. <span class="hljs-comment">// ...</span>
  14109. </code></pre>
  14110. <p><code>GET /api/user</code></p>
  14111. <p><em>returns the current user</em></p>
  14112. <blockquote>
  14113. <p>Example responses</p>
  14114. </blockquote>
  14115. <blockquote>
  14116. <p>200 Response</p>
  14117. </blockquote>
  14118. <pre class="highlight tab tab-json"><code>{
  14119. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14120. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14121. {
  14122. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14123. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14124. }
  14125. ],
  14126. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14127. {
  14128. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14129. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14130. }
  14131. ],
  14132. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14133. {
  14134. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14135. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14136. }
  14137. ],
  14138. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14139. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14140. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14141. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14142. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14143. <span class="hljs-string">&quot;string&quot;</span>
  14144. ],
  14145. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14146. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14147. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14148. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14149. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14150. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14151. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14152. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14153. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14154. <span class="hljs-string">&quot;string&quot;</span>
  14155. ],
  14156. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14157. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14158. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14159. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14160. {
  14161. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14162. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14163. }
  14164. ],
  14165. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14166. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14167. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14168. <span class="hljs-string">&quot;string&quot;</span>
  14169. ],
  14170. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14171. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14172. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14173. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14174. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14175. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14176. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14177. },
  14178. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14179. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14180. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14181. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14182. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14183. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14184. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14185. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14186. },
  14187. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14188. <span class="hljs-string">&quot;string&quot;</span>
  14189. ]
  14190. }
  14191. </code></pre>
  14192. <h3 id="get_current_user-responses">Responses</h3>
  14193. <table>
  14194. <thead>
  14195. <tr>
  14196. <th>Status</th>
  14197. <th>Meaning</th>
  14198. <th>Description</th>
  14199. <th>Schema</th>
  14200. </tr>
  14201. </thead>
  14202. <tbody>
  14203. <tr>
  14204. <td>200</td>
  14205. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14206. <td>200 response</td>
  14207. <td><a href="#schemausers">Users</a></td>
  14208. </tr>
  14209. </tbody>
  14210. </table>
  14211. <aside class="warning">
  14212. To perform this operation, you must be authenticated by means of one of the following methods:
  14213. UserSecurity
  14214. </aside>
  14215. <h2 id="get_all_users">get_all_users</h2>
  14216. <p><a id="opIdget_all_users"></a></p>
  14217. <blockquote>
  14218. <p>Code samples</p>
  14219. </blockquote>
  14220. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14221. curl -X GET /api/users \
  14222. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14223. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14224. </code></pre>
  14225. <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>
  14226. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14227. </span></code></pre>
  14228. <pre class="highlight tab tab-javascript"><code>
  14229. <span class="hljs-keyword">const</span> headers = {
  14230. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14231. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14232. };
  14233. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14234. {
  14235. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14236. <span class="hljs-attr">headers</span>: headers
  14237. })
  14238. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14239. <span class="hljs-keyword">return</span> res.json();
  14240. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14241. <span class="hljs-built_in">console</span>.log(body);
  14242. });
  14243. </code></pre>
  14244. <pre class="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>);
  14245. <span class="hljs-keyword">const</span> headers = {
  14246. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14247. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14248. };
  14249. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14250. {
  14251. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14252. <span class="hljs-attr">headers</span>: headers
  14253. })
  14254. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14255. <span class="hljs-keyword">return</span> res.json();
  14256. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14257. <span class="hljs-built_in">console</span>.log(body);
  14258. });
  14259. </code></pre>
  14260. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14261. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14262. headers = {
  14263. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14264. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14265. }
  14266. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14267. <span class="hljs-symbol">params:</span> {
  14268. }, <span class="hljs-symbol">headers:</span> headers
  14269. p JSON.parse(result)
  14270. </code></pre>
  14271. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14272. headers = {
  14273. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14274. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14275. }
  14276. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14277. <span class="hljs-built_in">print</span>(r.json())
  14278. </code></pre>
  14279. <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>);
  14280. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14281. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14282. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14283. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14284. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14285. String inputLine;
  14286. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14287. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14288. response.append(inputLine);
  14289. }
  14290. in.close();
  14291. System.out.println(response.toString());
  14292. </code></pre>
  14293. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14294. <span class="hljs-keyword">import</span> (
  14295. <span class="hljs-string">&quot;bytes&quot;</span>
  14296. <span class="hljs-string">&quot;net/http&quot;</span>
  14297. )
  14298. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14299. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14300. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14301. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14302. }
  14303. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14304. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14305. req.Header = headers
  14306. client := &amp;http.Client{}
  14307. resp, err := client.Do(req)
  14308. <span class="hljs-comment">// ...</span>
  14309. }
  14310. </code></pre>
  14311. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14312. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14313. );
  14314. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14315. <span class="hljs-comment">// Define array of request body.</span>
  14316. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14317. <span class="hljs-keyword">try</span> {
  14318. <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>(
  14319. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14320. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14321. )
  14322. );
  14323. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14324. }
  14325. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14326. <span class="hljs-comment">// handle exception or api errors.</span>
  14327. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14328. }
  14329. <span class="hljs-comment">// ...</span>
  14330. </code></pre>
  14331. <p><code>GET /api/users</code></p>
  14332. <p><em>return all the users</em></p>
  14333. <p>Only the admin user (the first user) can call the REST API.</p>
  14334. <blockquote>
  14335. <p>Example responses</p>
  14336. </blockquote>
  14337. <blockquote>
  14338. <p>200 Response</p>
  14339. </blockquote>
  14340. <pre class="highlight tab tab-json"><code>[
  14341. {
  14342. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14343. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14344. }
  14345. ]
  14346. </code></pre>
  14347. <h3 id="get_all_users-responses">Responses</h3>
  14348. <table>
  14349. <thead>
  14350. <tr>
  14351. <th>Status</th>
  14352. <th>Meaning</th>
  14353. <th>Description</th>
  14354. <th>Schema</th>
  14355. </tr>
  14356. </thead>
  14357. <tbody>
  14358. <tr>
  14359. <td>200</td>
  14360. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14361. <td>200 response</td>
  14362. <td>Inline</td>
  14363. </tr>
  14364. </tbody>
  14365. </table>
  14366. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14367. <p>Status Code <strong>200</strong></p>
  14368. <table>
  14369. <thead>
  14370. <tr>
  14371. <th>Name</th>
  14372. <th>Type</th>
  14373. <th>Required</th>
  14374. <th>Restrictions</th>
  14375. <th>Description</th>
  14376. </tr>
  14377. </thead>
  14378. <tbody>
  14379. <tr>
  14380. <td>» _id</td>
  14381. <td>string</td>
  14382. <td>false</td>
  14383. <td>none</td>
  14384. <td>none</td>
  14385. </tr>
  14386. <tr>
  14387. <td>» username</td>
  14388. <td>string</td>
  14389. <td>false</td>
  14390. <td>none</td>
  14391. <td>none</td>
  14392. </tr>
  14393. </tbody>
  14394. </table>
  14395. <aside class="warning">
  14396. To perform this operation, you must be authenticated by means of one of the following methods:
  14397. UserSecurity
  14398. </aside>
  14399. <h2 id="new_user">new_user</h2>
  14400. <p><a id="opIdnew_user"></a></p>
  14401. <blockquote>
  14402. <p>Code samples</p>
  14403. </blockquote>
  14404. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14405. curl -X POST /api/users \
  14406. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14407. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14408. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14409. </code></pre>
  14410. <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>
  14411. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14412. Accept: application/json
  14413. </span></code></pre>
  14414. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14415. &quot;username&quot;: &quot;string&quot;,
  14416. &quot;email&quot;: &quot;string&quot;,
  14417. &quot;password&quot;: &quot;string&quot;
  14418. }&#x27;</span>;
  14419. <span class="hljs-keyword">const</span> headers = {
  14420. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14421. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14422. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14423. };
  14424. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14425. {
  14426. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14427. <span class="hljs-attr">body</span>: inputBody,
  14428. <span class="hljs-attr">headers</span>: headers
  14429. })
  14430. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14431. <span class="hljs-keyword">return</span> res.json();
  14432. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14433. <span class="hljs-built_in">console</span>.log(body);
  14434. });
  14435. </code></pre>
  14436. <pre class="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>);
  14437. <span class="hljs-keyword">const</span> inputBody = {
  14438. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14439. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14440. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14441. };
  14442. <span class="hljs-keyword">const</span> headers = {
  14443. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14444. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14445. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14446. };
  14447. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14448. {
  14449. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14450. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14451. <span class="hljs-attr">headers</span>: headers
  14452. })
  14453. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14454. <span class="hljs-keyword">return</span> res.json();
  14455. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14456. <span class="hljs-built_in">console</span>.log(body);
  14457. });
  14458. </code></pre>
  14459. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14460. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14461. headers = {
  14462. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14463. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14464. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14465. }
  14466. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14467. <span class="hljs-symbol">params:</span> {
  14468. }, <span class="hljs-symbol">headers:</span> headers
  14469. p JSON.parse(result)
  14470. </code></pre>
  14471. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14472. headers = {
  14473. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14474. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14475. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14476. }
  14477. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14478. <span class="hljs-built_in">print</span>(r.json())
  14479. </code></pre>
  14480. <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>);
  14481. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14482. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14483. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14484. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14485. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14486. String inputLine;
  14487. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14488. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14489. response.append(inputLine);
  14490. }
  14491. in.close();
  14492. System.out.println(response.toString());
  14493. </code></pre>
  14494. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14495. <span class="hljs-keyword">import</span> (
  14496. <span class="hljs-string">&quot;bytes&quot;</span>
  14497. <span class="hljs-string">&quot;net/http&quot;</span>
  14498. )
  14499. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14500. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14501. <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>},
  14502. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14503. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14504. }
  14505. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14506. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14507. req.Header = headers
  14508. client := &amp;http.Client{}
  14509. resp, err := client.Do(req)
  14510. <span class="hljs-comment">// ...</span>
  14511. }
  14512. </code></pre>
  14513. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14514. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14515. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14516. );
  14517. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14518. <span class="hljs-comment">// Define array of request body.</span>
  14519. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14520. <span class="hljs-keyword">try</span> {
  14521. <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>(
  14522. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14523. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14524. )
  14525. );
  14526. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14527. }
  14528. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14529. <span class="hljs-comment">// handle exception or api errors.</span>
  14530. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14531. }
  14532. <span class="hljs-comment">// ...</span>
  14533. </code></pre>
  14534. <p><code>POST /api/users</code></p>
  14535. <p><em>Create a new user</em></p>
  14536. <p>Only the admin user (the first user) can call the REST API.</p>
  14537. <blockquote>
  14538. <p>Body parameter</p>
  14539. </blockquote>
  14540. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14541. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14542. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14543. </code></pre>
  14544. <h3 id="new_user-parameters">Parameters</h3>
  14545. <table>
  14546. <thead>
  14547. <tr>
  14548. <th>Name</th>
  14549. <th>In</th>
  14550. <th>Type</th>
  14551. <th>Required</th>
  14552. <th>Description</th>
  14553. </tr>
  14554. </thead>
  14555. <tbody>
  14556. <tr>
  14557. <td>body</td>
  14558. <td>body</td>
  14559. <td>object</td>
  14560. <td>true</td>
  14561. <td>none</td>
  14562. </tr>
  14563. <tr>
  14564. <td>» username</td>
  14565. <td>body</td>
  14566. <td>string</td>
  14567. <td>true</td>
  14568. <td>the new username</td>
  14569. </tr>
  14570. <tr>
  14571. <td>» email</td>
  14572. <td>body</td>
  14573. <td>string</td>
  14574. <td>true</td>
  14575. <td>the email of the new user</td>
  14576. </tr>
  14577. <tr>
  14578. <td>» password</td>
  14579. <td>body</td>
  14580. <td>string</td>
  14581. <td>true</td>
  14582. <td>the password of the new user</td>
  14583. </tr>
  14584. </tbody>
  14585. </table>
  14586. <blockquote>
  14587. <p>Example responses</p>
  14588. </blockquote>
  14589. <blockquote>
  14590. <p>200 Response</p>
  14591. </blockquote>
  14592. <pre class="highlight tab tab-json"><code>{
  14593. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14594. }
  14595. </code></pre>
  14596. <h3 id="new_user-responses">Responses</h3>
  14597. <table>
  14598. <thead>
  14599. <tr>
  14600. <th>Status</th>
  14601. <th>Meaning</th>
  14602. <th>Description</th>
  14603. <th>Schema</th>
  14604. </tr>
  14605. </thead>
  14606. <tbody>
  14607. <tr>
  14608. <td>200</td>
  14609. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14610. <td>200 response</td>
  14611. <td>Inline</td>
  14612. </tr>
  14613. </tbody>
  14614. </table>
  14615. <h3 id="new_user-responseschema">Response Schema</h3>
  14616. <p>Status Code <strong>200</strong></p>
  14617. <table>
  14618. <thead>
  14619. <tr>
  14620. <th>Name</th>
  14621. <th>Type</th>
  14622. <th>Required</th>
  14623. <th>Restrictions</th>
  14624. <th>Description</th>
  14625. </tr>
  14626. </thead>
  14627. <tbody>
  14628. <tr>
  14629. <td>» _id</td>
  14630. <td>string</td>
  14631. <td>false</td>
  14632. <td>none</td>
  14633. <td>none</td>
  14634. </tr>
  14635. </tbody>
  14636. </table>
  14637. <aside class="warning">
  14638. To perform this operation, you must be authenticated by means of one of the following methods:
  14639. UserSecurity
  14640. </aside>
  14641. <h2 id="get_user">get_user</h2>
  14642. <p><a id="opIdget_user"></a></p>
  14643. <blockquote>
  14644. <p>Code samples</p>
  14645. </blockquote>
  14646. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14647. curl -X GET /api/users/{user} \
  14648. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14649. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14650. </code></pre>
  14651. <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>
  14652. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14653. </span></code></pre>
  14654. <pre class="highlight tab tab-javascript"><code>
  14655. <span class="hljs-keyword">const</span> headers = {
  14656. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14657. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14658. };
  14659. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14660. {
  14661. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14662. <span class="hljs-attr">headers</span>: headers
  14663. })
  14664. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14665. <span class="hljs-keyword">return</span> res.json();
  14666. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14667. <span class="hljs-built_in">console</span>.log(body);
  14668. });
  14669. </code></pre>
  14670. <pre class="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>);
  14671. <span class="hljs-keyword">const</span> headers = {
  14672. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14673. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14674. };
  14675. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14676. {
  14677. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14678. <span class="hljs-attr">headers</span>: headers
  14679. })
  14680. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14681. <span class="hljs-keyword">return</span> res.json();
  14682. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14683. <span class="hljs-built_in">console</span>.log(body);
  14684. });
  14685. </code></pre>
  14686. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14687. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14688. headers = {
  14689. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14690. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14691. }
  14692. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14693. <span class="hljs-symbol">params:</span> {
  14694. }, <span class="hljs-symbol">headers:</span> headers
  14695. p JSON.parse(result)
  14696. </code></pre>
  14697. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14698. headers = {
  14699. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14700. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14701. }
  14702. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14703. <span class="hljs-built_in">print</span>(r.json())
  14704. </code></pre>
  14705. <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>);
  14706. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14707. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14708. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14709. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14710. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14711. String inputLine;
  14712. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14713. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14714. response.append(inputLine);
  14715. }
  14716. in.close();
  14717. System.out.println(response.toString());
  14718. </code></pre>
  14719. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14720. <span class="hljs-keyword">import</span> (
  14721. <span class="hljs-string">&quot;bytes&quot;</span>
  14722. <span class="hljs-string">&quot;net/http&quot;</span>
  14723. )
  14724. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14725. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14726. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14727. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14728. }
  14729. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14730. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14731. req.Header = headers
  14732. client := &amp;http.Client{}
  14733. resp, err := client.Do(req)
  14734. <span class="hljs-comment">// ...</span>
  14735. }
  14736. </code></pre>
  14737. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14738. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14739. );
  14740. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14741. <span class="hljs-comment">// Define array of request body.</span>
  14742. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14743. <span class="hljs-keyword">try</span> {
  14744. <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>(
  14745. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14746. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14747. )
  14748. );
  14749. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14750. }
  14751. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14752. <span class="hljs-comment">// handle exception or api errors.</span>
  14753. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14754. }
  14755. <span class="hljs-comment">// ...</span>
  14756. </code></pre>
  14757. <p><code>GET /api/users/{user}</code></p>
  14758. <p><em>get a given user</em></p>
  14759. <p>Only the admin user (the first user) can call the REST API.</p>
  14760. <h3 id="get_user-parameters">Parameters</h3>
  14761. <table>
  14762. <thead>
  14763. <tr>
  14764. <th>Name</th>
  14765. <th>In</th>
  14766. <th>Type</th>
  14767. <th>Required</th>
  14768. <th>Description</th>
  14769. </tr>
  14770. </thead>
  14771. <tbody>
  14772. <tr>
  14773. <td>user</td>
  14774. <td>path</td>
  14775. <td>string</td>
  14776. <td>true</td>
  14777. <td>the user ID or username</td>
  14778. </tr>
  14779. </tbody>
  14780. </table>
  14781. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14782. <p><strong>user</strong>: the user ID or username</p>
  14783. <blockquote>
  14784. <p>Example responses</p>
  14785. </blockquote>
  14786. <blockquote>
  14787. <p>200 Response</p>
  14788. </blockquote>
  14789. <pre class="highlight tab tab-json"><code>{
  14790. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14791. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14792. {
  14793. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14794. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14795. }
  14796. ],
  14797. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14798. {
  14799. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14800. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14801. }
  14802. ],
  14803. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14804. {
  14805. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14806. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14807. }
  14808. ],
  14809. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14810. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14811. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14812. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14813. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14814. <span class="hljs-string">&quot;string&quot;</span>
  14815. ],
  14816. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14817. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14818. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14819. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14820. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14821. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14822. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14823. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14824. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14825. <span class="hljs-string">&quot;string&quot;</span>
  14826. ],
  14827. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14828. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14829. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14830. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14831. {
  14832. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14833. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14834. }
  14835. ],
  14836. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14837. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14838. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14839. <span class="hljs-string">&quot;string&quot;</span>
  14840. ],
  14841. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14842. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14843. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14844. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14845. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14846. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14847. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14848. },
  14849. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14850. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14851. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14852. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14853. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14854. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14855. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14856. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14857. },
  14858. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14859. <span class="hljs-string">&quot;string&quot;</span>
  14860. ]
  14861. }
  14862. </code></pre>
  14863. <h3 id="get_user-responses">Responses</h3>
  14864. <table>
  14865. <thead>
  14866. <tr>
  14867. <th>Status</th>
  14868. <th>Meaning</th>
  14869. <th>Description</th>
  14870. <th>Schema</th>
  14871. </tr>
  14872. </thead>
  14873. <tbody>
  14874. <tr>
  14875. <td>200</td>
  14876. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14877. <td>200 response</td>
  14878. <td><a href="#schemausers">Users</a></td>
  14879. </tr>
  14880. </tbody>
  14881. </table>
  14882. <aside class="warning">
  14883. To perform this operation, you must be authenticated by means of one of the following methods:
  14884. UserSecurity
  14885. </aside>
  14886. <h2 id="edit_user">edit_user</h2>
  14887. <p><a id="opIdedit_user"></a></p>
  14888. <blockquote>
  14889. <p>Code samples</p>
  14890. </blockquote>
  14891. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14892. curl -X PUT /api/users/{user} \
  14893. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14894. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14895. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14896. </code></pre>
  14897. <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>
  14898. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14899. Accept: application/json
  14900. </span></code></pre>
  14901. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14902. &quot;action&quot;: &quot;string&quot;
  14903. }&#x27;</span>;
  14904. <span class="hljs-keyword">const</span> headers = {
  14905. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14906. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14907. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14908. };
  14909. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14910. {
  14911. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14912. <span class="hljs-attr">body</span>: inputBody,
  14913. <span class="hljs-attr">headers</span>: headers
  14914. })
  14915. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14916. <span class="hljs-keyword">return</span> res.json();
  14917. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14918. <span class="hljs-built_in">console</span>.log(body);
  14919. });
  14920. </code></pre>
  14921. <pre class="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>);
  14922. <span class="hljs-keyword">const</span> inputBody = {
  14923. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14924. };
  14925. <span class="hljs-keyword">const</span> headers = {
  14926. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14927. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14928. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14929. };
  14930. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14931. {
  14932. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14933. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14934. <span class="hljs-attr">headers</span>: headers
  14935. })
  14936. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14937. <span class="hljs-keyword">return</span> res.json();
  14938. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14939. <span class="hljs-built_in">console</span>.log(body);
  14940. });
  14941. </code></pre>
  14942. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14943. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14944. headers = {
  14945. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14946. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14947. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14948. }
  14949. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14950. <span class="hljs-symbol">params:</span> {
  14951. }, <span class="hljs-symbol">headers:</span> headers
  14952. p JSON.parse(result)
  14953. </code></pre>
  14954. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14955. headers = {
  14956. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14957. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14958. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14959. }
  14960. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14961. <span class="hljs-built_in">print</span>(r.json())
  14962. </code></pre>
  14963. <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>);
  14964. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14965. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14966. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14967. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14968. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14969. String inputLine;
  14970. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14971. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14972. response.append(inputLine);
  14973. }
  14974. in.close();
  14975. System.out.println(response.toString());
  14976. </code></pre>
  14977. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14978. <span class="hljs-keyword">import</span> (
  14979. <span class="hljs-string">&quot;bytes&quot;</span>
  14980. <span class="hljs-string">&quot;net/http&quot;</span>
  14981. )
  14982. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14983. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14984. <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>},
  14985. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14986. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14987. }
  14988. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14989. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14990. req.Header = headers
  14991. client := &amp;http.Client{}
  14992. resp, err := client.Do(req)
  14993. <span class="hljs-comment">// ...</span>
  14994. }
  14995. </code></pre>
  14996. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14997. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14998. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14999. );
  15000. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15001. <span class="hljs-comment">// Define array of request body.</span>
  15002. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15003. <span class="hljs-keyword">try</span> {
  15004. <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>(
  15005. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15006. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15007. )
  15008. );
  15009. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15010. }
  15011. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15012. <span class="hljs-comment">// handle exception or api errors.</span>
  15013. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15014. }
  15015. <span class="hljs-comment">// ...</span>
  15016. </code></pre>
  15017. <p><code>PUT /api/users/{user}</code></p>
  15018. <p><em>edit a given user</em></p>
  15019. <p>Only the admin user (the first user) can call the REST API.</p>
  15020. <p>Possible values for <em>action</em>:</p>
  15021. <ul>
  15022. <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>
  15023. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  15024. <li><code>enableLogin</code>: Enable a user</li>
  15025. </ul>
  15026. <blockquote>
  15027. <p>Body parameter</p>
  15028. </blockquote>
  15029. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  15030. </code></pre>
  15031. <h3 id="edit_user-parameters">Parameters</h3>
  15032. <table>
  15033. <thead>
  15034. <tr>
  15035. <th>Name</th>
  15036. <th>In</th>
  15037. <th>Type</th>
  15038. <th>Required</th>
  15039. <th>Description</th>
  15040. </tr>
  15041. </thead>
  15042. <tbody>
  15043. <tr>
  15044. <td>user</td>
  15045. <td>path</td>
  15046. <td>string</td>
  15047. <td>true</td>
  15048. <td>the user ID</td>
  15049. </tr>
  15050. <tr>
  15051. <td>body</td>
  15052. <td>body</td>
  15053. <td>object</td>
  15054. <td>true</td>
  15055. <td>none</td>
  15056. </tr>
  15057. <tr>
  15058. <td>» action</td>
  15059. <td>body</td>
  15060. <td>string</td>
  15061. <td>true</td>
  15062. <td>the action</td>
  15063. </tr>
  15064. </tbody>
  15065. </table>
  15066. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  15067. <p><strong>user</strong>: the user ID</p>
  15068. <blockquote>
  15069. <p>Example responses</p>
  15070. </blockquote>
  15071. <blockquote>
  15072. <p>200 Response</p>
  15073. </blockquote>
  15074. <pre class="highlight tab tab-json"><code>{
  15075. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15076. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15077. }
  15078. </code></pre>
  15079. <h3 id="edit_user-responses">Responses</h3>
  15080. <table>
  15081. <thead>
  15082. <tr>
  15083. <th>Status</th>
  15084. <th>Meaning</th>
  15085. <th>Description</th>
  15086. <th>Schema</th>
  15087. </tr>
  15088. </thead>
  15089. <tbody>
  15090. <tr>
  15091. <td>200</td>
  15092. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15093. <td>200 response</td>
  15094. <td>Inline</td>
  15095. </tr>
  15096. </tbody>
  15097. </table>
  15098. <h3 id="edit_user-responseschema">Response Schema</h3>
  15099. <p>Status Code <strong>200</strong></p>
  15100. <table>
  15101. <thead>
  15102. <tr>
  15103. <th>Name</th>
  15104. <th>Type</th>
  15105. <th>Required</th>
  15106. <th>Restrictions</th>
  15107. <th>Description</th>
  15108. </tr>
  15109. </thead>
  15110. <tbody>
  15111. <tr>
  15112. <td>» _id</td>
  15113. <td>string</td>
  15114. <td>false</td>
  15115. <td>none</td>
  15116. <td>none</td>
  15117. </tr>
  15118. <tr>
  15119. <td>» title</td>
  15120. <td>string</td>
  15121. <td>false</td>
  15122. <td>none</td>
  15123. <td>none</td>
  15124. </tr>
  15125. </tbody>
  15126. </table>
  15127. <aside class="warning">
  15128. To perform this operation, you must be authenticated by means of one of the following methods:
  15129. UserSecurity
  15130. </aside>
  15131. <h2 id="delete_user">delete_user</h2>
  15132. <p><a id="opIddelete_user"></a></p>
  15133. <blockquote>
  15134. <p>Code samples</p>
  15135. </blockquote>
  15136. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15137. curl -X DELETE /api/users/{user} \
  15138. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15139. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15140. </code></pre>
  15141. <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>
  15142. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15143. </span></code></pre>
  15144. <pre class="highlight tab tab-javascript"><code>
  15145. <span class="hljs-keyword">const</span> headers = {
  15146. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15147. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15148. };
  15149. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15150. {
  15151. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15152. <span class="hljs-attr">headers</span>: headers
  15153. })
  15154. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15155. <span class="hljs-keyword">return</span> res.json();
  15156. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15157. <span class="hljs-built_in">console</span>.log(body);
  15158. });
  15159. </code></pre>
  15160. <pre class="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>);
  15161. <span class="hljs-keyword">const</span> headers = {
  15162. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15163. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15164. };
  15165. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15166. {
  15167. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15168. <span class="hljs-attr">headers</span>: headers
  15169. })
  15170. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15171. <span class="hljs-keyword">return</span> res.json();
  15172. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15173. <span class="hljs-built_in">console</span>.log(body);
  15174. });
  15175. </code></pre>
  15176. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15177. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15178. headers = {
  15179. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15180. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15181. }
  15182. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15183. <span class="hljs-symbol">params:</span> {
  15184. }, <span class="hljs-symbol">headers:</span> headers
  15185. p JSON.parse(result)
  15186. </code></pre>
  15187. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15188. headers = {
  15189. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15190. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15191. }
  15192. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15193. <span class="hljs-built_in">print</span>(r.json())
  15194. </code></pre>
  15195. <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>);
  15196. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15197. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15198. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15199. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15200. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15201. String inputLine;
  15202. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15203. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15204. response.append(inputLine);
  15205. }
  15206. in.close();
  15207. System.out.println(response.toString());
  15208. </code></pre>
  15209. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15210. <span class="hljs-keyword">import</span> (
  15211. <span class="hljs-string">&quot;bytes&quot;</span>
  15212. <span class="hljs-string">&quot;net/http&quot;</span>
  15213. )
  15214. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15215. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15216. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15217. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15218. }
  15219. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15220. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15221. req.Header = headers
  15222. client := &amp;http.Client{}
  15223. resp, err := client.Do(req)
  15224. <span class="hljs-comment">// ...</span>
  15225. }
  15226. </code></pre>
  15227. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15228. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15229. );
  15230. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15231. <span class="hljs-comment">// Define array of request body.</span>
  15232. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15233. <span class="hljs-keyword">try</span> {
  15234. <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>(
  15235. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15236. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15237. )
  15238. );
  15239. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15240. }
  15241. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15242. <span class="hljs-comment">// handle exception or api errors.</span>
  15243. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15244. }
  15245. <span class="hljs-comment">// ...</span>
  15246. </code></pre>
  15247. <p><code>DELETE /api/users/{user}</code></p>
  15248. <p><em>Delete a user</em></p>
  15249. <p>Only the admin user (the first user) can call the REST API.</p>
  15250. <h3 id="delete_user-parameters">Parameters</h3>
  15251. <table>
  15252. <thead>
  15253. <tr>
  15254. <th>Name</th>
  15255. <th>In</th>
  15256. <th>Type</th>
  15257. <th>Required</th>
  15258. <th>Description</th>
  15259. </tr>
  15260. </thead>
  15261. <tbody>
  15262. <tr>
  15263. <td>user</td>
  15264. <td>path</td>
  15265. <td>string</td>
  15266. <td>true</td>
  15267. <td>the ID of the user to delete</td>
  15268. </tr>
  15269. </tbody>
  15270. </table>
  15271. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15272. <p><strong>user</strong>: the ID of the user to delete</p>
  15273. <blockquote>
  15274. <p>Example responses</p>
  15275. </blockquote>
  15276. <blockquote>
  15277. <p>200 Response</p>
  15278. </blockquote>
  15279. <pre class="highlight tab tab-json"><code>{
  15280. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15281. }
  15282. </code></pre>
  15283. <h3 id="delete_user-responses">Responses</h3>
  15284. <table>
  15285. <thead>
  15286. <tr>
  15287. <th>Status</th>
  15288. <th>Meaning</th>
  15289. <th>Description</th>
  15290. <th>Schema</th>
  15291. </tr>
  15292. </thead>
  15293. <tbody>
  15294. <tr>
  15295. <td>200</td>
  15296. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15297. <td>200 response</td>
  15298. <td>Inline</td>
  15299. </tr>
  15300. </tbody>
  15301. </table>
  15302. <h3 id="delete_user-responseschema">Response Schema</h3>
  15303. <p>Status Code <strong>200</strong></p>
  15304. <table>
  15305. <thead>
  15306. <tr>
  15307. <th>Name</th>
  15308. <th>Type</th>
  15309. <th>Required</th>
  15310. <th>Restrictions</th>
  15311. <th>Description</th>
  15312. </tr>
  15313. </thead>
  15314. <tbody>
  15315. <tr>
  15316. <td>» _id</td>
  15317. <td>string</td>
  15318. <td>false</td>
  15319. <td>none</td>
  15320. <td>none</td>
  15321. </tr>
  15322. </tbody>
  15323. </table>
  15324. <aside class="warning">
  15325. To perform this operation, you must be authenticated by means of one of the following methods:
  15326. UserSecurity
  15327. </aside>
  15328. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15329. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15330. <p><a id="opIdget_all_swimlanes"></a></p>
  15331. <blockquote>
  15332. <p>Code samples</p>
  15333. </blockquote>
  15334. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15335. curl -X GET /api/boards/{board}/swimlanes \
  15336. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15337. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15338. </code></pre>
  15339. <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>
  15340. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15341. </span></code></pre>
  15342. <pre class="highlight tab tab-javascript"><code>
  15343. <span class="hljs-keyword">const</span> headers = {
  15344. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15345. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15346. };
  15347. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15348. {
  15349. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15350. <span class="hljs-attr">headers</span>: headers
  15351. })
  15352. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15353. <span class="hljs-keyword">return</span> res.json();
  15354. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15355. <span class="hljs-built_in">console</span>.log(body);
  15356. });
  15357. </code></pre>
  15358. <pre class="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>);
  15359. <span class="hljs-keyword">const</span> headers = {
  15360. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15361. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15362. };
  15363. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15364. {
  15365. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15366. <span class="hljs-attr">headers</span>: headers
  15367. })
  15368. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15369. <span class="hljs-keyword">return</span> res.json();
  15370. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15371. <span class="hljs-built_in">console</span>.log(body);
  15372. });
  15373. </code></pre>
  15374. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15375. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15376. headers = {
  15377. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15378. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15379. }
  15380. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15381. <span class="hljs-symbol">params:</span> {
  15382. }, <span class="hljs-symbol">headers:</span> headers
  15383. p JSON.parse(result)
  15384. </code></pre>
  15385. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15386. headers = {
  15387. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15388. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15389. }
  15390. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15391. <span class="hljs-built_in">print</span>(r.json())
  15392. </code></pre>
  15393. <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>);
  15394. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15395. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15396. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15397. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15398. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15399. String inputLine;
  15400. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15401. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15402. response.append(inputLine);
  15403. }
  15404. in.close();
  15405. System.out.println(response.toString());
  15406. </code></pre>
  15407. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15408. <span class="hljs-keyword">import</span> (
  15409. <span class="hljs-string">&quot;bytes&quot;</span>
  15410. <span class="hljs-string">&quot;net/http&quot;</span>
  15411. )
  15412. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15413. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15414. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15415. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15416. }
  15417. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15418. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15419. req.Header = headers
  15420. client := &amp;http.Client{}
  15421. resp, err := client.Do(req)
  15422. <span class="hljs-comment">// ...</span>
  15423. }
  15424. </code></pre>
  15425. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15426. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15427. );
  15428. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15429. <span class="hljs-comment">// Define array of request body.</span>
  15430. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15431. <span class="hljs-keyword">try</span> {
  15432. <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>(
  15433. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15434. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15435. )
  15436. );
  15437. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15438. }
  15439. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15440. <span class="hljs-comment">// handle exception or api errors.</span>
  15441. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15442. }
  15443. <span class="hljs-comment">// ...</span>
  15444. </code></pre>
  15445. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15446. <p><em>Get the list of swimlanes attached to a board</em></p>
  15447. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15448. <table>
  15449. <thead>
  15450. <tr>
  15451. <th>Name</th>
  15452. <th>In</th>
  15453. <th>Type</th>
  15454. <th>Required</th>
  15455. <th>Description</th>
  15456. </tr>
  15457. </thead>
  15458. <tbody>
  15459. <tr>
  15460. <td>board</td>
  15461. <td>path</td>
  15462. <td>string</td>
  15463. <td>true</td>
  15464. <td>the ID of the board</td>
  15465. </tr>
  15466. </tbody>
  15467. </table>
  15468. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15469. <p><strong>board</strong>: the ID of the board</p>
  15470. <blockquote>
  15471. <p>Example responses</p>
  15472. </blockquote>
  15473. <blockquote>
  15474. <p>200 Response</p>
  15475. </blockquote>
  15476. <pre class="highlight tab tab-json"><code>[
  15477. {
  15478. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15479. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15480. }
  15481. ]
  15482. </code></pre>
  15483. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15484. <table>
  15485. <thead>
  15486. <tr>
  15487. <th>Status</th>
  15488. <th>Meaning</th>
  15489. <th>Description</th>
  15490. <th>Schema</th>
  15491. </tr>
  15492. </thead>
  15493. <tbody>
  15494. <tr>
  15495. <td>200</td>
  15496. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15497. <td>200 response</td>
  15498. <td>Inline</td>
  15499. </tr>
  15500. </tbody>
  15501. </table>
  15502. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15503. <p>Status Code <strong>200</strong></p>
  15504. <table>
  15505. <thead>
  15506. <tr>
  15507. <th>Name</th>
  15508. <th>Type</th>
  15509. <th>Required</th>
  15510. <th>Restrictions</th>
  15511. <th>Description</th>
  15512. </tr>
  15513. </thead>
  15514. <tbody>
  15515. <tr>
  15516. <td>» _id</td>
  15517. <td>string</td>
  15518. <td>false</td>
  15519. <td>none</td>
  15520. <td>none</td>
  15521. </tr>
  15522. <tr>
  15523. <td>» title</td>
  15524. <td>string</td>
  15525. <td>false</td>
  15526. <td>none</td>
  15527. <td>none</td>
  15528. </tr>
  15529. </tbody>
  15530. </table>
  15531. <aside class="warning">
  15532. To perform this operation, you must be authenticated by means of one of the following methods:
  15533. UserSecurity
  15534. </aside>
  15535. <h2 id="new_swimlane">new_swimlane</h2>
  15536. <p><a id="opIdnew_swimlane"></a></p>
  15537. <blockquote>
  15538. <p>Code samples</p>
  15539. </blockquote>
  15540. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15541. curl -X POST /api/boards/{board}/swimlanes \
  15542. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15543. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15544. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15545. </code></pre>
  15546. <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>
  15547. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15548. Accept: application/json
  15549. </span></code></pre>
  15550. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15551. &quot;title&quot;: &quot;string&quot;
  15552. }&#x27;</span>;
  15553. <span class="hljs-keyword">const</span> headers = {
  15554. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15555. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15556. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15557. };
  15558. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15559. {
  15560. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15561. <span class="hljs-attr">body</span>: inputBody,
  15562. <span class="hljs-attr">headers</span>: headers
  15563. })
  15564. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15565. <span class="hljs-keyword">return</span> res.json();
  15566. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15567. <span class="hljs-built_in">console</span>.log(body);
  15568. });
  15569. </code></pre>
  15570. <pre class="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>);
  15571. <span class="hljs-keyword">const</span> inputBody = {
  15572. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15573. };
  15574. <span class="hljs-keyword">const</span> headers = {
  15575. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15576. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15577. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15578. };
  15579. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15580. {
  15581. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15582. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15583. <span class="hljs-attr">headers</span>: headers
  15584. })
  15585. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15586. <span class="hljs-keyword">return</span> res.json();
  15587. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15588. <span class="hljs-built_in">console</span>.log(body);
  15589. });
  15590. </code></pre>
  15591. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15592. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15593. headers = {
  15594. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15595. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15596. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15597. }
  15598. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15599. <span class="hljs-symbol">params:</span> {
  15600. }, <span class="hljs-symbol">headers:</span> headers
  15601. p JSON.parse(result)
  15602. </code></pre>
  15603. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15604. headers = {
  15605. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15606. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15607. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15608. }
  15609. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15610. <span class="hljs-built_in">print</span>(r.json())
  15611. </code></pre>
  15612. <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>);
  15613. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15614. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15615. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15616. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15617. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15618. String inputLine;
  15619. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15620. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15621. response.append(inputLine);
  15622. }
  15623. in.close();
  15624. System.out.println(response.toString());
  15625. </code></pre>
  15626. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15627. <span class="hljs-keyword">import</span> (
  15628. <span class="hljs-string">&quot;bytes&quot;</span>
  15629. <span class="hljs-string">&quot;net/http&quot;</span>
  15630. )
  15631. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15632. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15633. <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>},
  15634. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15635. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15636. }
  15637. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15638. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15639. req.Header = headers
  15640. client := &amp;http.Client{}
  15641. resp, err := client.Do(req)
  15642. <span class="hljs-comment">// ...</span>
  15643. }
  15644. </code></pre>
  15645. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15646. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15647. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15648. );
  15649. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15650. <span class="hljs-comment">// Define array of request body.</span>
  15651. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15652. <span class="hljs-keyword">try</span> {
  15653. <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>(
  15654. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15655. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15656. )
  15657. );
  15658. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15659. }
  15660. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15661. <span class="hljs-comment">// handle exception or api errors.</span>
  15662. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15663. }
  15664. <span class="hljs-comment">// ...</span>
  15665. </code></pre>
  15666. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  15667. <p><em>Add a swimlane to a board</em></p>
  15668. <blockquote>
  15669. <p>Body parameter</p>
  15670. </blockquote>
  15671. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15672. </code></pre>
  15673. <h3 id="new_swimlane-parameters">Parameters</h3>
  15674. <table>
  15675. <thead>
  15676. <tr>
  15677. <th>Name</th>
  15678. <th>In</th>
  15679. <th>Type</th>
  15680. <th>Required</th>
  15681. <th>Description</th>
  15682. </tr>
  15683. </thead>
  15684. <tbody>
  15685. <tr>
  15686. <td>board</td>
  15687. <td>path</td>
  15688. <td>string</td>
  15689. <td>true</td>
  15690. <td>the ID of the board</td>
  15691. </tr>
  15692. <tr>
  15693. <td>body</td>
  15694. <td>body</td>
  15695. <td>object</td>
  15696. <td>true</td>
  15697. <td>none</td>
  15698. </tr>
  15699. <tr>
  15700. <td>» title</td>
  15701. <td>body</td>
  15702. <td>string</td>
  15703. <td>true</td>
  15704. <td>the new title of the swimlane</td>
  15705. </tr>
  15706. </tbody>
  15707. </table>
  15708. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15709. <p><strong>board</strong>: the ID of the board</p>
  15710. <blockquote>
  15711. <p>Example responses</p>
  15712. </blockquote>
  15713. <blockquote>
  15714. <p>200 Response</p>
  15715. </blockquote>
  15716. <pre class="highlight tab tab-json"><code>{
  15717. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15718. }
  15719. </code></pre>
  15720. <h3 id="new_swimlane-responses">Responses</h3>
  15721. <table>
  15722. <thead>
  15723. <tr>
  15724. <th>Status</th>
  15725. <th>Meaning</th>
  15726. <th>Description</th>
  15727. <th>Schema</th>
  15728. </tr>
  15729. </thead>
  15730. <tbody>
  15731. <tr>
  15732. <td>200</td>
  15733. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15734. <td>200 response</td>
  15735. <td>Inline</td>
  15736. </tr>
  15737. </tbody>
  15738. </table>
  15739. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15740. <p>Status Code <strong>200</strong></p>
  15741. <table>
  15742. <thead>
  15743. <tr>
  15744. <th>Name</th>
  15745. <th>Type</th>
  15746. <th>Required</th>
  15747. <th>Restrictions</th>
  15748. <th>Description</th>
  15749. </tr>
  15750. </thead>
  15751. <tbody>
  15752. <tr>
  15753. <td>» _id</td>
  15754. <td>string</td>
  15755. <td>false</td>
  15756. <td>none</td>
  15757. <td>none</td>
  15758. </tr>
  15759. </tbody>
  15760. </table>
  15761. <aside class="warning">
  15762. To perform this operation, you must be authenticated by means of one of the following methods:
  15763. UserSecurity
  15764. </aside>
  15765. <h2 id="get_swimlane">get_swimlane</h2>
  15766. <p><a id="opIdget_swimlane"></a></p>
  15767. <blockquote>
  15768. <p>Code samples</p>
  15769. </blockquote>
  15770. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15771. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15772. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15773. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15774. </code></pre>
  15775. <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>
  15776. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15777. </span></code></pre>
  15778. <pre class="highlight tab tab-javascript"><code>
  15779. <span class="hljs-keyword">const</span> headers = {
  15780. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15781. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15782. };
  15783. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15784. {
  15785. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15786. <span class="hljs-attr">headers</span>: headers
  15787. })
  15788. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15789. <span class="hljs-keyword">return</span> res.json();
  15790. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15791. <span class="hljs-built_in">console</span>.log(body);
  15792. });
  15793. </code></pre>
  15794. <pre class="highlight tab tab-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>);
  15795. <span class="hljs-keyword">const</span> headers = {
  15796. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15797. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15798. };
  15799. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15800. {
  15801. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15802. <span class="hljs-attr">headers</span>: headers
  15803. })
  15804. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15805. <span class="hljs-keyword">return</span> res.json();
  15806. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15807. <span class="hljs-built_in">console</span>.log(body);
  15808. });
  15809. </code></pre>
  15810. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15811. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15812. headers = {
  15813. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15814. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15815. }
  15816. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15817. <span class="hljs-symbol">params:</span> {
  15818. }, <span class="hljs-symbol">headers:</span> headers
  15819. p JSON.parse(result)
  15820. </code></pre>
  15821. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15822. headers = {
  15823. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15824. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15825. }
  15826. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15827. <span class="hljs-built_in">print</span>(r.json())
  15828. </code></pre>
  15829. <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>);
  15830. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15831. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15832. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15833. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15834. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15835. String inputLine;
  15836. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15837. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15838. response.append(inputLine);
  15839. }
  15840. in.close();
  15841. System.out.println(response.toString());
  15842. </code></pre>
  15843. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15844. <span class="hljs-keyword">import</span> (
  15845. <span class="hljs-string">&quot;bytes&quot;</span>
  15846. <span class="hljs-string">&quot;net/http&quot;</span>
  15847. )
  15848. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15849. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15850. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15851. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15852. }
  15853. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15854. 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)
  15855. req.Header = headers
  15856. client := &amp;http.Client{}
  15857. resp, err := client.Do(req)
  15858. <span class="hljs-comment">// ...</span>
  15859. }
  15860. </code></pre>
  15861. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15862. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15863. );
  15864. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15865. <span class="hljs-comment">// Define array of request body.</span>
  15866. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15867. <span class="hljs-keyword">try</span> {
  15868. <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>(
  15869. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15870. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15871. )
  15872. );
  15873. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15874. }
  15875. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15876. <span class="hljs-comment">// handle exception or api errors.</span>
  15877. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15878. }
  15879. <span class="hljs-comment">// ...</span>
  15880. </code></pre>
  15881. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15882. <p><em>Get a swimlane</em></p>
  15883. <h3 id="get_swimlane-parameters">Parameters</h3>
  15884. <table>
  15885. <thead>
  15886. <tr>
  15887. <th>Name</th>
  15888. <th>In</th>
  15889. <th>Type</th>
  15890. <th>Required</th>
  15891. <th>Description</th>
  15892. </tr>
  15893. </thead>
  15894. <tbody>
  15895. <tr>
  15896. <td>board</td>
  15897. <td>path</td>
  15898. <td>string</td>
  15899. <td>true</td>
  15900. <td>the ID of the board</td>
  15901. </tr>
  15902. <tr>
  15903. <td>swimlane</td>
  15904. <td>path</td>
  15905. <td>string</td>
  15906. <td>true</td>
  15907. <td>the ID of the swimlane</td>
  15908. </tr>
  15909. </tbody>
  15910. </table>
  15911. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15912. <p><strong>board</strong>: the ID of the board</p>
  15913. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15914. <blockquote>
  15915. <p>Example responses</p>
  15916. </blockquote>
  15917. <blockquote>
  15918. <p>200 Response</p>
  15919. </blockquote>
  15920. <pre class="highlight tab tab-json"><code>{
  15921. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15922. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15923. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15924. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15925. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15926. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15927. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15928. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15929. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15930. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15931. }
  15932. </code></pre>
  15933. <h3 id="get_swimlane-responses">Responses</h3>
  15934. <table>
  15935. <thead>
  15936. <tr>
  15937. <th>Status</th>
  15938. <th>Meaning</th>
  15939. <th>Description</th>
  15940. <th>Schema</th>
  15941. </tr>
  15942. </thead>
  15943. <tbody>
  15944. <tr>
  15945. <td>200</td>
  15946. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15947. <td>200 response</td>
  15948. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15949. </tr>
  15950. </tbody>
  15951. </table>
  15952. <aside class="warning">
  15953. To perform this operation, you must be authenticated by means of one of the following methods:
  15954. UserSecurity
  15955. </aside>
  15956. <h2 id="delete_swimlane">delete_swimlane</h2>
  15957. <p><a id="opIddelete_swimlane"></a></p>
  15958. <blockquote>
  15959. <p>Code samples</p>
  15960. </blockquote>
  15961. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15962. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15963. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15964. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15965. </code></pre>
  15966. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15967. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15968. </span></code></pre>
  15969. <pre class="highlight tab tab-javascript"><code>
  15970. <span class="hljs-keyword">const</span> headers = {
  15971. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15972. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15973. };
  15974. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15975. {
  15976. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15977. <span class="hljs-attr">headers</span>: headers
  15978. })
  15979. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15980. <span class="hljs-keyword">return</span> res.json();
  15981. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15982. <span class="hljs-built_in">console</span>.log(body);
  15983. });
  15984. </code></pre>
  15985. <pre class="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>);
  15986. <span class="hljs-keyword">const</span> headers = {
  15987. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15988. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15989. };
  15990. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15991. {
  15992. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15993. <span class="hljs-attr">headers</span>: headers
  15994. })
  15995. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15996. <span class="hljs-keyword">return</span> res.json();
  15997. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15998. <span class="hljs-built_in">console</span>.log(body);
  15999. });
  16000. </code></pre>
  16001. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16002. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16003. headers = {
  16004. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16005. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16006. }
  16007. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16008. <span class="hljs-symbol">params:</span> {
  16009. }, <span class="hljs-symbol">headers:</span> headers
  16010. p JSON.parse(result)
  16011. </code></pre>
  16012. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16013. headers = {
  16014. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16015. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16016. }
  16017. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16018. <span class="hljs-built_in">print</span>(r.json())
  16019. </code></pre>
  16020. <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>);
  16021. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16022. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16023. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16024. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16025. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16026. String inputLine;
  16027. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16028. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16029. response.append(inputLine);
  16030. }
  16031. in.close();
  16032. System.out.println(response.toString());
  16033. </code></pre>
  16034. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16035. <span class="hljs-keyword">import</span> (
  16036. <span class="hljs-string">&quot;bytes&quot;</span>
  16037. <span class="hljs-string">&quot;net/http&quot;</span>
  16038. )
  16039. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16040. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16041. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16042. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16043. }
  16044. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16045. 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)
  16046. req.Header = headers
  16047. client := &amp;http.Client{}
  16048. resp, err := client.Do(req)
  16049. <span class="hljs-comment">// ...</span>
  16050. }
  16051. </code></pre>
  16052. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16053. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16054. );
  16055. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16056. <span class="hljs-comment">// Define array of request body.</span>
  16057. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16058. <span class="hljs-keyword">try</span> {
  16059. <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>(
  16060. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16061. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16062. )
  16063. );
  16064. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16065. }
  16066. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16067. <span class="hljs-comment">// handle exception or api errors.</span>
  16068. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16069. }
  16070. <span class="hljs-comment">// ...</span>
  16071. </code></pre>
  16072. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16073. <p><em>Delete a swimlane</em></p>
  16074. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16075. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16076. <table>
  16077. <thead>
  16078. <tr>
  16079. <th>Name</th>
  16080. <th>In</th>
  16081. <th>Type</th>
  16082. <th>Required</th>
  16083. <th>Description</th>
  16084. </tr>
  16085. </thead>
  16086. <tbody>
  16087. <tr>
  16088. <td>board</td>
  16089. <td>path</td>
  16090. <td>string</td>
  16091. <td>true</td>
  16092. <td>the ID of the board</td>
  16093. </tr>
  16094. <tr>
  16095. <td>swimlane</td>
  16096. <td>path</td>
  16097. <td>string</td>
  16098. <td>true</td>
  16099. <td>the ID of the swimlane</td>
  16100. </tr>
  16101. </tbody>
  16102. </table>
  16103. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16104. <p><strong>board</strong>: the ID of the board</p>
  16105. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16106. <blockquote>
  16107. <p>Example responses</p>
  16108. </blockquote>
  16109. <blockquote>
  16110. <p>200 Response</p>
  16111. </blockquote>
  16112. <pre class="highlight tab tab-json"><code>{
  16113. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16114. }
  16115. </code></pre>
  16116. <h3 id="delete_swimlane-responses">Responses</h3>
  16117. <table>
  16118. <thead>
  16119. <tr>
  16120. <th>Status</th>
  16121. <th>Meaning</th>
  16122. <th>Description</th>
  16123. <th>Schema</th>
  16124. </tr>
  16125. </thead>
  16126. <tbody>
  16127. <tr>
  16128. <td>200</td>
  16129. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16130. <td>200 response</td>
  16131. <td>Inline</td>
  16132. </tr>
  16133. </tbody>
  16134. </table>
  16135. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16136. <p>Status Code <strong>200</strong></p>
  16137. <table>
  16138. <thead>
  16139. <tr>
  16140. <th>Name</th>
  16141. <th>Type</th>
  16142. <th>Required</th>
  16143. <th>Restrictions</th>
  16144. <th>Description</th>
  16145. </tr>
  16146. </thead>
  16147. <tbody>
  16148. <tr>
  16149. <td>» _id</td>
  16150. <td>string</td>
  16151. <td>false</td>
  16152. <td>none</td>
  16153. <td>none</td>
  16154. </tr>
  16155. </tbody>
  16156. </table>
  16157. <aside class="warning">
  16158. To perform this operation, you must be authenticated by means of one of the following methods:
  16159. UserSecurity
  16160. </aside>
  16161. <h1 id="schemas">Schemas</h1>
  16162. <h2 id="tocs_boards">Boards</h2>
  16163. <p><a id="schemaboards"></a>
  16164. <a id="schema_Boards"></a>
  16165. <a id="tocSboards"></a>
  16166. <a id="tocsboards"></a></p>
  16167. <pre class="highlight tab tab-json"><code>{
  16168. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16169. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16170. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16171. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16172. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16173. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16174. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16175. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16176. {
  16177. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16178. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16179. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16180. }
  16181. ],
  16182. <span class="hljs-attr">&quot;members&quot;</span>: [
  16183. {
  16184. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16185. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16186. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16187. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16188. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16189. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16190. }
  16191. ],
  16192. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16193. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16194. {
  16195. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16196. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16197. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16198. }
  16199. ],
  16200. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16201. {
  16202. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16203. <span class="hljs-attr">&quot;teamDisplayName&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;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16208. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16209. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16210. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16211. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16212. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16213. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16214. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16215. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16216. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16217. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16218. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16219. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16220. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16221. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16222. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16223. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16224. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16225. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16226. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16227. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16228. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16229. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16230. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16231. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16232. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16233. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16234. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16235. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16236. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16237. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16238. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16239. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16240. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16241. }
  16242. </code></pre>
  16243. <p>This is a Board.</p>
  16244. <h3 id="properties">Properties</h3>
  16245. <table>
  16246. <thead>
  16247. <tr>
  16248. <th>Name</th>
  16249. <th>Type</th>
  16250. <th>Required</th>
  16251. <th>Restrictions</th>
  16252. <th>Description</th>
  16253. </tr>
  16254. </thead>
  16255. <tbody>
  16256. <tr>
  16257. <td>title</td>
  16258. <td>string</td>
  16259. <td>true</td>
  16260. <td>none</td>
  16261. <td>The title of the board</td>
  16262. </tr>
  16263. <tr>
  16264. <td>slug</td>
  16265. <td>string</td>
  16266. <td>true</td>
  16267. <td>none</td>
  16268. <td>The title slugified.</td>
  16269. </tr>
  16270. <tr>
  16271. <td>archived</td>
  16272. <td>boolean</td>
  16273. <td>true</td>
  16274. <td>none</td>
  16275. <td>Is the board archived?</td>
  16276. </tr>
  16277. <tr>
  16278. <td>archivedAt</td>
  16279. <td>string¦null</td>
  16280. <td>false</td>
  16281. <td>none</td>
  16282. <td>Latest archiving time of the board</td>
  16283. </tr>
  16284. <tr>
  16285. <td>createdAt</td>
  16286. <td>string</td>
  16287. <td>true</td>
  16288. <td>none</td>
  16289. <td>Creation time of the board</td>
  16290. </tr>
  16291. <tr>
  16292. <td>modifiedAt</td>
  16293. <td>string¦null</td>
  16294. <td>false</td>
  16295. <td>none</td>
  16296. <td>Last modification time of the board</td>
  16297. </tr>
  16298. <tr>
  16299. <td>stars</td>
  16300. <td>number</td>
  16301. <td>true</td>
  16302. <td>none</td>
  16303. <td>How many stars the board has</td>
  16304. </tr>
  16305. <tr>
  16306. <td>labels</td>
  16307. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16308. <td>false</td>
  16309. <td>none</td>
  16310. <td>List of labels attached to a board</td>
  16311. </tr>
  16312. <tr>
  16313. <td>members</td>
  16314. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16315. <td>true</td>
  16316. <td>none</td>
  16317. <td>List of members of a board</td>
  16318. </tr>
  16319. <tr>
  16320. <td>permission</td>
  16321. <td>string</td>
  16322. <td>true</td>
  16323. <td>none</td>
  16324. <td>visibility of the board</td>
  16325. </tr>
  16326. <tr>
  16327. <td>orgs</td>
  16328. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16329. <td>false</td>
  16330. <td>none</td>
  16331. <td>the list of organizations that a board belongs to</td>
  16332. </tr>
  16333. <tr>
  16334. <td>teams</td>
  16335. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16336. <td>false</td>
  16337. <td>none</td>
  16338. <td>the list of teams that a board belongs to</td>
  16339. </tr>
  16340. <tr>
  16341. <td>color</td>
  16342. <td>string</td>
  16343. <td>true</td>
  16344. <td>none</td>
  16345. <td>The color of the board.</td>
  16346. </tr>
  16347. <tr>
  16348. <td>description</td>
  16349. <td>string¦null</td>
  16350. <td>false</td>
  16351. <td>none</td>
  16352. <td>The description of the board</td>
  16353. </tr>
  16354. <tr>
  16355. <td>subtasksDefaultBoardId</td>
  16356. <td>string¦null</td>
  16357. <td>false</td>
  16358. <td>none</td>
  16359. <td>The default board ID assigned to subtasks.</td>
  16360. </tr>
  16361. <tr>
  16362. <td>subtasksDefaultListId</td>
  16363. <td>string¦null</td>
  16364. <td>false</td>
  16365. <td>none</td>
  16366. <td>The default List ID assigned to subtasks.</td>
  16367. </tr>
  16368. <tr>
  16369. <td>dateSettingsDefaultBoardId</td>
  16370. <td>string¦null</td>
  16371. <td>false</td>
  16372. <td>none</td>
  16373. <td>none</td>
  16374. </tr>
  16375. <tr>
  16376. <td>dateSettingsDefaultListId</td>
  16377. <td>string¦null</td>
  16378. <td>false</td>
  16379. <td>none</td>
  16380. <td>none</td>
  16381. </tr>
  16382. <tr>
  16383. <td>allowsSubtasks</td>
  16384. <td>boolean</td>
  16385. <td>true</td>
  16386. <td>none</td>
  16387. <td>Does the board allows subtasks?</td>
  16388. </tr>
  16389. <tr>
  16390. <td>allowsAttachments</td>
  16391. <td>boolean</td>
  16392. <td>true</td>
  16393. <td>none</td>
  16394. <td>Does the board allows attachments?</td>
  16395. </tr>
  16396. <tr>
  16397. <td>allowsChecklists</td>
  16398. <td>boolean</td>
  16399. <td>true</td>
  16400. <td>none</td>
  16401. <td>Does the board allows checklists?</td>
  16402. </tr>
  16403. <tr>
  16404. <td>allowsComments</td>
  16405. <td>boolean</td>
  16406. <td>true</td>
  16407. <td>none</td>
  16408. <td>Does the board allows comments?</td>
  16409. </tr>
  16410. <tr>
  16411. <td>allowsDescriptionTitle</td>
  16412. <td>boolean</td>
  16413. <td>true</td>
  16414. <td>none</td>
  16415. <td>Does the board allows description title?</td>
  16416. </tr>
  16417. <tr>
  16418. <td>allowsDescriptionText</td>
  16419. <td>boolean</td>
  16420. <td>true</td>
  16421. <td>none</td>
  16422. <td>Does the board allows description text?</td>
  16423. </tr>
  16424. <tr>
  16425. <td>allowsCardNumber</td>
  16426. <td>boolean</td>
  16427. <td>true</td>
  16428. <td>none</td>
  16429. <td>Does the board allows card numbers?</td>
  16430. </tr>
  16431. <tr>
  16432. <td>allowsActivities</td>
  16433. <td>boolean</td>
  16434. <td>true</td>
  16435. <td>none</td>
  16436. <td>Does the board allows comments?</td>
  16437. </tr>
  16438. <tr>
  16439. <td>allowsLabels</td>
  16440. <td>boolean</td>
  16441. <td>true</td>
  16442. <td>none</td>
  16443. <td>Does the board allows labels?</td>
  16444. </tr>
  16445. <tr>
  16446. <td>allowsCreator</td>
  16447. <td>boolean</td>
  16448. <td>true</td>
  16449. <td>none</td>
  16450. <td>Does the board allow creator?</td>
  16451. </tr>
  16452. <tr>
  16453. <td>allowsAssignee</td>
  16454. <td>boolean</td>
  16455. <td>true</td>
  16456. <td>none</td>
  16457. <td>Does the board allows assignee?</td>
  16458. </tr>
  16459. <tr>
  16460. <td>allowsMembers</td>
  16461. <td>boolean</td>
  16462. <td>true</td>
  16463. <td>none</td>
  16464. <td>Does the board allows members?</td>
  16465. </tr>
  16466. <tr>
  16467. <td>allowsRequestedBy</td>
  16468. <td>boolean</td>
  16469. <td>true</td>
  16470. <td>none</td>
  16471. <td>Does the board allows requested by?</td>
  16472. </tr>
  16473. <tr>
  16474. <td>allowsCardSortingByNumber</td>
  16475. <td>boolean</td>
  16476. <td>true</td>
  16477. <td>none</td>
  16478. <td>Does the board allows card sorting by number?</td>
  16479. </tr>
  16480. <tr>
  16481. <td>allowsAssignedBy</td>
  16482. <td>boolean</td>
  16483. <td>true</td>
  16484. <td>none</td>
  16485. <td>Does the board allows requested by?</td>
  16486. </tr>
  16487. <tr>
  16488. <td>allowsReceivedDate</td>
  16489. <td>boolean</td>
  16490. <td>true</td>
  16491. <td>none</td>
  16492. <td>Does the board allows received date?</td>
  16493. </tr>
  16494. <tr>
  16495. <td>allowsStartDate</td>
  16496. <td>boolean</td>
  16497. <td>true</td>
  16498. <td>none</td>
  16499. <td>Does the board allows start date?</td>
  16500. </tr>
  16501. <tr>
  16502. <td>allowsEndDate</td>
  16503. <td>boolean</td>
  16504. <td>true</td>
  16505. <td>none</td>
  16506. <td>Does the board allows end date?</td>
  16507. </tr>
  16508. <tr>
  16509. <td>allowsDueDate</td>
  16510. <td>boolean</td>
  16511. <td>true</td>
  16512. <td>none</td>
  16513. <td>Does the board allows due date?</td>
  16514. </tr>
  16515. <tr>
  16516. <td>presentParentTask</td>
  16517. <td>string¦null</td>
  16518. <td>false</td>
  16519. <td>none</td>
  16520. <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>
  16521. </tr>
  16522. <tr>
  16523. <td>receivedAt</td>
  16524. <td>string¦null</td>
  16525. <td>false</td>
  16526. <td>none</td>
  16527. <td>Date the card was received</td>
  16528. </tr>
  16529. <tr>
  16530. <td>startAt</td>
  16531. <td>string¦null</td>
  16532. <td>false</td>
  16533. <td>none</td>
  16534. <td>Starting date of the board.</td>
  16535. </tr>
  16536. <tr>
  16537. <td>dueAt</td>
  16538. <td>string¦null</td>
  16539. <td>false</td>
  16540. <td>none</td>
  16541. <td>Due date of the board.</td>
  16542. </tr>
  16543. <tr>
  16544. <td>endAt</td>
  16545. <td>string¦null</td>
  16546. <td>false</td>
  16547. <td>none</td>
  16548. <td>End date of the board.</td>
  16549. </tr>
  16550. <tr>
  16551. <td>spentTime</td>
  16552. <td>number¦null</td>
  16553. <td>false</td>
  16554. <td>none</td>
  16555. <td>Time spent in the board.</td>
  16556. </tr>
  16557. <tr>
  16558. <td>isOvertime</td>
  16559. <td>boolean¦null</td>
  16560. <td>false</td>
  16561. <td>none</td>
  16562. <td>Is the board overtimed?</td>
  16563. </tr>
  16564. <tr>
  16565. <td>type</td>
  16566. <td>string</td>
  16567. <td>true</td>
  16568. <td>none</td>
  16569. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16570. </tr>
  16571. <tr>
  16572. <td>sort</td>
  16573. <td>number</td>
  16574. <td>true</td>
  16575. <td>none</td>
  16576. <td>Sort value</td>
  16577. </tr>
  16578. </tbody>
  16579. </table>
  16580. <h4 id="enumerated-values">Enumerated Values</h4>
  16581. <table>
  16582. <thead>
  16583. <tr>
  16584. <th>Property</th>
  16585. <th>Value</th>
  16586. </tr>
  16587. </thead>
  16588. <tbody>
  16589. <tr>
  16590. <td>permission</td>
  16591. <td>public</td>
  16592. </tr>
  16593. <tr>
  16594. <td>permission</td>
  16595. <td>private</td>
  16596. </tr>
  16597. <tr>
  16598. <td>color</td>
  16599. <td>belize</td>
  16600. </tr>
  16601. <tr>
  16602. <td>color</td>
  16603. <td>nephritis</td>
  16604. </tr>
  16605. <tr>
  16606. <td>color</td>
  16607. <td>pomegranate</td>
  16608. </tr>
  16609. <tr>
  16610. <td>color</td>
  16611. <td>pumpkin</td>
  16612. </tr>
  16613. <tr>
  16614. <td>color</td>
  16615. <td>wisteria</td>
  16616. </tr>
  16617. <tr>
  16618. <td>color</td>
  16619. <td>moderatepink</td>
  16620. </tr>
  16621. <tr>
  16622. <td>color</td>
  16623. <td>strongcyan</td>
  16624. </tr>
  16625. <tr>
  16626. <td>color</td>
  16627. <td>limegreen</td>
  16628. </tr>
  16629. <tr>
  16630. <td>color</td>
  16631. <td>midnight</td>
  16632. </tr>
  16633. <tr>
  16634. <td>color</td>
  16635. <td>dark</td>
  16636. </tr>
  16637. <tr>
  16638. <td>color</td>
  16639. <td>relax</td>
  16640. </tr>
  16641. <tr>
  16642. <td>color</td>
  16643. <td>corteza</td>
  16644. </tr>
  16645. <tr>
  16646. <td>color</td>
  16647. <td>clearblue</td>
  16648. </tr>
  16649. <tr>
  16650. <td>color</td>
  16651. <td>natural</td>
  16652. </tr>
  16653. <tr>
  16654. <td>color</td>
  16655. <td>modern</td>
  16656. </tr>
  16657. <tr>
  16658. <td>color</td>
  16659. <td>moderndark</td>
  16660. </tr>
  16661. <tr>
  16662. <td>presentParentTask</td>
  16663. <td>prefix-with-full-path</td>
  16664. </tr>
  16665. <tr>
  16666. <td>presentParentTask</td>
  16667. <td>prefix-with-parent</td>
  16668. </tr>
  16669. <tr>
  16670. <td>presentParentTask</td>
  16671. <td>subtext-with-full-path</td>
  16672. </tr>
  16673. <tr>
  16674. <td>presentParentTask</td>
  16675. <td>subtext-with-parent</td>
  16676. </tr>
  16677. <tr>
  16678. <td>presentParentTask</td>
  16679. <td>no-parent</td>
  16680. </tr>
  16681. <tr>
  16682. <td>type</td>
  16683. <td>board</td>
  16684. </tr>
  16685. <tr>
  16686. <td>type</td>
  16687. <td>template-board</td>
  16688. </tr>
  16689. <tr>
  16690. <td>type</td>
  16691. <td>template-container</td>
  16692. </tr>
  16693. </tbody>
  16694. </table>
  16695. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16696. <p><a id="schemaboardslabels"></a>
  16697. <a id="schema_BoardsLabels"></a>
  16698. <a id="tocSboardslabels"></a>
  16699. <a id="tocsboardslabels"></a></p>
  16700. <pre class="highlight tab tab-json"><code>{
  16701. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16702. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16703. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16704. }
  16705. </code></pre>
  16706. <h3 id="properties-2">Properties</h3>
  16707. <table>
  16708. <thead>
  16709. <tr>
  16710. <th>Name</th>
  16711. <th>Type</th>
  16712. <th>Required</th>
  16713. <th>Restrictions</th>
  16714. <th>Description</th>
  16715. </tr>
  16716. </thead>
  16717. <tbody>
  16718. <tr>
  16719. <td>_id</td>
  16720. <td>string</td>
  16721. <td>true</td>
  16722. <td>none</td>
  16723. <td>Unique id of a label</td>
  16724. </tr>
  16725. <tr>
  16726. <td>name</td>
  16727. <td>string</td>
  16728. <td>false</td>
  16729. <td>none</td>
  16730. <td>Name of a label</td>
  16731. </tr>
  16732. <tr>
  16733. <td>color</td>
  16734. <td>string</td>
  16735. <td>true</td>
  16736. <td>none</td>
  16737. <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>
  16738. </tr>
  16739. </tbody>
  16740. </table>
  16741. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16742. <table>
  16743. <thead>
  16744. <tr>
  16745. <th>Property</th>
  16746. <th>Value</th>
  16747. </tr>
  16748. </thead>
  16749. <tbody>
  16750. <tr>
  16751. <td>color</td>
  16752. <td>white</td>
  16753. </tr>
  16754. <tr>
  16755. <td>color</td>
  16756. <td>green</td>
  16757. </tr>
  16758. <tr>
  16759. <td>color</td>
  16760. <td>yellow</td>
  16761. </tr>
  16762. <tr>
  16763. <td>color</td>
  16764. <td>orange</td>
  16765. </tr>
  16766. <tr>
  16767. <td>color</td>
  16768. <td>red</td>
  16769. </tr>
  16770. <tr>
  16771. <td>color</td>
  16772. <td>purple</td>
  16773. </tr>
  16774. <tr>
  16775. <td>color</td>
  16776. <td>blue</td>
  16777. </tr>
  16778. <tr>
  16779. <td>color</td>
  16780. <td>sky</td>
  16781. </tr>
  16782. <tr>
  16783. <td>color</td>
  16784. <td>lime</td>
  16785. </tr>
  16786. <tr>
  16787. <td>color</td>
  16788. <td>pink</td>
  16789. </tr>
  16790. <tr>
  16791. <td>color</td>
  16792. <td>black</td>
  16793. </tr>
  16794. <tr>
  16795. <td>color</td>
  16796. <td>silver</td>
  16797. </tr>
  16798. <tr>
  16799. <td>color</td>
  16800. <td>peachpuff</td>
  16801. </tr>
  16802. <tr>
  16803. <td>color</td>
  16804. <td>crimson</td>
  16805. </tr>
  16806. <tr>
  16807. <td>color</td>
  16808. <td>plum</td>
  16809. </tr>
  16810. <tr>
  16811. <td>color</td>
  16812. <td>darkgreen</td>
  16813. </tr>
  16814. <tr>
  16815. <td>color</td>
  16816. <td>slateblue</td>
  16817. </tr>
  16818. <tr>
  16819. <td>color</td>
  16820. <td>magenta</td>
  16821. </tr>
  16822. <tr>
  16823. <td>color</td>
  16824. <td>gold</td>
  16825. </tr>
  16826. <tr>
  16827. <td>color</td>
  16828. <td>navy</td>
  16829. </tr>
  16830. <tr>
  16831. <td>color</td>
  16832. <td>gray</td>
  16833. </tr>
  16834. <tr>
  16835. <td>color</td>
  16836. <td>saddlebrown</td>
  16837. </tr>
  16838. <tr>
  16839. <td>color</td>
  16840. <td>paleturquoise</td>
  16841. </tr>
  16842. <tr>
  16843. <td>color</td>
  16844. <td>mistyrose</td>
  16845. </tr>
  16846. <tr>
  16847. <td>color</td>
  16848. <td>indigo</td>
  16849. </tr>
  16850. </tbody>
  16851. </table>
  16852. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16853. <p><a id="schemaboardsmembers"></a>
  16854. <a id="schema_BoardsMembers"></a>
  16855. <a id="tocSboardsmembers"></a>
  16856. <a id="tocsboardsmembers"></a></p>
  16857. <pre class="highlight tab tab-json"><code>{
  16858. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16859. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16860. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16861. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16862. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16863. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16864. }
  16865. </code></pre>
  16866. <h3 id="properties-3">Properties</h3>
  16867. <table>
  16868. <thead>
  16869. <tr>
  16870. <th>Name</th>
  16871. <th>Type</th>
  16872. <th>Required</th>
  16873. <th>Restrictions</th>
  16874. <th>Description</th>
  16875. </tr>
  16876. </thead>
  16877. <tbody>
  16878. <tr>
  16879. <td>userId</td>
  16880. <td>string</td>
  16881. <td>true</td>
  16882. <td>none</td>
  16883. <td>The uniq ID of the member</td>
  16884. </tr>
  16885. <tr>
  16886. <td>isAdmin</td>
  16887. <td>boolean</td>
  16888. <td>true</td>
  16889. <td>none</td>
  16890. <td>Is the member an admin of the board?</td>
  16891. </tr>
  16892. <tr>
  16893. <td>isActive</td>
  16894. <td>boolean</td>
  16895. <td>true</td>
  16896. <td>none</td>
  16897. <td>Is the member active?</td>
  16898. </tr>
  16899. <tr>
  16900. <td>isNoComments</td>
  16901. <td>boolean</td>
  16902. <td>false</td>
  16903. <td>none</td>
  16904. <td>Is the member not allowed to make comments</td>
  16905. </tr>
  16906. <tr>
  16907. <td>isCommentOnly</td>
  16908. <td>boolean</td>
  16909. <td>false</td>
  16910. <td>none</td>
  16911. <td>Is the member only allowed to comment on the board</td>
  16912. </tr>
  16913. <tr>
  16914. <td>isWorker</td>
  16915. <td>boolean</td>
  16916. <td>false</td>
  16917. <td>none</td>
  16918. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16919. </tr>
  16920. </tbody>
  16921. </table>
  16922. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16923. <p><a id="schemaboardsorgs"></a>
  16924. <a id="schema_BoardsOrgs"></a>
  16925. <a id="tocSboardsorgs"></a>
  16926. <a id="tocsboardsorgs"></a></p>
  16927. <pre class="highlight tab tab-json"><code>{
  16928. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16929. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16930. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16931. }
  16932. </code></pre>
  16933. <h3 id="properties-4">Properties</h3>
  16934. <table>
  16935. <thead>
  16936. <tr>
  16937. <th>Name</th>
  16938. <th>Type</th>
  16939. <th>Required</th>
  16940. <th>Restrictions</th>
  16941. <th>Description</th>
  16942. </tr>
  16943. </thead>
  16944. <tbody>
  16945. <tr>
  16946. <td>orgId</td>
  16947. <td>string</td>
  16948. <td>true</td>
  16949. <td>none</td>
  16950. <td>The uniq ID of the organization</td>
  16951. </tr>
  16952. <tr>
  16953. <td>orgDisplayName</td>
  16954. <td>string</td>
  16955. <td>true</td>
  16956. <td>none</td>
  16957. <td>The display name of the organization</td>
  16958. </tr>
  16959. <tr>
  16960. <td>isActive</td>
  16961. <td>boolean</td>
  16962. <td>true</td>
  16963. <td>none</td>
  16964. <td>Is the organization active?</td>
  16965. </tr>
  16966. </tbody>
  16967. </table>
  16968. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16969. <p><a id="schemaboardsteams"></a>
  16970. <a id="schema_BoardsTeams"></a>
  16971. <a id="tocSboardsteams"></a>
  16972. <a id="tocsboardsteams"></a></p>
  16973. <pre class="highlight tab tab-json"><code>{
  16974. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16975. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16976. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16977. }
  16978. </code></pre>
  16979. <h3 id="properties-5">Properties</h3>
  16980. <table>
  16981. <thead>
  16982. <tr>
  16983. <th>Name</th>
  16984. <th>Type</th>
  16985. <th>Required</th>
  16986. <th>Restrictions</th>
  16987. <th>Description</th>
  16988. </tr>
  16989. </thead>
  16990. <tbody>
  16991. <tr>
  16992. <td>teamId</td>
  16993. <td>string</td>
  16994. <td>true</td>
  16995. <td>none</td>
  16996. <td>The uniq ID of the team</td>
  16997. </tr>
  16998. <tr>
  16999. <td>teamDisplayName</td>
  17000. <td>string</td>
  17001. <td>true</td>
  17002. <td>none</td>
  17003. <td>The display name of the team</td>
  17004. </tr>
  17005. <tr>
  17006. <td>isActive</td>
  17007. <td>boolean</td>
  17008. <td>true</td>
  17009. <td>none</td>
  17010. <td>Is the team active?</td>
  17011. </tr>
  17012. </tbody>
  17013. </table>
  17014. <h2 id="tocs_cardcomments">CardComments</h2>
  17015. <p><a id="schemacardcomments"></a>
  17016. <a id="schema_CardComments"></a>
  17017. <a id="tocScardcomments"></a>
  17018. <a id="tocscardcomments"></a></p>
  17019. <pre class="highlight tab tab-json"><code>{
  17020. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17021. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17022. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17023. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17024. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17025. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17026. }
  17027. </code></pre>
  17028. <p>A comment on a card</p>
  17029. <h3 id="properties-6">Properties</h3>
  17030. <table>
  17031. <thead>
  17032. <tr>
  17033. <th>Name</th>
  17034. <th>Type</th>
  17035. <th>Required</th>
  17036. <th>Restrictions</th>
  17037. <th>Description</th>
  17038. </tr>
  17039. </thead>
  17040. <tbody>
  17041. <tr>
  17042. <td>boardId</td>
  17043. <td>string</td>
  17044. <td>true</td>
  17045. <td>none</td>
  17046. <td>the board ID</td>
  17047. </tr>
  17048. <tr>
  17049. <td>cardId</td>
  17050. <td>string</td>
  17051. <td>true</td>
  17052. <td>none</td>
  17053. <td>the card ID</td>
  17054. </tr>
  17055. <tr>
  17056. <td>text</td>
  17057. <td>string</td>
  17058. <td>true</td>
  17059. <td>none</td>
  17060. <td>the text of the comment</td>
  17061. </tr>
  17062. <tr>
  17063. <td>createdAt</td>
  17064. <td>string</td>
  17065. <td>true</td>
  17066. <td>none</td>
  17067. <td>when was the comment created</td>
  17068. </tr>
  17069. <tr>
  17070. <td>modifiedAt</td>
  17071. <td>string</td>
  17072. <td>true</td>
  17073. <td>none</td>
  17074. <td>none</td>
  17075. </tr>
  17076. <tr>
  17077. <td>userId</td>
  17078. <td>string</td>
  17079. <td>true</td>
  17080. <td>none</td>
  17081. <td>the author ID of the comment</td>
  17082. </tr>
  17083. </tbody>
  17084. </table>
  17085. <h2 id="tocs_cards">Cards</h2>
  17086. <p><a id="schemacards"></a>
  17087. <a id="schema_Cards"></a>
  17088. <a id="tocScards"></a>
  17089. <a id="tocscards"></a></p>
  17090. <pre class="highlight tab tab-json"><code>{
  17091. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17092. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17093. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17094. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17095. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17096. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17097. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17098. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17099. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17100. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17101. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17102. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17103. {}
  17104. ],
  17105. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17106. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17107. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17108. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17109. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17110. <span class="hljs-string">&quot;string&quot;</span>
  17111. ],
  17112. <span class="hljs-attr">&quot;members&quot;</span>: [
  17113. <span class="hljs-string">&quot;string&quot;</span>
  17114. ],
  17115. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17116. <span class="hljs-string">&quot;string&quot;</span>
  17117. ],
  17118. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17119. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17120. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17121. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17122. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17123. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17124. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17125. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17126. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17127. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17128. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17129. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17130. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17131. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17132. <span class="hljs-string">&quot;string&quot;</span>
  17133. ],
  17134. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17135. <span class="hljs-string">&quot;string&quot;</span>
  17136. ],
  17137. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17138. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17139. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17140. },
  17141. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17142. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17143. <span class="hljs-attr">&quot;one&quot;</span>: [
  17144. <span class="hljs-string">&quot;string&quot;</span>
  17145. ],
  17146. <span class="hljs-attr">&quot;two&quot;</span>: [
  17147. <span class="hljs-string">&quot;string&quot;</span>
  17148. ],
  17149. <span class="hljs-attr">&quot;three&quot;</span>: [
  17150. <span class="hljs-string">&quot;string&quot;</span>
  17151. ],
  17152. <span class="hljs-attr">&quot;five&quot;</span>: [
  17153. <span class="hljs-string">&quot;string&quot;</span>
  17154. ],
  17155. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17156. <span class="hljs-string">&quot;string&quot;</span>
  17157. ],
  17158. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17159. <span class="hljs-string">&quot;string&quot;</span>
  17160. ],
  17161. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17162. <span class="hljs-string">&quot;string&quot;</span>
  17163. ],
  17164. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17165. <span class="hljs-string">&quot;string&quot;</span>
  17166. ],
  17167. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17168. <span class="hljs-string">&quot;string&quot;</span>
  17169. ],
  17170. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17171. <span class="hljs-string">&quot;string&quot;</span>
  17172. ],
  17173. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17174. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17175. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17176. },
  17177. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17178. <span class="hljs-string">&quot;string&quot;</span>
  17179. ],
  17180. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17181. <span class="hljs-number">0</span>
  17182. ],
  17183. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17184. <span class="hljs-string">&quot;string&quot;</span>
  17185. ],
  17186. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17187. }
  17188. </code></pre>
  17189. <h3 id="properties-7">Properties</h3>
  17190. <table>
  17191. <thead>
  17192. <tr>
  17193. <th>Name</th>
  17194. <th>Type</th>
  17195. <th>Required</th>
  17196. <th>Restrictions</th>
  17197. <th>Description</th>
  17198. </tr>
  17199. </thead>
  17200. <tbody>
  17201. <tr>
  17202. <td>title</td>
  17203. <td>string¦null</td>
  17204. <td>false</td>
  17205. <td>none</td>
  17206. <td>the title of the card</td>
  17207. </tr>
  17208. <tr>
  17209. <td>archived</td>
  17210. <td>boolean</td>
  17211. <td>true</td>
  17212. <td>none</td>
  17213. <td>is the card archived</td>
  17214. </tr>
  17215. <tr>
  17216. <td>archivedAt</td>
  17217. <td>string¦null</td>
  17218. <td>false</td>
  17219. <td>none</td>
  17220. <td>latest archiving date</td>
  17221. </tr>
  17222. <tr>
  17223. <td>parentId</td>
  17224. <td>string¦null</td>
  17225. <td>false</td>
  17226. <td>none</td>
  17227. <td>ID of the parent card</td>
  17228. </tr>
  17229. <tr>
  17230. <td>listId</td>
  17231. <td>string¦null</td>
  17232. <td>false</td>
  17233. <td>none</td>
  17234. <td>List ID where the card is</td>
  17235. </tr>
  17236. <tr>
  17237. <td>swimlaneId</td>
  17238. <td>string</td>
  17239. <td>true</td>
  17240. <td>none</td>
  17241. <td>Swimlane ID where the card is</td>
  17242. </tr>
  17243. <tr>
  17244. <td>boardId</td>
  17245. <td>string¦null</td>
  17246. <td>false</td>
  17247. <td>none</td>
  17248. <td>Board ID of the card</td>
  17249. </tr>
  17250. <tr>
  17251. <td>coverId</td>
  17252. <td>string¦null</td>
  17253. <td>false</td>
  17254. <td>none</td>
  17255. <td>Cover ID of the card</td>
  17256. </tr>
  17257. <tr>
  17258. <td>color</td>
  17259. <td>string¦null</td>
  17260. <td>false</td>
  17261. <td>none</td>
  17262. <td>none</td>
  17263. </tr>
  17264. <tr>
  17265. <td>createdAt</td>
  17266. <td>string</td>
  17267. <td>true</td>
  17268. <td>none</td>
  17269. <td>creation date</td>
  17270. </tr>
  17271. <tr>
  17272. <td>modifiedAt</td>
  17273. <td>string</td>
  17274. <td>true</td>
  17275. <td>none</td>
  17276. <td>none</td>
  17277. </tr>
  17278. <tr>
  17279. <td>customFields</td>
  17280. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17281. <td>false</td>
  17282. <td>none</td>
  17283. <td>list of custom fields</td>
  17284. </tr>
  17285. <tr>
  17286. <td>dateLastActivity</td>
  17287. <td>string</td>
  17288. <td>true</td>
  17289. <td>none</td>
  17290. <td>Date of last activity</td>
  17291. </tr>
  17292. <tr>
  17293. <td>description</td>
  17294. <td>string¦null</td>
  17295. <td>false</td>
  17296. <td>none</td>
  17297. <td>description of the card</td>
  17298. </tr>
  17299. <tr>
  17300. <td>requestedBy</td>
  17301. <td>string¦null</td>
  17302. <td>false</td>
  17303. <td>none</td>
  17304. <td>who requested the card (ID of the user)</td>
  17305. </tr>
  17306. <tr>
  17307. <td>assignedBy</td>
  17308. <td>string¦null</td>
  17309. <td>false</td>
  17310. <td>none</td>
  17311. <td>who assigned the card (ID of the user)</td>
  17312. </tr>
  17313. <tr>
  17314. <td>labelIds</td>
  17315. <td>[string]¦null</td>
  17316. <td>false</td>
  17317. <td>none</td>
  17318. <td>list of labels ID the card has</td>
  17319. </tr>
  17320. <tr>
  17321. <td>members</td>
  17322. <td>[string]¦null</td>
  17323. <td>false</td>
  17324. <td>none</td>
  17325. <td>list of members (user IDs)</td>
  17326. </tr>
  17327. <tr>
  17328. <td>assignees</td>
  17329. <td>[string]¦null</td>
  17330. <td>false</td>
  17331. <td>none</td>
  17332. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  17333. </tr>
  17334. <tr>
  17335. <td>receivedAt</td>
  17336. <td>string¦null</td>
  17337. <td>false</td>
  17338. <td>none</td>
  17339. <td>Date the card was received</td>
  17340. </tr>
  17341. <tr>
  17342. <td>startAt</td>
  17343. <td>string¦null</td>
  17344. <td>false</td>
  17345. <td>none</td>
  17346. <td>Date the card was started to be worked on</td>
  17347. </tr>
  17348. <tr>
  17349. <td>dueAt</td>
  17350. <td>string¦null</td>
  17351. <td>false</td>
  17352. <td>none</td>
  17353. <td>Date the card is due</td>
  17354. </tr>
  17355. <tr>
  17356. <td>endAt</td>
  17357. <td>string¦null</td>
  17358. <td>false</td>
  17359. <td>none</td>
  17360. <td>Date the card ended</td>
  17361. </tr>
  17362. <tr>
  17363. <td>spentTime</td>
  17364. <td>number¦null</td>
  17365. <td>false</td>
  17366. <td>none</td>
  17367. <td>How much time has been spent on this</td>
  17368. </tr>
  17369. <tr>
  17370. <td>isOvertime</td>
  17371. <td>boolean¦null</td>
  17372. <td>false</td>
  17373. <td>none</td>
  17374. <td>is the card over time?</td>
  17375. </tr>
  17376. <tr>
  17377. <td>userId</td>
  17378. <td>string</td>
  17379. <td>true</td>
  17380. <td>none</td>
  17381. <td>user ID of the author of the card</td>
  17382. </tr>
  17383. <tr>
  17384. <td>sort</td>
  17385. <td>number¦null</td>
  17386. <td>false</td>
  17387. <td>none</td>
  17388. <td>Sort value</td>
  17389. </tr>
  17390. <tr>
  17391. <td>subtaskSort</td>
  17392. <td>number¦null</td>
  17393. <td>false</td>
  17394. <td>none</td>
  17395. <td>subtask sort value</td>
  17396. </tr>
  17397. <tr>
  17398. <td>type</td>
  17399. <td>string</td>
  17400. <td>true</td>
  17401. <td>none</td>
  17402. <td>type of the card</td>
  17403. </tr>
  17404. <tr>
  17405. <td>linkedId</td>
  17406. <td>string¦null</td>
  17407. <td>false</td>
  17408. <td>none</td>
  17409. <td>ID of the linked card</td>
  17410. </tr>
  17411. <tr>
  17412. <td>vote</td>
  17413. <td><a href="#schemacardsvote">CardsVote</a></td>
  17414. <td>false</td>
  17415. <td>none</td>
  17416. <td>none</td>
  17417. </tr>
  17418. <tr>
  17419. <td>poker</td>
  17420. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17421. <td>false</td>
  17422. <td>none</td>
  17423. <td>none</td>
  17424. </tr>
  17425. <tr>
  17426. <td>targetId_gantt</td>
  17427. <td>[string]¦null</td>
  17428. <td>false</td>
  17429. <td>none</td>
  17430. <td>ID of card which is the child link in gantt view</td>
  17431. </tr>
  17432. <tr>
  17433. <td>linkType_gantt</td>
  17434. <td>[number]¦null</td>
  17435. <td>false</td>
  17436. <td>none</td>
  17437. <td>ID of card which is the parent link in gantt view</td>
  17438. </tr>
  17439. <tr>
  17440. <td>linkId_gantt</td>
  17441. <td>[string]¦null</td>
  17442. <td>false</td>
  17443. <td>none</td>
  17444. <td>ID of card which is the parent link in gantt view</td>
  17445. </tr>
  17446. <tr>
  17447. <td>cardNumber</td>
  17448. <td>number¦null</td>
  17449. <td>false</td>
  17450. <td>none</td>
  17451. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17452. </tr>
  17453. </tbody>
  17454. </table>
  17455. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17456. <table>
  17457. <thead>
  17458. <tr>
  17459. <th>Property</th>
  17460. <th>Value</th>
  17461. </tr>
  17462. </thead>
  17463. <tbody>
  17464. <tr>
  17465. <td>color</td>
  17466. <td>white</td>
  17467. </tr>
  17468. <tr>
  17469. <td>color</td>
  17470. <td>green</td>
  17471. </tr>
  17472. <tr>
  17473. <td>color</td>
  17474. <td>yellow</td>
  17475. </tr>
  17476. <tr>
  17477. <td>color</td>
  17478. <td>orange</td>
  17479. </tr>
  17480. <tr>
  17481. <td>color</td>
  17482. <td>red</td>
  17483. </tr>
  17484. <tr>
  17485. <td>color</td>
  17486. <td>purple</td>
  17487. </tr>
  17488. <tr>
  17489. <td>color</td>
  17490. <td>blue</td>
  17491. </tr>
  17492. <tr>
  17493. <td>color</td>
  17494. <td>sky</td>
  17495. </tr>
  17496. <tr>
  17497. <td>color</td>
  17498. <td>lime</td>
  17499. </tr>
  17500. <tr>
  17501. <td>color</td>
  17502. <td>pink</td>
  17503. </tr>
  17504. <tr>
  17505. <td>color</td>
  17506. <td>black</td>
  17507. </tr>
  17508. <tr>
  17509. <td>color</td>
  17510. <td>silver</td>
  17511. </tr>
  17512. <tr>
  17513. <td>color</td>
  17514. <td>peachpuff</td>
  17515. </tr>
  17516. <tr>
  17517. <td>color</td>
  17518. <td>crimson</td>
  17519. </tr>
  17520. <tr>
  17521. <td>color</td>
  17522. <td>plum</td>
  17523. </tr>
  17524. <tr>
  17525. <td>color</td>
  17526. <td>darkgreen</td>
  17527. </tr>
  17528. <tr>
  17529. <td>color</td>
  17530. <td>slateblue</td>
  17531. </tr>
  17532. <tr>
  17533. <td>color</td>
  17534. <td>magenta</td>
  17535. </tr>
  17536. <tr>
  17537. <td>color</td>
  17538. <td>gold</td>
  17539. </tr>
  17540. <tr>
  17541. <td>color</td>
  17542. <td>navy</td>
  17543. </tr>
  17544. <tr>
  17545. <td>color</td>
  17546. <td>gray</td>
  17547. </tr>
  17548. <tr>
  17549. <td>color</td>
  17550. <td>saddlebrown</td>
  17551. </tr>
  17552. <tr>
  17553. <td>color</td>
  17554. <td>paleturquoise</td>
  17555. </tr>
  17556. <tr>
  17557. <td>color</td>
  17558. <td>mistyrose</td>
  17559. </tr>
  17560. <tr>
  17561. <td>color</td>
  17562. <td>indigo</td>
  17563. </tr>
  17564. </tbody>
  17565. </table>
  17566. <h2 id="tocs_cardsvote">CardsVote</h2>
  17567. <p><a id="schemacardsvote"></a>
  17568. <a id="schema_CardsVote"></a>
  17569. <a id="tocScardsvote"></a>
  17570. <a id="tocscardsvote"></a></p>
  17571. <pre class="highlight tab tab-json"><code>{
  17572. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17573. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17574. <span class="hljs-string">&quot;string&quot;</span>
  17575. ],
  17576. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17577. <span class="hljs-string">&quot;string&quot;</span>
  17578. ],
  17579. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17580. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17581. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17582. }
  17583. </code></pre>
  17584. <h3 id="properties-8">Properties</h3>
  17585. <table>
  17586. <thead>
  17587. <tr>
  17588. <th>Name</th>
  17589. <th>Type</th>
  17590. <th>Required</th>
  17591. <th>Restrictions</th>
  17592. <th>Description</th>
  17593. </tr>
  17594. </thead>
  17595. <tbody>
  17596. <tr>
  17597. <td>question</td>
  17598. <td>string</td>
  17599. <td>true</td>
  17600. <td>none</td>
  17601. <td>none</td>
  17602. </tr>
  17603. <tr>
  17604. <td>positive</td>
  17605. <td>[string]</td>
  17606. <td>false</td>
  17607. <td>none</td>
  17608. <td>list of members (user IDs)</td>
  17609. </tr>
  17610. <tr>
  17611. <td>negative</td>
  17612. <td>[string]</td>
  17613. <td>false</td>
  17614. <td>none</td>
  17615. <td>list of members (user IDs)</td>
  17616. </tr>
  17617. <tr>
  17618. <td>end</td>
  17619. <td>string</td>
  17620. <td>false</td>
  17621. <td>none</td>
  17622. <td>none</td>
  17623. </tr>
  17624. <tr>
  17625. <td>public</td>
  17626. <td>boolean</td>
  17627. <td>true</td>
  17628. <td>none</td>
  17629. <td>none</td>
  17630. </tr>
  17631. <tr>
  17632. <td>allowNonBoardMembers</td>
  17633. <td>boolean</td>
  17634. <td>true</td>
  17635. <td>none</td>
  17636. <td>none</td>
  17637. </tr>
  17638. </tbody>
  17639. </table>
  17640. <h2 id="tocs_cardspoker">CardsPoker</h2>
  17641. <p><a id="schemacardspoker"></a>
  17642. <a id="schema_CardsPoker"></a>
  17643. <a id="tocScardspoker"></a>
  17644. <a id="tocscardspoker"></a></p>
  17645. <pre class="highlight tab tab-json"><code>{
  17646. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17647. <span class="hljs-attr">&quot;one&quot;</span>: [
  17648. <span class="hljs-string">&quot;string&quot;</span>
  17649. ],
  17650. <span class="hljs-attr">&quot;two&quot;</span>: [
  17651. <span class="hljs-string">&quot;string&quot;</span>
  17652. ],
  17653. <span class="hljs-attr">&quot;three&quot;</span>: [
  17654. <span class="hljs-string">&quot;string&quot;</span>
  17655. ],
  17656. <span class="hljs-attr">&quot;five&quot;</span>: [
  17657. <span class="hljs-string">&quot;string&quot;</span>
  17658. ],
  17659. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17660. <span class="hljs-string">&quot;string&quot;</span>
  17661. ],
  17662. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17663. <span class="hljs-string">&quot;string&quot;</span>
  17664. ],
  17665. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17666. <span class="hljs-string">&quot;string&quot;</span>
  17667. ],
  17668. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17669. <span class="hljs-string">&quot;string&quot;</span>
  17670. ],
  17671. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17672. <span class="hljs-string">&quot;string&quot;</span>
  17673. ],
  17674. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17675. <span class="hljs-string">&quot;string&quot;</span>
  17676. ],
  17677. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17678. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17679. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17680. }
  17681. </code></pre>
  17682. <h3 id="properties-9">Properties</h3>
  17683. <table>
  17684. <thead>
  17685. <tr>
  17686. <th>Name</th>
  17687. <th>Type</th>
  17688. <th>Required</th>
  17689. <th>Restrictions</th>
  17690. <th>Description</th>
  17691. </tr>
  17692. </thead>
  17693. <tbody>
  17694. <tr>
  17695. <td>question</td>
  17696. <td>boolean</td>
  17697. <td>true</td>
  17698. <td>none</td>
  17699. <td>none</td>
  17700. </tr>
  17701. <tr>
  17702. <td>one</td>
  17703. <td>[string]</td>
  17704. <td>false</td>
  17705. <td>none</td>
  17706. <td>poker card one</td>
  17707. </tr>
  17708. <tr>
  17709. <td>two</td>
  17710. <td>[string]</td>
  17711. <td>false</td>
  17712. <td>none</td>
  17713. <td>poker card two</td>
  17714. </tr>
  17715. <tr>
  17716. <td>three</td>
  17717. <td>[string]</td>
  17718. <td>false</td>
  17719. <td>none</td>
  17720. <td>poker card three</td>
  17721. </tr>
  17722. <tr>
  17723. <td>five</td>
  17724. <td>[string]</td>
  17725. <td>false</td>
  17726. <td>none</td>
  17727. <td>poker card five</td>
  17728. </tr>
  17729. <tr>
  17730. <td>eight</td>
  17731. <td>[string]</td>
  17732. <td>false</td>
  17733. <td>none</td>
  17734. <td>poker card eight</td>
  17735. </tr>
  17736. <tr>
  17737. <td>thirteen</td>
  17738. <td>[string]</td>
  17739. <td>false</td>
  17740. <td>none</td>
  17741. <td>poker card thirteen</td>
  17742. </tr>
  17743. <tr>
  17744. <td>twenty</td>
  17745. <td>[string]</td>
  17746. <td>false</td>
  17747. <td>none</td>
  17748. <td>poker card twenty</td>
  17749. </tr>
  17750. <tr>
  17751. <td>forty</td>
  17752. <td>[string]</td>
  17753. <td>false</td>
  17754. <td>none</td>
  17755. <td>poker card forty</td>
  17756. </tr>
  17757. <tr>
  17758. <td>oneHundred</td>
  17759. <td>[string]</td>
  17760. <td>false</td>
  17761. <td>none</td>
  17762. <td>poker card oneHundred</td>
  17763. </tr>
  17764. <tr>
  17765. <td>unsure</td>
  17766. <td>[string]</td>
  17767. <td>false</td>
  17768. <td>none</td>
  17769. <td>poker card unsure</td>
  17770. </tr>
  17771. <tr>
  17772. <td>end</td>
  17773. <td>string</td>
  17774. <td>false</td>
  17775. <td>none</td>
  17776. <td>none</td>
  17777. </tr>
  17778. <tr>
  17779. <td>allowNonBoardMembers</td>
  17780. <td>boolean</td>
  17781. <td>true</td>
  17782. <td>none</td>
  17783. <td>none</td>
  17784. </tr>
  17785. <tr>
  17786. <td>estimation</td>
  17787. <td>number</td>
  17788. <td>false</td>
  17789. <td>none</td>
  17790. <td>poker estimation value</td>
  17791. </tr>
  17792. </tbody>
  17793. </table>
  17794. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17795. <p><a id="schemacardscustomfields"></a>
  17796. <a id="schema_CardsCustomfields"></a>
  17797. <a id="tocScardscustomfields"></a>
  17798. <a id="tocscardscustomfields"></a></p>
  17799. <pre class="highlight tab tab-json"><code>{}
  17800. </code></pre>
  17801. <h3 id="properties-10">Properties</h3>
  17802. <p><em>None</em></p>
  17803. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17804. <p><a id="schemachecklistitems"></a>
  17805. <a id="schema_ChecklistItems"></a>
  17806. <a id="tocSchecklistitems"></a>
  17807. <a id="tocschecklistitems"></a></p>
  17808. <pre class="highlight tab tab-json"><code>{
  17809. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17810. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17811. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17812. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17813. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17814. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17815. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17816. }
  17817. </code></pre>
  17818. <p>An item in a checklist</p>
  17819. <h3 id="properties-11">Properties</h3>
  17820. <table>
  17821. <thead>
  17822. <tr>
  17823. <th>Name</th>
  17824. <th>Type</th>
  17825. <th>Required</th>
  17826. <th>Restrictions</th>
  17827. <th>Description</th>
  17828. </tr>
  17829. </thead>
  17830. <tbody>
  17831. <tr>
  17832. <td>title</td>
  17833. <td>string</td>
  17834. <td>true</td>
  17835. <td>none</td>
  17836. <td>the text of the item</td>
  17837. </tr>
  17838. <tr>
  17839. <td>sort</td>
  17840. <td>number</td>
  17841. <td>true</td>
  17842. <td>none</td>
  17843. <td>the sorting field of the item</td>
  17844. </tr>
  17845. <tr>
  17846. <td>isFinished</td>
  17847. <td>boolean</td>
  17848. <td>true</td>
  17849. <td>none</td>
  17850. <td>Is the item checked?</td>
  17851. </tr>
  17852. <tr>
  17853. <td>checklistId</td>
  17854. <td>string</td>
  17855. <td>true</td>
  17856. <td>none</td>
  17857. <td>the checklist ID the item is attached to</td>
  17858. </tr>
  17859. <tr>
  17860. <td>cardId</td>
  17861. <td>string</td>
  17862. <td>true</td>
  17863. <td>none</td>
  17864. <td>the card ID the item is attached to</td>
  17865. </tr>
  17866. <tr>
  17867. <td>createdAt</td>
  17868. <td>string¦null</td>
  17869. <td>false</td>
  17870. <td>none</td>
  17871. <td>none</td>
  17872. </tr>
  17873. <tr>
  17874. <td>modifiedAt</td>
  17875. <td>string</td>
  17876. <td>true</td>
  17877. <td>none</td>
  17878. <td>none</td>
  17879. </tr>
  17880. </tbody>
  17881. </table>
  17882. <h2 id="tocs_checklists">Checklists</h2>
  17883. <p><a id="schemachecklists"></a>
  17884. <a id="schema_Checklists"></a>
  17885. <a id="tocSchecklists"></a>
  17886. <a id="tocschecklists"></a></p>
  17887. <pre class="highlight tab tab-json"><code>{
  17888. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17889. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17890. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17891. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17892. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17893. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17894. }
  17895. </code></pre>
  17896. <p>A Checklist</p>
  17897. <h3 id="properties-12">Properties</h3>
  17898. <table>
  17899. <thead>
  17900. <tr>
  17901. <th>Name</th>
  17902. <th>Type</th>
  17903. <th>Required</th>
  17904. <th>Restrictions</th>
  17905. <th>Description</th>
  17906. </tr>
  17907. </thead>
  17908. <tbody>
  17909. <tr>
  17910. <td>cardId</td>
  17911. <td>string</td>
  17912. <td>true</td>
  17913. <td>none</td>
  17914. <td>The ID of the card the checklist is in</td>
  17915. </tr>
  17916. <tr>
  17917. <td>title</td>
  17918. <td>string</td>
  17919. <td>true</td>
  17920. <td>none</td>
  17921. <td>the title of the checklist</td>
  17922. </tr>
  17923. <tr>
  17924. <td>finishedAt</td>
  17925. <td>string¦null</td>
  17926. <td>false</td>
  17927. <td>none</td>
  17928. <td>When was the checklist finished</td>
  17929. </tr>
  17930. <tr>
  17931. <td>createdAt</td>
  17932. <td>string</td>
  17933. <td>true</td>
  17934. <td>none</td>
  17935. <td>Creation date of the checklist</td>
  17936. </tr>
  17937. <tr>
  17938. <td>modifiedAt</td>
  17939. <td>string</td>
  17940. <td>true</td>
  17941. <td>none</td>
  17942. <td>none</td>
  17943. </tr>
  17944. <tr>
  17945. <td>sort</td>
  17946. <td>number</td>
  17947. <td>true</td>
  17948. <td>none</td>
  17949. <td>sorting value of the checklist</td>
  17950. </tr>
  17951. </tbody>
  17952. </table>
  17953. <h2 id="tocs_customfields">CustomFields</h2>
  17954. <p><a id="schemacustomfields"></a>
  17955. <a id="schema_CustomFields"></a>
  17956. <a id="tocScustomfields"></a>
  17957. <a id="tocscustomfields"></a></p>
  17958. <pre class="highlight tab tab-json"><code>{
  17959. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17960. <span class="hljs-string">&quot;string&quot;</span>
  17961. ],
  17962. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17963. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17964. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17965. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17966. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17967. {}
  17968. ],
  17969. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17970. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17971. },
  17972. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17973. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17974. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17975. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17976. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  17977. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17978. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17979. }
  17980. </code></pre>
  17981. <p>A custom field on a card in the board</p>
  17982. <h3 id="properties-13">Properties</h3>
  17983. <table>
  17984. <thead>
  17985. <tr>
  17986. <th>Name</th>
  17987. <th>Type</th>
  17988. <th>Required</th>
  17989. <th>Restrictions</th>
  17990. <th>Description</th>
  17991. </tr>
  17992. </thead>
  17993. <tbody>
  17994. <tr>
  17995. <td>boardIds</td>
  17996. <td>[string]</td>
  17997. <td>true</td>
  17998. <td>none</td>
  17999. <td>the ID of the board</td>
  18000. </tr>
  18001. <tr>
  18002. <td>name</td>
  18003. <td>string</td>
  18004. <td>true</td>
  18005. <td>none</td>
  18006. <td>name of the custom field</td>
  18007. </tr>
  18008. <tr>
  18009. <td>type</td>
  18010. <td>string</td>
  18011. <td>true</td>
  18012. <td>none</td>
  18013. <td>type of the custom field</td>
  18014. </tr>
  18015. <tr>
  18016. <td>settings</td>
  18017. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  18018. <td>true</td>
  18019. <td>none</td>
  18020. <td>none</td>
  18021. </tr>
  18022. <tr>
  18023. <td>showOnCard</td>
  18024. <td>boolean</td>
  18025. <td>true</td>
  18026. <td>none</td>
  18027. <td>should we show on the cards this custom field</td>
  18028. </tr>
  18029. <tr>
  18030. <td>automaticallyOnCard</td>
  18031. <td>boolean</td>
  18032. <td>true</td>
  18033. <td>none</td>
  18034. <td>should the custom fields automatically be added on cards?</td>
  18035. </tr>
  18036. <tr>
  18037. <td>alwaysOnCard</td>
  18038. <td>boolean</td>
  18039. <td>true</td>
  18040. <td>none</td>
  18041. <td>should the custom field be automatically added to all cards?</td>
  18042. </tr>
  18043. <tr>
  18044. <td>showLabelOnMiniCard</td>
  18045. <td>boolean</td>
  18046. <td>true</td>
  18047. <td>none</td>
  18048. <td>should the label of the custom field be shown on minicards?</td>
  18049. </tr>
  18050. <tr>
  18051. <td>showSumAtTopOfList</td>
  18052. <td>boolean</td>
  18053. <td>true</td>
  18054. <td>none</td>
  18055. <td>should the sum of the custom fields be shown at top of list?</td>
  18056. </tr>
  18057. <tr>
  18058. <td>createdAt</td>
  18059. <td>string¦null</td>
  18060. <td>false</td>
  18061. <td>none</td>
  18062. <td>none</td>
  18063. </tr>
  18064. <tr>
  18065. <td>modifiedAt</td>
  18066. <td>string</td>
  18067. <td>true</td>
  18068. <td>none</td>
  18069. <td>none</td>
  18070. </tr>
  18071. </tbody>
  18072. </table>
  18073. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18074. <table>
  18075. <thead>
  18076. <tr>
  18077. <th>Property</th>
  18078. <th>Value</th>
  18079. </tr>
  18080. </thead>
  18081. <tbody>
  18082. <tr>
  18083. <td>type</td>
  18084. <td>text</td>
  18085. </tr>
  18086. <tr>
  18087. <td>type</td>
  18088. <td>number</td>
  18089. </tr>
  18090. <tr>
  18091. <td>type</td>
  18092. <td>date</td>
  18093. </tr>
  18094. <tr>
  18095. <td>type</td>
  18096. <td>dropdown</td>
  18097. </tr>
  18098. <tr>
  18099. <td>type</td>
  18100. <td>checkbox</td>
  18101. </tr>
  18102. <tr>
  18103. <td>type</td>
  18104. <td>currency</td>
  18105. </tr>
  18106. <tr>
  18107. <td>type</td>
  18108. <td>stringtemplate</td>
  18109. </tr>
  18110. </tbody>
  18111. </table>
  18112. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18113. <p><a id="schemacustomfieldssettings"></a>
  18114. <a id="schema_CustomFieldsSettings"></a>
  18115. <a id="tocScustomfieldssettings"></a>
  18116. <a id="tocscustomfieldssettings"></a></p>
  18117. <pre class="highlight tab tab-json"><code>{
  18118. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18119. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18120. {}
  18121. ],
  18122. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18123. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18124. }
  18125. </code></pre>
  18126. <h3 id="properties-14">Properties</h3>
  18127. <table>
  18128. <thead>
  18129. <tr>
  18130. <th>Name</th>
  18131. <th>Type</th>
  18132. <th>Required</th>
  18133. <th>Restrictions</th>
  18134. <th>Description</th>
  18135. </tr>
  18136. </thead>
  18137. <tbody>
  18138. <tr>
  18139. <td>currencyCode</td>
  18140. <td>string</td>
  18141. <td>false</td>
  18142. <td>none</td>
  18143. <td>none</td>
  18144. </tr>
  18145. <tr>
  18146. <td>dropdownItems</td>
  18147. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18148. <td>false</td>
  18149. <td>none</td>
  18150. <td>list of drop down items objects</td>
  18151. </tr>
  18152. <tr>
  18153. <td>stringtemplateFormat</td>
  18154. <td>string</td>
  18155. <td>false</td>
  18156. <td>none</td>
  18157. <td>none</td>
  18158. </tr>
  18159. <tr>
  18160. <td>stringtemplateSeparator</td>
  18161. <td>string</td>
  18162. <td>false</td>
  18163. <td>none</td>
  18164. <td>none</td>
  18165. </tr>
  18166. </tbody>
  18167. </table>
  18168. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18169. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18170. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18171. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18172. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18173. <pre class="highlight tab tab-json"><code>{}
  18174. </code></pre>
  18175. <h3 id="properties-15">Properties</h3>
  18176. <p><em>None</em></p>
  18177. <h2 id="tocs_integrations">Integrations</h2>
  18178. <p><a id="schemaintegrations"></a>
  18179. <a id="schema_Integrations"></a>
  18180. <a id="tocSintegrations"></a>
  18181. <a id="tocsintegrations"></a></p>
  18182. <pre class="highlight tab tab-json"><code>{
  18183. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18184. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18185. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18186. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18187. <span class="hljs-string">&quot;string&quot;</span>
  18188. ],
  18189. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18190. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18191. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18192. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18193. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18194. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18195. }
  18196. </code></pre>
  18197. <p>Integration with third-party applications</p>
  18198. <h3 id="properties-16">Properties</h3>
  18199. <table>
  18200. <thead>
  18201. <tr>
  18202. <th>Name</th>
  18203. <th>Type</th>
  18204. <th>Required</th>
  18205. <th>Restrictions</th>
  18206. <th>Description</th>
  18207. </tr>
  18208. </thead>
  18209. <tbody>
  18210. <tr>
  18211. <td>enabled</td>
  18212. <td>boolean</td>
  18213. <td>true</td>
  18214. <td>none</td>
  18215. <td>is the integration enabled?</td>
  18216. </tr>
  18217. <tr>
  18218. <td>title</td>
  18219. <td>string¦null</td>
  18220. <td>false</td>
  18221. <td>none</td>
  18222. <td>name of the integration</td>
  18223. </tr>
  18224. <tr>
  18225. <td>type</td>
  18226. <td>string</td>
  18227. <td>true</td>
  18228. <td>none</td>
  18229. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18230. </tr>
  18231. <tr>
  18232. <td>activities</td>
  18233. <td>[string]</td>
  18234. <td>true</td>
  18235. <td>none</td>
  18236. <td>activities the integration gets triggered (list)</td>
  18237. </tr>
  18238. <tr>
  18239. <td>url</td>
  18240. <td>string</td>
  18241. <td>true</td>
  18242. <td>none</td>
  18243. <td>none</td>
  18244. </tr>
  18245. <tr>
  18246. <td>token</td>
  18247. <td>string¦null</td>
  18248. <td>false</td>
  18249. <td>none</td>
  18250. <td>token of the integration</td>
  18251. </tr>
  18252. <tr>
  18253. <td>boardId</td>
  18254. <td>string</td>
  18255. <td>true</td>
  18256. <td>none</td>
  18257. <td>Board ID of the integration</td>
  18258. </tr>
  18259. <tr>
  18260. <td>createdAt</td>
  18261. <td>string</td>
  18262. <td>true</td>
  18263. <td>none</td>
  18264. <td>Creation date of the integration</td>
  18265. </tr>
  18266. <tr>
  18267. <td>modifiedAt</td>
  18268. <td>string</td>
  18269. <td>true</td>
  18270. <td>none</td>
  18271. <td>none</td>
  18272. </tr>
  18273. <tr>
  18274. <td>userId</td>
  18275. <td>string</td>
  18276. <td>true</td>
  18277. <td>none</td>
  18278. <td>user ID who created the interation</td>
  18279. </tr>
  18280. </tbody>
  18281. </table>
  18282. <h2 id="tocs_lists">Lists</h2>
  18283. <p><a id="schemalists"></a>
  18284. <a id="schema_Lists"></a>
  18285. <a id="tocSlists"></a>
  18286. <a id="tocslists"></a></p>
  18287. <pre class="highlight tab tab-json"><code>{
  18288. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18289. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18290. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18291. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18292. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18293. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18294. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18295. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18296. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18297. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18298. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18299. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18300. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18301. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18302. },
  18303. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18304. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18305. }
  18306. </code></pre>
  18307. <p>A list (column) in the Wekan board.</p>
  18308. <h3 id="properties-17">Properties</h3>
  18309. <table>
  18310. <thead>
  18311. <tr>
  18312. <th>Name</th>
  18313. <th>Type</th>
  18314. <th>Required</th>
  18315. <th>Restrictions</th>
  18316. <th>Description</th>
  18317. </tr>
  18318. </thead>
  18319. <tbody>
  18320. <tr>
  18321. <td>title</td>
  18322. <td>string</td>
  18323. <td>true</td>
  18324. <td>none</td>
  18325. <td>the title of the list</td>
  18326. </tr>
  18327. <tr>
  18328. <td>starred</td>
  18329. <td>boolean¦null</td>
  18330. <td>false</td>
  18331. <td>none</td>
  18332. <td>if a list is stared<br />then we put it on the top</td>
  18333. </tr>
  18334. <tr>
  18335. <td>archived</td>
  18336. <td>boolean</td>
  18337. <td>true</td>
  18338. <td>none</td>
  18339. <td>is the list archived</td>
  18340. </tr>
  18341. <tr>
  18342. <td>archivedAt</td>
  18343. <td>string¦null</td>
  18344. <td>false</td>
  18345. <td>none</td>
  18346. <td>latest archiving date</td>
  18347. </tr>
  18348. <tr>
  18349. <td>boardId</td>
  18350. <td>string</td>
  18351. <td>true</td>
  18352. <td>none</td>
  18353. <td>the board associated to this list</td>
  18354. </tr>
  18355. <tr>
  18356. <td>swimlaneId</td>
  18357. <td>string</td>
  18358. <td>true</td>
  18359. <td>none</td>
  18360. <td>the swimlane associated to this list. Used for templates</td>
  18361. </tr>
  18362. <tr>
  18363. <td>createdAt</td>
  18364. <td>string</td>
  18365. <td>true</td>
  18366. <td>none</td>
  18367. <td>creation date</td>
  18368. </tr>
  18369. <tr>
  18370. <td>sort</td>
  18371. <td>number¦null</td>
  18372. <td>false</td>
  18373. <td>none</td>
  18374. <td>is the list sorted</td>
  18375. </tr>
  18376. <tr>
  18377. <td>updatedAt</td>
  18378. <td>string¦null</td>
  18379. <td>false</td>
  18380. <td>none</td>
  18381. <td>last update of the list</td>
  18382. </tr>
  18383. <tr>
  18384. <td>modifiedAt</td>
  18385. <td>string</td>
  18386. <td>true</td>
  18387. <td>none</td>
  18388. <td>none</td>
  18389. </tr>
  18390. <tr>
  18391. <td>wipLimit</td>
  18392. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  18393. <td>false</td>
  18394. <td>none</td>
  18395. <td>none</td>
  18396. </tr>
  18397. <tr>
  18398. <td>color</td>
  18399. <td>string¦null</td>
  18400. <td>false</td>
  18401. <td>none</td>
  18402. <td>the color of the list</td>
  18403. </tr>
  18404. <tr>
  18405. <td>type</td>
  18406. <td>string</td>
  18407. <td>true</td>
  18408. <td>none</td>
  18409. <td>The type of list</td>
  18410. </tr>
  18411. </tbody>
  18412. </table>
  18413. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18414. <table>
  18415. <thead>
  18416. <tr>
  18417. <th>Property</th>
  18418. <th>Value</th>
  18419. </tr>
  18420. </thead>
  18421. <tbody>
  18422. <tr>
  18423. <td>color</td>
  18424. <td>white</td>
  18425. </tr>
  18426. <tr>
  18427. <td>color</td>
  18428. <td>green</td>
  18429. </tr>
  18430. <tr>
  18431. <td>color</td>
  18432. <td>yellow</td>
  18433. </tr>
  18434. <tr>
  18435. <td>color</td>
  18436. <td>orange</td>
  18437. </tr>
  18438. <tr>
  18439. <td>color</td>
  18440. <td>red</td>
  18441. </tr>
  18442. <tr>
  18443. <td>color</td>
  18444. <td>purple</td>
  18445. </tr>
  18446. <tr>
  18447. <td>color</td>
  18448. <td>blue</td>
  18449. </tr>
  18450. <tr>
  18451. <td>color</td>
  18452. <td>sky</td>
  18453. </tr>
  18454. <tr>
  18455. <td>color</td>
  18456. <td>lime</td>
  18457. </tr>
  18458. <tr>
  18459. <td>color</td>
  18460. <td>pink</td>
  18461. </tr>
  18462. <tr>
  18463. <td>color</td>
  18464. <td>black</td>
  18465. </tr>
  18466. <tr>
  18467. <td>color</td>
  18468. <td>silver</td>
  18469. </tr>
  18470. <tr>
  18471. <td>color</td>
  18472. <td>peachpuff</td>
  18473. </tr>
  18474. <tr>
  18475. <td>color</td>
  18476. <td>crimson</td>
  18477. </tr>
  18478. <tr>
  18479. <td>color</td>
  18480. <td>plum</td>
  18481. </tr>
  18482. <tr>
  18483. <td>color</td>
  18484. <td>darkgreen</td>
  18485. </tr>
  18486. <tr>
  18487. <td>color</td>
  18488. <td>slateblue</td>
  18489. </tr>
  18490. <tr>
  18491. <td>color</td>
  18492. <td>magenta</td>
  18493. </tr>
  18494. <tr>
  18495. <td>color</td>
  18496. <td>gold</td>
  18497. </tr>
  18498. <tr>
  18499. <td>color</td>
  18500. <td>navy</td>
  18501. </tr>
  18502. <tr>
  18503. <td>color</td>
  18504. <td>gray</td>
  18505. </tr>
  18506. <tr>
  18507. <td>color</td>
  18508. <td>saddlebrown</td>
  18509. </tr>
  18510. <tr>
  18511. <td>color</td>
  18512. <td>paleturquoise</td>
  18513. </tr>
  18514. <tr>
  18515. <td>color</td>
  18516. <td>mistyrose</td>
  18517. </tr>
  18518. <tr>
  18519. <td>color</td>
  18520. <td>indigo</td>
  18521. </tr>
  18522. </tbody>
  18523. </table>
  18524. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18525. <p><a id="schemalistswiplimit"></a>
  18526. <a id="schema_ListsWiplimit"></a>
  18527. <a id="tocSlistswiplimit"></a>
  18528. <a id="tocslistswiplimit"></a></p>
  18529. <pre class="highlight tab tab-json"><code>{
  18530. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18531. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18532. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18533. }
  18534. </code></pre>
  18535. <h3 id="properties-18">Properties</h3>
  18536. <table>
  18537. <thead>
  18538. <tr>
  18539. <th>Name</th>
  18540. <th>Type</th>
  18541. <th>Required</th>
  18542. <th>Restrictions</th>
  18543. <th>Description</th>
  18544. </tr>
  18545. </thead>
  18546. <tbody>
  18547. <tr>
  18548. <td>value</td>
  18549. <td>number</td>
  18550. <td>true</td>
  18551. <td>none</td>
  18552. <td>value of the WIP</td>
  18553. </tr>
  18554. <tr>
  18555. <td>enabled</td>
  18556. <td>boolean</td>
  18557. <td>true</td>
  18558. <td>none</td>
  18559. <td>is the WIP enabled</td>
  18560. </tr>
  18561. <tr>
  18562. <td>soft</td>
  18563. <td>boolean</td>
  18564. <td>true</td>
  18565. <td>none</td>
  18566. <td>is the WIP a soft or hard requirement</td>
  18567. </tr>
  18568. </tbody>
  18569. </table>
  18570. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18571. <p><a id="schemaswimlanes"></a>
  18572. <a id="schema_Swimlanes"></a>
  18573. <a id="tocSswimlanes"></a>
  18574. <a id="tocsswimlanes"></a></p>
  18575. <pre class="highlight tab tab-json"><code>{
  18576. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18577. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18578. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18579. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18580. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18581. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18582. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18583. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18584. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18585. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18586. }
  18587. </code></pre>
  18588. <p>A swimlane is an line in the kaban board.</p>
  18589. <h3 id="properties-19">Properties</h3>
  18590. <table>
  18591. <thead>
  18592. <tr>
  18593. <th>Name</th>
  18594. <th>Type</th>
  18595. <th>Required</th>
  18596. <th>Restrictions</th>
  18597. <th>Description</th>
  18598. </tr>
  18599. </thead>
  18600. <tbody>
  18601. <tr>
  18602. <td>title</td>
  18603. <td>string</td>
  18604. <td>true</td>
  18605. <td>none</td>
  18606. <td>the title of the swimlane</td>
  18607. </tr>
  18608. <tr>
  18609. <td>archived</td>
  18610. <td>boolean</td>
  18611. <td>true</td>
  18612. <td>none</td>
  18613. <td>is the swimlane archived?</td>
  18614. </tr>
  18615. <tr>
  18616. <td>archivedAt</td>
  18617. <td>string¦null</td>
  18618. <td>false</td>
  18619. <td>none</td>
  18620. <td>latest archiving date of the swimlane</td>
  18621. </tr>
  18622. <tr>
  18623. <td>boardId</td>
  18624. <td>string</td>
  18625. <td>true</td>
  18626. <td>none</td>
  18627. <td>the ID of the board the swimlane is attached to</td>
  18628. </tr>
  18629. <tr>
  18630. <td>createdAt</td>
  18631. <td>string</td>
  18632. <td>true</td>
  18633. <td>none</td>
  18634. <td>creation date of the swimlane</td>
  18635. </tr>
  18636. <tr>
  18637. <td>sort</td>
  18638. <td>number¦null</td>
  18639. <td>false</td>
  18640. <td>none</td>
  18641. <td>the sort value of the swimlane</td>
  18642. </tr>
  18643. <tr>
  18644. <td>color</td>
  18645. <td>string¦null</td>
  18646. <td>false</td>
  18647. <td>none</td>
  18648. <td>the color of the swimlane</td>
  18649. </tr>
  18650. <tr>
  18651. <td>updatedAt</td>
  18652. <td>string¦null</td>
  18653. <td>false</td>
  18654. <td>none</td>
  18655. <td>when was the swimlane last edited</td>
  18656. </tr>
  18657. <tr>
  18658. <td>modifiedAt</td>
  18659. <td>string</td>
  18660. <td>true</td>
  18661. <td>none</td>
  18662. <td>none</td>
  18663. </tr>
  18664. <tr>
  18665. <td>type</td>
  18666. <td>string</td>
  18667. <td>true</td>
  18668. <td>none</td>
  18669. <td>The type of swimlane</td>
  18670. </tr>
  18671. </tbody>
  18672. </table>
  18673. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18674. <table>
  18675. <thead>
  18676. <tr>
  18677. <th>Property</th>
  18678. <th>Value</th>
  18679. </tr>
  18680. </thead>
  18681. <tbody>
  18682. <tr>
  18683. <td>color</td>
  18684. <td>white</td>
  18685. </tr>
  18686. <tr>
  18687. <td>color</td>
  18688. <td>green</td>
  18689. </tr>
  18690. <tr>
  18691. <td>color</td>
  18692. <td>yellow</td>
  18693. </tr>
  18694. <tr>
  18695. <td>color</td>
  18696. <td>orange</td>
  18697. </tr>
  18698. <tr>
  18699. <td>color</td>
  18700. <td>red</td>
  18701. </tr>
  18702. <tr>
  18703. <td>color</td>
  18704. <td>purple</td>
  18705. </tr>
  18706. <tr>
  18707. <td>color</td>
  18708. <td>blue</td>
  18709. </tr>
  18710. <tr>
  18711. <td>color</td>
  18712. <td>sky</td>
  18713. </tr>
  18714. <tr>
  18715. <td>color</td>
  18716. <td>lime</td>
  18717. </tr>
  18718. <tr>
  18719. <td>color</td>
  18720. <td>pink</td>
  18721. </tr>
  18722. <tr>
  18723. <td>color</td>
  18724. <td>black</td>
  18725. </tr>
  18726. <tr>
  18727. <td>color</td>
  18728. <td>silver</td>
  18729. </tr>
  18730. <tr>
  18731. <td>color</td>
  18732. <td>peachpuff</td>
  18733. </tr>
  18734. <tr>
  18735. <td>color</td>
  18736. <td>crimson</td>
  18737. </tr>
  18738. <tr>
  18739. <td>color</td>
  18740. <td>plum</td>
  18741. </tr>
  18742. <tr>
  18743. <td>color</td>
  18744. <td>darkgreen</td>
  18745. </tr>
  18746. <tr>
  18747. <td>color</td>
  18748. <td>slateblue</td>
  18749. </tr>
  18750. <tr>
  18751. <td>color</td>
  18752. <td>magenta</td>
  18753. </tr>
  18754. <tr>
  18755. <td>color</td>
  18756. <td>gold</td>
  18757. </tr>
  18758. <tr>
  18759. <td>color</td>
  18760. <td>navy</td>
  18761. </tr>
  18762. <tr>
  18763. <td>color</td>
  18764. <td>gray</td>
  18765. </tr>
  18766. <tr>
  18767. <td>color</td>
  18768. <td>saddlebrown</td>
  18769. </tr>
  18770. <tr>
  18771. <td>color</td>
  18772. <td>paleturquoise</td>
  18773. </tr>
  18774. <tr>
  18775. <td>color</td>
  18776. <td>mistyrose</td>
  18777. </tr>
  18778. <tr>
  18779. <td>color</td>
  18780. <td>indigo</td>
  18781. </tr>
  18782. </tbody>
  18783. </table>
  18784. <h2 id="tocs_users">Users</h2>
  18785. <p><a id="schemausers"></a>
  18786. <a id="schema_Users"></a>
  18787. <a id="tocSusers"></a>
  18788. <a id="tocsusers"></a></p>
  18789. <pre class="highlight tab tab-json"><code>{
  18790. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18791. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  18792. {
  18793. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18794. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18795. }
  18796. ],
  18797. <span class="hljs-attr">&quot;teams&quot;</span>: [
  18798. {
  18799. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18800. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18801. }
  18802. ],
  18803. <span class="hljs-attr">&quot;emails&quot;</span>: [
  18804. {
  18805. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18806. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18807. }
  18808. ],
  18809. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18810. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18811. <span class="hljs-attr">&quot;profile&quot;</span>: {
  18812. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18813. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18814. <span class="hljs-string">&quot;string&quot;</span>
  18815. ],
  18816. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18817. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18818. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18819. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18820. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  18821. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18822. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18823. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18824. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18825. <span class="hljs-string">&quot;string&quot;</span>
  18826. ],
  18827. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18828. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  18829. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  18830. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  18831. {
  18832. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18833. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18834. }
  18835. ],
  18836. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18837. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18838. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18839. <span class="hljs-string">&quot;string&quot;</span>
  18840. ],
  18841. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18842. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18843. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18844. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18845. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18846. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18847. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18848. },
  18849. <span class="hljs-attr">&quot;services&quot;</span>: {},
  18850. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18851. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18852. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  18853. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  18854. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18855. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  18856. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  18857. },
  18858. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  18859. <span class="hljs-string">&quot;string&quot;</span>
  18860. ]
  18861. }
  18862. </code></pre>
  18863. <p>A User in wekan</p>
  18864. <h3 id="properties-20">Properties</h3>
  18865. <table>
  18866. <thead>
  18867. <tr>
  18868. <th>Name</th>
  18869. <th>Type</th>
  18870. <th>Required</th>
  18871. <th>Restrictions</th>
  18872. <th>Description</th>
  18873. </tr>
  18874. </thead>
  18875. <tbody>
  18876. <tr>
  18877. <td>username</td>
  18878. <td>string¦null</td>
  18879. <td>false</td>
  18880. <td>none</td>
  18881. <td>the username of the user</td>
  18882. </tr>
  18883. <tr>
  18884. <td>orgs</td>
  18885. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  18886. <td>false</td>
  18887. <td>none</td>
  18888. <td>the list of organizations that a user belongs to</td>
  18889. </tr>
  18890. <tr>
  18891. <td>teams</td>
  18892. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  18893. <td>false</td>
  18894. <td>none</td>
  18895. <td>the list of teams that a user belongs to</td>
  18896. </tr>
  18897. <tr>
  18898. <td>emails</td>
  18899. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  18900. <td>false</td>
  18901. <td>none</td>
  18902. <td>the list of emails attached to a user</td>
  18903. </tr>
  18904. <tr>
  18905. <td>createdAt</td>
  18906. <td>string</td>
  18907. <td>true</td>
  18908. <td>none</td>
  18909. <td>creation date of the user</td>
  18910. </tr>
  18911. <tr>
  18912. <td>modifiedAt</td>
  18913. <td>string</td>
  18914. <td>true</td>
  18915. <td>none</td>
  18916. <td>none</td>
  18917. </tr>
  18918. <tr>
  18919. <td>profile</td>
  18920. <td><a href="#schemausersprofile">UsersProfile</a></td>
  18921. <td>false</td>
  18922. <td>none</td>
  18923. <td>none</td>
  18924. </tr>
  18925. <tr>
  18926. <td>services</td>
  18927. <td>object¦null</td>
  18928. <td>false</td>
  18929. <td>none</td>
  18930. <td>services field of the user</td>
  18931. </tr>
  18932. <tr>
  18933. <td>heartbeat</td>
  18934. <td>string¦null</td>
  18935. <td>false</td>
  18936. <td>none</td>
  18937. <td>last time the user has been seen</td>
  18938. </tr>
  18939. <tr>
  18940. <td>isAdmin</td>
  18941. <td>boolean¦null</td>
  18942. <td>false</td>
  18943. <td>none</td>
  18944. <td>is the user an admin of the board?</td>
  18945. </tr>
  18946. <tr>
  18947. <td>createdThroughApi</td>
  18948. <td>boolean¦null</td>
  18949. <td>false</td>
  18950. <td>none</td>
  18951. <td>was the user created through the API?</td>
  18952. </tr>
  18953. <tr>
  18954. <td>loginDisabled</td>
  18955. <td>boolean¦null</td>
  18956. <td>false</td>
  18957. <td>none</td>
  18958. <td>loginDisabled field of the user</td>
  18959. </tr>
  18960. <tr>
  18961. <td>authenticationMethod</td>
  18962. <td>string</td>
  18963. <td>true</td>
  18964. <td>none</td>
  18965. <td>authentication method of the user</td>
  18966. </tr>
  18967. <tr>
  18968. <td>sessionData</td>
  18969. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  18970. <td>false</td>
  18971. <td>none</td>
  18972. <td>none</td>
  18973. </tr>
  18974. <tr>
  18975. <td>importUsernames</td>
  18976. <td>[string]¦null</td>
  18977. <td>false</td>
  18978. <td>none</td>
  18979. <td>username for imported</td>
  18980. </tr>
  18981. </tbody>
  18982. </table>
  18983. <h2 id="tocs_usersprofile">UsersProfile</h2>
  18984. <p><a id="schemausersprofile"></a>
  18985. <a id="schema_UsersProfile"></a>
  18986. <a id="tocSusersprofile"></a>
  18987. <a id="tocsusersprofile"></a></p>
  18988. <pre class="highlight tab tab-json"><code>{
  18989. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18990. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18991. <span class="hljs-string">&quot;string&quot;</span>
  18992. ],
  18993. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18994. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18995. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18996. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18997. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  18998. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18999. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19000. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19001. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19002. <span class="hljs-string">&quot;string&quot;</span>
  19003. ],
  19004. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19005. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19006. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19007. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19008. {
  19009. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19010. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19011. }
  19012. ],
  19013. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19014. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19015. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19016. <span class="hljs-string">&quot;string&quot;</span>
  19017. ],
  19018. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19019. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19020. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19021. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19022. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19023. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19024. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19025. }
  19026. </code></pre>
  19027. <h3 id="properties-21">Properties</h3>
  19028. <table>
  19029. <thead>
  19030. <tr>
  19031. <th>Name</th>
  19032. <th>Type</th>
  19033. <th>Required</th>
  19034. <th>Restrictions</th>
  19035. <th>Description</th>
  19036. </tr>
  19037. </thead>
  19038. <tbody>
  19039. <tr>
  19040. <td>avatarUrl</td>
  19041. <td>string</td>
  19042. <td>false</td>
  19043. <td>none</td>
  19044. <td>URL of the avatar of the user</td>
  19045. </tr>
  19046. <tr>
  19047. <td>emailBuffer</td>
  19048. <td>[string]</td>
  19049. <td>false</td>
  19050. <td>none</td>
  19051. <td>list of email buffers of the user</td>
  19052. </tr>
  19053. <tr>
  19054. <td>fullname</td>
  19055. <td>string</td>
  19056. <td>false</td>
  19057. <td>none</td>
  19058. <td>full name of the user</td>
  19059. </tr>
  19060. <tr>
  19061. <td>showDesktopDragHandles</td>
  19062. <td>boolean</td>
  19063. <td>false</td>
  19064. <td>none</td>
  19065. <td>does the user want to show desktop drag handles?</td>
  19066. </tr>
  19067. <tr>
  19068. <td>hideCheckedItems</td>
  19069. <td>boolean</td>
  19070. <td>false</td>
  19071. <td>none</td>
  19072. <td>does the user want to hide checked checklist items?</td>
  19073. </tr>
  19074. <tr>
  19075. <td>cardMaximized</td>
  19076. <td>boolean</td>
  19077. <td>false</td>
  19078. <td>none</td>
  19079. <td>has user clicked maximize card?</td>
  19080. </tr>
  19081. <tr>
  19082. <td>customFieldsGrid</td>
  19083. <td>boolean</td>
  19084. <td>false</td>
  19085. <td>none</td>
  19086. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  19087. </tr>
  19088. <tr>
  19089. <td>hiddenSystemMessages</td>
  19090. <td>boolean</td>
  19091. <td>false</td>
  19092. <td>none</td>
  19093. <td>does the user want to hide system messages?</td>
  19094. </tr>
  19095. <tr>
  19096. <td>hiddenMinicardLabelText</td>
  19097. <td>boolean</td>
  19098. <td>false</td>
  19099. <td>none</td>
  19100. <td>does the user want to hide minicard label texts?</td>
  19101. </tr>
  19102. <tr>
  19103. <td>initials</td>
  19104. <td>string</td>
  19105. <td>false</td>
  19106. <td>none</td>
  19107. <td>initials of the user</td>
  19108. </tr>
  19109. <tr>
  19110. <td>invitedBoards</td>
  19111. <td>[string]</td>
  19112. <td>false</td>
  19113. <td>none</td>
  19114. <td>board IDs the user has been invited to</td>
  19115. </tr>
  19116. <tr>
  19117. <td>language</td>
  19118. <td>string</td>
  19119. <td>false</td>
  19120. <td>none</td>
  19121. <td>language of the user</td>
  19122. </tr>
  19123. <tr>
  19124. <td>moveAndCopyDialog</td>
  19125. <td>object</td>
  19126. <td>false</td>
  19127. <td>none</td>
  19128. <td>move and copy card dialog</td>
  19129. </tr>
  19130. <tr>
  19131. <td>moveChecklistDialog</td>
  19132. <td>object</td>
  19133. <td>false</td>
  19134. <td>none</td>
  19135. <td>move and copy card dialog</td>
  19136. </tr>
  19137. <tr>
  19138. <td>notifications</td>
  19139. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19140. <td>false</td>
  19141. <td>none</td>
  19142. <td>enabled notifications for the user</td>
  19143. </tr>
  19144. <tr>
  19145. <td>showCardsCountAt</td>
  19146. <td>number</td>
  19147. <td>false</td>
  19148. <td>none</td>
  19149. <td>showCardCountAt field of the user</td>
  19150. </tr>
  19151. <tr>
  19152. <td>startDayOfWeek</td>
  19153. <td>number</td>
  19154. <td>false</td>
  19155. <td>none</td>
  19156. <td>startDayOfWeek field of the user</td>
  19157. </tr>
  19158. <tr>
  19159. <td>starredBoards</td>
  19160. <td>[string]</td>
  19161. <td>false</td>
  19162. <td>none</td>
  19163. <td>list of starred board IDs</td>
  19164. </tr>
  19165. <tr>
  19166. <td>icode</td>
  19167. <td>string</td>
  19168. <td>false</td>
  19169. <td>none</td>
  19170. <td>icode</td>
  19171. </tr>
  19172. <tr>
  19173. <td>boardView</td>
  19174. <td>string</td>
  19175. <td>false</td>
  19176. <td>none</td>
  19177. <td>boardView field of the user</td>
  19178. </tr>
  19179. <tr>
  19180. <td>listSortBy</td>
  19181. <td>string</td>
  19182. <td>false</td>
  19183. <td>none</td>
  19184. <td>default sort list for user</td>
  19185. </tr>
  19186. <tr>
  19187. <td>templatesBoardId</td>
  19188. <td>string</td>
  19189. <td>true</td>
  19190. <td>none</td>
  19191. <td>Reference to the templates board</td>
  19192. </tr>
  19193. <tr>
  19194. <td>cardTemplatesSwimlaneId</td>
  19195. <td>string</td>
  19196. <td>true</td>
  19197. <td>none</td>
  19198. <td>Reference to the card templates swimlane Id</td>
  19199. </tr>
  19200. <tr>
  19201. <td>listTemplatesSwimlaneId</td>
  19202. <td>string</td>
  19203. <td>true</td>
  19204. <td>none</td>
  19205. <td>Reference to the list templates swimlane Id</td>
  19206. </tr>
  19207. <tr>
  19208. <td>boardTemplatesSwimlaneId</td>
  19209. <td>string</td>
  19210. <td>true</td>
  19211. <td>none</td>
  19212. <td>Reference to the board templates swimlane Id</td>
  19213. </tr>
  19214. </tbody>
  19215. </table>
  19216. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19217. <table>
  19218. <thead>
  19219. <tr>
  19220. <th>Property</th>
  19221. <th>Value</th>
  19222. </tr>
  19223. </thead>
  19224. <tbody>
  19225. <tr>
  19226. <td>boardView</td>
  19227. <td>board-view-swimlanes</td>
  19228. </tr>
  19229. <tr>
  19230. <td>boardView</td>
  19231. <td>board-view-lists</td>
  19232. </tr>
  19233. <tr>
  19234. <td>boardView</td>
  19235. <td>board-view-cal</td>
  19236. </tr>
  19237. <tr>
  19238. <td>listSortBy</td>
  19239. <td>-modifiedat</td>
  19240. </tr>
  19241. <tr>
  19242. <td>listSortBy</td>
  19243. <td>modifiedat</td>
  19244. </tr>
  19245. <tr>
  19246. <td>listSortBy</td>
  19247. <td>-title</td>
  19248. </tr>
  19249. <tr>
  19250. <td>listSortBy</td>
  19251. <td>title</td>
  19252. </tr>
  19253. <tr>
  19254. <td>listSortBy</td>
  19255. <td>-sort</td>
  19256. </tr>
  19257. <tr>
  19258. <td>listSortBy</td>
  19259. <td>sort</td>
  19260. </tr>
  19261. </tbody>
  19262. </table>
  19263. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19264. <p><a id="schemauserssessiondata"></a>
  19265. <a id="schema_UsersSessiondata"></a>
  19266. <a id="tocSuserssessiondata"></a>
  19267. <a id="tocsuserssessiondata"></a></p>
  19268. <pre class="highlight tab tab-json"><code>{
  19269. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19270. }
  19271. </code></pre>
  19272. <h3 id="properties-22">Properties</h3>
  19273. <table>
  19274. <thead>
  19275. <tr>
  19276. <th>Name</th>
  19277. <th>Type</th>
  19278. <th>Required</th>
  19279. <th>Restrictions</th>
  19280. <th>Description</th>
  19281. </tr>
  19282. </thead>
  19283. <tbody>
  19284. <tr>
  19285. <td>totalHits</td>
  19286. <td>number</td>
  19287. <td>false</td>
  19288. <td>none</td>
  19289. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  19290. </tr>
  19291. </tbody>
  19292. </table>
  19293. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  19294. <p><a id="schemausersorgs"></a>
  19295. <a id="schema_UsersOrgs"></a>
  19296. <a id="tocSusersorgs"></a>
  19297. <a id="tocsusersorgs"></a></p>
  19298. <pre class="highlight tab tab-json"><code>{
  19299. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19300. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19301. }
  19302. </code></pre>
  19303. <h3 id="properties-23">Properties</h3>
  19304. <table>
  19305. <thead>
  19306. <tr>
  19307. <th>Name</th>
  19308. <th>Type</th>
  19309. <th>Required</th>
  19310. <th>Restrictions</th>
  19311. <th>Description</th>
  19312. </tr>
  19313. </thead>
  19314. <tbody>
  19315. <tr>
  19316. <td>orgId</td>
  19317. <td>string</td>
  19318. <td>true</td>
  19319. <td>none</td>
  19320. <td>The uniq ID of the organization</td>
  19321. </tr>
  19322. <tr>
  19323. <td>orgDisplayName</td>
  19324. <td>string</td>
  19325. <td>true</td>
  19326. <td>none</td>
  19327. <td>The display name of the organization</td>
  19328. </tr>
  19329. </tbody>
  19330. </table>
  19331. <h2 id="tocs_usersteams">UsersTeams</h2>
  19332. <p><a id="schemausersteams"></a>
  19333. <a id="schema_UsersTeams"></a>
  19334. <a id="tocSusersteams"></a>
  19335. <a id="tocsusersteams"></a></p>
  19336. <pre class="highlight tab tab-json"><code>{
  19337. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19338. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19339. }
  19340. </code></pre>
  19341. <h3 id="properties-24">Properties</h3>
  19342. <table>
  19343. <thead>
  19344. <tr>
  19345. <th>Name</th>
  19346. <th>Type</th>
  19347. <th>Required</th>
  19348. <th>Restrictions</th>
  19349. <th>Description</th>
  19350. </tr>
  19351. </thead>
  19352. <tbody>
  19353. <tr>
  19354. <td>teamId</td>
  19355. <td>string</td>
  19356. <td>true</td>
  19357. <td>none</td>
  19358. <td>The uniq ID of the team</td>
  19359. </tr>
  19360. <tr>
  19361. <td>teamDisplayName</td>
  19362. <td>string</td>
  19363. <td>true</td>
  19364. <td>none</td>
  19365. <td>The display name of the team</td>
  19366. </tr>
  19367. </tbody>
  19368. </table>
  19369. <h2 id="tocs_usersemails">UsersEmails</h2>
  19370. <p><a id="schemausersemails"></a>
  19371. <a id="schema_UsersEmails"></a>
  19372. <a id="tocSusersemails"></a>
  19373. <a id="tocsusersemails"></a></p>
  19374. <pre class="highlight tab tab-json"><code>{
  19375. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19376. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19377. }
  19378. </code></pre>
  19379. <h3 id="properties-25">Properties</h3>
  19380. <table>
  19381. <thead>
  19382. <tr>
  19383. <th>Name</th>
  19384. <th>Type</th>
  19385. <th>Required</th>
  19386. <th>Restrictions</th>
  19387. <th>Description</th>
  19388. </tr>
  19389. </thead>
  19390. <tbody>
  19391. <tr>
  19392. <td>address</td>
  19393. <td>string</td>
  19394. <td>true</td>
  19395. <td>none</td>
  19396. <td>The email address</td>
  19397. </tr>
  19398. <tr>
  19399. <td>verified</td>
  19400. <td>boolean</td>
  19401. <td>true</td>
  19402. <td>none</td>
  19403. <td>Has the email been verified</td>
  19404. </tr>
  19405. </tbody>
  19406. </table>
  19407. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  19408. <p><a id="schemausersprofilemoveandcopydialog"></a>
  19409. <a id="schema_UsersProfileMoveandcopydialog"></a>
  19410. <a id="tocSusersprofilemoveandcopydialog"></a>
  19411. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  19412. <pre class="highlight tab tab-json"><code>{
  19413. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19414. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19415. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19416. }
  19417. </code></pre>
  19418. <h3 id="properties-26">Properties</h3>
  19419. <table>
  19420. <thead>
  19421. <tr>
  19422. <th>Name</th>
  19423. <th>Type</th>
  19424. <th>Required</th>
  19425. <th>Restrictions</th>
  19426. <th>Description</th>
  19427. </tr>
  19428. </thead>
  19429. <tbody>
  19430. <tr>
  19431. <td>boardId</td>
  19432. <td>string</td>
  19433. <td>true</td>
  19434. <td>none</td>
  19435. <td>last selected board id</td>
  19436. </tr>
  19437. <tr>
  19438. <td>swimlaneId</td>
  19439. <td>string</td>
  19440. <td>true</td>
  19441. <td>none</td>
  19442. <td>last selected swimlane id</td>
  19443. </tr>
  19444. <tr>
  19445. <td>listId</td>
  19446. <td>string</td>
  19447. <td>true</td>
  19448. <td>none</td>
  19449. <td>last selected list id</td>
  19450. </tr>
  19451. </tbody>
  19452. </table>
  19453. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  19454. <p><a id="schemausersprofilemovechecklistdialog"></a>
  19455. <a id="schema_UsersProfileMovechecklistdialog"></a>
  19456. <a id="tocSusersprofilemovechecklistdialog"></a>
  19457. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  19458. <pre class="highlight tab tab-json"><code>{
  19459. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19460. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19461. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19462. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19463. }
  19464. </code></pre>
  19465. <h3 id="properties-27">Properties</h3>
  19466. <table>
  19467. <thead>
  19468. <tr>
  19469. <th>Name</th>
  19470. <th>Type</th>
  19471. <th>Required</th>
  19472. <th>Restrictions</th>
  19473. <th>Description</th>
  19474. </tr>
  19475. </thead>
  19476. <tbody>
  19477. <tr>
  19478. <td>boardId</td>
  19479. <td>string</td>
  19480. <td>true</td>
  19481. <td>none</td>
  19482. <td>last selected board id</td>
  19483. </tr>
  19484. <tr>
  19485. <td>swimlaneId</td>
  19486. <td>string</td>
  19487. <td>true</td>
  19488. <td>none</td>
  19489. <td>last selected swimlane id</td>
  19490. </tr>
  19491. <tr>
  19492. <td>listId</td>
  19493. <td>string</td>
  19494. <td>true</td>
  19495. <td>none</td>
  19496. <td>last selected list id</td>
  19497. </tr>
  19498. <tr>
  19499. <td>cardId</td>
  19500. <td>string</td>
  19501. <td>true</td>
  19502. <td>none</td>
  19503. <td>last selected card id</td>
  19504. </tr>
  19505. </tbody>
  19506. </table>
  19507. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  19508. <p><a id="schemausersprofilenotifications"></a>
  19509. <a id="schema_UsersProfileNotifications"></a>
  19510. <a id="tocSusersprofilenotifications"></a>
  19511. <a id="tocsusersprofilenotifications"></a></p>
  19512. <pre class="highlight tab tab-json"><code>{
  19513. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19514. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19515. }
  19516. </code></pre>
  19517. <h3 id="properties-28">Properties</h3>
  19518. <table>
  19519. <thead>
  19520. <tr>
  19521. <th>Name</th>
  19522. <th>Type</th>
  19523. <th>Required</th>
  19524. <th>Restrictions</th>
  19525. <th>Description</th>
  19526. </tr>
  19527. </thead>
  19528. <tbody>
  19529. <tr>
  19530. <td>activity</td>
  19531. <td>string</td>
  19532. <td>true</td>
  19533. <td>none</td>
  19534. <td>The id of the activity this notification references</td>
  19535. </tr>
  19536. <tr>
  19537. <td>read</td>
  19538. <td>string</td>
  19539. <td>false</td>
  19540. <td>none</td>
  19541. <td>the date on which this notification was read</td>
  19542. </tr>
  19543. </tbody>
  19544. </table>
  19545. <!-- Renderer: Shins v2.6.0 -->
  19546. <!-- Generator: Widdershins v4.0.1 -->
  19547. <!-- backwards compatibility -->
  19548. <!-- backwards compatibility -->
  19549. <!-- backwards compatibility -->
  19550. <!-- backwards compatibility -->
  19551. <!-- backwards compatibility -->
  19552. <!-- backwards compatibility -->
  19553. <!-- backwards compatibility -->
  19554. <!-- backwards compatibility -->
  19555. <!-- backwards compatibility -->
  19556. <!-- backwards compatibility -->
  19557. <!-- backwards compatibility -->
  19558. <!-- backwards compatibility -->
  19559. <!-- backwards compatibility -->
  19560. <!-- backwards compatibility -->
  19561. <!-- backwards compatibility -->
  19562. <!-- backwards compatibility -->
  19563. <!-- backwards compatibility -->
  19564. <!-- backwards compatibility -->
  19565. <!-- backwards compatibility -->
  19566. <!-- backwards compatibility -->
  19567. <!-- backwards compatibility -->
  19568. <!-- backwards compatibility -->
  19569. <!-- backwards compatibility -->
  19570. <!-- backwards compatibility -->
  19571. <!-- backwards compatibility -->
  19572. <!-- backwards compatibility -->
  19573. <!-- backwards compatibility -->
  19574. <!-- backwards compatibility -->
  19575. </div>
  19576. <div class="dark-box">
  19577. <div class="lang-selector">
  19578. <a href="#" data-language-name="shell">Shell</a>
  19579. <a href="#" data-language-name="http">HTTP</a>
  19580. <a href="#" data-language-name="javascript">JavaScript</a>
  19581. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  19582. <a href="#" data-language-name="ruby">Ruby</a>
  19583. <a href="#" data-language-name="python">Python</a>
  19584. <a href="#" data-language-name="java">Java</a>
  19585. <a href="#" data-language-name="go">Go</a>
  19586. <a href="#" data-language-name="php">PHP</a>
  19587. </div>
  19588. </div>
  19589. </div>
  19590. </body>
  19591. </html>