wekan.html 926 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893
  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.99</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. <!-- Renderer: Shins v2.6.0 -->
  1319. <!-- Generator: Widdershins v4.0.1 -->
  1320. <!-- backwards compatibility -->
  1321. <!-- backwards compatibility -->
  1322. <!-- backwards compatibility -->
  1323. <!-- backwards compatibility -->
  1324. <!-- backwards compatibility -->
  1325. <!-- backwards compatibility -->
  1326. <!-- backwards compatibility -->
  1327. <!-- backwards compatibility -->
  1328. <!-- backwards compatibility -->
  1329. <!-- backwards compatibility -->
  1330. <!-- backwards compatibility -->
  1331. <!-- backwards compatibility -->
  1332. <!-- backwards compatibility -->
  1333. <!-- backwards compatibility -->
  1334. <!-- backwards compatibility -->
  1335. <!-- backwards compatibility -->
  1336. <!-- backwards compatibility -->
  1337. <!-- backwards compatibility -->
  1338. <!-- backwards compatibility -->
  1339. <!-- backwards compatibility -->
  1340. <!-- backwards compatibility -->
  1341. <!-- backwards compatibility -->
  1342. <!-- backwards compatibility -->
  1343. <!-- backwards compatibility -->
  1344. <!-- backwards compatibility -->
  1345. <!-- backwards compatibility -->
  1346. <!-- backwards compatibility -->
  1347. <!-- backwards compatibility -->
  1348. <!-- backwards compatibility -->
  1349. </head>
  1350. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;,&quot;php&quot;]">
  1351. <a href="#" id="nav-button">
  1352. <span>
  1353. NAV
  1354. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1355. </span>
  1356. </a>
  1357. <div class="toc-wrapper">
  1358. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1359. <div class="lang-selector">
  1360. <a href="#" data-language-name="shell">Shell</a>
  1361. <a href="#" data-language-name="http">HTTP</a>
  1362. <a href="#" data-language-name="javascript">JavaScript</a>
  1363. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1364. <a href="#" data-language-name="ruby">Ruby</a>
  1365. <a href="#" data-language-name="python">Python</a>
  1366. <a href="#" data-language-name="java">Java</a>
  1367. <a href="#" data-language-name="go">Go</a>
  1368. <a href="#" data-language-name="php">PHP</a>
  1369. </div>
  1370. <div class="search">
  1371. <input type="text" class="search" id="input-search" placeholder="Search">
  1372. </div>
  1373. <ul class="search-results"></ul>
  1374. <div id="toc" class="toc-list-h1">
  1375. <ul class="toc-list-h1">
  1376. <li>
  1377. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v5.99">Wekan REST API v5.99</a>
  1378. </li>
  1379. <li>
  1380. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1381. </li>
  1382. <li>
  1383. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1384. </li>
  1385. <li>
  1386. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1387. <ul class="toc-list-h2">
  1388. <li>
  1389. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1390. </li>
  1391. <li>
  1392. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1393. </li>
  1394. </ul>
  1395. </li>
  1396. <li>
  1397. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1398. <ul class="toc-list-h2">
  1399. <li>
  1400. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1401. </li>
  1402. <li>
  1403. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1404. </li>
  1405. <li>
  1406. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1407. </li>
  1408. <li>
  1409. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1410. </li>
  1411. <li>
  1412. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1413. </li>
  1414. <li>
  1415. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1416. </li>
  1417. <li>
  1418. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1419. </li>
  1420. <li>
  1421. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1422. </li>
  1423. <li>
  1424. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1425. </li>
  1426. <li>
  1427. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1428. </li>
  1429. </ul>
  1430. </li>
  1431. <li>
  1432. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1433. <ul class="toc-list-h2">
  1434. <li>
  1435. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1436. </li>
  1437. <li>
  1438. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1439. </li>
  1440. <li>
  1441. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1442. </li>
  1443. <li>
  1444. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1445. </li>
  1446. </ul>
  1447. </li>
  1448. <li>
  1449. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1450. <ul class="toc-list-h2">
  1451. <li>
  1452. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1453. </li>
  1454. <li>
  1455. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1456. </li>
  1457. <li>
  1458. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1459. </li>
  1460. </ul>
  1461. </li>
  1462. <li>
  1463. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1464. <ul class="toc-list-h2">
  1465. <li>
  1466. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1467. </li>
  1468. <li>
  1469. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1470. </li>
  1471. <li>
  1472. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1473. </li>
  1474. <li>
  1475. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1476. </li>
  1477. </ul>
  1478. </li>
  1479. <li>
  1480. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1481. <ul class="toc-list-h2">
  1482. <li>
  1483. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1484. </li>
  1485. <li>
  1486. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1487. </li>
  1488. <li>
  1489. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1490. </li>
  1491. <li>
  1492. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1493. </li>
  1494. <li>
  1495. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1499. </li>
  1500. <li>
  1501. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1502. </li>
  1503. </ul>
  1504. </li>
  1505. <li>
  1506. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1507. <ul class="toc-list-h2">
  1508. <li>
  1509. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1510. </li>
  1511. <li>
  1512. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1513. </li>
  1514. <li>
  1515. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1516. </li>
  1517. <li>
  1518. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1519. </li>
  1520. <li>
  1521. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1522. </li>
  1523. <li>
  1524. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1525. </li>
  1526. <li>
  1527. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1528. </li>
  1529. <li>
  1530. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1531. </li>
  1532. </ul>
  1533. </li>
  1534. <li>
  1535. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1536. <ul class="toc-list-h2">
  1537. <li>
  1538. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1539. </li>
  1540. <li>
  1541. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1542. </li>
  1543. <li>
  1544. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1545. </li>
  1546. <li>
  1547. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1548. </li>
  1549. <li>
  1550. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1551. </li>
  1552. <li>
  1553. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1554. </li>
  1555. <li>
  1556. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1557. </li>
  1558. </ul>
  1559. </li>
  1560. <li>
  1561. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1562. <ul class="toc-list-h2">
  1563. <li>
  1564. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1565. </li>
  1566. <li>
  1567. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1568. </li>
  1569. <li>
  1570. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1571. </li>
  1572. <li>
  1573. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1574. </li>
  1575. </ul>
  1576. </li>
  1577. <li>
  1578. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1579. <ul class="toc-list-h2">
  1580. <li>
  1581. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1582. </li>
  1583. <li>
  1584. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1585. </li>
  1586. <li>
  1587. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1588. </li>
  1589. <li>
  1590. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1591. </li>
  1592. <li>
  1593. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1594. </li>
  1595. <li>
  1596. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1597. </li>
  1598. <li>
  1599. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1600. </li>
  1601. <li>
  1602. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1603. </li>
  1604. <li>
  1605. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1606. </li>
  1607. </ul>
  1608. </li>
  1609. <li>
  1610. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1611. <ul class="toc-list-h2">
  1612. <li>
  1613. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1614. </li>
  1615. <li>
  1616. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1617. </li>
  1618. <li>
  1619. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1620. </li>
  1621. <li>
  1622. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1623. </li>
  1624. </ul>
  1625. </li>
  1626. <li>
  1627. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1628. <ul class="toc-list-h2">
  1629. <li>
  1630. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1703. </li>
  1704. <li>
  1705. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1706. </li>
  1707. <li>
  1708. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1709. </li>
  1710. <li>
  1711. <a href="#tocs_usersprofilecopychecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileCopychecklistdialog</a>
  1712. </li>
  1713. <li>
  1714. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1715. </li>
  1716. </ul>
  1717. </li>
  1718. </ul>
  1719. </div>
  1720. <ul class="toc-footer">
  1721. </ul>
  1722. </div>
  1723. <div class="page-wrapper">
  1724. <div class="dark-box"></div>
  1725. <div class="content">
  1726. <h1 id="wekan-rest-api">Wekan REST API v5.99</h1>
  1727. <blockquote>
  1728. <p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
  1729. </blockquote>
  1730. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1731. <p>If you are an end-user and not a dev or a tester, <a href="https://github.com/wekan/wekan/issues/new">create an issue</a> to request new APIs.</p>
  1732. <blockquote>
  1733. <p>All API calls in the documentation are made using <code>curl</code>. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.</p>
  1734. </blockquote>
  1735. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1736. <p>When calling a production Wekan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:</p>
  1737. <ul>
  1738. <li>Only call via HTTPS</li>
  1739. <li>Implement a timed authorization token expiration strategy</li>
  1740. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1741. </ul>
  1742. <h1 id="authentication">Authentication</h1>
  1743. <ul>
  1744. <li>API Key (UserSecurity)
  1745. <ul>
  1746. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1747. </ul>
  1748. </li>
  1749. </ul>
  1750. <h1 id="wekan-rest-api-login">Login</h1>
  1751. <h2 id="login">login</h2>
  1752. <p><a id="opIdlogin"></a></p>
  1753. <blockquote>
  1754. <p>Code samples</p>
  1755. </blockquote>
  1756. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1757. curl -X POST /users/login \
  1758. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1759. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1760. </code></pre>
  1761. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> <span class="hljs-meta">HTTP/1.1</span>
  1762. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1763. <span class="hljs-keyword">Accept</span>: */*
  1764. </span></code></pre>
  1765. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1766. &quot;username&quot;: &quot;string&quot;,
  1767. &quot;password&quot;: &quot;pa$$word&quot;
  1768. }&#x27;</span>;
  1769. <span class="hljs-keyword">const</span> headers = {
  1770. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1771. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1772. };
  1773. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1774. {
  1775. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1776. <span class="hljs-attr">body</span>: inputBody,
  1777. <span class="hljs-attr">headers</span>: headers
  1778. })
  1779. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1780. <span class="hljs-keyword">return</span> res.json();
  1781. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1782. <span class="hljs-built_in">console</span>.log(body);
  1783. });
  1784. </code></pre>
  1785. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  1786. <span class="hljs-keyword">const</span> inputBody = {
  1787. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1788. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1789. };
  1790. <span class="hljs-keyword">const</span> headers = {
  1791. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1792. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1793. };
  1794. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1795. {
  1796. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1797. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1798. <span class="hljs-attr">headers</span>: headers
  1799. })
  1800. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1801. <span class="hljs-keyword">return</span> res.json();
  1802. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1803. <span class="hljs-built_in">console</span>.log(body);
  1804. });
  1805. </code></pre>
  1806. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1807. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1808. headers = {
  1809. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1810. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1811. }
  1812. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1813. <span class="hljs-symbol">params:</span> {
  1814. }, <span class="hljs-symbol">headers:</span> headers
  1815. p JSON.parse(result)
  1816. </code></pre>
  1817. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1818. headers = {
  1819. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1820. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1821. }
  1822. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1823. <span class="hljs-built_in">print</span>(r.json())
  1824. </code></pre>
  1825. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/login&quot;</span>);
  1826. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1827. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1828. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1829. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1830. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1831. String inputLine;
  1832. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1833. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1834. response.append(inputLine);
  1835. }
  1836. in.close();
  1837. System.out.println(response.toString());
  1838. </code></pre>
  1839. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1840. <span class="hljs-keyword">import</span> (
  1841. <span class="hljs-string">&quot;bytes&quot;</span>
  1842. <span class="hljs-string">&quot;net/http&quot;</span>
  1843. )
  1844. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1845. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1846. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  1847. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1848. }
  1849. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1850. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1851. req.Header = headers
  1852. client := &amp;http.Client{}
  1853. resp, err := client.Do(req)
  1854. <span class="hljs-comment">// ...</span>
  1855. }
  1856. </code></pre>
  1857. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1858. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1859. );
  1860. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1861. <span class="hljs-comment">// Define array of request body.</span>
  1862. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1863. <span class="hljs-keyword">try</span> {
  1864. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/login&#x27;</span>, <span class="hljs-keyword">array</span>(
  1865. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1866. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1867. )
  1868. );
  1869. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1870. }
  1871. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1872. <span class="hljs-comment">// handle exception or api errors.</span>
  1873. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1874. }
  1875. <span class="hljs-comment">// ...</span>
  1876. </code></pre>
  1877. <p><code>POST /users/login</code></p>
  1878. <p><em>Login with REST API</em></p>
  1879. <blockquote>
  1880. <p>Body parameter</p>
  1881. </blockquote>
  1882. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1883. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1884. </code></pre>
  1885. <h3 id="login-parameters">Parameters</h3>
  1886. <table>
  1887. <thead>
  1888. <tr>
  1889. <th>Name</th>
  1890. <th>In</th>
  1891. <th>Type</th>
  1892. <th>Required</th>
  1893. <th>Description</th>
  1894. </tr>
  1895. </thead>
  1896. <tbody>
  1897. <tr>
  1898. <td>body</td>
  1899. <td>body</td>
  1900. <td>object</td>
  1901. <td>true</td>
  1902. <td>none</td>
  1903. </tr>
  1904. <tr>
  1905. <td>» username</td>
  1906. <td>body</td>
  1907. <td>string</td>
  1908. <td>true</td>
  1909. <td>Your username</td>
  1910. </tr>
  1911. <tr>
  1912. <td>» password</td>
  1913. <td>body</td>
  1914. <td>string(password)</td>
  1915. <td>true</td>
  1916. <td>Your password</td>
  1917. </tr>
  1918. </tbody>
  1919. </table>
  1920. <blockquote>
  1921. <p>Example responses</p>
  1922. </blockquote>
  1923. <blockquote>
  1924. <p>200 Response</p>
  1925. </blockquote>
  1926. <h3 id="login-responses">Responses</h3>
  1927. <table>
  1928. <thead>
  1929. <tr>
  1930. <th>Status</th>
  1931. <th>Meaning</th>
  1932. <th>Description</th>
  1933. <th>Schema</th>
  1934. </tr>
  1935. </thead>
  1936. <tbody>
  1937. <tr>
  1938. <td>200</td>
  1939. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1940. <td>Successful authentication</td>
  1941. <td>Inline</td>
  1942. </tr>
  1943. <tr>
  1944. <td>400</td>
  1945. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1946. <td>Error in authentication</td>
  1947. <td>Inline</td>
  1948. </tr>
  1949. <tr>
  1950. <td>default</td>
  1951. <td>Default</td>
  1952. <td>Error in authentication</td>
  1953. <td>None</td>
  1954. </tr>
  1955. </tbody>
  1956. </table>
  1957. <h3 id="login-responseschema">Response Schema</h3>
  1958. <p>Status Code <strong>200</strong></p>
  1959. <table>
  1960. <thead>
  1961. <tr>
  1962. <th>Name</th>
  1963. <th>Type</th>
  1964. <th>Required</th>
  1965. <th>Restrictions</th>
  1966. <th>Description</th>
  1967. </tr>
  1968. </thead>
  1969. <tbody>
  1970. <tr>
  1971. <td>» id</td>
  1972. <td>string</td>
  1973. <td>false</td>
  1974. <td>none</td>
  1975. <td>none</td>
  1976. </tr>
  1977. <tr>
  1978. <td>» token</td>
  1979. <td>string</td>
  1980. <td>false</td>
  1981. <td>none</td>
  1982. <td>none</td>
  1983. </tr>
  1984. <tr>
  1985. <td>» tokenExpires</td>
  1986. <td>string</td>
  1987. <td>false</td>
  1988. <td>none</td>
  1989. <td>none</td>
  1990. </tr>
  1991. </tbody>
  1992. </table>
  1993. <p>Status Code <strong>400</strong></p>
  1994. <table>
  1995. <thead>
  1996. <tr>
  1997. <th>Name</th>
  1998. <th>Type</th>
  1999. <th>Required</th>
  2000. <th>Restrictions</th>
  2001. <th>Description</th>
  2002. </tr>
  2003. </thead>
  2004. <tbody>
  2005. <tr>
  2006. <td>» error</td>
  2007. <td>number</td>
  2008. <td>false</td>
  2009. <td>none</td>
  2010. <td>none</td>
  2011. </tr>
  2012. <tr>
  2013. <td>» reason</td>
  2014. <td>string</td>
  2015. <td>false</td>
  2016. <td>none</td>
  2017. <td>none</td>
  2018. </tr>
  2019. </tbody>
  2020. </table>
  2021. <aside class="success">
  2022. This operation does not require authentication
  2023. </aside>
  2024. <h2 id="register">register</h2>
  2025. <p><a id="opIdregister"></a></p>
  2026. <blockquote>
  2027. <p>Code samples</p>
  2028. </blockquote>
  2029. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2030. curl -X POST /users/register \
  2031. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2032. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2033. </code></pre>
  2034. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> <span class="hljs-meta">HTTP/1.1</span>
  2035. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2036. <span class="hljs-keyword">Accept</span>: */*
  2037. </span></code></pre>
  2038. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2039. &quot;username&quot;: &quot;string&quot;,
  2040. &quot;password&quot;: &quot;pa$$word&quot;,
  2041. &quot;email&quot;: &quot;string&quot;
  2042. }&#x27;</span>;
  2043. <span class="hljs-keyword">const</span> headers = {
  2044. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2045. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2046. };
  2047. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2048. {
  2049. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2050. <span class="hljs-attr">body</span>: inputBody,
  2051. <span class="hljs-attr">headers</span>: headers
  2052. })
  2053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2054. <span class="hljs-keyword">return</span> res.json();
  2055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2056. <span class="hljs-built_in">console</span>.log(body);
  2057. });
  2058. </code></pre>
  2059. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2060. <span class="hljs-keyword">const</span> inputBody = {
  2061. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2062. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2063. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2064. };
  2065. <span class="hljs-keyword">const</span> headers = {
  2066. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2067. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2068. };
  2069. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2070. {
  2071. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2072. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2073. <span class="hljs-attr">headers</span>: headers
  2074. })
  2075. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2076. <span class="hljs-keyword">return</span> res.json();
  2077. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2078. <span class="hljs-built_in">console</span>.log(body);
  2079. });
  2080. </code></pre>
  2081. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2082. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2083. headers = {
  2084. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2085. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2086. }
  2087. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2088. <span class="hljs-symbol">params:</span> {
  2089. }, <span class="hljs-symbol">headers:</span> headers
  2090. p JSON.parse(result)
  2091. </code></pre>
  2092. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2093. headers = {
  2094. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2095. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2096. }
  2097. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2098. <span class="hljs-built_in">print</span>(r.json())
  2099. </code></pre>
  2100. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/register&quot;</span>);
  2101. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2102. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2103. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2104. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2105. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2106. String inputLine;
  2107. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2108. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2109. response.append(inputLine);
  2110. }
  2111. in.close();
  2112. System.out.println(response.toString());
  2113. </code></pre>
  2114. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2115. <span class="hljs-keyword">import</span> (
  2116. <span class="hljs-string">&quot;bytes&quot;</span>
  2117. <span class="hljs-string">&quot;net/http&quot;</span>
  2118. )
  2119. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2120. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2121. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  2122. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2123. }
  2124. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2125. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2126. req.Header = headers
  2127. client := &amp;http.Client{}
  2128. resp, err := client.Do(req)
  2129. <span class="hljs-comment">// ...</span>
  2130. }
  2131. </code></pre>
  2132. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2133. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2134. );
  2135. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2136. <span class="hljs-comment">// Define array of request body.</span>
  2137. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2138. <span class="hljs-keyword">try</span> {
  2139. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/register&#x27;</span>, <span class="hljs-keyword">array</span>(
  2140. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2141. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2142. )
  2143. );
  2144. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2145. }
  2146. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2147. <span class="hljs-comment">// handle exception or api errors.</span>
  2148. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2149. }
  2150. <span class="hljs-comment">// ...</span>
  2151. </code></pre>
  2152. <p><code>POST /users/register</code></p>
  2153. <p><em>Register with REST API</em></p>
  2154. <p>Notes:</p>
  2155. <ul>
  2156. <li>You will need to provide the token for any of the authenticated methods.</li>
  2157. </ul>
  2158. <blockquote>
  2159. <p>Body parameter</p>
  2160. </blockquote>
  2161. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2162. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2163. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2164. </code></pre>
  2165. <h3 id="register-parameters">Parameters</h3>
  2166. <table>
  2167. <thead>
  2168. <tr>
  2169. <th>Name</th>
  2170. <th>In</th>
  2171. <th>Type</th>
  2172. <th>Required</th>
  2173. <th>Description</th>
  2174. </tr>
  2175. </thead>
  2176. <tbody>
  2177. <tr>
  2178. <td>body</td>
  2179. <td>body</td>
  2180. <td>object</td>
  2181. <td>true</td>
  2182. <td>none</td>
  2183. </tr>
  2184. <tr>
  2185. <td>» username</td>
  2186. <td>body</td>
  2187. <td>string</td>
  2188. <td>true</td>
  2189. <td>Your username</td>
  2190. </tr>
  2191. <tr>
  2192. <td>» password</td>
  2193. <td>body</td>
  2194. <td>string(password)</td>
  2195. <td>true</td>
  2196. <td>Your password</td>
  2197. </tr>
  2198. <tr>
  2199. <td>» email</td>
  2200. <td>body</td>
  2201. <td>string</td>
  2202. <td>true</td>
  2203. <td>Your email</td>
  2204. </tr>
  2205. </tbody>
  2206. </table>
  2207. <blockquote>
  2208. <p>Example responses</p>
  2209. </blockquote>
  2210. <blockquote>
  2211. <p>200 Response</p>
  2212. </blockquote>
  2213. <h3 id="register-responses">Responses</h3>
  2214. <table>
  2215. <thead>
  2216. <tr>
  2217. <th>Status</th>
  2218. <th>Meaning</th>
  2219. <th>Description</th>
  2220. <th>Schema</th>
  2221. </tr>
  2222. </thead>
  2223. <tbody>
  2224. <tr>
  2225. <td>200</td>
  2226. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2227. <td>Successful registration</td>
  2228. <td>Inline</td>
  2229. </tr>
  2230. <tr>
  2231. <td>400</td>
  2232. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2233. <td>Error in registration</td>
  2234. <td>Inline</td>
  2235. </tr>
  2236. <tr>
  2237. <td>default</td>
  2238. <td>Default</td>
  2239. <td>Error in registration</td>
  2240. <td>None</td>
  2241. </tr>
  2242. </tbody>
  2243. </table>
  2244. <h3 id="register-responseschema">Response Schema</h3>
  2245. <p>Status Code <strong>200</strong></p>
  2246. <table>
  2247. <thead>
  2248. <tr>
  2249. <th>Name</th>
  2250. <th>Type</th>
  2251. <th>Required</th>
  2252. <th>Restrictions</th>
  2253. <th>Description</th>
  2254. </tr>
  2255. </thead>
  2256. <tbody>
  2257. <tr>
  2258. <td>» id</td>
  2259. <td>string</td>
  2260. <td>false</td>
  2261. <td>none</td>
  2262. <td>none</td>
  2263. </tr>
  2264. <tr>
  2265. <td>» token</td>
  2266. <td>string</td>
  2267. <td>false</td>
  2268. <td>none</td>
  2269. <td>none</td>
  2270. </tr>
  2271. <tr>
  2272. <td>» tokenExpires</td>
  2273. <td>string</td>
  2274. <td>false</td>
  2275. <td>none</td>
  2276. <td>none</td>
  2277. </tr>
  2278. </tbody>
  2279. </table>
  2280. <p>Status Code <strong>400</strong></p>
  2281. <table>
  2282. <thead>
  2283. <tr>
  2284. <th>Name</th>
  2285. <th>Type</th>
  2286. <th>Required</th>
  2287. <th>Restrictions</th>
  2288. <th>Description</th>
  2289. </tr>
  2290. </thead>
  2291. <tbody>
  2292. <tr>
  2293. <td>» error</td>
  2294. <td>number</td>
  2295. <td>false</td>
  2296. <td>none</td>
  2297. <td>none</td>
  2298. </tr>
  2299. <tr>
  2300. <td>» reason</td>
  2301. <td>string</td>
  2302. <td>false</td>
  2303. <td>none</td>
  2304. <td>none</td>
  2305. </tr>
  2306. </tbody>
  2307. </table>
  2308. <aside class="success">
  2309. This operation does not require authentication
  2310. </aside>
  2311. <h1 id="wekan-rest-api-boards">Boards</h1>
  2312. <h2 id="get_public_boards">get_public_boards</h2>
  2313. <p><a id="opIdget_public_boards"></a></p>
  2314. <blockquote>
  2315. <p>Code samples</p>
  2316. </blockquote>
  2317. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2318. curl -X GET /api/boards \
  2319. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2320. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2321. </code></pre>
  2322. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2323. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2324. </span></code></pre>
  2325. <pre class="highlight tab tab-javascript"><code>
  2326. <span class="hljs-keyword">const</span> headers = {
  2327. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2328. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2329. };
  2330. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2331. {
  2332. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2333. <span class="hljs-attr">headers</span>: headers
  2334. })
  2335. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2336. <span class="hljs-keyword">return</span> res.json();
  2337. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2338. <span class="hljs-built_in">console</span>.log(body);
  2339. });
  2340. </code></pre>
  2341. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2342. <span class="hljs-keyword">const</span> headers = {
  2343. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2344. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2345. };
  2346. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2347. {
  2348. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2349. <span class="hljs-attr">headers</span>: headers
  2350. })
  2351. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2352. <span class="hljs-keyword">return</span> res.json();
  2353. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2354. <span class="hljs-built_in">console</span>.log(body);
  2355. });
  2356. </code></pre>
  2357. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2358. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2359. headers = {
  2360. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2361. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2362. }
  2363. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2364. <span class="hljs-symbol">params:</span> {
  2365. }, <span class="hljs-symbol">headers:</span> headers
  2366. p JSON.parse(result)
  2367. </code></pre>
  2368. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2369. headers = {
  2370. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2371. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2372. }
  2373. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2374. <span class="hljs-built_in">print</span>(r.json())
  2375. </code></pre>
  2376. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2377. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2378. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2379. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2380. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2381. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2382. String inputLine;
  2383. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2384. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2385. response.append(inputLine);
  2386. }
  2387. in.close();
  2388. System.out.println(response.toString());
  2389. </code></pre>
  2390. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2391. <span class="hljs-keyword">import</span> (
  2392. <span class="hljs-string">&quot;bytes&quot;</span>
  2393. <span class="hljs-string">&quot;net/http&quot;</span>
  2394. )
  2395. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2396. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2397. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2398. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2399. }
  2400. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2401. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2402. req.Header = headers
  2403. client := &amp;http.Client{}
  2404. resp, err := client.Do(req)
  2405. <span class="hljs-comment">// ...</span>
  2406. }
  2407. </code></pre>
  2408. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2409. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2410. );
  2411. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2412. <span class="hljs-comment">// Define array of request body.</span>
  2413. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2414. <span class="hljs-keyword">try</span> {
  2415. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2416. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2417. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2418. )
  2419. );
  2420. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2421. }
  2422. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2423. <span class="hljs-comment">// handle exception or api errors.</span>
  2424. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2425. }
  2426. <span class="hljs-comment">// ...</span>
  2427. </code></pre>
  2428. <p><code>GET /api/boards</code></p>
  2429. <p><em>Get all public boards</em></p>
  2430. <blockquote>
  2431. <p>Example responses</p>
  2432. </blockquote>
  2433. <blockquote>
  2434. <p>200 Response</p>
  2435. </blockquote>
  2436. <pre class="highlight tab tab-json"><code>[
  2437. {
  2438. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2439. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2440. }
  2441. ]
  2442. </code></pre>
  2443. <h3 id="get_public_boards-responses">Responses</h3>
  2444. <table>
  2445. <thead>
  2446. <tr>
  2447. <th>Status</th>
  2448. <th>Meaning</th>
  2449. <th>Description</th>
  2450. <th>Schema</th>
  2451. </tr>
  2452. </thead>
  2453. <tbody>
  2454. <tr>
  2455. <td>200</td>
  2456. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2457. <td>200 response</td>
  2458. <td>Inline</td>
  2459. </tr>
  2460. </tbody>
  2461. </table>
  2462. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2463. <p>Status Code <strong>200</strong></p>
  2464. <table>
  2465. <thead>
  2466. <tr>
  2467. <th>Name</th>
  2468. <th>Type</th>
  2469. <th>Required</th>
  2470. <th>Restrictions</th>
  2471. <th>Description</th>
  2472. </tr>
  2473. </thead>
  2474. <tbody>
  2475. <tr>
  2476. <td>» _id</td>
  2477. <td>string</td>
  2478. <td>false</td>
  2479. <td>none</td>
  2480. <td>none</td>
  2481. </tr>
  2482. <tr>
  2483. <td>» title</td>
  2484. <td>string</td>
  2485. <td>false</td>
  2486. <td>none</td>
  2487. <td>none</td>
  2488. </tr>
  2489. </tbody>
  2490. </table>
  2491. <aside class="warning">
  2492. To perform this operation, you must be authenticated by means of one of the following methods:
  2493. UserSecurity
  2494. </aside>
  2495. <h2 id="new_board">new_board</h2>
  2496. <p><a id="opIdnew_board"></a></p>
  2497. <blockquote>
  2498. <p>Code samples</p>
  2499. </blockquote>
  2500. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2501. curl -X POST /api/boards \
  2502. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2503. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2504. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2505. </code></pre>
  2506. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2507. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2508. Accept: application/json
  2509. </span></code></pre>
  2510. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2511. &quot;title&quot;: &quot;string&quot;,
  2512. &quot;owner&quot;: &quot;string&quot;,
  2513. &quot;isAdmin&quot;: true,
  2514. &quot;isActive&quot;: true,
  2515. &quot;isNoComments&quot;: true,
  2516. &quot;isCommentOnly&quot;: true,
  2517. &quot;isWorker&quot;: true,
  2518. &quot;permission&quot;: &quot;string&quot;,
  2519. &quot;color&quot;: &quot;string&quot;
  2520. }&#x27;</span>;
  2521. <span class="hljs-keyword">const</span> headers = {
  2522. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2523. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2524. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2525. };
  2526. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2527. {
  2528. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2529. <span class="hljs-attr">body</span>: inputBody,
  2530. <span class="hljs-attr">headers</span>: headers
  2531. })
  2532. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2533. <span class="hljs-keyword">return</span> res.json();
  2534. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2535. <span class="hljs-built_in">console</span>.log(body);
  2536. });
  2537. </code></pre>
  2538. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2539. <span class="hljs-keyword">const</span> inputBody = {
  2540. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2541. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2542. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2543. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2544. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2545. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2546. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2547. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2548. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2549. };
  2550. <span class="hljs-keyword">const</span> headers = {
  2551. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2552. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2553. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2554. };
  2555. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2556. {
  2557. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2558. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2559. <span class="hljs-attr">headers</span>: headers
  2560. })
  2561. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2562. <span class="hljs-keyword">return</span> res.json();
  2563. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2564. <span class="hljs-built_in">console</span>.log(body);
  2565. });
  2566. </code></pre>
  2567. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2568. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2569. headers = {
  2570. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2571. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2572. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2573. }
  2574. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2575. <span class="hljs-symbol">params:</span> {
  2576. }, <span class="hljs-symbol">headers:</span> headers
  2577. p JSON.parse(result)
  2578. </code></pre>
  2579. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2580. headers = {
  2581. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2582. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2583. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2584. }
  2585. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2586. <span class="hljs-built_in">print</span>(r.json())
  2587. </code></pre>
  2588. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2589. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2590. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2591. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2592. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2593. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2594. String inputLine;
  2595. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2596. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2597. response.append(inputLine);
  2598. }
  2599. in.close();
  2600. System.out.println(response.toString());
  2601. </code></pre>
  2602. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2603. <span class="hljs-keyword">import</span> (
  2604. <span class="hljs-string">&quot;bytes&quot;</span>
  2605. <span class="hljs-string">&quot;net/http&quot;</span>
  2606. )
  2607. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2608. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2609. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  2610. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2611. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2612. }
  2613. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2614. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2615. req.Header = headers
  2616. client := &amp;http.Client{}
  2617. resp, err := client.Do(req)
  2618. <span class="hljs-comment">// ...</span>
  2619. }
  2620. </code></pre>
  2621. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2622. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2623. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2624. );
  2625. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2626. <span class="hljs-comment">// Define array of request body.</span>
  2627. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2628. <span class="hljs-keyword">try</span> {
  2629. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2630. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2631. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2632. )
  2633. );
  2634. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2635. }
  2636. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2637. <span class="hljs-comment">// handle exception or api errors.</span>
  2638. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2639. }
  2640. <span class="hljs-comment">// ...</span>
  2641. </code></pre>
  2642. <p><code>POST /api/boards</code></p>
  2643. <p><em>Create a board</em></p>
  2644. <p>This allows to create a board.</p>
  2645. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2646. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2647. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2648. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2649. <blockquote>
  2650. <p>Body parameter</p>
  2651. </blockquote>
  2652. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2653. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2654. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2655. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2656. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2657. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2658. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2659. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2660. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2661. </code></pre>
  2662. <h3 id="new_board-parameters">Parameters</h3>
  2663. <table>
  2664. <thead>
  2665. <tr>
  2666. <th>Name</th>
  2667. <th>In</th>
  2668. <th>Type</th>
  2669. <th>Required</th>
  2670. <th>Description</th>
  2671. </tr>
  2672. </thead>
  2673. <tbody>
  2674. <tr>
  2675. <td>body</td>
  2676. <td>body</td>
  2677. <td>object</td>
  2678. <td>true</td>
  2679. <td>none</td>
  2680. </tr>
  2681. <tr>
  2682. <td>» title</td>
  2683. <td>body</td>
  2684. <td>string</td>
  2685. <td>true</td>
  2686. <td>the new title of the board</td>
  2687. </tr>
  2688. <tr>
  2689. <td>» owner</td>
  2690. <td>body</td>
  2691. <td>string</td>
  2692. <td>true</td>
  2693. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2694. </tr>
  2695. <tr>
  2696. <td>» isAdmin</td>
  2697. <td>body</td>
  2698. <td>boolean</td>
  2699. <td>false</td>
  2700. <td>is the owner an admin of the board (default true)</td>
  2701. </tr>
  2702. <tr>
  2703. <td>» isActive</td>
  2704. <td>body</td>
  2705. <td>boolean</td>
  2706. <td>false</td>
  2707. <td>is the board active (default true)</td>
  2708. </tr>
  2709. <tr>
  2710. <td>» isNoComments</td>
  2711. <td>body</td>
  2712. <td>boolean</td>
  2713. <td>false</td>
  2714. <td>disable comments (default false)</td>
  2715. </tr>
  2716. <tr>
  2717. <td>» isCommentOnly</td>
  2718. <td>body</td>
  2719. <td>boolean</td>
  2720. <td>false</td>
  2721. <td>only enable comments (default false)</td>
  2722. </tr>
  2723. <tr>
  2724. <td>» isWorker</td>
  2725. <td>body</td>
  2726. <td>boolean</td>
  2727. <td>false</td>
  2728. <td>only move cards, assign himself to card and comment (default false)</td>
  2729. </tr>
  2730. <tr>
  2731. <td>» permission</td>
  2732. <td>body</td>
  2733. <td>string</td>
  2734. <td>false</td>
  2735. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2736. </tr>
  2737. <tr>
  2738. <td>» color</td>
  2739. <td>body</td>
  2740. <td>string</td>
  2741. <td>false</td>
  2742. <td>the color of the board</td>
  2743. </tr>
  2744. </tbody>
  2745. </table>
  2746. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2747. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2748. (Not username or email)</p>
  2749. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2750. want public Wekan board</p>
  2751. <blockquote>
  2752. <p>Example responses</p>
  2753. </blockquote>
  2754. <blockquote>
  2755. <p>200 Response</p>
  2756. </blockquote>
  2757. <pre class="highlight tab tab-json"><code>{
  2758. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2759. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2760. }
  2761. </code></pre>
  2762. <h3 id="new_board-responses">Responses</h3>
  2763. <table>
  2764. <thead>
  2765. <tr>
  2766. <th>Status</th>
  2767. <th>Meaning</th>
  2768. <th>Description</th>
  2769. <th>Schema</th>
  2770. </tr>
  2771. </thead>
  2772. <tbody>
  2773. <tr>
  2774. <td>200</td>
  2775. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2776. <td>200 response</td>
  2777. <td>Inline</td>
  2778. </tr>
  2779. </tbody>
  2780. </table>
  2781. <h3 id="new_board-responseschema">Response Schema</h3>
  2782. <p>Status Code <strong>200</strong></p>
  2783. <table>
  2784. <thead>
  2785. <tr>
  2786. <th>Name</th>
  2787. <th>Type</th>
  2788. <th>Required</th>
  2789. <th>Restrictions</th>
  2790. <th>Description</th>
  2791. </tr>
  2792. </thead>
  2793. <tbody>
  2794. <tr>
  2795. <td>» _id</td>
  2796. <td>string</td>
  2797. <td>false</td>
  2798. <td>none</td>
  2799. <td>none</td>
  2800. </tr>
  2801. <tr>
  2802. <td>» defaultSwimlaneId</td>
  2803. <td>string</td>
  2804. <td>false</td>
  2805. <td>none</td>
  2806. <td>none</td>
  2807. </tr>
  2808. </tbody>
  2809. </table>
  2810. <aside class="warning">
  2811. To perform this operation, you must be authenticated by means of one of the following methods:
  2812. UserSecurity
  2813. </aside>
  2814. <h2 id="get_board">get_board</h2>
  2815. <p><a id="opIdget_board"></a></p>
  2816. <blockquote>
  2817. <p>Code samples</p>
  2818. </blockquote>
  2819. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2820. curl -X GET /api/boards/{board} \
  2821. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2822. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2823. </code></pre>
  2824. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> <span class="hljs-meta">HTTP/1.1</span>
  2825. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2826. </span></code></pre>
  2827. <pre class="highlight tab tab-javascript"><code>
  2828. <span class="hljs-keyword">const</span> headers = {
  2829. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2830. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2831. };
  2832. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2833. {
  2834. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2835. <span class="hljs-attr">headers</span>: headers
  2836. })
  2837. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2838. <span class="hljs-keyword">return</span> res.json();
  2839. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2840. <span class="hljs-built_in">console</span>.log(body);
  2841. });
  2842. </code></pre>
  2843. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2844. <span class="hljs-keyword">const</span> headers = {
  2845. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2846. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2847. };
  2848. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2849. {
  2850. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2851. <span class="hljs-attr">headers</span>: headers
  2852. })
  2853. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2854. <span class="hljs-keyword">return</span> res.json();
  2855. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2856. <span class="hljs-built_in">console</span>.log(body);
  2857. });
  2858. </code></pre>
  2859. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2860. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2861. headers = {
  2862. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2863. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2864. }
  2865. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2866. <span class="hljs-symbol">params:</span> {
  2867. }, <span class="hljs-symbol">headers:</span> headers
  2868. p JSON.parse(result)
  2869. </code></pre>
  2870. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2871. headers = {
  2872. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2873. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2874. }
  2875. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2876. <span class="hljs-built_in">print</span>(r.json())
  2877. </code></pre>
  2878. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}&quot;</span>);
  2879. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2880. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2881. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2882. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2883. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2884. String inputLine;
  2885. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2886. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2887. response.append(inputLine);
  2888. }
  2889. in.close();
  2890. System.out.println(response.toString());
  2891. </code></pre>
  2892. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2893. <span class="hljs-keyword">import</span> (
  2894. <span class="hljs-string">&quot;bytes&quot;</span>
  2895. <span class="hljs-string">&quot;net/http&quot;</span>
  2896. )
  2897. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2898. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2899. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2900. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2901. }
  2902. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2903. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2904. req.Header = headers
  2905. client := &amp;http.Client{}
  2906. resp, err := client.Do(req)
  2907. <span class="hljs-comment">// ...</span>
  2908. }
  2909. </code></pre>
  2910. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2911. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2912. );
  2913. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2914. <span class="hljs-comment">// Define array of request body.</span>
  2915. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2916. <span class="hljs-keyword">try</span> {
  2917. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, <span class="hljs-keyword">array</span>(
  2918. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2919. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2920. )
  2921. );
  2922. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2923. }
  2924. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2925. <span class="hljs-comment">// handle exception or api errors.</span>
  2926. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2927. }
  2928. <span class="hljs-comment">// ...</span>
  2929. </code></pre>
  2930. <p><code>GET /api/boards/{board}</code></p>
  2931. <p><em>Get the board with that particular ID</em></p>
  2932. <h3 id="get_board-parameters">Parameters</h3>
  2933. <table>
  2934. <thead>
  2935. <tr>
  2936. <th>Name</th>
  2937. <th>In</th>
  2938. <th>Type</th>
  2939. <th>Required</th>
  2940. <th>Description</th>
  2941. </tr>
  2942. </thead>
  2943. <tbody>
  2944. <tr>
  2945. <td>board</td>
  2946. <td>path</td>
  2947. <td>string</td>
  2948. <td>true</td>
  2949. <td>the ID of the board to retrieve the data</td>
  2950. </tr>
  2951. </tbody>
  2952. </table>
  2953. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2954. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2955. <blockquote>
  2956. <p>Example responses</p>
  2957. </blockquote>
  2958. <blockquote>
  2959. <p>200 Response</p>
  2960. </blockquote>
  2961. <pre class="highlight tab tab-json"><code>{
  2962. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2963. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2964. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2965. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2966. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2967. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2968. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2969. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2970. {
  2971. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2972. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2973. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2974. }
  2975. ],
  2976. <span class="hljs-attr">&quot;members&quot;</span>: [
  2977. {
  2978. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2979. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2980. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2981. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2982. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2983. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2984. }
  2985. ],
  2986. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2987. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2988. {
  2989. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2990. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2991. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2992. }
  2993. ],
  2994. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2995. {
  2996. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2997. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2998. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2999. }
  3000. ],
  3001. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  3002. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3003. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3004. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3005. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3006. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3007. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3008. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3009. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3010. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3011. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3012. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3013. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3014. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3015. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3016. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3017. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3018. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3019. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3021. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3023. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3024. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3025. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3026. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3027. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3028. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3029. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3030. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3031. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3032. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3033. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3034. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3035. }
  3036. </code></pre>
  3037. <h3 id="get_board-responses">Responses</h3>
  3038. <table>
  3039. <thead>
  3040. <tr>
  3041. <th>Status</th>
  3042. <th>Meaning</th>
  3043. <th>Description</th>
  3044. <th>Schema</th>
  3045. </tr>
  3046. </thead>
  3047. <tbody>
  3048. <tr>
  3049. <td>200</td>
  3050. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3051. <td>200 response</td>
  3052. <td><a href="#schemaboards">Boards</a></td>
  3053. </tr>
  3054. </tbody>
  3055. </table>
  3056. <aside class="warning">
  3057. To perform this operation, you must be authenticated by means of one of the following methods:
  3058. UserSecurity
  3059. </aside>
  3060. <h2 id="delete_board">delete_board</h2>
  3061. <p><a id="opIddelete_board"></a></p>
  3062. <blockquote>
  3063. <p>Code samples</p>
  3064. </blockquote>
  3065. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3066. curl -X DELETE /api/boards/{board} \
  3067. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3068. </code></pre>
  3069. <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>
  3070. </code></pre>
  3071. <pre class="highlight tab tab-javascript"><code>
  3072. <span class="hljs-keyword">const</span> headers = {
  3073. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3074. };
  3075. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3076. {
  3077. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3078. <span class="hljs-attr">headers</span>: headers
  3079. })
  3080. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3081. <span class="hljs-keyword">return</span> res.json();
  3082. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3083. <span class="hljs-built_in">console</span>.log(body);
  3084. });
  3085. </code></pre>
  3086. <pre class="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>);
  3087. <span class="hljs-keyword">const</span> headers = {
  3088. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3089. };
  3090. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3091. {
  3092. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3093. <span class="hljs-attr">headers</span>: headers
  3094. })
  3095. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3096. <span class="hljs-keyword">return</span> res.json();
  3097. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3098. <span class="hljs-built_in">console</span>.log(body);
  3099. });
  3100. </code></pre>
  3101. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3102. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3103. headers = {
  3104. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3105. }
  3106. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3107. <span class="hljs-symbol">params:</span> {
  3108. }, <span class="hljs-symbol">headers:</span> headers
  3109. p JSON.parse(result)
  3110. </code></pre>
  3111. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3112. headers = {
  3113. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3114. }
  3115. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3116. <span class="hljs-built_in">print</span>(r.json())
  3117. </code></pre>
  3118. <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>);
  3119. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3120. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3121. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3122. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3123. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3124. String inputLine;
  3125. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3126. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3127. response.append(inputLine);
  3128. }
  3129. in.close();
  3130. System.out.println(response.toString());
  3131. </code></pre>
  3132. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3133. <span class="hljs-keyword">import</span> (
  3134. <span class="hljs-string">&quot;bytes&quot;</span>
  3135. <span class="hljs-string">&quot;net/http&quot;</span>
  3136. )
  3137. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3138. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3139. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3140. }
  3141. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3142. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3143. req.Header = headers
  3144. client := &amp;http.Client{}
  3145. resp, err := client.Do(req)
  3146. <span class="hljs-comment">// ...</span>
  3147. }
  3148. </code></pre>
  3149. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3150. );
  3151. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3152. <span class="hljs-comment">// Define array of request body.</span>
  3153. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3154. <span class="hljs-keyword">try</span> {
  3155. <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>(
  3156. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3157. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3158. )
  3159. );
  3160. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3161. }
  3162. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3163. <span class="hljs-comment">// handle exception or api errors.</span>
  3164. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3165. }
  3166. <span class="hljs-comment">// ...</span>
  3167. </code></pre>
  3168. <p><code>DELETE /api/boards/{board}</code></p>
  3169. <p><em>Delete a board</em></p>
  3170. <h3 id="delete_board-parameters">Parameters</h3>
  3171. <table>
  3172. <thead>
  3173. <tr>
  3174. <th>Name</th>
  3175. <th>In</th>
  3176. <th>Type</th>
  3177. <th>Required</th>
  3178. <th>Description</th>
  3179. </tr>
  3180. </thead>
  3181. <tbody>
  3182. <tr>
  3183. <td>board</td>
  3184. <td>path</td>
  3185. <td>string</td>
  3186. <td>true</td>
  3187. <td>the ID of the board</td>
  3188. </tr>
  3189. </tbody>
  3190. </table>
  3191. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3192. <p><strong>board</strong>: the ID of the board</p>
  3193. <h3 id="delete_board-responses">Responses</h3>
  3194. <table>
  3195. <thead>
  3196. <tr>
  3197. <th>Status</th>
  3198. <th>Meaning</th>
  3199. <th>Description</th>
  3200. <th>Schema</th>
  3201. </tr>
  3202. </thead>
  3203. <tbody>
  3204. <tr>
  3205. <td>200</td>
  3206. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3207. <td>200 response</td>
  3208. <td>None</td>
  3209. </tr>
  3210. </tbody>
  3211. </table>
  3212. <aside class="warning">
  3213. To perform this operation, you must be authenticated by means of one of the following methods:
  3214. UserSecurity
  3215. </aside>
  3216. <h2 id="get_board_attachments">get_board_attachments</h2>
  3217. <p><a id="opIdget_board_attachments"></a></p>
  3218. <blockquote>
  3219. <p>Code samples</p>
  3220. </blockquote>
  3221. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3222. curl -X GET /api/boards/{board}/attachments \
  3223. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3224. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3225. </code></pre>
  3226. <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>
  3227. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3228. </span></code></pre>
  3229. <pre class="highlight tab tab-javascript"><code>
  3230. <span class="hljs-keyword">const</span> headers = {
  3231. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3232. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3233. };
  3234. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3235. {
  3236. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3237. <span class="hljs-attr">headers</span>: headers
  3238. })
  3239. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3240. <span class="hljs-keyword">return</span> res.json();
  3241. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3242. <span class="hljs-built_in">console</span>.log(body);
  3243. });
  3244. </code></pre>
  3245. <pre class="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>);
  3246. <span class="hljs-keyword">const</span> headers = {
  3247. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3248. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3249. };
  3250. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3251. {
  3252. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3253. <span class="hljs-attr">headers</span>: headers
  3254. })
  3255. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3256. <span class="hljs-keyword">return</span> res.json();
  3257. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3258. <span class="hljs-built_in">console</span>.log(body);
  3259. });
  3260. </code></pre>
  3261. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3262. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3263. headers = {
  3264. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3265. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3266. }
  3267. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3268. <span class="hljs-symbol">params:</span> {
  3269. }, <span class="hljs-symbol">headers:</span> headers
  3270. p JSON.parse(result)
  3271. </code></pre>
  3272. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3273. headers = {
  3274. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3275. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3276. }
  3277. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3278. <span class="hljs-built_in">print</span>(r.json())
  3279. </code></pre>
  3280. <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>);
  3281. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3282. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3283. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3284. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3285. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3286. String inputLine;
  3287. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3288. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3289. response.append(inputLine);
  3290. }
  3291. in.close();
  3292. System.out.println(response.toString());
  3293. </code></pre>
  3294. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3295. <span class="hljs-keyword">import</span> (
  3296. <span class="hljs-string">&quot;bytes&quot;</span>
  3297. <span class="hljs-string">&quot;net/http&quot;</span>
  3298. )
  3299. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3300. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3301. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3302. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3303. }
  3304. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3305. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3306. req.Header = headers
  3307. client := &amp;http.Client{}
  3308. resp, err := client.Do(req)
  3309. <span class="hljs-comment">// ...</span>
  3310. }
  3311. </code></pre>
  3312. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3313. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3314. );
  3315. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3316. <span class="hljs-comment">// Define array of request body.</span>
  3317. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3318. <span class="hljs-keyword">try</span> {
  3319. <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>(
  3320. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3321. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3322. )
  3323. );
  3324. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3325. }
  3326. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3327. <span class="hljs-comment">// handle exception or api errors.</span>
  3328. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3329. }
  3330. <span class="hljs-comment">// ...</span>
  3331. </code></pre>
  3332. <p><code>GET /api/boards/{board}/attachments</code></p>
  3333. <p><em>Get the list of attachments of a board</em></p>
  3334. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3335. <table>
  3336. <thead>
  3337. <tr>
  3338. <th>Name</th>
  3339. <th>In</th>
  3340. <th>Type</th>
  3341. <th>Required</th>
  3342. <th>Description</th>
  3343. </tr>
  3344. </thead>
  3345. <tbody>
  3346. <tr>
  3347. <td>board</td>
  3348. <td>path</td>
  3349. <td>string</td>
  3350. <td>true</td>
  3351. <td>the board ID</td>
  3352. </tr>
  3353. </tbody>
  3354. </table>
  3355. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3356. <p><strong>board</strong>: the board ID</p>
  3357. <blockquote>
  3358. <p>Example responses</p>
  3359. </blockquote>
  3360. <blockquote>
  3361. <p>200 Response</p>
  3362. </blockquote>
  3363. <pre class="highlight tab tab-json"><code>[
  3364. {
  3365. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3366. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3367. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3368. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3369. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3370. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3371. }
  3372. ]
  3373. </code></pre>
  3374. <h3 id="get_board_attachments-responses">Responses</h3>
  3375. <table>
  3376. <thead>
  3377. <tr>
  3378. <th>Status</th>
  3379. <th>Meaning</th>
  3380. <th>Description</th>
  3381. <th>Schema</th>
  3382. </tr>
  3383. </thead>
  3384. <tbody>
  3385. <tr>
  3386. <td>200</td>
  3387. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3388. <td>200 response</td>
  3389. <td>Inline</td>
  3390. </tr>
  3391. </tbody>
  3392. </table>
  3393. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3394. <p>Status Code <strong>200</strong></p>
  3395. <table>
  3396. <thead>
  3397. <tr>
  3398. <th>Name</th>
  3399. <th>Type</th>
  3400. <th>Required</th>
  3401. <th>Restrictions</th>
  3402. <th>Description</th>
  3403. </tr>
  3404. </thead>
  3405. <tbody>
  3406. <tr>
  3407. <td>» attachmentId</td>
  3408. <td>string</td>
  3409. <td>false</td>
  3410. <td>none</td>
  3411. <td>none</td>
  3412. </tr>
  3413. <tr>
  3414. <td>» attachmentName</td>
  3415. <td>string</td>
  3416. <td>false</td>
  3417. <td>none</td>
  3418. <td>none</td>
  3419. </tr>
  3420. <tr>
  3421. <td>» attachmentType</td>
  3422. <td>string</td>
  3423. <td>false</td>
  3424. <td>none</td>
  3425. <td>none</td>
  3426. </tr>
  3427. <tr>
  3428. <td>» cardId</td>
  3429. <td>string</td>
  3430. <td>false</td>
  3431. <td>none</td>
  3432. <td>none</td>
  3433. </tr>
  3434. <tr>
  3435. <td>» listId</td>
  3436. <td>string</td>
  3437. <td>false</td>
  3438. <td>none</td>
  3439. <td>none</td>
  3440. </tr>
  3441. <tr>
  3442. <td>» swimlaneId</td>
  3443. <td>string</td>
  3444. <td>false</td>
  3445. <td>none</td>
  3446. <td>none</td>
  3447. </tr>
  3448. </tbody>
  3449. </table>
  3450. <aside class="warning">
  3451. To perform this operation, you must be authenticated by means of one of the following methods:
  3452. UserSecurity
  3453. </aside>
  3454. <h2 id="exportjson">exportJson</h2>
  3455. <p><a id="opIdexportJson"></a></p>
  3456. <blockquote>
  3457. <p>Code samples</p>
  3458. </blockquote>
  3459. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3460. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3461. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3462. </code></pre>
  3463. <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>
  3464. </code></pre>
  3465. <pre class="highlight tab tab-javascript"><code>
  3466. <span class="hljs-keyword">const</span> headers = {
  3467. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3468. };
  3469. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3470. {
  3471. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3472. <span class="hljs-attr">headers</span>: headers
  3473. })
  3474. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3475. <span class="hljs-keyword">return</span> res.json();
  3476. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3477. <span class="hljs-built_in">console</span>.log(body);
  3478. });
  3479. </code></pre>
  3480. <pre class="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>);
  3481. <span class="hljs-keyword">const</span> headers = {
  3482. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3483. };
  3484. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3485. {
  3486. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3487. <span class="hljs-attr">headers</span>: headers
  3488. })
  3489. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3490. <span class="hljs-keyword">return</span> res.json();
  3491. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3492. <span class="hljs-built_in">console</span>.log(body);
  3493. });
  3494. </code></pre>
  3495. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3496. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3497. headers = {
  3498. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3499. }
  3500. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3501. <span class="hljs-symbol">params:</span> {
  3502. }, <span class="hljs-symbol">headers:</span> headers
  3503. p JSON.parse(result)
  3504. </code></pre>
  3505. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3506. headers = {
  3507. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3508. }
  3509. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3510. <span class="hljs-built_in">print</span>(r.json())
  3511. </code></pre>
  3512. <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>);
  3513. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3514. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3515. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3516. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3517. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3518. String inputLine;
  3519. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3520. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3521. response.append(inputLine);
  3522. }
  3523. in.close();
  3524. System.out.println(response.toString());
  3525. </code></pre>
  3526. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3527. <span class="hljs-keyword">import</span> (
  3528. <span class="hljs-string">&quot;bytes&quot;</span>
  3529. <span class="hljs-string">&quot;net/http&quot;</span>
  3530. )
  3531. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3532. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3533. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3534. }
  3535. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3536. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3537. req.Header = headers
  3538. client := &amp;http.Client{}
  3539. resp, err := client.Do(req)
  3540. <span class="hljs-comment">// ...</span>
  3541. }
  3542. </code></pre>
  3543. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3544. );
  3545. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3546. <span class="hljs-comment">// Define array of request body.</span>
  3547. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3548. <span class="hljs-keyword">try</span> {
  3549. <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>(
  3550. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3551. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3552. )
  3553. );
  3554. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3555. }
  3556. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3557. <span class="hljs-comment">// handle exception or api errors.</span>
  3558. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3559. }
  3560. <span class="hljs-comment">// ...</span>
  3561. </code></pre>
  3562. <p><code>GET /api/boards/{board}/export</code></p>
  3563. <p><em>This route is used to export the board to a json file format.</em></p>
  3564. <p>If user is already logged-in, pass loginToken as param
  3565. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3566. <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>
  3567. for detailed explanations</p>
  3568. <h3 id="exportjson-parameters">Parameters</h3>
  3569. <table>
  3570. <thead>
  3571. <tr>
  3572. <th>Name</th>
  3573. <th>In</th>
  3574. <th>Type</th>
  3575. <th>Required</th>
  3576. <th>Description</th>
  3577. </tr>
  3578. </thead>
  3579. <tbody>
  3580. <tr>
  3581. <td>board</td>
  3582. <td>path</td>
  3583. <td>string</td>
  3584. <td>true</td>
  3585. <td>the ID of the board we are exporting</td>
  3586. </tr>
  3587. </tbody>
  3588. </table>
  3589. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3590. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3591. <h3 id="exportjson-responses">Responses</h3>
  3592. <table>
  3593. <thead>
  3594. <tr>
  3595. <th>Status</th>
  3596. <th>Meaning</th>
  3597. <th>Description</th>
  3598. <th>Schema</th>
  3599. </tr>
  3600. </thead>
  3601. <tbody>
  3602. <tr>
  3603. <td>200</td>
  3604. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3605. <td>200 response</td>
  3606. <td>None</td>
  3607. </tr>
  3608. </tbody>
  3609. </table>
  3610. <aside class="warning">
  3611. To perform this operation, you must be authenticated by means of one of the following methods:
  3612. UserSecurity
  3613. </aside>
  3614. <h2 id="add_board_label">add_board_label</h2>
  3615. <p><a id="opIdadd_board_label"></a></p>
  3616. <blockquote>
  3617. <p>Code samples</p>
  3618. </blockquote>
  3619. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3620. curl -X PUT /api/boards/{board}/labels \
  3621. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3622. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3623. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3624. </code></pre>
  3625. <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>
  3626. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3627. Accept: application/json
  3628. </span></code></pre>
  3629. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3630. &quot;label&quot;: &quot;string&quot;
  3631. }&#x27;</span>;
  3632. <span class="hljs-keyword">const</span> headers = {
  3633. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3634. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3635. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3636. };
  3637. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3638. {
  3639. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3640. <span class="hljs-attr">body</span>: inputBody,
  3641. <span class="hljs-attr">headers</span>: headers
  3642. })
  3643. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3644. <span class="hljs-keyword">return</span> res.json();
  3645. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3646. <span class="hljs-built_in">console</span>.log(body);
  3647. });
  3648. </code></pre>
  3649. <pre class="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>);
  3650. <span class="hljs-keyword">const</span> inputBody = {
  3651. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3652. };
  3653. <span class="hljs-keyword">const</span> headers = {
  3654. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3655. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3656. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3657. };
  3658. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3659. {
  3660. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3661. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3662. <span class="hljs-attr">headers</span>: headers
  3663. })
  3664. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3665. <span class="hljs-keyword">return</span> res.json();
  3666. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3667. <span class="hljs-built_in">console</span>.log(body);
  3668. });
  3669. </code></pre>
  3670. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3671. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3672. headers = {
  3673. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3674. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3675. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3676. }
  3677. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3678. <span class="hljs-symbol">params:</span> {
  3679. }, <span class="hljs-symbol">headers:</span> headers
  3680. p JSON.parse(result)
  3681. </code></pre>
  3682. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3683. headers = {
  3684. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3685. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3686. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3687. }
  3688. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3689. <span class="hljs-built_in">print</span>(r.json())
  3690. </code></pre>
  3691. <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>);
  3692. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3693. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3694. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3695. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3696. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3697. String inputLine;
  3698. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3699. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3700. response.append(inputLine);
  3701. }
  3702. in.close();
  3703. System.out.println(response.toString());
  3704. </code></pre>
  3705. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3706. <span class="hljs-keyword">import</span> (
  3707. <span class="hljs-string">&quot;bytes&quot;</span>
  3708. <span class="hljs-string">&quot;net/http&quot;</span>
  3709. )
  3710. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3711. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3712. <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>},
  3713. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3714. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3715. }
  3716. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3717. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3718. req.Header = headers
  3719. client := &amp;http.Client{}
  3720. resp, err := client.Do(req)
  3721. <span class="hljs-comment">// ...</span>
  3722. }
  3723. </code></pre>
  3724. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3725. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3726. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3727. );
  3728. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3729. <span class="hljs-comment">// Define array of request body.</span>
  3730. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3731. <span class="hljs-keyword">try</span> {
  3732. <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>(
  3733. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3734. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3735. )
  3736. );
  3737. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3738. }
  3739. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3740. <span class="hljs-comment">// handle exception or api errors.</span>
  3741. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3742. }
  3743. <span class="hljs-comment">// ...</span>
  3744. </code></pre>
  3745. <p><code>PUT /api/boards/{board}/labels</code></p>
  3746. <p><em>Add a label to a board</em></p>
  3747. <p>If the board doesn't have the name/color label, this function
  3748. adds the label to the board.</p>
  3749. <blockquote>
  3750. <p>Body parameter</p>
  3751. </blockquote>
  3752. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3753. </code></pre>
  3754. <h3 id="add_board_label-parameters">Parameters</h3>
  3755. <table>
  3756. <thead>
  3757. <tr>
  3758. <th>Name</th>
  3759. <th>In</th>
  3760. <th>Type</th>
  3761. <th>Required</th>
  3762. <th>Description</th>
  3763. </tr>
  3764. </thead>
  3765. <tbody>
  3766. <tr>
  3767. <td>board</td>
  3768. <td>path</td>
  3769. <td>string</td>
  3770. <td>true</td>
  3771. <td>the board</td>
  3772. </tr>
  3773. <tr>
  3774. <td>body</td>
  3775. <td>body</td>
  3776. <td>object</td>
  3777. <td>true</td>
  3778. <td>none</td>
  3779. </tr>
  3780. <tr>
  3781. <td>» label</td>
  3782. <td>body</td>
  3783. <td>string</td>
  3784. <td>true</td>
  3785. <td>the label value</td>
  3786. </tr>
  3787. </tbody>
  3788. </table>
  3789. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3790. <p><strong>board</strong>: the board</p>
  3791. <blockquote>
  3792. <p>Example responses</p>
  3793. </blockquote>
  3794. <blockquote>
  3795. <p>200 Response</p>
  3796. </blockquote>
  3797. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3798. </code></pre>
  3799. <h3 id="add_board_label-responses">Responses</h3>
  3800. <table>
  3801. <thead>
  3802. <tr>
  3803. <th>Status</th>
  3804. <th>Meaning</th>
  3805. <th>Description</th>
  3806. <th>Schema</th>
  3807. </tr>
  3808. </thead>
  3809. <tbody>
  3810. <tr>
  3811. <td>200</td>
  3812. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3813. <td>200 response</td>
  3814. <td>string</td>
  3815. </tr>
  3816. </tbody>
  3817. </table>
  3818. <aside class="warning">
  3819. To perform this operation, you must be authenticated by means of one of the following methods:
  3820. UserSecurity
  3821. </aside>
  3822. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3823. <p><a id="opIdset_board_member_permission"></a></p>
  3824. <blockquote>
  3825. <p>Code samples</p>
  3826. </blockquote>
  3827. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3828. curl -X POST /api/boards/{board}/members/{member} \
  3829. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3830. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3831. </code></pre>
  3832. <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>
  3833. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3834. </span></code></pre>
  3835. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3836. &quot;isAdmin&quot;: true,
  3837. &quot;isNoComments&quot;: true,
  3838. &quot;isCommentOnly&quot;: true,
  3839. &quot;isWorker&quot;: true
  3840. }&#x27;</span>;
  3841. <span class="hljs-keyword">const</span> headers = {
  3842. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3843. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3844. };
  3845. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3846. {
  3847. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3848. <span class="hljs-attr">body</span>: inputBody,
  3849. <span class="hljs-attr">headers</span>: headers
  3850. })
  3851. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3852. <span class="hljs-keyword">return</span> res.json();
  3853. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3854. <span class="hljs-built_in">console</span>.log(body);
  3855. });
  3856. </code></pre>
  3857. <pre class="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>);
  3858. <span class="hljs-keyword">const</span> inputBody = {
  3859. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3860. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3861. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3862. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3863. };
  3864. <span class="hljs-keyword">const</span> headers = {
  3865. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3866. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3867. };
  3868. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3869. {
  3870. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3871. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3872. <span class="hljs-attr">headers</span>: headers
  3873. })
  3874. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3875. <span class="hljs-keyword">return</span> res.json();
  3876. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3877. <span class="hljs-built_in">console</span>.log(body);
  3878. });
  3879. </code></pre>
  3880. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3881. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3882. headers = {
  3883. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3884. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3885. }
  3886. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3887. <span class="hljs-symbol">params:</span> {
  3888. }, <span class="hljs-symbol">headers:</span> headers
  3889. p JSON.parse(result)
  3890. </code></pre>
  3891. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3892. headers = {
  3893. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3894. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3895. }
  3896. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3897. <span class="hljs-built_in">print</span>(r.json())
  3898. </code></pre>
  3899. <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>);
  3900. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3901. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3902. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3903. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3904. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3905. String inputLine;
  3906. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3907. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3908. response.append(inputLine);
  3909. }
  3910. in.close();
  3911. System.out.println(response.toString());
  3912. </code></pre>
  3913. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3914. <span class="hljs-keyword">import</span> (
  3915. <span class="hljs-string">&quot;bytes&quot;</span>
  3916. <span class="hljs-string">&quot;net/http&quot;</span>
  3917. )
  3918. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3919. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3920. <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>},
  3921. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3922. }
  3923. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3924. 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)
  3925. req.Header = headers
  3926. client := &amp;http.Client{}
  3927. resp, err := client.Do(req)
  3928. <span class="hljs-comment">// ...</span>
  3929. }
  3930. </code></pre>
  3931. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3932. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3933. );
  3934. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3935. <span class="hljs-comment">// Define array of request body.</span>
  3936. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3937. <span class="hljs-keyword">try</span> {
  3938. <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>(
  3939. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3940. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3941. )
  3942. );
  3943. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3944. }
  3945. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3946. <span class="hljs-comment">// handle exception or api errors.</span>
  3947. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3948. }
  3949. <span class="hljs-comment">// ...</span>
  3950. </code></pre>
  3951. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3952. <p><em>Change the permission of a member of a board</em></p>
  3953. <blockquote>
  3954. <p>Body parameter</p>
  3955. </blockquote>
  3956. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3957. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3958. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3959. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3960. </code></pre>
  3961. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3962. <table>
  3963. <thead>
  3964. <tr>
  3965. <th>Name</th>
  3966. <th>In</th>
  3967. <th>Type</th>
  3968. <th>Required</th>
  3969. <th>Description</th>
  3970. </tr>
  3971. </thead>
  3972. <tbody>
  3973. <tr>
  3974. <td>board</td>
  3975. <td>path</td>
  3976. <td>string</td>
  3977. <td>true</td>
  3978. <td>the ID of the board that we are changing</td>
  3979. </tr>
  3980. <tr>
  3981. <td>member</td>
  3982. <td>path</td>
  3983. <td>string</td>
  3984. <td>true</td>
  3985. <td>the ID of the user to change permissions</td>
  3986. </tr>
  3987. <tr>
  3988. <td>body</td>
  3989. <td>body</td>
  3990. <td>object</td>
  3991. <td>true</td>
  3992. <td>none</td>
  3993. </tr>
  3994. <tr>
  3995. <td>» isAdmin</td>
  3996. <td>body</td>
  3997. <td>boolean</td>
  3998. <td>true</td>
  3999. <td>admin capability</td>
  4000. </tr>
  4001. <tr>
  4002. <td>» isNoComments</td>
  4003. <td>body</td>
  4004. <td>boolean</td>
  4005. <td>true</td>
  4006. <td>NoComments capability</td>
  4007. </tr>
  4008. <tr>
  4009. <td>» isCommentOnly</td>
  4010. <td>body</td>
  4011. <td>boolean</td>
  4012. <td>true</td>
  4013. <td>CommentsOnly capability</td>
  4014. </tr>
  4015. <tr>
  4016. <td>» isWorker</td>
  4017. <td>body</td>
  4018. <td>boolean</td>
  4019. <td>true</td>
  4020. <td>Worker capability</td>
  4021. </tr>
  4022. </tbody>
  4023. </table>
  4024. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4025. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4026. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4027. <h3 id="set_board_member_permission-responses">Responses</h3>
  4028. <table>
  4029. <thead>
  4030. <tr>
  4031. <th>Status</th>
  4032. <th>Meaning</th>
  4033. <th>Description</th>
  4034. <th>Schema</th>
  4035. </tr>
  4036. </thead>
  4037. <tbody>
  4038. <tr>
  4039. <td>200</td>
  4040. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4041. <td>200 response</td>
  4042. <td>None</td>
  4043. </tr>
  4044. </tbody>
  4045. </table>
  4046. <aside class="warning">
  4047. To perform this operation, you must be authenticated by means of one of the following methods:
  4048. UserSecurity
  4049. </aside>
  4050. <h2 id="get_boards_count">get_boards_count</h2>
  4051. <p><a id="opIdget_boards_count"></a></p>
  4052. <blockquote>
  4053. <p>Code samples</p>
  4054. </blockquote>
  4055. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4056. curl -X GET /api/boards_count \
  4057. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4058. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4059. </code></pre>
  4060. <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>
  4061. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4062. </span></code></pre>
  4063. <pre class="highlight tab tab-javascript"><code>
  4064. <span class="hljs-keyword">const</span> headers = {
  4065. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4066. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4067. };
  4068. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4069. {
  4070. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4071. <span class="hljs-attr">headers</span>: headers
  4072. })
  4073. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4074. <span class="hljs-keyword">return</span> res.json();
  4075. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4076. <span class="hljs-built_in">console</span>.log(body);
  4077. });
  4078. </code></pre>
  4079. <pre class="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>);
  4080. <span class="hljs-keyword">const</span> headers = {
  4081. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4082. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4083. };
  4084. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4085. {
  4086. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4087. <span class="hljs-attr">headers</span>: headers
  4088. })
  4089. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4090. <span class="hljs-keyword">return</span> res.json();
  4091. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4092. <span class="hljs-built_in">console</span>.log(body);
  4093. });
  4094. </code></pre>
  4095. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4096. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4097. headers = {
  4098. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4099. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4100. }
  4101. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4102. <span class="hljs-symbol">params:</span> {
  4103. }, <span class="hljs-symbol">headers:</span> headers
  4104. p JSON.parse(result)
  4105. </code></pre>
  4106. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4107. headers = {
  4108. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4109. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4110. }
  4111. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4112. <span class="hljs-built_in">print</span>(r.json())
  4113. </code></pre>
  4114. <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>);
  4115. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4116. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4117. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4118. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4119. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4120. String inputLine;
  4121. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4122. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4123. response.append(inputLine);
  4124. }
  4125. in.close();
  4126. System.out.println(response.toString());
  4127. </code></pre>
  4128. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4129. <span class="hljs-keyword">import</span> (
  4130. <span class="hljs-string">&quot;bytes&quot;</span>
  4131. <span class="hljs-string">&quot;net/http&quot;</span>
  4132. )
  4133. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4134. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4135. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4136. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4137. }
  4138. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4139. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4140. req.Header = headers
  4141. client := &amp;http.Client{}
  4142. resp, err := client.Do(req)
  4143. <span class="hljs-comment">// ...</span>
  4144. }
  4145. </code></pre>
  4146. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4147. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4148. );
  4149. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4150. <span class="hljs-comment">// Define array of request body.</span>
  4151. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4152. <span class="hljs-keyword">try</span> {
  4153. <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>(
  4154. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4155. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4156. )
  4157. );
  4158. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4159. }
  4160. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4161. <span class="hljs-comment">// handle exception or api errors.</span>
  4162. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4163. }
  4164. <span class="hljs-comment">// ...</span>
  4165. </code></pre>
  4166. <p><code>GET /api/boards_count</code></p>
  4167. <p><em>Get public and private boards count</em></p>
  4168. <blockquote>
  4169. <p>Example responses</p>
  4170. </blockquote>
  4171. <blockquote>
  4172. <p>200 Response</p>
  4173. </blockquote>
  4174. <pre class="highlight tab tab-json"><code>{
  4175. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4176. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4177. }
  4178. </code></pre>
  4179. <h3 id="get_boards_count-responses">Responses</h3>
  4180. <table>
  4181. <thead>
  4182. <tr>
  4183. <th>Status</th>
  4184. <th>Meaning</th>
  4185. <th>Description</th>
  4186. <th>Schema</th>
  4187. </tr>
  4188. </thead>
  4189. <tbody>
  4190. <tr>
  4191. <td>200</td>
  4192. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4193. <td>200 response</td>
  4194. <td>Inline</td>
  4195. </tr>
  4196. </tbody>
  4197. </table>
  4198. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4199. <p>Status Code <strong>200</strong></p>
  4200. <table>
  4201. <thead>
  4202. <tr>
  4203. <th>Name</th>
  4204. <th>Type</th>
  4205. <th>Required</th>
  4206. <th>Restrictions</th>
  4207. <th>Description</th>
  4208. </tr>
  4209. </thead>
  4210. <tbody>
  4211. <tr>
  4212. <td>» private</td>
  4213. <td>integer</td>
  4214. <td>false</td>
  4215. <td>none</td>
  4216. <td>none</td>
  4217. </tr>
  4218. <tr>
  4219. <td>» public</td>
  4220. <td>integer</td>
  4221. <td>false</td>
  4222. <td>none</td>
  4223. <td>none</td>
  4224. </tr>
  4225. </tbody>
  4226. </table>
  4227. <aside class="warning">
  4228. To perform this operation, you must be authenticated by means of one of the following methods:
  4229. UserSecurity
  4230. </aside>
  4231. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4232. <p><a id="opIdget_boards_from_user"></a></p>
  4233. <blockquote>
  4234. <p>Code samples</p>
  4235. </blockquote>
  4236. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4237. curl -X GET /api/users/{user}/boards \
  4238. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4239. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4240. </code></pre>
  4241. <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>
  4242. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4243. </span></code></pre>
  4244. <pre class="highlight tab tab-javascript"><code>
  4245. <span class="hljs-keyword">const</span> headers = {
  4246. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4247. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4248. };
  4249. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4250. {
  4251. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4252. <span class="hljs-attr">headers</span>: headers
  4253. })
  4254. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4255. <span class="hljs-keyword">return</span> res.json();
  4256. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4257. <span class="hljs-built_in">console</span>.log(body);
  4258. });
  4259. </code></pre>
  4260. <pre class="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>);
  4261. <span class="hljs-keyword">const</span> headers = {
  4262. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4263. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4264. };
  4265. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4266. {
  4267. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4268. <span class="hljs-attr">headers</span>: headers
  4269. })
  4270. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4271. <span class="hljs-keyword">return</span> res.json();
  4272. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4273. <span class="hljs-built_in">console</span>.log(body);
  4274. });
  4275. </code></pre>
  4276. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4277. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4278. headers = {
  4279. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4280. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4281. }
  4282. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4283. <span class="hljs-symbol">params:</span> {
  4284. }, <span class="hljs-symbol">headers:</span> headers
  4285. p JSON.parse(result)
  4286. </code></pre>
  4287. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4288. headers = {
  4289. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4290. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4291. }
  4292. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4293. <span class="hljs-built_in">print</span>(r.json())
  4294. </code></pre>
  4295. <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>);
  4296. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4297. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4298. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4299. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4300. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4301. String inputLine;
  4302. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4303. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4304. response.append(inputLine);
  4305. }
  4306. in.close();
  4307. System.out.println(response.toString());
  4308. </code></pre>
  4309. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4310. <span class="hljs-keyword">import</span> (
  4311. <span class="hljs-string">&quot;bytes&quot;</span>
  4312. <span class="hljs-string">&quot;net/http&quot;</span>
  4313. )
  4314. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4315. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4316. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4317. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4318. }
  4319. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4320. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4321. req.Header = headers
  4322. client := &amp;http.Client{}
  4323. resp, err := client.Do(req)
  4324. <span class="hljs-comment">// ...</span>
  4325. }
  4326. </code></pre>
  4327. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4328. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4329. );
  4330. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4331. <span class="hljs-comment">// Define array of request body.</span>
  4332. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4333. <span class="hljs-keyword">try</span> {
  4334. <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>(
  4335. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4336. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4337. )
  4338. );
  4339. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4340. }
  4341. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4342. <span class="hljs-comment">// handle exception or api errors.</span>
  4343. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4344. }
  4345. <span class="hljs-comment">// ...</span>
  4346. </code></pre>
  4347. <p><code>GET /api/users/{user}/boards</code></p>
  4348. <p><em>Get all boards attached to a user</em></p>
  4349. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4350. <table>
  4351. <thead>
  4352. <tr>
  4353. <th>Name</th>
  4354. <th>In</th>
  4355. <th>Type</th>
  4356. <th>Required</th>
  4357. <th>Description</th>
  4358. </tr>
  4359. </thead>
  4360. <tbody>
  4361. <tr>
  4362. <td>user</td>
  4363. <td>path</td>
  4364. <td>string</td>
  4365. <td>true</td>
  4366. <td>the ID of the user to retrieve the data</td>
  4367. </tr>
  4368. </tbody>
  4369. </table>
  4370. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4371. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4372. <blockquote>
  4373. <p>Example responses</p>
  4374. </blockquote>
  4375. <blockquote>
  4376. <p>200 Response</p>
  4377. </blockquote>
  4378. <pre class="highlight tab tab-json"><code>[
  4379. {
  4380. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4381. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4382. }
  4383. ]
  4384. </code></pre>
  4385. <h3 id="get_boards_from_user-responses">Responses</h3>
  4386. <table>
  4387. <thead>
  4388. <tr>
  4389. <th>Status</th>
  4390. <th>Meaning</th>
  4391. <th>Description</th>
  4392. <th>Schema</th>
  4393. </tr>
  4394. </thead>
  4395. <tbody>
  4396. <tr>
  4397. <td>200</td>
  4398. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4399. <td>200 response</td>
  4400. <td>Inline</td>
  4401. </tr>
  4402. </tbody>
  4403. </table>
  4404. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4405. <p>Status Code <strong>200</strong></p>
  4406. <table>
  4407. <thead>
  4408. <tr>
  4409. <th>Name</th>
  4410. <th>Type</th>
  4411. <th>Required</th>
  4412. <th>Restrictions</th>
  4413. <th>Description</th>
  4414. </tr>
  4415. </thead>
  4416. <tbody>
  4417. <tr>
  4418. <td>» _id</td>
  4419. <td>string</td>
  4420. <td>false</td>
  4421. <td>none</td>
  4422. <td>none</td>
  4423. </tr>
  4424. <tr>
  4425. <td>» title</td>
  4426. <td>string</td>
  4427. <td>false</td>
  4428. <td>none</td>
  4429. <td>none</td>
  4430. </tr>
  4431. </tbody>
  4432. </table>
  4433. <aside class="warning">
  4434. To perform this operation, you must be authenticated by means of one of the following methods:
  4435. UserSecurity
  4436. </aside>
  4437. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4438. <h2 id="get_all_checklists">get_all_checklists</h2>
  4439. <p><a id="opIdget_all_checklists"></a></p>
  4440. <blockquote>
  4441. <p>Code samples</p>
  4442. </blockquote>
  4443. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4444. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4445. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4446. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4447. </code></pre>
  4448. <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>
  4449. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4450. </span></code></pre>
  4451. <pre class="highlight tab tab-javascript"><code>
  4452. <span class="hljs-keyword">const</span> headers = {
  4453. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4454. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4455. };
  4456. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4457. {
  4458. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4459. <span class="hljs-attr">headers</span>: headers
  4460. })
  4461. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4462. <span class="hljs-keyword">return</span> res.json();
  4463. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4464. <span class="hljs-built_in">console</span>.log(body);
  4465. });
  4466. </code></pre>
  4467. <pre class="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>);
  4468. <span class="hljs-keyword">const</span> headers = {
  4469. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4470. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4471. };
  4472. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4473. {
  4474. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4475. <span class="hljs-attr">headers</span>: headers
  4476. })
  4477. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4478. <span class="hljs-keyword">return</span> res.json();
  4479. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4480. <span class="hljs-built_in">console</span>.log(body);
  4481. });
  4482. </code></pre>
  4483. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4484. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4485. headers = {
  4486. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4487. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4488. }
  4489. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4490. <span class="hljs-symbol">params:</span> {
  4491. }, <span class="hljs-symbol">headers:</span> headers
  4492. p JSON.parse(result)
  4493. </code></pre>
  4494. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4495. headers = {
  4496. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4497. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4498. }
  4499. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4500. <span class="hljs-built_in">print</span>(r.json())
  4501. </code></pre>
  4502. <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>);
  4503. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4504. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4505. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4506. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4507. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4508. String inputLine;
  4509. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4510. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4511. response.append(inputLine);
  4512. }
  4513. in.close();
  4514. System.out.println(response.toString());
  4515. </code></pre>
  4516. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4517. <span class="hljs-keyword">import</span> (
  4518. <span class="hljs-string">&quot;bytes&quot;</span>
  4519. <span class="hljs-string">&quot;net/http&quot;</span>
  4520. )
  4521. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4522. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4523. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4524. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4525. }
  4526. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4527. 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)
  4528. req.Header = headers
  4529. client := &amp;http.Client{}
  4530. resp, err := client.Do(req)
  4531. <span class="hljs-comment">// ...</span>
  4532. }
  4533. </code></pre>
  4534. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4535. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4536. );
  4537. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4538. <span class="hljs-comment">// Define array of request body.</span>
  4539. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4540. <span class="hljs-keyword">try</span> {
  4541. <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>(
  4542. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4543. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4544. )
  4545. );
  4546. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4547. }
  4548. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4549. <span class="hljs-comment">// handle exception or api errors.</span>
  4550. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4551. }
  4552. <span class="hljs-comment">// ...</span>
  4553. </code></pre>
  4554. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4555. <p><em>Get the list of checklists attached to a card</em></p>
  4556. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4557. <table>
  4558. <thead>
  4559. <tr>
  4560. <th>Name</th>
  4561. <th>In</th>
  4562. <th>Type</th>
  4563. <th>Required</th>
  4564. <th>Description</th>
  4565. </tr>
  4566. </thead>
  4567. <tbody>
  4568. <tr>
  4569. <td>board</td>
  4570. <td>path</td>
  4571. <td>string</td>
  4572. <td>true</td>
  4573. <td>the board ID</td>
  4574. </tr>
  4575. <tr>
  4576. <td>card</td>
  4577. <td>path</td>
  4578. <td>string</td>
  4579. <td>true</td>
  4580. <td>the card ID</td>
  4581. </tr>
  4582. </tbody>
  4583. </table>
  4584. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4585. <p><strong>board</strong>: the board ID</p>
  4586. <p><strong>card</strong>: the card ID</p>
  4587. <blockquote>
  4588. <p>Example responses</p>
  4589. </blockquote>
  4590. <blockquote>
  4591. <p>200 Response</p>
  4592. </blockquote>
  4593. <pre class="highlight tab tab-json"><code>[
  4594. {
  4595. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4596. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4597. }
  4598. ]
  4599. </code></pre>
  4600. <h3 id="get_all_checklists-responses">Responses</h3>
  4601. <table>
  4602. <thead>
  4603. <tr>
  4604. <th>Status</th>
  4605. <th>Meaning</th>
  4606. <th>Description</th>
  4607. <th>Schema</th>
  4608. </tr>
  4609. </thead>
  4610. <tbody>
  4611. <tr>
  4612. <td>200</td>
  4613. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4614. <td>200 response</td>
  4615. <td>Inline</td>
  4616. </tr>
  4617. </tbody>
  4618. </table>
  4619. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4620. <p>Status Code <strong>200</strong></p>
  4621. <table>
  4622. <thead>
  4623. <tr>
  4624. <th>Name</th>
  4625. <th>Type</th>
  4626. <th>Required</th>
  4627. <th>Restrictions</th>
  4628. <th>Description</th>
  4629. </tr>
  4630. </thead>
  4631. <tbody>
  4632. <tr>
  4633. <td>» _id</td>
  4634. <td>string</td>
  4635. <td>false</td>
  4636. <td>none</td>
  4637. <td>none</td>
  4638. </tr>
  4639. <tr>
  4640. <td>» title</td>
  4641. <td>string</td>
  4642. <td>false</td>
  4643. <td>none</td>
  4644. <td>none</td>
  4645. </tr>
  4646. </tbody>
  4647. </table>
  4648. <aside class="warning">
  4649. To perform this operation, you must be authenticated by means of one of the following methods:
  4650. UserSecurity
  4651. </aside>
  4652. <h2 id="new_checklist">new_checklist</h2>
  4653. <p><a id="opIdnew_checklist"></a></p>
  4654. <blockquote>
  4655. <p>Code samples</p>
  4656. </blockquote>
  4657. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4658. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4659. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4660. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4661. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4662. </code></pre>
  4663. <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>
  4664. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4665. Accept: application/json
  4666. </span></code></pre>
  4667. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4668. &quot;title&quot;: &quot;string&quot;,
  4669. &quot;items&quot;: &quot;string&quot;
  4670. }&#x27;</span>;
  4671. <span class="hljs-keyword">const</span> headers = {
  4672. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4673. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4674. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4675. };
  4676. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4677. {
  4678. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4679. <span class="hljs-attr">body</span>: inputBody,
  4680. <span class="hljs-attr">headers</span>: headers
  4681. })
  4682. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4683. <span class="hljs-keyword">return</span> res.json();
  4684. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4685. <span class="hljs-built_in">console</span>.log(body);
  4686. });
  4687. </code></pre>
  4688. <pre class="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>);
  4689. <span class="hljs-keyword">const</span> inputBody = {
  4690. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4691. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4692. };
  4693. <span class="hljs-keyword">const</span> headers = {
  4694. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4695. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4696. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4697. };
  4698. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4699. {
  4700. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4701. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4702. <span class="hljs-attr">headers</span>: headers
  4703. })
  4704. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4705. <span class="hljs-keyword">return</span> res.json();
  4706. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4707. <span class="hljs-built_in">console</span>.log(body);
  4708. });
  4709. </code></pre>
  4710. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4711. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4712. headers = {
  4713. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4714. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4715. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4716. }
  4717. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4718. <span class="hljs-symbol">params:</span> {
  4719. }, <span class="hljs-symbol">headers:</span> headers
  4720. p JSON.parse(result)
  4721. </code></pre>
  4722. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4723. headers = {
  4724. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4725. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4726. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4727. }
  4728. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4729. <span class="hljs-built_in">print</span>(r.json())
  4730. </code></pre>
  4731. <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>);
  4732. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4733. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4734. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4735. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4736. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4737. String inputLine;
  4738. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4739. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4740. response.append(inputLine);
  4741. }
  4742. in.close();
  4743. System.out.println(response.toString());
  4744. </code></pre>
  4745. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4746. <span class="hljs-keyword">import</span> (
  4747. <span class="hljs-string">&quot;bytes&quot;</span>
  4748. <span class="hljs-string">&quot;net/http&quot;</span>
  4749. )
  4750. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4751. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4752. <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>},
  4753. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4754. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4755. }
  4756. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4757. 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)
  4758. req.Header = headers
  4759. client := &amp;http.Client{}
  4760. resp, err := client.Do(req)
  4761. <span class="hljs-comment">// ...</span>
  4762. }
  4763. </code></pre>
  4764. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4765. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4766. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4767. );
  4768. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4769. <span class="hljs-comment">// Define array of request body.</span>
  4770. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4771. <span class="hljs-keyword">try</span> {
  4772. <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>(
  4773. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4774. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4775. )
  4776. );
  4777. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4778. }
  4779. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4780. <span class="hljs-comment">// handle exception or api errors.</span>
  4781. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4782. }
  4783. <span class="hljs-comment">// ...</span>
  4784. </code></pre>
  4785. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4786. <p><em>create a new checklist</em></p>
  4787. <blockquote>
  4788. <p>Body parameter</p>
  4789. </blockquote>
  4790. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4791. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4792. </code></pre>
  4793. <h3 id="new_checklist-parameters">Parameters</h3>
  4794. <table>
  4795. <thead>
  4796. <tr>
  4797. <th>Name</th>
  4798. <th>In</th>
  4799. <th>Type</th>
  4800. <th>Required</th>
  4801. <th>Description</th>
  4802. </tr>
  4803. </thead>
  4804. <tbody>
  4805. <tr>
  4806. <td>board</td>
  4807. <td>path</td>
  4808. <td>string</td>
  4809. <td>true</td>
  4810. <td>the board ID</td>
  4811. </tr>
  4812. <tr>
  4813. <td>card</td>
  4814. <td>path</td>
  4815. <td>string</td>
  4816. <td>true</td>
  4817. <td>the card ID</td>
  4818. </tr>
  4819. <tr>
  4820. <td>body</td>
  4821. <td>body</td>
  4822. <td>object</td>
  4823. <td>true</td>
  4824. <td>none</td>
  4825. </tr>
  4826. <tr>
  4827. <td>» title</td>
  4828. <td>body</td>
  4829. <td>string</td>
  4830. <td>true</td>
  4831. <td>the title of the new checklist</td>
  4832. </tr>
  4833. <tr>
  4834. <td>» items</td>
  4835. <td>body</td>
  4836. <td>string</td>
  4837. <td>false</td>
  4838. <td>the list of items on the new checklist</td>
  4839. </tr>
  4840. </tbody>
  4841. </table>
  4842. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4843. <p><strong>board</strong>: the board ID</p>
  4844. <p><strong>card</strong>: the card ID</p>
  4845. <blockquote>
  4846. <p>Example responses</p>
  4847. </blockquote>
  4848. <blockquote>
  4849. <p>200 Response</p>
  4850. </blockquote>
  4851. <pre class="highlight tab tab-json"><code>{
  4852. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4853. }
  4854. </code></pre>
  4855. <h3 id="new_checklist-responses">Responses</h3>
  4856. <table>
  4857. <thead>
  4858. <tr>
  4859. <th>Status</th>
  4860. <th>Meaning</th>
  4861. <th>Description</th>
  4862. <th>Schema</th>
  4863. </tr>
  4864. </thead>
  4865. <tbody>
  4866. <tr>
  4867. <td>200</td>
  4868. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4869. <td>200 response</td>
  4870. <td>Inline</td>
  4871. </tr>
  4872. </tbody>
  4873. </table>
  4874. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4875. <p>Status Code <strong>200</strong></p>
  4876. <table>
  4877. <thead>
  4878. <tr>
  4879. <th>Name</th>
  4880. <th>Type</th>
  4881. <th>Required</th>
  4882. <th>Restrictions</th>
  4883. <th>Description</th>
  4884. </tr>
  4885. </thead>
  4886. <tbody>
  4887. <tr>
  4888. <td>» _id</td>
  4889. <td>string</td>
  4890. <td>false</td>
  4891. <td>none</td>
  4892. <td>none</td>
  4893. </tr>
  4894. </tbody>
  4895. </table>
  4896. <aside class="warning">
  4897. To perform this operation, you must be authenticated by means of one of the following methods:
  4898. UserSecurity
  4899. </aside>
  4900. <h2 id="get_checklist">get_checklist</h2>
  4901. <p><a id="opIdget_checklist"></a></p>
  4902. <blockquote>
  4903. <p>Code samples</p>
  4904. </blockquote>
  4905. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4906. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4907. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4908. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4909. </code></pre>
  4910. <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>
  4911. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4912. </span></code></pre>
  4913. <pre class="highlight tab tab-javascript"><code>
  4914. <span class="hljs-keyword">const</span> headers = {
  4915. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4916. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4917. };
  4918. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4919. {
  4920. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4921. <span class="hljs-attr">headers</span>: headers
  4922. })
  4923. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4924. <span class="hljs-keyword">return</span> res.json();
  4925. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4926. <span class="hljs-built_in">console</span>.log(body);
  4927. });
  4928. </code></pre>
  4929. <pre class="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>);
  4930. <span class="hljs-keyword">const</span> headers = {
  4931. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4932. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4933. };
  4934. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4935. {
  4936. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4937. <span class="hljs-attr">headers</span>: headers
  4938. })
  4939. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4940. <span class="hljs-keyword">return</span> res.json();
  4941. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4942. <span class="hljs-built_in">console</span>.log(body);
  4943. });
  4944. </code></pre>
  4945. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4946. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4947. headers = {
  4948. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4949. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4950. }
  4951. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4952. <span class="hljs-symbol">params:</span> {
  4953. }, <span class="hljs-symbol">headers:</span> headers
  4954. p JSON.parse(result)
  4955. </code></pre>
  4956. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4957. headers = {
  4958. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4959. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4960. }
  4961. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4962. <span class="hljs-built_in">print</span>(r.json())
  4963. </code></pre>
  4964. <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>);
  4965. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4966. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4967. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4968. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4969. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4970. String inputLine;
  4971. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4972. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4973. response.append(inputLine);
  4974. }
  4975. in.close();
  4976. System.out.println(response.toString());
  4977. </code></pre>
  4978. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4979. <span class="hljs-keyword">import</span> (
  4980. <span class="hljs-string">&quot;bytes&quot;</span>
  4981. <span class="hljs-string">&quot;net/http&quot;</span>
  4982. )
  4983. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4984. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4985. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4986. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4987. }
  4988. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4989. 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)
  4990. req.Header = headers
  4991. client := &amp;http.Client{}
  4992. resp, err := client.Do(req)
  4993. <span class="hljs-comment">// ...</span>
  4994. }
  4995. </code></pre>
  4996. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4997. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4998. );
  4999. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5000. <span class="hljs-comment">// Define array of request body.</span>
  5001. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5002. <span class="hljs-keyword">try</span> {
  5003. <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>(
  5004. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5005. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5006. )
  5007. );
  5008. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5009. }
  5010. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5011. <span class="hljs-comment">// handle exception or api errors.</span>
  5012. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5013. }
  5014. <span class="hljs-comment">// ...</span>
  5015. </code></pre>
  5016. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5017. <p><em>Get a checklist</em></p>
  5018. <h3 id="get_checklist-parameters">Parameters</h3>
  5019. <table>
  5020. <thead>
  5021. <tr>
  5022. <th>Name</th>
  5023. <th>In</th>
  5024. <th>Type</th>
  5025. <th>Required</th>
  5026. <th>Description</th>
  5027. </tr>
  5028. </thead>
  5029. <tbody>
  5030. <tr>
  5031. <td>board</td>
  5032. <td>path</td>
  5033. <td>string</td>
  5034. <td>true</td>
  5035. <td>the board ID</td>
  5036. </tr>
  5037. <tr>
  5038. <td>card</td>
  5039. <td>path</td>
  5040. <td>string</td>
  5041. <td>true</td>
  5042. <td>the card ID</td>
  5043. </tr>
  5044. <tr>
  5045. <td>checklist</td>
  5046. <td>path</td>
  5047. <td>string</td>
  5048. <td>true</td>
  5049. <td>the ID of the checklist</td>
  5050. </tr>
  5051. </tbody>
  5052. </table>
  5053. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5054. <p><strong>board</strong>: the board ID</p>
  5055. <p><strong>card</strong>: the card ID</p>
  5056. <p><strong>checklist</strong>: the ID of the checklist</p>
  5057. <blockquote>
  5058. <p>Example responses</p>
  5059. </blockquote>
  5060. <blockquote>
  5061. <p>200 Response</p>
  5062. </blockquote>
  5063. <pre class="highlight tab tab-json"><code>{
  5064. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5065. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5066. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5067. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5068. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5069. <span class="hljs-attr">&quot;items&quot;</span>: [
  5070. {
  5071. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5072. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5073. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5074. }
  5075. ]
  5076. }
  5077. </code></pre>
  5078. <h3 id="get_checklist-responses">Responses</h3>
  5079. <table>
  5080. <thead>
  5081. <tr>
  5082. <th>Status</th>
  5083. <th>Meaning</th>
  5084. <th>Description</th>
  5085. <th>Schema</th>
  5086. </tr>
  5087. </thead>
  5088. <tbody>
  5089. <tr>
  5090. <td>200</td>
  5091. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5092. <td>200 response</td>
  5093. <td>Inline</td>
  5094. </tr>
  5095. </tbody>
  5096. </table>
  5097. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5098. <p>Status Code <strong>200</strong></p>
  5099. <table>
  5100. <thead>
  5101. <tr>
  5102. <th>Name</th>
  5103. <th>Type</th>
  5104. <th>Required</th>
  5105. <th>Restrictions</th>
  5106. <th>Description</th>
  5107. </tr>
  5108. </thead>
  5109. <tbody>
  5110. <tr>
  5111. <td>» cardId</td>
  5112. <td>string</td>
  5113. <td>false</td>
  5114. <td>none</td>
  5115. <td>none</td>
  5116. </tr>
  5117. <tr>
  5118. <td>» title</td>
  5119. <td>string</td>
  5120. <td>false</td>
  5121. <td>none</td>
  5122. <td>none</td>
  5123. </tr>
  5124. <tr>
  5125. <td>» finishedAt</td>
  5126. <td>string</td>
  5127. <td>false</td>
  5128. <td>none</td>
  5129. <td>none</td>
  5130. </tr>
  5131. <tr>
  5132. <td>» createdAt</td>
  5133. <td>string</td>
  5134. <td>false</td>
  5135. <td>none</td>
  5136. <td>none</td>
  5137. </tr>
  5138. <tr>
  5139. <td>» sort</td>
  5140. <td>number</td>
  5141. <td>false</td>
  5142. <td>none</td>
  5143. <td>none</td>
  5144. </tr>
  5145. <tr>
  5146. <td>» items</td>
  5147. <td>[object]</td>
  5148. <td>false</td>
  5149. <td>none</td>
  5150. <td>none</td>
  5151. </tr>
  5152. <tr>
  5153. <td>»» _id</td>
  5154. <td>string</td>
  5155. <td>false</td>
  5156. <td>none</td>
  5157. <td>none</td>
  5158. </tr>
  5159. <tr>
  5160. <td>»» title</td>
  5161. <td>string</td>
  5162. <td>false</td>
  5163. <td>none</td>
  5164. <td>none</td>
  5165. </tr>
  5166. <tr>
  5167. <td>»» isFinished</td>
  5168. <td>boolean</td>
  5169. <td>false</td>
  5170. <td>none</td>
  5171. <td>none</td>
  5172. </tr>
  5173. </tbody>
  5174. </table>
  5175. <aside class="warning">
  5176. To perform this operation, you must be authenticated by means of one of the following methods:
  5177. UserSecurity
  5178. </aside>
  5179. <h2 id="delete_checklist">delete_checklist</h2>
  5180. <p><a id="opIddelete_checklist"></a></p>
  5181. <blockquote>
  5182. <p>Code samples</p>
  5183. </blockquote>
  5184. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5185. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5186. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5187. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5188. </code></pre>
  5189. <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>
  5190. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5191. </span></code></pre>
  5192. <pre class="highlight tab tab-javascript"><code>
  5193. <span class="hljs-keyword">const</span> headers = {
  5194. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5195. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5196. };
  5197. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5198. {
  5199. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5200. <span class="hljs-attr">headers</span>: headers
  5201. })
  5202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5203. <span class="hljs-keyword">return</span> res.json();
  5204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5205. <span class="hljs-built_in">console</span>.log(body);
  5206. });
  5207. </code></pre>
  5208. <pre class="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>);
  5209. <span class="hljs-keyword">const</span> headers = {
  5210. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5211. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5212. };
  5213. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5214. {
  5215. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5216. <span class="hljs-attr">headers</span>: headers
  5217. })
  5218. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5219. <span class="hljs-keyword">return</span> res.json();
  5220. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5221. <span class="hljs-built_in">console</span>.log(body);
  5222. });
  5223. </code></pre>
  5224. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5225. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5226. headers = {
  5227. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5228. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5229. }
  5230. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5231. <span class="hljs-symbol">params:</span> {
  5232. }, <span class="hljs-symbol">headers:</span> headers
  5233. p JSON.parse(result)
  5234. </code></pre>
  5235. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5236. headers = {
  5237. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5238. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5239. }
  5240. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5241. <span class="hljs-built_in">print</span>(r.json())
  5242. </code></pre>
  5243. <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>);
  5244. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5245. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5246. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5247. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5248. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5249. String inputLine;
  5250. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5251. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5252. response.append(inputLine);
  5253. }
  5254. in.close();
  5255. System.out.println(response.toString());
  5256. </code></pre>
  5257. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5258. <span class="hljs-keyword">import</span> (
  5259. <span class="hljs-string">&quot;bytes&quot;</span>
  5260. <span class="hljs-string">&quot;net/http&quot;</span>
  5261. )
  5262. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5263. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5264. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5265. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5266. }
  5267. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5268. 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)
  5269. req.Header = headers
  5270. client := &amp;http.Client{}
  5271. resp, err := client.Do(req)
  5272. <span class="hljs-comment">// ...</span>
  5273. }
  5274. </code></pre>
  5275. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5276. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5277. );
  5278. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5279. <span class="hljs-comment">// Define array of request body.</span>
  5280. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5281. <span class="hljs-keyword">try</span> {
  5282. <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>(
  5283. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5284. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5285. )
  5286. );
  5287. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5288. }
  5289. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5290. <span class="hljs-comment">// handle exception or api errors.</span>
  5291. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5292. }
  5293. <span class="hljs-comment">// ...</span>
  5294. </code></pre>
  5295. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5296. <p><em>Delete a checklist</em></p>
  5297. <p>The checklist will be removed, not put in the recycle bin.</p>
  5298. <h3 id="delete_checklist-parameters">Parameters</h3>
  5299. <table>
  5300. <thead>
  5301. <tr>
  5302. <th>Name</th>
  5303. <th>In</th>
  5304. <th>Type</th>
  5305. <th>Required</th>
  5306. <th>Description</th>
  5307. </tr>
  5308. </thead>
  5309. <tbody>
  5310. <tr>
  5311. <td>board</td>
  5312. <td>path</td>
  5313. <td>string</td>
  5314. <td>true</td>
  5315. <td>the board ID</td>
  5316. </tr>
  5317. <tr>
  5318. <td>card</td>
  5319. <td>path</td>
  5320. <td>string</td>
  5321. <td>true</td>
  5322. <td>the card ID</td>
  5323. </tr>
  5324. <tr>
  5325. <td>checklist</td>
  5326. <td>path</td>
  5327. <td>string</td>
  5328. <td>true</td>
  5329. <td>the ID of the checklist to remove</td>
  5330. </tr>
  5331. </tbody>
  5332. </table>
  5333. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5334. <p><strong>board</strong>: the board ID</p>
  5335. <p><strong>card</strong>: the card ID</p>
  5336. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5337. <blockquote>
  5338. <p>Example responses</p>
  5339. </blockquote>
  5340. <blockquote>
  5341. <p>200 Response</p>
  5342. </blockquote>
  5343. <pre class="highlight tab tab-json"><code>{
  5344. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5345. }
  5346. </code></pre>
  5347. <h3 id="delete_checklist-responses">Responses</h3>
  5348. <table>
  5349. <thead>
  5350. <tr>
  5351. <th>Status</th>
  5352. <th>Meaning</th>
  5353. <th>Description</th>
  5354. <th>Schema</th>
  5355. </tr>
  5356. </thead>
  5357. <tbody>
  5358. <tr>
  5359. <td>200</td>
  5360. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5361. <td>200 response</td>
  5362. <td>Inline</td>
  5363. </tr>
  5364. </tbody>
  5365. </table>
  5366. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5367. <p>Status Code <strong>200</strong></p>
  5368. <table>
  5369. <thead>
  5370. <tr>
  5371. <th>Name</th>
  5372. <th>Type</th>
  5373. <th>Required</th>
  5374. <th>Restrictions</th>
  5375. <th>Description</th>
  5376. </tr>
  5377. </thead>
  5378. <tbody>
  5379. <tr>
  5380. <td>» _id</td>
  5381. <td>string</td>
  5382. <td>false</td>
  5383. <td>none</td>
  5384. <td>none</td>
  5385. </tr>
  5386. </tbody>
  5387. </table>
  5388. <aside class="warning">
  5389. To perform this operation, you must be authenticated by means of one of the following methods:
  5390. UserSecurity
  5391. </aside>
  5392. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5393. <h2 id="get_checklist_item">get_checklist_item</h2>
  5394. <p><a id="opIdget_checklist_item"></a></p>
  5395. <blockquote>
  5396. <p>Code samples</p>
  5397. </blockquote>
  5398. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5399. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5400. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5401. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5402. </code></pre>
  5403. <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>
  5404. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5405. </span></code></pre>
  5406. <pre class="highlight tab tab-javascript"><code>
  5407. <span class="hljs-keyword">const</span> headers = {
  5408. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5409. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5410. };
  5411. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5412. {
  5413. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5414. <span class="hljs-attr">headers</span>: headers
  5415. })
  5416. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5417. <span class="hljs-keyword">return</span> res.json();
  5418. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5419. <span class="hljs-built_in">console</span>.log(body);
  5420. });
  5421. </code></pre>
  5422. <pre class="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>);
  5423. <span class="hljs-keyword">const</span> headers = {
  5424. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5425. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5426. };
  5427. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5428. {
  5429. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5430. <span class="hljs-attr">headers</span>: headers
  5431. })
  5432. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5433. <span class="hljs-keyword">return</span> res.json();
  5434. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5435. <span class="hljs-built_in">console</span>.log(body);
  5436. });
  5437. </code></pre>
  5438. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5439. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5440. headers = {
  5441. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5442. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5443. }
  5444. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5445. <span class="hljs-symbol">params:</span> {
  5446. }, <span class="hljs-symbol">headers:</span> headers
  5447. p JSON.parse(result)
  5448. </code></pre>
  5449. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5450. headers = {
  5451. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5452. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5453. }
  5454. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5455. <span class="hljs-built_in">print</span>(r.json())
  5456. </code></pre>
  5457. <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>);
  5458. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5459. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5460. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5461. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5462. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5463. String inputLine;
  5464. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5465. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5466. response.append(inputLine);
  5467. }
  5468. in.close();
  5469. System.out.println(response.toString());
  5470. </code></pre>
  5471. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5472. <span class="hljs-keyword">import</span> (
  5473. <span class="hljs-string">&quot;bytes&quot;</span>
  5474. <span class="hljs-string">&quot;net/http&quot;</span>
  5475. )
  5476. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5477. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5478. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5479. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5480. }
  5481. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5482. 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)
  5483. req.Header = headers
  5484. client := &amp;http.Client{}
  5485. resp, err := client.Do(req)
  5486. <span class="hljs-comment">// ...</span>
  5487. }
  5488. </code></pre>
  5489. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5490. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5491. );
  5492. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5493. <span class="hljs-comment">// Define array of request body.</span>
  5494. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5495. <span class="hljs-keyword">try</span> {
  5496. <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>(
  5497. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5498. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5499. )
  5500. );
  5501. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5502. }
  5503. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5504. <span class="hljs-comment">// handle exception or api errors.</span>
  5505. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5506. }
  5507. <span class="hljs-comment">// ...</span>
  5508. </code></pre>
  5509. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5510. <p><em>Get a checklist item</em></p>
  5511. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5512. <table>
  5513. <thead>
  5514. <tr>
  5515. <th>Name</th>
  5516. <th>In</th>
  5517. <th>Type</th>
  5518. <th>Required</th>
  5519. <th>Description</th>
  5520. </tr>
  5521. </thead>
  5522. <tbody>
  5523. <tr>
  5524. <td>board</td>
  5525. <td>path</td>
  5526. <td>string</td>
  5527. <td>true</td>
  5528. <td>the board ID</td>
  5529. </tr>
  5530. <tr>
  5531. <td>card</td>
  5532. <td>path</td>
  5533. <td>string</td>
  5534. <td>true</td>
  5535. <td>the card ID</td>
  5536. </tr>
  5537. <tr>
  5538. <td>checklist</td>
  5539. <td>path</td>
  5540. <td>string</td>
  5541. <td>true</td>
  5542. <td>the checklist ID</td>
  5543. </tr>
  5544. <tr>
  5545. <td>item</td>
  5546. <td>path</td>
  5547. <td>string</td>
  5548. <td>true</td>
  5549. <td>the ID of the item</td>
  5550. </tr>
  5551. </tbody>
  5552. </table>
  5553. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5554. <p><strong>board</strong>: the board ID</p>
  5555. <p><strong>card</strong>: the card ID</p>
  5556. <p><strong>checklist</strong>: the checklist ID</p>
  5557. <p><strong>item</strong>: the ID of the item</p>
  5558. <blockquote>
  5559. <p>Example responses</p>
  5560. </blockquote>
  5561. <blockquote>
  5562. <p>200 Response</p>
  5563. </blockquote>
  5564. <pre class="highlight tab tab-json"><code>{
  5565. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5566. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5567. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5568. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5569. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5570. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5571. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5572. }
  5573. </code></pre>
  5574. <h3 id="get_checklist_item-responses">Responses</h3>
  5575. <table>
  5576. <thead>
  5577. <tr>
  5578. <th>Status</th>
  5579. <th>Meaning</th>
  5580. <th>Description</th>
  5581. <th>Schema</th>
  5582. </tr>
  5583. </thead>
  5584. <tbody>
  5585. <tr>
  5586. <td>200</td>
  5587. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5588. <td>200 response</td>
  5589. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5590. </tr>
  5591. </tbody>
  5592. </table>
  5593. <aside class="warning">
  5594. To perform this operation, you must be authenticated by means of one of the following methods:
  5595. UserSecurity
  5596. </aside>
  5597. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5598. <p><a id="opIdedit_checklist_item"></a></p>
  5599. <blockquote>
  5600. <p>Code samples</p>
  5601. </blockquote>
  5602. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5603. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5604. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5605. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5606. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5607. </code></pre>
  5608. <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>
  5609. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5610. Accept: application/json
  5611. </span></code></pre>
  5612. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5613. &quot;isFinished&quot;: &quot;string&quot;,
  5614. &quot;title&quot;: &quot;string&quot;
  5615. }&#x27;</span>;
  5616. <span class="hljs-keyword">const</span> headers = {
  5617. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5618. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5619. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5620. };
  5621. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5622. {
  5623. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5624. <span class="hljs-attr">body</span>: inputBody,
  5625. <span class="hljs-attr">headers</span>: headers
  5626. })
  5627. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5628. <span class="hljs-keyword">return</span> res.json();
  5629. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5630. <span class="hljs-built_in">console</span>.log(body);
  5631. });
  5632. </code></pre>
  5633. <pre class="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>);
  5634. <span class="hljs-keyword">const</span> inputBody = {
  5635. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5636. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5637. };
  5638. <span class="hljs-keyword">const</span> headers = {
  5639. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5640. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5641. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5642. };
  5643. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5644. {
  5645. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5646. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5647. <span class="hljs-attr">headers</span>: headers
  5648. })
  5649. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5650. <span class="hljs-keyword">return</span> res.json();
  5651. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5652. <span class="hljs-built_in">console</span>.log(body);
  5653. });
  5654. </code></pre>
  5655. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5656. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5657. headers = {
  5658. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5659. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5660. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5661. }
  5662. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5663. <span class="hljs-symbol">params:</span> {
  5664. }, <span class="hljs-symbol">headers:</span> headers
  5665. p JSON.parse(result)
  5666. </code></pre>
  5667. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5668. headers = {
  5669. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5670. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5671. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5672. }
  5673. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5674. <span class="hljs-built_in">print</span>(r.json())
  5675. </code></pre>
  5676. <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>);
  5677. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5678. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5679. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5680. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5681. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5682. String inputLine;
  5683. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5684. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5685. response.append(inputLine);
  5686. }
  5687. in.close();
  5688. System.out.println(response.toString());
  5689. </code></pre>
  5690. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5691. <span class="hljs-keyword">import</span> (
  5692. <span class="hljs-string">&quot;bytes&quot;</span>
  5693. <span class="hljs-string">&quot;net/http&quot;</span>
  5694. )
  5695. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5696. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5697. <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>},
  5698. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5699. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5700. }
  5701. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5702. 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)
  5703. req.Header = headers
  5704. client := &amp;http.Client{}
  5705. resp, err := client.Do(req)
  5706. <span class="hljs-comment">// ...</span>
  5707. }
  5708. </code></pre>
  5709. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5710. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5711. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5712. );
  5713. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5714. <span class="hljs-comment">// Define array of request body.</span>
  5715. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5716. <span class="hljs-keyword">try</span> {
  5717. <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>(
  5718. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5719. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5720. )
  5721. );
  5722. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5723. }
  5724. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5725. <span class="hljs-comment">// handle exception or api errors.</span>
  5726. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5727. }
  5728. <span class="hljs-comment">// ...</span>
  5729. </code></pre>
  5730. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5731. <p><em>Edit a checklist item</em></p>
  5732. <blockquote>
  5733. <p>Body parameter</p>
  5734. </blockquote>
  5735. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5736. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5737. </code></pre>
  5738. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5739. <table>
  5740. <thead>
  5741. <tr>
  5742. <th>Name</th>
  5743. <th>In</th>
  5744. <th>Type</th>
  5745. <th>Required</th>
  5746. <th>Description</th>
  5747. </tr>
  5748. </thead>
  5749. <tbody>
  5750. <tr>
  5751. <td>board</td>
  5752. <td>path</td>
  5753. <td>string</td>
  5754. <td>true</td>
  5755. <td>the board ID</td>
  5756. </tr>
  5757. <tr>
  5758. <td>card</td>
  5759. <td>path</td>
  5760. <td>string</td>
  5761. <td>true</td>
  5762. <td>the card ID</td>
  5763. </tr>
  5764. <tr>
  5765. <td>checklist</td>
  5766. <td>path</td>
  5767. <td>string</td>
  5768. <td>true</td>
  5769. <td>the checklist ID</td>
  5770. </tr>
  5771. <tr>
  5772. <td>item</td>
  5773. <td>path</td>
  5774. <td>string</td>
  5775. <td>true</td>
  5776. <td>the ID of the item</td>
  5777. </tr>
  5778. <tr>
  5779. <td>body</td>
  5780. <td>body</td>
  5781. <td>object</td>
  5782. <td>false</td>
  5783. <td>none</td>
  5784. </tr>
  5785. <tr>
  5786. <td>» isFinished</td>
  5787. <td>body</td>
  5788. <td>string</td>
  5789. <td>false</td>
  5790. <td>is the item checked?</td>
  5791. </tr>
  5792. <tr>
  5793. <td>» title</td>
  5794. <td>body</td>
  5795. <td>string</td>
  5796. <td>false</td>
  5797. <td>the new text of the item</td>
  5798. </tr>
  5799. </tbody>
  5800. </table>
  5801. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5802. <p><strong>board</strong>: the board ID</p>
  5803. <p><strong>card</strong>: the card ID</p>
  5804. <p><strong>checklist</strong>: the checklist ID</p>
  5805. <p><strong>item</strong>: the ID of the item</p>
  5806. <blockquote>
  5807. <p>Example responses</p>
  5808. </blockquote>
  5809. <blockquote>
  5810. <p>200 Response</p>
  5811. </blockquote>
  5812. <pre class="highlight tab tab-json"><code>{
  5813. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5814. }
  5815. </code></pre>
  5816. <h3 id="edit_checklist_item-responses">Responses</h3>
  5817. <table>
  5818. <thead>
  5819. <tr>
  5820. <th>Status</th>
  5821. <th>Meaning</th>
  5822. <th>Description</th>
  5823. <th>Schema</th>
  5824. </tr>
  5825. </thead>
  5826. <tbody>
  5827. <tr>
  5828. <td>200</td>
  5829. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5830. <td>200 response</td>
  5831. <td>Inline</td>
  5832. </tr>
  5833. </tbody>
  5834. </table>
  5835. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5836. <p>Status Code <strong>200</strong></p>
  5837. <table>
  5838. <thead>
  5839. <tr>
  5840. <th>Name</th>
  5841. <th>Type</th>
  5842. <th>Required</th>
  5843. <th>Restrictions</th>
  5844. <th>Description</th>
  5845. </tr>
  5846. </thead>
  5847. <tbody>
  5848. <tr>
  5849. <td>» _id</td>
  5850. <td>string</td>
  5851. <td>false</td>
  5852. <td>none</td>
  5853. <td>none</td>
  5854. </tr>
  5855. </tbody>
  5856. </table>
  5857. <aside class="warning">
  5858. To perform this operation, you must be authenticated by means of one of the following methods:
  5859. UserSecurity
  5860. </aside>
  5861. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5862. <p><a id="opIddelete_checklist_item"></a></p>
  5863. <blockquote>
  5864. <p>Code samples</p>
  5865. </blockquote>
  5866. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5867. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5868. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5869. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5870. </code></pre>
  5871. <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>
  5872. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5873. </span></code></pre>
  5874. <pre class="highlight tab tab-javascript"><code>
  5875. <span class="hljs-keyword">const</span> headers = {
  5876. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5877. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5878. };
  5879. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5880. {
  5881. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5882. <span class="hljs-attr">headers</span>: headers
  5883. })
  5884. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5885. <span class="hljs-keyword">return</span> res.json();
  5886. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5887. <span class="hljs-built_in">console</span>.log(body);
  5888. });
  5889. </code></pre>
  5890. <pre class="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>);
  5891. <span class="hljs-keyword">const</span> headers = {
  5892. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5893. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5894. };
  5895. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5896. {
  5897. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5898. <span class="hljs-attr">headers</span>: headers
  5899. })
  5900. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5901. <span class="hljs-keyword">return</span> res.json();
  5902. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5903. <span class="hljs-built_in">console</span>.log(body);
  5904. });
  5905. </code></pre>
  5906. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5907. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5908. headers = {
  5909. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5910. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5911. }
  5912. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5913. <span class="hljs-symbol">params:</span> {
  5914. }, <span class="hljs-symbol">headers:</span> headers
  5915. p JSON.parse(result)
  5916. </code></pre>
  5917. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5918. headers = {
  5919. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5920. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5921. }
  5922. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5923. <span class="hljs-built_in">print</span>(r.json())
  5924. </code></pre>
  5925. <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>);
  5926. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5927. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5928. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5929. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5930. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5931. String inputLine;
  5932. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5933. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5934. response.append(inputLine);
  5935. }
  5936. in.close();
  5937. System.out.println(response.toString());
  5938. </code></pre>
  5939. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5940. <span class="hljs-keyword">import</span> (
  5941. <span class="hljs-string">&quot;bytes&quot;</span>
  5942. <span class="hljs-string">&quot;net/http&quot;</span>
  5943. )
  5944. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5945. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5946. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5947. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5948. }
  5949. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5950. 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)
  5951. req.Header = headers
  5952. client := &amp;http.Client{}
  5953. resp, err := client.Do(req)
  5954. <span class="hljs-comment">// ...</span>
  5955. }
  5956. </code></pre>
  5957. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5958. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5959. );
  5960. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5961. <span class="hljs-comment">// Define array of request body.</span>
  5962. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5963. <span class="hljs-keyword">try</span> {
  5964. <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>(
  5965. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5966. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5967. )
  5968. );
  5969. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5970. }
  5971. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5972. <span class="hljs-comment">// handle exception or api errors.</span>
  5973. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5974. }
  5975. <span class="hljs-comment">// ...</span>
  5976. </code></pre>
  5977. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5978. <p><em>Delete a checklist item</em></p>
  5979. <p>Note: this operation can't be reverted.</p>
  5980. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5981. <table>
  5982. <thead>
  5983. <tr>
  5984. <th>Name</th>
  5985. <th>In</th>
  5986. <th>Type</th>
  5987. <th>Required</th>
  5988. <th>Description</th>
  5989. </tr>
  5990. </thead>
  5991. <tbody>
  5992. <tr>
  5993. <td>board</td>
  5994. <td>path</td>
  5995. <td>string</td>
  5996. <td>true</td>
  5997. <td>the board ID</td>
  5998. </tr>
  5999. <tr>
  6000. <td>card</td>
  6001. <td>path</td>
  6002. <td>string</td>
  6003. <td>true</td>
  6004. <td>the card ID</td>
  6005. </tr>
  6006. <tr>
  6007. <td>checklist</td>
  6008. <td>path</td>
  6009. <td>string</td>
  6010. <td>true</td>
  6011. <td>the checklist ID</td>
  6012. </tr>
  6013. <tr>
  6014. <td>item</td>
  6015. <td>path</td>
  6016. <td>string</td>
  6017. <td>true</td>
  6018. <td>the ID of the item to be removed</td>
  6019. </tr>
  6020. </tbody>
  6021. </table>
  6022. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6023. <p><strong>board</strong>: the board ID</p>
  6024. <p><strong>card</strong>: the card ID</p>
  6025. <p><strong>checklist</strong>: the checklist ID</p>
  6026. <p><strong>item</strong>: the ID of the item to be removed</p>
  6027. <blockquote>
  6028. <p>Example responses</p>
  6029. </blockquote>
  6030. <blockquote>
  6031. <p>200 Response</p>
  6032. </blockquote>
  6033. <pre class="highlight tab tab-json"><code>{
  6034. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6035. }
  6036. </code></pre>
  6037. <h3 id="delete_checklist_item-responses">Responses</h3>
  6038. <table>
  6039. <thead>
  6040. <tr>
  6041. <th>Status</th>
  6042. <th>Meaning</th>
  6043. <th>Description</th>
  6044. <th>Schema</th>
  6045. </tr>
  6046. </thead>
  6047. <tbody>
  6048. <tr>
  6049. <td>200</td>
  6050. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6051. <td>200 response</td>
  6052. <td>Inline</td>
  6053. </tr>
  6054. </tbody>
  6055. </table>
  6056. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6057. <p>Status Code <strong>200</strong></p>
  6058. <table>
  6059. <thead>
  6060. <tr>
  6061. <th>Name</th>
  6062. <th>Type</th>
  6063. <th>Required</th>
  6064. <th>Restrictions</th>
  6065. <th>Description</th>
  6066. </tr>
  6067. </thead>
  6068. <tbody>
  6069. <tr>
  6070. <td>» _id</td>
  6071. <td>string</td>
  6072. <td>false</td>
  6073. <td>none</td>
  6074. <td>none</td>
  6075. </tr>
  6076. </tbody>
  6077. </table>
  6078. <aside class="warning">
  6079. To perform this operation, you must be authenticated by means of one of the following methods:
  6080. UserSecurity
  6081. </aside>
  6082. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6083. <h2 id="get_all_comments">get_all_comments</h2>
  6084. <p><a id="opIdget_all_comments"></a></p>
  6085. <blockquote>
  6086. <p>Code samples</p>
  6087. </blockquote>
  6088. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6089. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6090. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6091. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6092. </code></pre>
  6093. <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>
  6094. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6095. </span></code></pre>
  6096. <pre class="highlight tab tab-javascript"><code>
  6097. <span class="hljs-keyword">const</span> headers = {
  6098. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6099. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6100. };
  6101. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6102. {
  6103. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6104. <span class="hljs-attr">headers</span>: headers
  6105. })
  6106. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6107. <span class="hljs-keyword">return</span> res.json();
  6108. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6109. <span class="hljs-built_in">console</span>.log(body);
  6110. });
  6111. </code></pre>
  6112. <pre class="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>);
  6113. <span class="hljs-keyword">const</span> headers = {
  6114. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6115. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6116. };
  6117. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6118. {
  6119. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6120. <span class="hljs-attr">headers</span>: headers
  6121. })
  6122. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6123. <span class="hljs-keyword">return</span> res.json();
  6124. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6125. <span class="hljs-built_in">console</span>.log(body);
  6126. });
  6127. </code></pre>
  6128. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6129. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6130. headers = {
  6131. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6132. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6133. }
  6134. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6135. <span class="hljs-symbol">params:</span> {
  6136. }, <span class="hljs-symbol">headers:</span> headers
  6137. p JSON.parse(result)
  6138. </code></pre>
  6139. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6140. headers = {
  6141. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6142. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6143. }
  6144. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6145. <span class="hljs-built_in">print</span>(r.json())
  6146. </code></pre>
  6147. <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>);
  6148. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6149. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6150. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6151. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6152. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6153. String inputLine;
  6154. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6155. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6156. response.append(inputLine);
  6157. }
  6158. in.close();
  6159. System.out.println(response.toString());
  6160. </code></pre>
  6161. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6162. <span class="hljs-keyword">import</span> (
  6163. <span class="hljs-string">&quot;bytes&quot;</span>
  6164. <span class="hljs-string">&quot;net/http&quot;</span>
  6165. )
  6166. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6167. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6168. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6169. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6170. }
  6171. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6172. 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)
  6173. req.Header = headers
  6174. client := &amp;http.Client{}
  6175. resp, err := client.Do(req)
  6176. <span class="hljs-comment">// ...</span>
  6177. }
  6178. </code></pre>
  6179. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6180. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6181. );
  6182. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6183. <span class="hljs-comment">// Define array of request body.</span>
  6184. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6185. <span class="hljs-keyword">try</span> {
  6186. <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>(
  6187. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6188. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6189. )
  6190. );
  6191. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6192. }
  6193. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6194. <span class="hljs-comment">// handle exception or api errors.</span>
  6195. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6196. }
  6197. <span class="hljs-comment">// ...</span>
  6198. </code></pre>
  6199. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6200. <p><em>Get all comments attached to a card</em></p>
  6201. <h3 id="get_all_comments-parameters">Parameters</h3>
  6202. <table>
  6203. <thead>
  6204. <tr>
  6205. <th>Name</th>
  6206. <th>In</th>
  6207. <th>Type</th>
  6208. <th>Required</th>
  6209. <th>Description</th>
  6210. </tr>
  6211. </thead>
  6212. <tbody>
  6213. <tr>
  6214. <td>board</td>
  6215. <td>path</td>
  6216. <td>string</td>
  6217. <td>true</td>
  6218. <td>the board ID of the card</td>
  6219. </tr>
  6220. <tr>
  6221. <td>card</td>
  6222. <td>path</td>
  6223. <td>string</td>
  6224. <td>true</td>
  6225. <td>the ID of the card</td>
  6226. </tr>
  6227. </tbody>
  6228. </table>
  6229. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6230. <p><strong>board</strong>: the board ID of the card</p>
  6231. <p><strong>card</strong>: the ID of the card</p>
  6232. <blockquote>
  6233. <p>Example responses</p>
  6234. </blockquote>
  6235. <blockquote>
  6236. <p>200 Response</p>
  6237. </blockquote>
  6238. <pre class="highlight tab tab-json"><code>[
  6239. {
  6240. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6241. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6242. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6243. }
  6244. ]
  6245. </code></pre>
  6246. <h3 id="get_all_comments-responses">Responses</h3>
  6247. <table>
  6248. <thead>
  6249. <tr>
  6250. <th>Status</th>
  6251. <th>Meaning</th>
  6252. <th>Description</th>
  6253. <th>Schema</th>
  6254. </tr>
  6255. </thead>
  6256. <tbody>
  6257. <tr>
  6258. <td>200</td>
  6259. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6260. <td>200 response</td>
  6261. <td>Inline</td>
  6262. </tr>
  6263. </tbody>
  6264. </table>
  6265. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6266. <p>Status Code <strong>200</strong></p>
  6267. <table>
  6268. <thead>
  6269. <tr>
  6270. <th>Name</th>
  6271. <th>Type</th>
  6272. <th>Required</th>
  6273. <th>Restrictions</th>
  6274. <th>Description</th>
  6275. </tr>
  6276. </thead>
  6277. <tbody>
  6278. <tr>
  6279. <td>» _id</td>
  6280. <td>string</td>
  6281. <td>false</td>
  6282. <td>none</td>
  6283. <td>none</td>
  6284. </tr>
  6285. <tr>
  6286. <td>» comment</td>
  6287. <td>string</td>
  6288. <td>false</td>
  6289. <td>none</td>
  6290. <td>none</td>
  6291. </tr>
  6292. <tr>
  6293. <td>» authorId</td>
  6294. <td>string</td>
  6295. <td>false</td>
  6296. <td>none</td>
  6297. <td>none</td>
  6298. </tr>
  6299. </tbody>
  6300. </table>
  6301. <aside class="warning">
  6302. To perform this operation, you must be authenticated by means of one of the following methods:
  6303. UserSecurity
  6304. </aside>
  6305. <h2 id="new_comment">new_comment</h2>
  6306. <p><a id="opIdnew_comment"></a></p>
  6307. <blockquote>
  6308. <p>Code samples</p>
  6309. </blockquote>
  6310. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6311. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6312. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6313. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6314. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6315. </code></pre>
  6316. <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>
  6317. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6318. Accept: application/json
  6319. </span></code></pre>
  6320. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6321. &quot;authorId&quot;: &quot;string&quot;,
  6322. &quot;comment&quot;: &quot;string&quot;
  6323. }&#x27;</span>;
  6324. <span class="hljs-keyword">const</span> headers = {
  6325. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6326. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6327. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6328. };
  6329. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6330. {
  6331. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6332. <span class="hljs-attr">body</span>: inputBody,
  6333. <span class="hljs-attr">headers</span>: headers
  6334. })
  6335. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6336. <span class="hljs-keyword">return</span> res.json();
  6337. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6338. <span class="hljs-built_in">console</span>.log(body);
  6339. });
  6340. </code></pre>
  6341. <pre class="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>);
  6342. <span class="hljs-keyword">const</span> inputBody = {
  6343. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6344. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6345. };
  6346. <span class="hljs-keyword">const</span> headers = {
  6347. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6348. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6349. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6350. };
  6351. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6352. {
  6353. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6354. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6355. <span class="hljs-attr">headers</span>: headers
  6356. })
  6357. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6358. <span class="hljs-keyword">return</span> res.json();
  6359. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6360. <span class="hljs-built_in">console</span>.log(body);
  6361. });
  6362. </code></pre>
  6363. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6364. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6365. headers = {
  6366. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6367. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6368. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6369. }
  6370. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6371. <span class="hljs-symbol">params:</span> {
  6372. }, <span class="hljs-symbol">headers:</span> headers
  6373. p JSON.parse(result)
  6374. </code></pre>
  6375. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6376. headers = {
  6377. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6378. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6379. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6380. }
  6381. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6382. <span class="hljs-built_in">print</span>(r.json())
  6383. </code></pre>
  6384. <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>);
  6385. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6386. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6387. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6388. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6389. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6390. String inputLine;
  6391. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6392. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6393. response.append(inputLine);
  6394. }
  6395. in.close();
  6396. System.out.println(response.toString());
  6397. </code></pre>
  6398. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6399. <span class="hljs-keyword">import</span> (
  6400. <span class="hljs-string">&quot;bytes&quot;</span>
  6401. <span class="hljs-string">&quot;net/http&quot;</span>
  6402. )
  6403. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6404. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6405. <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>},
  6406. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6407. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6408. }
  6409. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6410. 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)
  6411. req.Header = headers
  6412. client := &amp;http.Client{}
  6413. resp, err := client.Do(req)
  6414. <span class="hljs-comment">// ...</span>
  6415. }
  6416. </code></pre>
  6417. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6418. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6419. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6420. );
  6421. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6422. <span class="hljs-comment">// Define array of request body.</span>
  6423. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6424. <span class="hljs-keyword">try</span> {
  6425. <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>(
  6426. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6427. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6428. )
  6429. );
  6430. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6431. }
  6432. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6433. <span class="hljs-comment">// handle exception or api errors.</span>
  6434. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6435. }
  6436. <span class="hljs-comment">// ...</span>
  6437. </code></pre>
  6438. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6439. <p><em>Add a comment on a card</em></p>
  6440. <blockquote>
  6441. <p>Body parameter</p>
  6442. </blockquote>
  6443. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6444. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6445. </code></pre>
  6446. <h3 id="new_comment-parameters">Parameters</h3>
  6447. <table>
  6448. <thead>
  6449. <tr>
  6450. <th>Name</th>
  6451. <th>In</th>
  6452. <th>Type</th>
  6453. <th>Required</th>
  6454. <th>Description</th>
  6455. </tr>
  6456. </thead>
  6457. <tbody>
  6458. <tr>
  6459. <td>board</td>
  6460. <td>path</td>
  6461. <td>string</td>
  6462. <td>true</td>
  6463. <td>the board ID of the card</td>
  6464. </tr>
  6465. <tr>
  6466. <td>card</td>
  6467. <td>path</td>
  6468. <td>string</td>
  6469. <td>true</td>
  6470. <td>the ID of the card</td>
  6471. </tr>
  6472. <tr>
  6473. <td>body</td>
  6474. <td>body</td>
  6475. <td>object</td>
  6476. <td>true</td>
  6477. <td>none</td>
  6478. </tr>
  6479. <tr>
  6480. <td>» authorId</td>
  6481. <td>body</td>
  6482. <td>string</td>
  6483. <td>true</td>
  6484. <td>the user who 'posted' the comment</td>
  6485. </tr>
  6486. <tr>
  6487. <td>» comment</td>
  6488. <td>body</td>
  6489. <td>string</td>
  6490. <td>true</td>
  6491. <td>the comment value</td>
  6492. </tr>
  6493. </tbody>
  6494. </table>
  6495. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6496. <p><strong>board</strong>: the board ID of the card</p>
  6497. <p><strong>card</strong>: the ID of the card</p>
  6498. <blockquote>
  6499. <p>Example responses</p>
  6500. </blockquote>
  6501. <blockquote>
  6502. <p>200 Response</p>
  6503. </blockquote>
  6504. <pre class="highlight tab tab-json"><code>{
  6505. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6506. }
  6507. </code></pre>
  6508. <h3 id="new_comment-responses">Responses</h3>
  6509. <table>
  6510. <thead>
  6511. <tr>
  6512. <th>Status</th>
  6513. <th>Meaning</th>
  6514. <th>Description</th>
  6515. <th>Schema</th>
  6516. </tr>
  6517. </thead>
  6518. <tbody>
  6519. <tr>
  6520. <td>200</td>
  6521. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6522. <td>200 response</td>
  6523. <td>Inline</td>
  6524. </tr>
  6525. </tbody>
  6526. </table>
  6527. <h3 id="new_comment-responseschema">Response Schema</h3>
  6528. <p>Status Code <strong>200</strong></p>
  6529. <table>
  6530. <thead>
  6531. <tr>
  6532. <th>Name</th>
  6533. <th>Type</th>
  6534. <th>Required</th>
  6535. <th>Restrictions</th>
  6536. <th>Description</th>
  6537. </tr>
  6538. </thead>
  6539. <tbody>
  6540. <tr>
  6541. <td>» _id</td>
  6542. <td>string</td>
  6543. <td>false</td>
  6544. <td>none</td>
  6545. <td>none</td>
  6546. </tr>
  6547. </tbody>
  6548. </table>
  6549. <aside class="warning">
  6550. To perform this operation, you must be authenticated by means of one of the following methods:
  6551. UserSecurity
  6552. </aside>
  6553. <h2 id="get_comment">get_comment</h2>
  6554. <p><a id="opIdget_comment"></a></p>
  6555. <blockquote>
  6556. <p>Code samples</p>
  6557. </blockquote>
  6558. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6559. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6560. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6561. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6562. </code></pre>
  6563. <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>
  6564. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6565. </span></code></pre>
  6566. <pre class="highlight tab tab-javascript"><code>
  6567. <span class="hljs-keyword">const</span> headers = {
  6568. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6569. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6570. };
  6571. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6572. {
  6573. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6574. <span class="hljs-attr">headers</span>: headers
  6575. })
  6576. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6577. <span class="hljs-keyword">return</span> res.json();
  6578. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6579. <span class="hljs-built_in">console</span>.log(body);
  6580. });
  6581. </code></pre>
  6582. <pre class="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>);
  6583. <span class="hljs-keyword">const</span> headers = {
  6584. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6585. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6586. };
  6587. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6588. {
  6589. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6590. <span class="hljs-attr">headers</span>: headers
  6591. })
  6592. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6593. <span class="hljs-keyword">return</span> res.json();
  6594. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6595. <span class="hljs-built_in">console</span>.log(body);
  6596. });
  6597. </code></pre>
  6598. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6599. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6600. headers = {
  6601. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6602. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6603. }
  6604. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6605. <span class="hljs-symbol">params:</span> {
  6606. }, <span class="hljs-symbol">headers:</span> headers
  6607. p JSON.parse(result)
  6608. </code></pre>
  6609. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6610. headers = {
  6611. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6612. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6613. }
  6614. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6615. <span class="hljs-built_in">print</span>(r.json())
  6616. </code></pre>
  6617. <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>);
  6618. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6619. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6620. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6621. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6622. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6623. String inputLine;
  6624. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6625. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6626. response.append(inputLine);
  6627. }
  6628. in.close();
  6629. System.out.println(response.toString());
  6630. </code></pre>
  6631. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6632. <span class="hljs-keyword">import</span> (
  6633. <span class="hljs-string">&quot;bytes&quot;</span>
  6634. <span class="hljs-string">&quot;net/http&quot;</span>
  6635. )
  6636. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6637. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6638. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6639. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6640. }
  6641. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6642. 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)
  6643. req.Header = headers
  6644. client := &amp;http.Client{}
  6645. resp, err := client.Do(req)
  6646. <span class="hljs-comment">// ...</span>
  6647. }
  6648. </code></pre>
  6649. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6650. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6651. );
  6652. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6653. <span class="hljs-comment">// Define array of request body.</span>
  6654. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6655. <span class="hljs-keyword">try</span> {
  6656. <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>(
  6657. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6658. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6659. )
  6660. );
  6661. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6662. }
  6663. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6664. <span class="hljs-comment">// handle exception or api errors.</span>
  6665. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6666. }
  6667. <span class="hljs-comment">// ...</span>
  6668. </code></pre>
  6669. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6670. <p><em>Get a comment on a card</em></p>
  6671. <h3 id="get_comment-parameters">Parameters</h3>
  6672. <table>
  6673. <thead>
  6674. <tr>
  6675. <th>Name</th>
  6676. <th>In</th>
  6677. <th>Type</th>
  6678. <th>Required</th>
  6679. <th>Description</th>
  6680. </tr>
  6681. </thead>
  6682. <tbody>
  6683. <tr>
  6684. <td>board</td>
  6685. <td>path</td>
  6686. <td>string</td>
  6687. <td>true</td>
  6688. <td>the board ID of the card</td>
  6689. </tr>
  6690. <tr>
  6691. <td>card</td>
  6692. <td>path</td>
  6693. <td>string</td>
  6694. <td>true</td>
  6695. <td>the ID of the card</td>
  6696. </tr>
  6697. <tr>
  6698. <td>comment</td>
  6699. <td>path</td>
  6700. <td>string</td>
  6701. <td>true</td>
  6702. <td>the ID of the comment to retrieve</td>
  6703. </tr>
  6704. </tbody>
  6705. </table>
  6706. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6707. <p><strong>board</strong>: the board ID of the card</p>
  6708. <p><strong>card</strong>: the ID of the card</p>
  6709. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6710. <blockquote>
  6711. <p>Example responses</p>
  6712. </blockquote>
  6713. <blockquote>
  6714. <p>200 Response</p>
  6715. </blockquote>
  6716. <pre class="highlight tab tab-json"><code>{
  6717. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6718. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6719. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6720. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6721. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6722. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6723. }
  6724. </code></pre>
  6725. <h3 id="get_comment-responses">Responses</h3>
  6726. <table>
  6727. <thead>
  6728. <tr>
  6729. <th>Status</th>
  6730. <th>Meaning</th>
  6731. <th>Description</th>
  6732. <th>Schema</th>
  6733. </tr>
  6734. </thead>
  6735. <tbody>
  6736. <tr>
  6737. <td>200</td>
  6738. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6739. <td>200 response</td>
  6740. <td><a href="#schemacardcomments">CardComments</a></td>
  6741. </tr>
  6742. </tbody>
  6743. </table>
  6744. <aside class="warning">
  6745. To perform this operation, you must be authenticated by means of one of the following methods:
  6746. UserSecurity
  6747. </aside>
  6748. <h2 id="delete_comment">delete_comment</h2>
  6749. <p><a id="opIddelete_comment"></a></p>
  6750. <blockquote>
  6751. <p>Code samples</p>
  6752. </blockquote>
  6753. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6754. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6755. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6756. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6757. </code></pre>
  6758. <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>
  6759. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6760. </span></code></pre>
  6761. <pre class="highlight tab tab-javascript"><code>
  6762. <span class="hljs-keyword">const</span> headers = {
  6763. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6764. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6765. };
  6766. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6767. {
  6768. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6769. <span class="hljs-attr">headers</span>: headers
  6770. })
  6771. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6772. <span class="hljs-keyword">return</span> res.json();
  6773. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6774. <span class="hljs-built_in">console</span>.log(body);
  6775. });
  6776. </code></pre>
  6777. <pre class="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>);
  6778. <span class="hljs-keyword">const</span> headers = {
  6779. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6780. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6781. };
  6782. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6783. {
  6784. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6785. <span class="hljs-attr">headers</span>: headers
  6786. })
  6787. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6788. <span class="hljs-keyword">return</span> res.json();
  6789. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6790. <span class="hljs-built_in">console</span>.log(body);
  6791. });
  6792. </code></pre>
  6793. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6794. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6795. headers = {
  6796. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6797. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6798. }
  6799. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6800. <span class="hljs-symbol">params:</span> {
  6801. }, <span class="hljs-symbol">headers:</span> headers
  6802. p JSON.parse(result)
  6803. </code></pre>
  6804. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6805. headers = {
  6806. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6807. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6808. }
  6809. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6810. <span class="hljs-built_in">print</span>(r.json())
  6811. </code></pre>
  6812. <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>);
  6813. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6814. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6815. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6816. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6817. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6818. String inputLine;
  6819. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6820. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6821. response.append(inputLine);
  6822. }
  6823. in.close();
  6824. System.out.println(response.toString());
  6825. </code></pre>
  6826. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6827. <span class="hljs-keyword">import</span> (
  6828. <span class="hljs-string">&quot;bytes&quot;</span>
  6829. <span class="hljs-string">&quot;net/http&quot;</span>
  6830. )
  6831. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6832. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6833. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6834. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6835. }
  6836. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6837. 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)
  6838. req.Header = headers
  6839. client := &amp;http.Client{}
  6840. resp, err := client.Do(req)
  6841. <span class="hljs-comment">// ...</span>
  6842. }
  6843. </code></pre>
  6844. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6845. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6846. );
  6847. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6848. <span class="hljs-comment">// Define array of request body.</span>
  6849. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6850. <span class="hljs-keyword">try</span> {
  6851. <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>(
  6852. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6853. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6854. )
  6855. );
  6856. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6857. }
  6858. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6859. <span class="hljs-comment">// handle exception or api errors.</span>
  6860. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6861. }
  6862. <span class="hljs-comment">// ...</span>
  6863. </code></pre>
  6864. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6865. <p><em>Delete a comment on a card</em></p>
  6866. <h3 id="delete_comment-parameters">Parameters</h3>
  6867. <table>
  6868. <thead>
  6869. <tr>
  6870. <th>Name</th>
  6871. <th>In</th>
  6872. <th>Type</th>
  6873. <th>Required</th>
  6874. <th>Description</th>
  6875. </tr>
  6876. </thead>
  6877. <tbody>
  6878. <tr>
  6879. <td>board</td>
  6880. <td>path</td>
  6881. <td>string</td>
  6882. <td>true</td>
  6883. <td>the board ID of the card</td>
  6884. </tr>
  6885. <tr>
  6886. <td>card</td>
  6887. <td>path</td>
  6888. <td>string</td>
  6889. <td>true</td>
  6890. <td>the ID of the card</td>
  6891. </tr>
  6892. <tr>
  6893. <td>comment</td>
  6894. <td>path</td>
  6895. <td>string</td>
  6896. <td>true</td>
  6897. <td>the ID of the comment to delete</td>
  6898. </tr>
  6899. </tbody>
  6900. </table>
  6901. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6902. <p><strong>board</strong>: the board ID of the card</p>
  6903. <p><strong>card</strong>: the ID of the card</p>
  6904. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6905. <blockquote>
  6906. <p>Example responses</p>
  6907. </blockquote>
  6908. <blockquote>
  6909. <p>200 Response</p>
  6910. </blockquote>
  6911. <pre class="highlight tab tab-json"><code>{
  6912. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6913. }
  6914. </code></pre>
  6915. <h3 id="delete_comment-responses">Responses</h3>
  6916. <table>
  6917. <thead>
  6918. <tr>
  6919. <th>Status</th>
  6920. <th>Meaning</th>
  6921. <th>Description</th>
  6922. <th>Schema</th>
  6923. </tr>
  6924. </thead>
  6925. <tbody>
  6926. <tr>
  6927. <td>200</td>
  6928. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6929. <td>200 response</td>
  6930. <td>Inline</td>
  6931. </tr>
  6932. </tbody>
  6933. </table>
  6934. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6935. <p>Status Code <strong>200</strong></p>
  6936. <table>
  6937. <thead>
  6938. <tr>
  6939. <th>Name</th>
  6940. <th>Type</th>
  6941. <th>Required</th>
  6942. <th>Restrictions</th>
  6943. <th>Description</th>
  6944. </tr>
  6945. </thead>
  6946. <tbody>
  6947. <tr>
  6948. <td>» _id</td>
  6949. <td>string</td>
  6950. <td>false</td>
  6951. <td>none</td>
  6952. <td>none</td>
  6953. </tr>
  6954. </tbody>
  6955. </table>
  6956. <aside class="warning">
  6957. To perform this operation, you must be authenticated by means of one of the following methods:
  6958. UserSecurity
  6959. </aside>
  6960. <h1 id="wekan-rest-api-cards">Cards</h1>
  6961. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6962. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6963. <blockquote>
  6964. <p>Code samples</p>
  6965. </blockquote>
  6966. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6967. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6968. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6969. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6970. </code></pre>
  6971. <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>
  6972. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6973. </span></code></pre>
  6974. <pre class="highlight tab tab-javascript"><code>
  6975. <span class="hljs-keyword">const</span> headers = {
  6976. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6977. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6978. };
  6979. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6980. {
  6981. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6982. <span class="hljs-attr">headers</span>: headers
  6983. })
  6984. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6985. <span class="hljs-keyword">return</span> res.json();
  6986. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6987. <span class="hljs-built_in">console</span>.log(body);
  6988. });
  6989. </code></pre>
  6990. <pre class="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>);
  6991. <span class="hljs-keyword">const</span> headers = {
  6992. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6993. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6994. };
  6995. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6996. {
  6997. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6998. <span class="hljs-attr">headers</span>: headers
  6999. })
  7000. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7001. <span class="hljs-keyword">return</span> res.json();
  7002. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7003. <span class="hljs-built_in">console</span>.log(body);
  7004. });
  7005. </code></pre>
  7006. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7007. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7008. headers = {
  7009. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7010. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7011. }
  7012. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7013. <span class="hljs-symbol">params:</span> {
  7014. }, <span class="hljs-symbol">headers:</span> headers
  7015. p JSON.parse(result)
  7016. </code></pre>
  7017. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7018. headers = {
  7019. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7020. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7021. }
  7022. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7023. <span class="hljs-built_in">print</span>(r.json())
  7024. </code></pre>
  7025. <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>);
  7026. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7027. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7028. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7029. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7030. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7031. String inputLine;
  7032. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7033. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7034. response.append(inputLine);
  7035. }
  7036. in.close();
  7037. System.out.println(response.toString());
  7038. </code></pre>
  7039. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7040. <span class="hljs-keyword">import</span> (
  7041. <span class="hljs-string">&quot;bytes&quot;</span>
  7042. <span class="hljs-string">&quot;net/http&quot;</span>
  7043. )
  7044. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7045. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7046. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7047. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7048. }
  7049. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7050. 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)
  7051. req.Header = headers
  7052. client := &amp;http.Client{}
  7053. resp, err := client.Do(req)
  7054. <span class="hljs-comment">// ...</span>
  7055. }
  7056. </code></pre>
  7057. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7058. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7059. );
  7060. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7061. <span class="hljs-comment">// Define array of request body.</span>
  7062. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7063. <span class="hljs-keyword">try</span> {
  7064. <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>(
  7065. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7066. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7067. )
  7068. );
  7069. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7070. }
  7071. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7072. <span class="hljs-comment">// handle exception or api errors.</span>
  7073. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7074. }
  7075. <span class="hljs-comment">// ...</span>
  7076. </code></pre>
  7077. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7078. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7079. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7080. <table>
  7081. <thead>
  7082. <tr>
  7083. <th>Name</th>
  7084. <th>In</th>
  7085. <th>Type</th>
  7086. <th>Required</th>
  7087. <th>Description</th>
  7088. </tr>
  7089. </thead>
  7090. <tbody>
  7091. <tr>
  7092. <td>board</td>
  7093. <td>path</td>
  7094. <td>string</td>
  7095. <td>true</td>
  7096. <td>the board ID</td>
  7097. </tr>
  7098. <tr>
  7099. <td>customField</td>
  7100. <td>path</td>
  7101. <td>string</td>
  7102. <td>true</td>
  7103. <td>the list ID</td>
  7104. </tr>
  7105. <tr>
  7106. <td>customFieldValue</td>
  7107. <td>path</td>
  7108. <td>string</td>
  7109. <td>true</td>
  7110. <td>the value to look for</td>
  7111. </tr>
  7112. </tbody>
  7113. </table>
  7114. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7115. <p><strong>board</strong>: the board ID</p>
  7116. <p><strong>customField</strong>: the list ID</p>
  7117. <p><strong>customFieldValue</strong>: the value to look for</p>
  7118. <blockquote>
  7119. <p>Example responses</p>
  7120. </blockquote>
  7121. <blockquote>
  7122. <p>200 Response</p>
  7123. </blockquote>
  7124. <pre class="highlight tab tab-json"><code>[
  7125. {
  7126. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7127. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7128. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7129. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7130. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7131. }
  7132. ]
  7133. </code></pre>
  7134. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7135. <table>
  7136. <thead>
  7137. <tr>
  7138. <th>Status</th>
  7139. <th>Meaning</th>
  7140. <th>Description</th>
  7141. <th>Schema</th>
  7142. </tr>
  7143. </thead>
  7144. <tbody>
  7145. <tr>
  7146. <td>200</td>
  7147. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7148. <td>200 response</td>
  7149. <td>Inline</td>
  7150. </tr>
  7151. </tbody>
  7152. </table>
  7153. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7154. <p>Status Code <strong>200</strong></p>
  7155. <table>
  7156. <thead>
  7157. <tr>
  7158. <th>Name</th>
  7159. <th>Type</th>
  7160. <th>Required</th>
  7161. <th>Restrictions</th>
  7162. <th>Description</th>
  7163. </tr>
  7164. </thead>
  7165. <tbody>
  7166. <tr>
  7167. <td>» _id</td>
  7168. <td>string</td>
  7169. <td>false</td>
  7170. <td>none</td>
  7171. <td>none</td>
  7172. </tr>
  7173. <tr>
  7174. <td>» title</td>
  7175. <td>string</td>
  7176. <td>false</td>
  7177. <td>none</td>
  7178. <td>none</td>
  7179. </tr>
  7180. <tr>
  7181. <td>» description</td>
  7182. <td>string</td>
  7183. <td>false</td>
  7184. <td>none</td>
  7185. <td>none</td>
  7186. </tr>
  7187. <tr>
  7188. <td>» listId</td>
  7189. <td>string</td>
  7190. <td>false</td>
  7191. <td>none</td>
  7192. <td>none</td>
  7193. </tr>
  7194. <tr>
  7195. <td>» swinlaneId</td>
  7196. <td>string</td>
  7197. <td>false</td>
  7198. <td>none</td>
  7199. <td>none</td>
  7200. </tr>
  7201. </tbody>
  7202. </table>
  7203. <aside class="warning">
  7204. To perform this operation, you must be authenticated by means of one of the following methods:
  7205. UserSecurity
  7206. </aside>
  7207. <h2 id="get_all_cards">get_all_cards</h2>
  7208. <p><a id="opIdget_all_cards"></a></p>
  7209. <blockquote>
  7210. <p>Code samples</p>
  7211. </blockquote>
  7212. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7213. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7214. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7215. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7216. </code></pre>
  7217. <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>
  7218. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7219. </span></code></pre>
  7220. <pre class="highlight tab tab-javascript"><code>
  7221. <span class="hljs-keyword">const</span> headers = {
  7222. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7223. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7224. };
  7225. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7226. {
  7227. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7228. <span class="hljs-attr">headers</span>: headers
  7229. })
  7230. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7231. <span class="hljs-keyword">return</span> res.json();
  7232. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7233. <span class="hljs-built_in">console</span>.log(body);
  7234. });
  7235. </code></pre>
  7236. <pre class="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>);
  7237. <span class="hljs-keyword">const</span> headers = {
  7238. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7239. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7240. };
  7241. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7242. {
  7243. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7244. <span class="hljs-attr">headers</span>: headers
  7245. })
  7246. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7247. <span class="hljs-keyword">return</span> res.json();
  7248. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7249. <span class="hljs-built_in">console</span>.log(body);
  7250. });
  7251. </code></pre>
  7252. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7253. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7254. headers = {
  7255. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7256. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7257. }
  7258. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7259. <span class="hljs-symbol">params:</span> {
  7260. }, <span class="hljs-symbol">headers:</span> headers
  7261. p JSON.parse(result)
  7262. </code></pre>
  7263. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7264. headers = {
  7265. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7266. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7267. }
  7268. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7269. <span class="hljs-built_in">print</span>(r.json())
  7270. </code></pre>
  7271. <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>);
  7272. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7273. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7274. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7275. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7276. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7277. String inputLine;
  7278. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7279. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7280. response.append(inputLine);
  7281. }
  7282. in.close();
  7283. System.out.println(response.toString());
  7284. </code></pre>
  7285. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7286. <span class="hljs-keyword">import</span> (
  7287. <span class="hljs-string">&quot;bytes&quot;</span>
  7288. <span class="hljs-string">&quot;net/http&quot;</span>
  7289. )
  7290. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7291. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7292. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7293. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7294. }
  7295. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7296. 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)
  7297. req.Header = headers
  7298. client := &amp;http.Client{}
  7299. resp, err := client.Do(req)
  7300. <span class="hljs-comment">// ...</span>
  7301. }
  7302. </code></pre>
  7303. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7304. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7305. );
  7306. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7307. <span class="hljs-comment">// Define array of request body.</span>
  7308. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7309. <span class="hljs-keyword">try</span> {
  7310. <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>(
  7311. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7312. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7313. )
  7314. );
  7315. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7316. }
  7317. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7318. <span class="hljs-comment">// handle exception or api errors.</span>
  7319. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7320. }
  7321. <span class="hljs-comment">// ...</span>
  7322. </code></pre>
  7323. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7324. <p><em>Get all Cards attached to a List</em></p>
  7325. <h3 id="get_all_cards-parameters">Parameters</h3>
  7326. <table>
  7327. <thead>
  7328. <tr>
  7329. <th>Name</th>
  7330. <th>In</th>
  7331. <th>Type</th>
  7332. <th>Required</th>
  7333. <th>Description</th>
  7334. </tr>
  7335. </thead>
  7336. <tbody>
  7337. <tr>
  7338. <td>board</td>
  7339. <td>path</td>
  7340. <td>string</td>
  7341. <td>true</td>
  7342. <td>the board ID</td>
  7343. </tr>
  7344. <tr>
  7345. <td>list</td>
  7346. <td>path</td>
  7347. <td>string</td>
  7348. <td>true</td>
  7349. <td>the list ID</td>
  7350. </tr>
  7351. </tbody>
  7352. </table>
  7353. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7354. <p><strong>board</strong>: the board ID</p>
  7355. <p><strong>list</strong>: the list ID</p>
  7356. <blockquote>
  7357. <p>Example responses</p>
  7358. </blockquote>
  7359. <blockquote>
  7360. <p>200 Response</p>
  7361. </blockquote>
  7362. <pre class="highlight tab tab-json"><code>[
  7363. {
  7364. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7365. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7366. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7367. }
  7368. ]
  7369. </code></pre>
  7370. <h3 id="get_all_cards-responses">Responses</h3>
  7371. <table>
  7372. <thead>
  7373. <tr>
  7374. <th>Status</th>
  7375. <th>Meaning</th>
  7376. <th>Description</th>
  7377. <th>Schema</th>
  7378. </tr>
  7379. </thead>
  7380. <tbody>
  7381. <tr>
  7382. <td>200</td>
  7383. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7384. <td>200 response</td>
  7385. <td>Inline</td>
  7386. </tr>
  7387. </tbody>
  7388. </table>
  7389. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7390. <p>Status Code <strong>200</strong></p>
  7391. <table>
  7392. <thead>
  7393. <tr>
  7394. <th>Name</th>
  7395. <th>Type</th>
  7396. <th>Required</th>
  7397. <th>Restrictions</th>
  7398. <th>Description</th>
  7399. </tr>
  7400. </thead>
  7401. <tbody>
  7402. <tr>
  7403. <td>» _id</td>
  7404. <td>string</td>
  7405. <td>false</td>
  7406. <td>none</td>
  7407. <td>none</td>
  7408. </tr>
  7409. <tr>
  7410. <td>» title</td>
  7411. <td>string</td>
  7412. <td>false</td>
  7413. <td>none</td>
  7414. <td>none</td>
  7415. </tr>
  7416. <tr>
  7417. <td>» description</td>
  7418. <td>string</td>
  7419. <td>false</td>
  7420. <td>none</td>
  7421. <td>none</td>
  7422. </tr>
  7423. </tbody>
  7424. </table>
  7425. <aside class="warning">
  7426. To perform this operation, you must be authenticated by means of one of the following methods:
  7427. UserSecurity
  7428. </aside>
  7429. <h2 id="new_card">new_card</h2>
  7430. <p><a id="opIdnew_card"></a></p>
  7431. <blockquote>
  7432. <p>Code samples</p>
  7433. </blockquote>
  7434. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7435. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7436. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7437. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7438. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7439. </code></pre>
  7440. <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>
  7441. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7442. Accept: application/json
  7443. </span></code></pre>
  7444. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7445. &quot;authorId&quot;: &quot;string&quot;,
  7446. &quot;members&quot;: &quot;string&quot;,
  7447. &quot;assignees&quot;: &quot;string&quot;,
  7448. &quot;title&quot;: &quot;string&quot;,
  7449. &quot;description&quot;: &quot;string&quot;,
  7450. &quot;swimlaneId&quot;: &quot;string&quot;
  7451. }&#x27;</span>;
  7452. <span class="hljs-keyword">const</span> headers = {
  7453. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7454. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7455. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7456. };
  7457. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7458. {
  7459. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7460. <span class="hljs-attr">body</span>: inputBody,
  7461. <span class="hljs-attr">headers</span>: headers
  7462. })
  7463. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7464. <span class="hljs-keyword">return</span> res.json();
  7465. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7466. <span class="hljs-built_in">console</span>.log(body);
  7467. });
  7468. </code></pre>
  7469. <pre class="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>);
  7470. <span class="hljs-keyword">const</span> inputBody = {
  7471. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7472. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7473. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7474. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7475. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7476. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7477. };
  7478. <span class="hljs-keyword">const</span> headers = {
  7479. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7480. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7481. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7482. };
  7483. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7484. {
  7485. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7486. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7487. <span class="hljs-attr">headers</span>: headers
  7488. })
  7489. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7490. <span class="hljs-keyword">return</span> res.json();
  7491. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7492. <span class="hljs-built_in">console</span>.log(body);
  7493. });
  7494. </code></pre>
  7495. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7496. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7497. headers = {
  7498. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7499. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7500. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7501. }
  7502. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7503. <span class="hljs-symbol">params:</span> {
  7504. }, <span class="hljs-symbol">headers:</span> headers
  7505. p JSON.parse(result)
  7506. </code></pre>
  7507. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7508. headers = {
  7509. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7510. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7511. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7512. }
  7513. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7514. <span class="hljs-built_in">print</span>(r.json())
  7515. </code></pre>
  7516. <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>);
  7517. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7518. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7519. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7520. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7521. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7522. String inputLine;
  7523. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7524. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7525. response.append(inputLine);
  7526. }
  7527. in.close();
  7528. System.out.println(response.toString());
  7529. </code></pre>
  7530. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7531. <span class="hljs-keyword">import</span> (
  7532. <span class="hljs-string">&quot;bytes&quot;</span>
  7533. <span class="hljs-string">&quot;net/http&quot;</span>
  7534. )
  7535. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7536. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7537. <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>},
  7538. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7539. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7540. }
  7541. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7542. 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)
  7543. req.Header = headers
  7544. client := &amp;http.Client{}
  7545. resp, err := client.Do(req)
  7546. <span class="hljs-comment">// ...</span>
  7547. }
  7548. </code></pre>
  7549. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7550. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7551. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7552. );
  7553. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7554. <span class="hljs-comment">// Define array of request body.</span>
  7555. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7556. <span class="hljs-keyword">try</span> {
  7557. <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>(
  7558. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7559. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7560. )
  7561. );
  7562. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7563. }
  7564. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7565. <span class="hljs-comment">// handle exception or api errors.</span>
  7566. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7567. }
  7568. <span class="hljs-comment">// ...</span>
  7569. </code></pre>
  7570. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7571. <p><em>Create a new Card</em></p>
  7572. <blockquote>
  7573. <p>Body parameter</p>
  7574. </blockquote>
  7575. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7576. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7577. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7578. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7579. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7580. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7581. </code></pre>
  7582. <h3 id="new_card-parameters">Parameters</h3>
  7583. <table>
  7584. <thead>
  7585. <tr>
  7586. <th>Name</th>
  7587. <th>In</th>
  7588. <th>Type</th>
  7589. <th>Required</th>
  7590. <th>Description</th>
  7591. </tr>
  7592. </thead>
  7593. <tbody>
  7594. <tr>
  7595. <td>board</td>
  7596. <td>path</td>
  7597. <td>string</td>
  7598. <td>true</td>
  7599. <td>the board ID of the new card</td>
  7600. </tr>
  7601. <tr>
  7602. <td>list</td>
  7603. <td>path</td>
  7604. <td>string</td>
  7605. <td>true</td>
  7606. <td>the list ID of the new card</td>
  7607. </tr>
  7608. <tr>
  7609. <td>body</td>
  7610. <td>body</td>
  7611. <td>object</td>
  7612. <td>true</td>
  7613. <td>none</td>
  7614. </tr>
  7615. <tr>
  7616. <td>» authorId</td>
  7617. <td>body</td>
  7618. <td>string</td>
  7619. <td>true</td>
  7620. <td>the authorId value</td>
  7621. </tr>
  7622. <tr>
  7623. <td>» members</td>
  7624. <td>body</td>
  7625. <td>string</td>
  7626. <td>false</td>
  7627. <td>the member IDs list of the new card</td>
  7628. </tr>
  7629. <tr>
  7630. <td>» assignees</td>
  7631. <td>body</td>
  7632. <td>string</td>
  7633. <td>false</td>
  7634. <td>the array of maximum one ID of assignee of the new card</td>
  7635. </tr>
  7636. <tr>
  7637. <td>» title</td>
  7638. <td>body</td>
  7639. <td>string</td>
  7640. <td>true</td>
  7641. <td>the title of the new card</td>
  7642. </tr>
  7643. <tr>
  7644. <td>» description</td>
  7645. <td>body</td>
  7646. <td>string</td>
  7647. <td>true</td>
  7648. <td>the description of the new card</td>
  7649. </tr>
  7650. <tr>
  7651. <td>» swimlaneId</td>
  7652. <td>body</td>
  7653. <td>string</td>
  7654. <td>true</td>
  7655. <td>the swimlane ID of the new card</td>
  7656. </tr>
  7657. </tbody>
  7658. </table>
  7659. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7660. <p><strong>board</strong>: the board ID of the new card</p>
  7661. <p><strong>list</strong>: the list ID of the new card</p>
  7662. <blockquote>
  7663. <p>Example responses</p>
  7664. </blockquote>
  7665. <blockquote>
  7666. <p>200 Response</p>
  7667. </blockquote>
  7668. <pre class="highlight tab tab-json"><code>{
  7669. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7670. }
  7671. </code></pre>
  7672. <h3 id="new_card-responses">Responses</h3>
  7673. <table>
  7674. <thead>
  7675. <tr>
  7676. <th>Status</th>
  7677. <th>Meaning</th>
  7678. <th>Description</th>
  7679. <th>Schema</th>
  7680. </tr>
  7681. </thead>
  7682. <tbody>
  7683. <tr>
  7684. <td>200</td>
  7685. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7686. <td>200 response</td>
  7687. <td>Inline</td>
  7688. </tr>
  7689. </tbody>
  7690. </table>
  7691. <h3 id="new_card-responseschema">Response Schema</h3>
  7692. <p>Status Code <strong>200</strong></p>
  7693. <table>
  7694. <thead>
  7695. <tr>
  7696. <th>Name</th>
  7697. <th>Type</th>
  7698. <th>Required</th>
  7699. <th>Restrictions</th>
  7700. <th>Description</th>
  7701. </tr>
  7702. </thead>
  7703. <tbody>
  7704. <tr>
  7705. <td>» _id</td>
  7706. <td>string</td>
  7707. <td>false</td>
  7708. <td>none</td>
  7709. <td>none</td>
  7710. </tr>
  7711. </tbody>
  7712. </table>
  7713. <aside class="warning">
  7714. To perform this operation, you must be authenticated by means of one of the following methods:
  7715. UserSecurity
  7716. </aside>
  7717. <h2 id="get_card">get_card</h2>
  7718. <p><a id="opIdget_card"></a></p>
  7719. <blockquote>
  7720. <p>Code samples</p>
  7721. </blockquote>
  7722. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7723. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7724. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7725. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7726. </code></pre>
  7727. <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>
  7728. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7729. </span></code></pre>
  7730. <pre class="highlight tab tab-javascript"><code>
  7731. <span class="hljs-keyword">const</span> headers = {
  7732. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7733. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7734. };
  7735. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7736. {
  7737. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7738. <span class="hljs-attr">headers</span>: headers
  7739. })
  7740. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7741. <span class="hljs-keyword">return</span> res.json();
  7742. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7743. <span class="hljs-built_in">console</span>.log(body);
  7744. });
  7745. </code></pre>
  7746. <pre class="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>);
  7747. <span class="hljs-keyword">const</span> headers = {
  7748. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7749. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7750. };
  7751. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7752. {
  7753. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7754. <span class="hljs-attr">headers</span>: headers
  7755. })
  7756. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7757. <span class="hljs-keyword">return</span> res.json();
  7758. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7759. <span class="hljs-built_in">console</span>.log(body);
  7760. });
  7761. </code></pre>
  7762. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7763. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7764. headers = {
  7765. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7766. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7767. }
  7768. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7769. <span class="hljs-symbol">params:</span> {
  7770. }, <span class="hljs-symbol">headers:</span> headers
  7771. p JSON.parse(result)
  7772. </code></pre>
  7773. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7774. headers = {
  7775. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7776. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7777. }
  7778. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7779. <span class="hljs-built_in">print</span>(r.json())
  7780. </code></pre>
  7781. <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>);
  7782. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7783. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7784. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7785. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7786. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7787. String inputLine;
  7788. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7789. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7790. response.append(inputLine);
  7791. }
  7792. in.close();
  7793. System.out.println(response.toString());
  7794. </code></pre>
  7795. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7796. <span class="hljs-keyword">import</span> (
  7797. <span class="hljs-string">&quot;bytes&quot;</span>
  7798. <span class="hljs-string">&quot;net/http&quot;</span>
  7799. )
  7800. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7801. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7802. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7803. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7804. }
  7805. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7806. 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)
  7807. req.Header = headers
  7808. client := &amp;http.Client{}
  7809. resp, err := client.Do(req)
  7810. <span class="hljs-comment">// ...</span>
  7811. }
  7812. </code></pre>
  7813. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7814. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7815. );
  7816. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7817. <span class="hljs-comment">// Define array of request body.</span>
  7818. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7819. <span class="hljs-keyword">try</span> {
  7820. <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>(
  7821. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7822. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7823. )
  7824. );
  7825. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7826. }
  7827. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7828. <span class="hljs-comment">// handle exception or api errors.</span>
  7829. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7830. }
  7831. <span class="hljs-comment">// ...</span>
  7832. </code></pre>
  7833. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7834. <p><em>Get a Card</em></p>
  7835. <h3 id="get_card-parameters">Parameters</h3>
  7836. <table>
  7837. <thead>
  7838. <tr>
  7839. <th>Name</th>
  7840. <th>In</th>
  7841. <th>Type</th>
  7842. <th>Required</th>
  7843. <th>Description</th>
  7844. </tr>
  7845. </thead>
  7846. <tbody>
  7847. <tr>
  7848. <td>board</td>
  7849. <td>path</td>
  7850. <td>string</td>
  7851. <td>true</td>
  7852. <td>the board ID</td>
  7853. </tr>
  7854. <tr>
  7855. <td>list</td>
  7856. <td>path</td>
  7857. <td>string</td>
  7858. <td>true</td>
  7859. <td>the list ID of the card</td>
  7860. </tr>
  7861. <tr>
  7862. <td>card</td>
  7863. <td>path</td>
  7864. <td>string</td>
  7865. <td>true</td>
  7866. <td>the card ID</td>
  7867. </tr>
  7868. </tbody>
  7869. </table>
  7870. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7871. <p><strong>board</strong>: the board ID</p>
  7872. <p><strong>list</strong>: the list ID of the card</p>
  7873. <p><strong>card</strong>: the card ID</p>
  7874. <blockquote>
  7875. <p>Example responses</p>
  7876. </blockquote>
  7877. <blockquote>
  7878. <p>200 Response</p>
  7879. </blockquote>
  7880. <pre class="highlight tab tab-json"><code>{
  7881. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7882. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  7883. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7884. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7885. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7886. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7887. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7888. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7889. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  7890. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7891. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7892. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  7893. {}
  7894. ],
  7895. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7896. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7897. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7898. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7899. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  7900. <span class="hljs-string">&quot;string&quot;</span>
  7901. ],
  7902. <span class="hljs-attr">&quot;members&quot;</span>: [
  7903. <span class="hljs-string">&quot;string&quot;</span>
  7904. ],
  7905. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  7906. <span class="hljs-string">&quot;string&quot;</span>
  7907. ],
  7908. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7909. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7910. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7911. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7912. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  7913. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  7914. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7915. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  7916. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  7917. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7918. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7919. <span class="hljs-attr">&quot;vote&quot;</span>: {
  7920. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7921. <span class="hljs-attr">&quot;positive&quot;</span>: [
  7922. <span class="hljs-string">&quot;string&quot;</span>
  7923. ],
  7924. <span class="hljs-attr">&quot;negative&quot;</span>: [
  7925. <span class="hljs-string">&quot;string&quot;</span>
  7926. ],
  7927. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7928. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  7929. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  7930. },
  7931. <span class="hljs-attr">&quot;poker&quot;</span>: {
  7932. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  7933. <span class="hljs-attr">&quot;one&quot;</span>: [
  7934. <span class="hljs-string">&quot;string&quot;</span>
  7935. ],
  7936. <span class="hljs-attr">&quot;two&quot;</span>: [
  7937. <span class="hljs-string">&quot;string&quot;</span>
  7938. ],
  7939. <span class="hljs-attr">&quot;three&quot;</span>: [
  7940. <span class="hljs-string">&quot;string&quot;</span>
  7941. ],
  7942. <span class="hljs-attr">&quot;five&quot;</span>: [
  7943. <span class="hljs-string">&quot;string&quot;</span>
  7944. ],
  7945. <span class="hljs-attr">&quot;eight&quot;</span>: [
  7946. <span class="hljs-string">&quot;string&quot;</span>
  7947. ],
  7948. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  7949. <span class="hljs-string">&quot;string&quot;</span>
  7950. ],
  7951. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  7952. <span class="hljs-string">&quot;string&quot;</span>
  7953. ],
  7954. <span class="hljs-attr">&quot;forty&quot;</span>: [
  7955. <span class="hljs-string">&quot;string&quot;</span>
  7956. ],
  7957. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  7958. <span class="hljs-string">&quot;string&quot;</span>
  7959. ],
  7960. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  7961. <span class="hljs-string">&quot;string&quot;</span>
  7962. ],
  7963. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7964. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  7965. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  7966. },
  7967. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  7968. <span class="hljs-string">&quot;string&quot;</span>
  7969. ],
  7970. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  7971. <span class="hljs-number">0</span>
  7972. ],
  7973. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  7974. <span class="hljs-string">&quot;string&quot;</span>
  7975. ],
  7976. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  7977. }
  7978. </code></pre>
  7979. <h3 id="get_card-responses">Responses</h3>
  7980. <table>
  7981. <thead>
  7982. <tr>
  7983. <th>Status</th>
  7984. <th>Meaning</th>
  7985. <th>Description</th>
  7986. <th>Schema</th>
  7987. </tr>
  7988. </thead>
  7989. <tbody>
  7990. <tr>
  7991. <td>200</td>
  7992. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7993. <td>200 response</td>
  7994. <td><a href="#schemacards">Cards</a></td>
  7995. </tr>
  7996. </tbody>
  7997. </table>
  7998. <aside class="warning">
  7999. To perform this operation, you must be authenticated by means of one of the following methods:
  8000. UserSecurity
  8001. </aside>
  8002. <h2 id="edit_card">edit_card</h2>
  8003. <p><a id="opIdedit_card"></a></p>
  8004. <blockquote>
  8005. <p>Code samples</p>
  8006. </blockquote>
  8007. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8008. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8009. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8010. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8011. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8012. </code></pre>
  8013. <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>
  8014. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8015. Accept: application/json
  8016. </span></code></pre>
  8017. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8018. &quot;title&quot;: &quot;string&quot;,
  8019. &quot;sort&quot;: &quot;string&quot;,
  8020. &quot;parentId&quot;: &quot;string&quot;,
  8021. &quot;description&quot;: &quot;string&quot;,
  8022. &quot;color&quot;: &quot;string&quot;,
  8023. &quot;vote&quot;: {},
  8024. &quot;poker&quot;: {},
  8025. &quot;labelIds&quot;: &quot;string&quot;,
  8026. &quot;requestedBy&quot;: &quot;string&quot;,
  8027. &quot;assignedBy&quot;: &quot;string&quot;,
  8028. &quot;receivedAt&quot;: &quot;string&quot;,
  8029. &quot;startAt&quot;: &quot;string&quot;,
  8030. &quot;dueAt&quot;: &quot;string&quot;,
  8031. &quot;endAt&quot;: &quot;string&quot;,
  8032. &quot;spentTime&quot;: &quot;string&quot;,
  8033. &quot;isOverTime&quot;: true,
  8034. &quot;customFields&quot;: &quot;string&quot;,
  8035. &quot;members&quot;: &quot;string&quot;,
  8036. &quot;assignees&quot;: &quot;string&quot;,
  8037. &quot;swimlaneId&quot;: &quot;string&quot;,
  8038. &quot;listId&quot;: &quot;string&quot;,
  8039. &quot;authorId&quot;: &quot;string&quot;
  8040. }&#x27;</span>;
  8041. <span class="hljs-keyword">const</span> headers = {
  8042. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8043. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8044. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8045. };
  8046. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8047. {
  8048. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8049. <span class="hljs-attr">body</span>: inputBody,
  8050. <span class="hljs-attr">headers</span>: headers
  8051. })
  8052. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8053. <span class="hljs-keyword">return</span> res.json();
  8054. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8055. <span class="hljs-built_in">console</span>.log(body);
  8056. });
  8057. </code></pre>
  8058. <pre class="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>);
  8059. <span class="hljs-keyword">const</span> inputBody = {
  8060. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8061. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8062. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8063. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8064. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8065. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8066. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8067. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8068. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8069. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8070. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8071. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8072. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8073. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8074. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8075. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8076. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8077. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8078. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8079. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8080. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8081. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8082. };
  8083. <span class="hljs-keyword">const</span> headers = {
  8084. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8085. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8086. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8087. };
  8088. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8089. {
  8090. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8091. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8092. <span class="hljs-attr">headers</span>: headers
  8093. })
  8094. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8095. <span class="hljs-keyword">return</span> res.json();
  8096. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8097. <span class="hljs-built_in">console</span>.log(body);
  8098. });
  8099. </code></pre>
  8100. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8101. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8102. headers = {
  8103. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8104. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8105. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8106. }
  8107. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8108. <span class="hljs-symbol">params:</span> {
  8109. }, <span class="hljs-symbol">headers:</span> headers
  8110. p JSON.parse(result)
  8111. </code></pre>
  8112. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8113. headers = {
  8114. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8115. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8116. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8117. }
  8118. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8119. <span class="hljs-built_in">print</span>(r.json())
  8120. </code></pre>
  8121. <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>);
  8122. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8123. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8124. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8125. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8126. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8127. String inputLine;
  8128. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8129. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8130. response.append(inputLine);
  8131. }
  8132. in.close();
  8133. System.out.println(response.toString());
  8134. </code></pre>
  8135. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8136. <span class="hljs-keyword">import</span> (
  8137. <span class="hljs-string">&quot;bytes&quot;</span>
  8138. <span class="hljs-string">&quot;net/http&quot;</span>
  8139. )
  8140. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8141. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8142. <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>},
  8143. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8144. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8145. }
  8146. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8147. 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)
  8148. req.Header = headers
  8149. client := &amp;http.Client{}
  8150. resp, err := client.Do(req)
  8151. <span class="hljs-comment">// ...</span>
  8152. }
  8153. </code></pre>
  8154. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8155. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8156. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8157. );
  8158. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8159. <span class="hljs-comment">// Define array of request body.</span>
  8160. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8161. <span class="hljs-keyword">try</span> {
  8162. <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>(
  8163. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8164. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8165. )
  8166. );
  8167. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8168. }
  8169. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8170. <span class="hljs-comment">// handle exception or api errors.</span>
  8171. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8172. }
  8173. <span class="hljs-comment">// ...</span>
  8174. </code></pre>
  8175. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8176. <p><em>Edit Fields in a Card</em></p>
  8177. <p>Edit a card</p>
  8178. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8179. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8180. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8181. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8182. <code>indigo</code>:</p>
  8183. <img src="/card-colors.png" alt="Wekan card colors" />
  8184. <p>Note: setting the color to white has the same effect than removing it.</p>
  8185. <blockquote>
  8186. <p>Body parameter</p>
  8187. </blockquote>
  8188. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8189. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8190. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8191. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8192. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8193. <span class="hljs-attr">vote:</span> {}
  8194. <span class="hljs-attr">poker:</span> {}
  8195. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8196. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8197. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8198. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8199. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8200. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8201. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8202. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8203. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8204. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8205. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8206. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8207. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8208. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8209. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8210. </code></pre>
  8211. <h3 id="edit_card-parameters">Parameters</h3>
  8212. <table>
  8213. <thead>
  8214. <tr>
  8215. <th>Name</th>
  8216. <th>In</th>
  8217. <th>Type</th>
  8218. <th>Required</th>
  8219. <th>Description</th>
  8220. </tr>
  8221. </thead>
  8222. <tbody>
  8223. <tr>
  8224. <td>board</td>
  8225. <td>path</td>
  8226. <td>string</td>
  8227. <td>true</td>
  8228. <td>the board ID of the card</td>
  8229. </tr>
  8230. <tr>
  8231. <td>list</td>
  8232. <td>path</td>
  8233. <td>string</td>
  8234. <td>true</td>
  8235. <td>the list ID of the card</td>
  8236. </tr>
  8237. <tr>
  8238. <td>card</td>
  8239. <td>path</td>
  8240. <td>string</td>
  8241. <td>true</td>
  8242. <td>the ID of the card</td>
  8243. </tr>
  8244. <tr>
  8245. <td>body</td>
  8246. <td>body</td>
  8247. <td>object</td>
  8248. <td>false</td>
  8249. <td>none</td>
  8250. </tr>
  8251. <tr>
  8252. <td>» title</td>
  8253. <td>body</td>
  8254. <td>string</td>
  8255. <td>false</td>
  8256. <td>the new title of the card</td>
  8257. </tr>
  8258. <tr>
  8259. <td>» sort</td>
  8260. <td>body</td>
  8261. <td>string</td>
  8262. <td>false</td>
  8263. <td>the new sort value of the card</td>
  8264. </tr>
  8265. <tr>
  8266. <td>» parentId</td>
  8267. <td>body</td>
  8268. <td>string</td>
  8269. <td>false</td>
  8270. <td>change the parent of the card</td>
  8271. </tr>
  8272. <tr>
  8273. <td>» description</td>
  8274. <td>body</td>
  8275. <td>string</td>
  8276. <td>false</td>
  8277. <td>the new description of the card</td>
  8278. </tr>
  8279. <tr>
  8280. <td>» color</td>
  8281. <td>body</td>
  8282. <td>string</td>
  8283. <td>false</td>
  8284. <td>the new color of the card</td>
  8285. </tr>
  8286. <tr>
  8287. <td>» vote</td>
  8288. <td>body</td>
  8289. <td>object</td>
  8290. <td>false</td>
  8291. <td>the vote object</td>
  8292. </tr>
  8293. <tr>
  8294. <td>» poker</td>
  8295. <td>body</td>
  8296. <td>object</td>
  8297. <td>false</td>
  8298. <td>the poker object</td>
  8299. </tr>
  8300. <tr>
  8301. <td>» labelIds</td>
  8302. <td>body</td>
  8303. <td>string</td>
  8304. <td>false</td>
  8305. <td>the new list of label IDs attached to the card</td>
  8306. </tr>
  8307. <tr>
  8308. <td>» requestedBy</td>
  8309. <td>body</td>
  8310. <td>string</td>
  8311. <td>false</td>
  8312. <td>the new requestedBy field of the card</td>
  8313. </tr>
  8314. <tr>
  8315. <td>» assignedBy</td>
  8316. <td>body</td>
  8317. <td>string</td>
  8318. <td>false</td>
  8319. <td>the new assignedBy field of the card</td>
  8320. </tr>
  8321. <tr>
  8322. <td>» receivedAt</td>
  8323. <td>body</td>
  8324. <td>string</td>
  8325. <td>false</td>
  8326. <td>the new receivedAt field of the card</td>
  8327. </tr>
  8328. <tr>
  8329. <td>» startAt</td>
  8330. <td>body</td>
  8331. <td>string</td>
  8332. <td>false</td>
  8333. <td>the new startAt field of the card</td>
  8334. </tr>
  8335. <tr>
  8336. <td>» dueAt</td>
  8337. <td>body</td>
  8338. <td>string</td>
  8339. <td>false</td>
  8340. <td>the new dueAt field of the card</td>
  8341. </tr>
  8342. <tr>
  8343. <td>» endAt</td>
  8344. <td>body</td>
  8345. <td>string</td>
  8346. <td>false</td>
  8347. <td>the new endAt field of the card</td>
  8348. </tr>
  8349. <tr>
  8350. <td>» spentTime</td>
  8351. <td>body</td>
  8352. <td>string</td>
  8353. <td>false</td>
  8354. <td>the new spentTime field of the card</td>
  8355. </tr>
  8356. <tr>
  8357. <td>» isOverTime</td>
  8358. <td>body</td>
  8359. <td>boolean</td>
  8360. <td>false</td>
  8361. <td>the new isOverTime field of the card</td>
  8362. </tr>
  8363. <tr>
  8364. <td>» customFields</td>
  8365. <td>body</td>
  8366. <td>string</td>
  8367. <td>false</td>
  8368. <td>the new customFields value of the card</td>
  8369. </tr>
  8370. <tr>
  8371. <td>» members</td>
  8372. <td>body</td>
  8373. <td>string</td>
  8374. <td>false</td>
  8375. <td>the new list of member IDs attached to the card</td>
  8376. </tr>
  8377. <tr>
  8378. <td>» assignees</td>
  8379. <td>body</td>
  8380. <td>string</td>
  8381. <td>false</td>
  8382. <td>the array of maximum one ID of assignee attached to the card</td>
  8383. </tr>
  8384. <tr>
  8385. <td>» swimlaneId</td>
  8386. <td>body</td>
  8387. <td>string</td>
  8388. <td>false</td>
  8389. <td>the new swimlane ID of the card</td>
  8390. </tr>
  8391. <tr>
  8392. <td>» listId</td>
  8393. <td>body</td>
  8394. <td>string</td>
  8395. <td>false</td>
  8396. <td>the new list ID of the card (move operation)</td>
  8397. </tr>
  8398. <tr>
  8399. <td>» authorId</td>
  8400. <td>body</td>
  8401. <td>string</td>
  8402. <td>false</td>
  8403. <td>change the owner of the card</td>
  8404. </tr>
  8405. </tbody>
  8406. </table>
  8407. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8408. <p><strong>board</strong>: the board ID of the card</p>
  8409. <p><strong>list</strong>: the list ID of the card</p>
  8410. <p><strong>card</strong>: the ID of the card</p>
  8411. <blockquote>
  8412. <p>Example responses</p>
  8413. </blockquote>
  8414. <blockquote>
  8415. <p>200 Response</p>
  8416. </blockquote>
  8417. <pre class="highlight tab tab-json"><code>{
  8418. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8419. }
  8420. </code></pre>
  8421. <h3 id="edit_card-responses">Responses</h3>
  8422. <table>
  8423. <thead>
  8424. <tr>
  8425. <th>Status</th>
  8426. <th>Meaning</th>
  8427. <th>Description</th>
  8428. <th>Schema</th>
  8429. </tr>
  8430. </thead>
  8431. <tbody>
  8432. <tr>
  8433. <td>200</td>
  8434. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8435. <td>200 response</td>
  8436. <td>Inline</td>
  8437. </tr>
  8438. </tbody>
  8439. </table>
  8440. <h3 id="edit_card-responseschema">Response Schema</h3>
  8441. <p>Status Code <strong>200</strong></p>
  8442. <table>
  8443. <thead>
  8444. <tr>
  8445. <th>Name</th>
  8446. <th>Type</th>
  8447. <th>Required</th>
  8448. <th>Restrictions</th>
  8449. <th>Description</th>
  8450. </tr>
  8451. </thead>
  8452. <tbody>
  8453. <tr>
  8454. <td>» _id</td>
  8455. <td>string</td>
  8456. <td>false</td>
  8457. <td>none</td>
  8458. <td>none</td>
  8459. </tr>
  8460. </tbody>
  8461. </table>
  8462. <aside class="warning">
  8463. To perform this operation, you must be authenticated by means of one of the following methods:
  8464. UserSecurity
  8465. </aside>
  8466. <h2 id="delete_card">delete_card</h2>
  8467. <p><a id="opIddelete_card"></a></p>
  8468. <blockquote>
  8469. <p>Code samples</p>
  8470. </blockquote>
  8471. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8472. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8473. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8474. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8475. </code></pre>
  8476. <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>
  8477. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8478. </span></code></pre>
  8479. <pre class="highlight tab tab-javascript"><code>
  8480. <span class="hljs-keyword">const</span> headers = {
  8481. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8482. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8483. };
  8484. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8485. {
  8486. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8487. <span class="hljs-attr">headers</span>: headers
  8488. })
  8489. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8490. <span class="hljs-keyword">return</span> res.json();
  8491. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8492. <span class="hljs-built_in">console</span>.log(body);
  8493. });
  8494. </code></pre>
  8495. <pre class="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>);
  8496. <span class="hljs-keyword">const</span> headers = {
  8497. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8498. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8499. };
  8500. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8501. {
  8502. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8503. <span class="hljs-attr">headers</span>: headers
  8504. })
  8505. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8506. <span class="hljs-keyword">return</span> res.json();
  8507. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8508. <span class="hljs-built_in">console</span>.log(body);
  8509. });
  8510. </code></pre>
  8511. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8512. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8513. headers = {
  8514. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8515. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8516. }
  8517. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8518. <span class="hljs-symbol">params:</span> {
  8519. }, <span class="hljs-symbol">headers:</span> headers
  8520. p JSON.parse(result)
  8521. </code></pre>
  8522. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8523. headers = {
  8524. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8525. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8526. }
  8527. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8528. <span class="hljs-built_in">print</span>(r.json())
  8529. </code></pre>
  8530. <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>);
  8531. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8532. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8533. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8534. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8535. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8536. String inputLine;
  8537. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8538. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8539. response.append(inputLine);
  8540. }
  8541. in.close();
  8542. System.out.println(response.toString());
  8543. </code></pre>
  8544. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8545. <span class="hljs-keyword">import</span> (
  8546. <span class="hljs-string">&quot;bytes&quot;</span>
  8547. <span class="hljs-string">&quot;net/http&quot;</span>
  8548. )
  8549. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8550. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8551. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8552. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8553. }
  8554. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8555. 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)
  8556. req.Header = headers
  8557. client := &amp;http.Client{}
  8558. resp, err := client.Do(req)
  8559. <span class="hljs-comment">// ...</span>
  8560. }
  8561. </code></pre>
  8562. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8563. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8564. );
  8565. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8566. <span class="hljs-comment">// Define array of request body.</span>
  8567. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8568. <span class="hljs-keyword">try</span> {
  8569. <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>(
  8570. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8571. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8572. )
  8573. );
  8574. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8575. }
  8576. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8577. <span class="hljs-comment">// handle exception or api errors.</span>
  8578. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8579. }
  8580. <span class="hljs-comment">// ...</span>
  8581. </code></pre>
  8582. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8583. <p><em>Delete a card from a board</em></p>
  8584. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8585. is not put in the recycle bin.</p>
  8586. <h3 id="delete_card-parameters">Parameters</h3>
  8587. <table>
  8588. <thead>
  8589. <tr>
  8590. <th>Name</th>
  8591. <th>In</th>
  8592. <th>Type</th>
  8593. <th>Required</th>
  8594. <th>Description</th>
  8595. </tr>
  8596. </thead>
  8597. <tbody>
  8598. <tr>
  8599. <td>board</td>
  8600. <td>path</td>
  8601. <td>string</td>
  8602. <td>true</td>
  8603. <td>the board ID of the card</td>
  8604. </tr>
  8605. <tr>
  8606. <td>list</td>
  8607. <td>path</td>
  8608. <td>string</td>
  8609. <td>true</td>
  8610. <td>the list ID of the card</td>
  8611. </tr>
  8612. <tr>
  8613. <td>card</td>
  8614. <td>path</td>
  8615. <td>string</td>
  8616. <td>true</td>
  8617. <td>the ID of the card</td>
  8618. </tr>
  8619. </tbody>
  8620. </table>
  8621. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8622. <p><strong>board</strong>: the board ID of the card</p>
  8623. <p><strong>list</strong>: the list ID of the card</p>
  8624. <p><strong>card</strong>: the ID of the card</p>
  8625. <blockquote>
  8626. <p>Example responses</p>
  8627. </blockquote>
  8628. <blockquote>
  8629. <p>200 Response</p>
  8630. </blockquote>
  8631. <pre class="highlight tab tab-json"><code>{
  8632. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8633. }
  8634. </code></pre>
  8635. <h3 id="delete_card-responses">Responses</h3>
  8636. <table>
  8637. <thead>
  8638. <tr>
  8639. <th>Status</th>
  8640. <th>Meaning</th>
  8641. <th>Description</th>
  8642. <th>Schema</th>
  8643. </tr>
  8644. </thead>
  8645. <tbody>
  8646. <tr>
  8647. <td>200</td>
  8648. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8649. <td>200 response</td>
  8650. <td>Inline</td>
  8651. </tr>
  8652. </tbody>
  8653. </table>
  8654. <h3 id="delete_card-responseschema">Response Schema</h3>
  8655. <p>Status Code <strong>200</strong></p>
  8656. <table>
  8657. <thead>
  8658. <tr>
  8659. <th>Name</th>
  8660. <th>Type</th>
  8661. <th>Required</th>
  8662. <th>Restrictions</th>
  8663. <th>Description</th>
  8664. </tr>
  8665. </thead>
  8666. <tbody>
  8667. <tr>
  8668. <td>» _id</td>
  8669. <td>string</td>
  8670. <td>false</td>
  8671. <td>none</td>
  8672. <td>none</td>
  8673. </tr>
  8674. </tbody>
  8675. </table>
  8676. <aside class="warning">
  8677. To perform this operation, you must be authenticated by means of one of the following methods:
  8678. UserSecurity
  8679. </aside>
  8680. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  8681. <p><a id="opIdget_swimlane_cards"></a></p>
  8682. <blockquote>
  8683. <p>Code samples</p>
  8684. </blockquote>
  8685. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8686. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  8687. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8688. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8689. </code></pre>
  8690. <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>
  8691. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8692. </span></code></pre>
  8693. <pre class="highlight tab tab-javascript"><code>
  8694. <span class="hljs-keyword">const</span> headers = {
  8695. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8696. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8697. };
  8698. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8699. {
  8700. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8701. <span class="hljs-attr">headers</span>: headers
  8702. })
  8703. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8704. <span class="hljs-keyword">return</span> res.json();
  8705. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8706. <span class="hljs-built_in">console</span>.log(body);
  8707. });
  8708. </code></pre>
  8709. <pre class="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>);
  8710. <span class="hljs-keyword">const</span> headers = {
  8711. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8712. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8713. };
  8714. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8715. {
  8716. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8717. <span class="hljs-attr">headers</span>: headers
  8718. })
  8719. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8720. <span class="hljs-keyword">return</span> res.json();
  8721. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8722. <span class="hljs-built_in">console</span>.log(body);
  8723. });
  8724. </code></pre>
  8725. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8726. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8727. headers = {
  8728. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8729. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8730. }
  8731. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8732. <span class="hljs-symbol">params:</span> {
  8733. }, <span class="hljs-symbol">headers:</span> headers
  8734. p JSON.parse(result)
  8735. </code></pre>
  8736. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8737. headers = {
  8738. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8739. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8740. }
  8741. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  8742. <span class="hljs-built_in">print</span>(r.json())
  8743. </code></pre>
  8744. <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>);
  8745. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8746. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8747. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8748. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8749. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8750. String inputLine;
  8751. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8752. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8753. response.append(inputLine);
  8754. }
  8755. in.close();
  8756. System.out.println(response.toString());
  8757. </code></pre>
  8758. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8759. <span class="hljs-keyword">import</span> (
  8760. <span class="hljs-string">&quot;bytes&quot;</span>
  8761. <span class="hljs-string">&quot;net/http&quot;</span>
  8762. )
  8763. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8764. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8765. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8766. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8767. }
  8768. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8769. 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)
  8770. req.Header = headers
  8771. client := &amp;http.Client{}
  8772. resp, err := client.Do(req)
  8773. <span class="hljs-comment">// ...</span>
  8774. }
  8775. </code></pre>
  8776. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8777. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8778. );
  8779. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8780. <span class="hljs-comment">// Define array of request body.</span>
  8781. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8782. <span class="hljs-keyword">try</span> {
  8783. <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>(
  8784. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8785. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8786. )
  8787. );
  8788. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8789. }
  8790. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8791. <span class="hljs-comment">// handle exception or api errors.</span>
  8792. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8793. }
  8794. <span class="hljs-comment">// ...</span>
  8795. </code></pre>
  8796. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  8797. <p><em>get all cards attached to a swimlane</em></p>
  8798. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  8799. <table>
  8800. <thead>
  8801. <tr>
  8802. <th>Name</th>
  8803. <th>In</th>
  8804. <th>Type</th>
  8805. <th>Required</th>
  8806. <th>Description</th>
  8807. </tr>
  8808. </thead>
  8809. <tbody>
  8810. <tr>
  8811. <td>board</td>
  8812. <td>path</td>
  8813. <td>string</td>
  8814. <td>true</td>
  8815. <td>the board ID</td>
  8816. </tr>
  8817. <tr>
  8818. <td>swimlane</td>
  8819. <td>path</td>
  8820. <td>string</td>
  8821. <td>true</td>
  8822. <td>the swimlane ID</td>
  8823. </tr>
  8824. </tbody>
  8825. </table>
  8826. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8827. <p><strong>board</strong>: the board ID</p>
  8828. <p><strong>swimlane</strong>: the swimlane ID</p>
  8829. <blockquote>
  8830. <p>Example responses</p>
  8831. </blockquote>
  8832. <blockquote>
  8833. <p>200 Response</p>
  8834. </blockquote>
  8835. <pre class="highlight tab tab-json"><code>[
  8836. {
  8837. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8838. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8839. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8840. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8841. }
  8842. ]
  8843. </code></pre>
  8844. <h3 id="get_swimlane_cards-responses">Responses</h3>
  8845. <table>
  8846. <thead>
  8847. <tr>
  8848. <th>Status</th>
  8849. <th>Meaning</th>
  8850. <th>Description</th>
  8851. <th>Schema</th>
  8852. </tr>
  8853. </thead>
  8854. <tbody>
  8855. <tr>
  8856. <td>200</td>
  8857. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8858. <td>200 response</td>
  8859. <td>Inline</td>
  8860. </tr>
  8861. </tbody>
  8862. </table>
  8863. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  8864. <p>Status Code <strong>200</strong></p>
  8865. <table>
  8866. <thead>
  8867. <tr>
  8868. <th>Name</th>
  8869. <th>Type</th>
  8870. <th>Required</th>
  8871. <th>Restrictions</th>
  8872. <th>Description</th>
  8873. </tr>
  8874. </thead>
  8875. <tbody>
  8876. <tr>
  8877. <td>» _id</td>
  8878. <td>string</td>
  8879. <td>false</td>
  8880. <td>none</td>
  8881. <td>none</td>
  8882. </tr>
  8883. <tr>
  8884. <td>» title</td>
  8885. <td>string</td>
  8886. <td>false</td>
  8887. <td>none</td>
  8888. <td>none</td>
  8889. </tr>
  8890. <tr>
  8891. <td>» description</td>
  8892. <td>string</td>
  8893. <td>false</td>
  8894. <td>none</td>
  8895. <td>none</td>
  8896. </tr>
  8897. <tr>
  8898. <td>» listId</td>
  8899. <td>string</td>
  8900. <td>false</td>
  8901. <td>none</td>
  8902. <td>none</td>
  8903. </tr>
  8904. </tbody>
  8905. </table>
  8906. <aside class="warning">
  8907. To perform this operation, you must be authenticated by means of one of the following methods:
  8908. UserSecurity
  8909. </aside>
  8910. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  8911. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  8912. <p><a id="opIdget_all_custom_fields"></a></p>
  8913. <blockquote>
  8914. <p>Code samples</p>
  8915. </blockquote>
  8916. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8917. curl -X GET /api/boards/{board}/custom-fields \
  8918. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8919. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8920. </code></pre>
  8921. <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>
  8922. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8923. </span></code></pre>
  8924. <pre class="highlight tab tab-javascript"><code>
  8925. <span class="hljs-keyword">const</span> headers = {
  8926. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8927. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8928. };
  8929. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8930. {
  8931. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8932. <span class="hljs-attr">headers</span>: headers
  8933. })
  8934. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8935. <span class="hljs-keyword">return</span> res.json();
  8936. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8937. <span class="hljs-built_in">console</span>.log(body);
  8938. });
  8939. </code></pre>
  8940. <pre class="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>);
  8941. <span class="hljs-keyword">const</span> headers = {
  8942. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8943. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8944. };
  8945. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8946. {
  8947. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8948. <span class="hljs-attr">headers</span>: headers
  8949. })
  8950. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8951. <span class="hljs-keyword">return</span> res.json();
  8952. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8953. <span class="hljs-built_in">console</span>.log(body);
  8954. });
  8955. </code></pre>
  8956. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8957. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8958. headers = {
  8959. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8960. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8961. }
  8962. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8963. <span class="hljs-symbol">params:</span> {
  8964. }, <span class="hljs-symbol">headers:</span> headers
  8965. p JSON.parse(result)
  8966. </code></pre>
  8967. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8968. headers = {
  8969. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8970. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8971. }
  8972. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  8973. <span class="hljs-built_in">print</span>(r.json())
  8974. </code></pre>
  8975. <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>);
  8976. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8977. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8978. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8979. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8980. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8981. String inputLine;
  8982. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8983. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8984. response.append(inputLine);
  8985. }
  8986. in.close();
  8987. System.out.println(response.toString());
  8988. </code></pre>
  8989. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8990. <span class="hljs-keyword">import</span> (
  8991. <span class="hljs-string">&quot;bytes&quot;</span>
  8992. <span class="hljs-string">&quot;net/http&quot;</span>
  8993. )
  8994. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8995. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8996. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8997. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8998. }
  8999. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9000. 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)
  9001. req.Header = headers
  9002. client := &amp;http.Client{}
  9003. resp, err := client.Do(req)
  9004. <span class="hljs-comment">// ...</span>
  9005. }
  9006. </code></pre>
  9007. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9008. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9009. );
  9010. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9011. <span class="hljs-comment">// Define array of request body.</span>
  9012. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9013. <span class="hljs-keyword">try</span> {
  9014. <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>(
  9015. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9016. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9017. )
  9018. );
  9019. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9020. }
  9021. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9022. <span class="hljs-comment">// handle exception or api errors.</span>
  9023. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9024. }
  9025. <span class="hljs-comment">// ...</span>
  9026. </code></pre>
  9027. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9028. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9029. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9030. <table>
  9031. <thead>
  9032. <tr>
  9033. <th>Name</th>
  9034. <th>In</th>
  9035. <th>Type</th>
  9036. <th>Required</th>
  9037. <th>Description</th>
  9038. </tr>
  9039. </thead>
  9040. <tbody>
  9041. <tr>
  9042. <td>board</td>
  9043. <td>path</td>
  9044. <td>string</td>
  9045. <td>true</td>
  9046. <td>the board value</td>
  9047. </tr>
  9048. </tbody>
  9049. </table>
  9050. <blockquote>
  9051. <p>Example responses</p>
  9052. </blockquote>
  9053. <blockquote>
  9054. <p>200 Response</p>
  9055. </blockquote>
  9056. <pre class="highlight tab tab-json"><code>[
  9057. {
  9058. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9059. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9060. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9061. }
  9062. ]
  9063. </code></pre>
  9064. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9065. <table>
  9066. <thead>
  9067. <tr>
  9068. <th>Status</th>
  9069. <th>Meaning</th>
  9070. <th>Description</th>
  9071. <th>Schema</th>
  9072. </tr>
  9073. </thead>
  9074. <tbody>
  9075. <tr>
  9076. <td>200</td>
  9077. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9078. <td>200 response</td>
  9079. <td>Inline</td>
  9080. </tr>
  9081. </tbody>
  9082. </table>
  9083. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9084. <p>Status Code <strong>200</strong></p>
  9085. <table>
  9086. <thead>
  9087. <tr>
  9088. <th>Name</th>
  9089. <th>Type</th>
  9090. <th>Required</th>
  9091. <th>Restrictions</th>
  9092. <th>Description</th>
  9093. </tr>
  9094. </thead>
  9095. <tbody>
  9096. <tr>
  9097. <td>» _id</td>
  9098. <td>string</td>
  9099. <td>false</td>
  9100. <td>none</td>
  9101. <td>none</td>
  9102. </tr>
  9103. <tr>
  9104. <td>» name</td>
  9105. <td>string</td>
  9106. <td>false</td>
  9107. <td>none</td>
  9108. <td>none</td>
  9109. </tr>
  9110. <tr>
  9111. <td>» type</td>
  9112. <td>string</td>
  9113. <td>false</td>
  9114. <td>none</td>
  9115. <td>none</td>
  9116. </tr>
  9117. </tbody>
  9118. </table>
  9119. <aside class="warning">
  9120. To perform this operation, you must be authenticated by means of one of the following methods:
  9121. UserSecurity
  9122. </aside>
  9123. <h2 id="new_custom_field">new_custom_field</h2>
  9124. <p><a id="opIdnew_custom_field"></a></p>
  9125. <blockquote>
  9126. <p>Code samples</p>
  9127. </blockquote>
  9128. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9129. curl -X POST /api/boards/{board}/custom-fields \
  9130. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9131. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9132. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9133. </code></pre>
  9134. <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>
  9135. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9136. Accept: application/json
  9137. </span></code></pre>
  9138. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9139. &quot;name&quot;: &quot;string&quot;,
  9140. &quot;type&quot;: &quot;string&quot;,
  9141. &quot;settings&quot;: &quot;string&quot;,
  9142. &quot;showOnCard&quot;: true,
  9143. &quot;automaticallyOnCard&quot;: true,
  9144. &quot;showLabelOnMiniCard&quot;: true,
  9145. &quot;showSumAtTopOfList&quot;: true,
  9146. &quot;authorId&quot;: &quot;string&quot;
  9147. }&#x27;</span>;
  9148. <span class="hljs-keyword">const</span> headers = {
  9149. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9150. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9151. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9152. };
  9153. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9154. {
  9155. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9156. <span class="hljs-attr">body</span>: inputBody,
  9157. <span class="hljs-attr">headers</span>: headers
  9158. })
  9159. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9160. <span class="hljs-keyword">return</span> res.json();
  9161. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9162. <span class="hljs-built_in">console</span>.log(body);
  9163. });
  9164. </code></pre>
  9165. <pre class="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>);
  9166. <span class="hljs-keyword">const</span> inputBody = {
  9167. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9168. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9169. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9170. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9171. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9172. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9173. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  9174. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9175. };
  9176. <span class="hljs-keyword">const</span> headers = {
  9177. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9178. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9179. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9180. };
  9181. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9182. {
  9183. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9184. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9185. <span class="hljs-attr">headers</span>: headers
  9186. })
  9187. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9188. <span class="hljs-keyword">return</span> res.json();
  9189. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9190. <span class="hljs-built_in">console</span>.log(body);
  9191. });
  9192. </code></pre>
  9193. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9194. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9195. headers = {
  9196. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9197. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9198. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9199. }
  9200. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9201. <span class="hljs-symbol">params:</span> {
  9202. }, <span class="hljs-symbol">headers:</span> headers
  9203. p JSON.parse(result)
  9204. </code></pre>
  9205. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9206. headers = {
  9207. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9208. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9209. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9210. }
  9211. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9212. <span class="hljs-built_in">print</span>(r.json())
  9213. </code></pre>
  9214. <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>);
  9215. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9216. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9217. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9218. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9219. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9220. String inputLine;
  9221. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9222. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9223. response.append(inputLine);
  9224. }
  9225. in.close();
  9226. System.out.println(response.toString());
  9227. </code></pre>
  9228. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9229. <span class="hljs-keyword">import</span> (
  9230. <span class="hljs-string">&quot;bytes&quot;</span>
  9231. <span class="hljs-string">&quot;net/http&quot;</span>
  9232. )
  9233. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9234. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9235. <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>},
  9236. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9237. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9238. }
  9239. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9240. 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)
  9241. req.Header = headers
  9242. client := &amp;http.Client{}
  9243. resp, err := client.Do(req)
  9244. <span class="hljs-comment">// ...</span>
  9245. }
  9246. </code></pre>
  9247. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9248. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9249. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9250. );
  9251. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9252. <span class="hljs-comment">// Define array of request body.</span>
  9253. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9254. <span class="hljs-keyword">try</span> {
  9255. <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>(
  9256. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9257. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9258. )
  9259. );
  9260. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9261. }
  9262. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9263. <span class="hljs-comment">// handle exception or api errors.</span>
  9264. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9265. }
  9266. <span class="hljs-comment">// ...</span>
  9267. </code></pre>
  9268. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9269. <p><em>Create a Custom Field</em></p>
  9270. <blockquote>
  9271. <p>Body parameter</p>
  9272. </blockquote>
  9273. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9274. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9275. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9276. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9277. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9278. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9279. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9280. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9281. </code></pre>
  9282. <h3 id="new_custom_field-parameters">Parameters</h3>
  9283. <table>
  9284. <thead>
  9285. <tr>
  9286. <th>Name</th>
  9287. <th>In</th>
  9288. <th>Type</th>
  9289. <th>Required</th>
  9290. <th>Description</th>
  9291. </tr>
  9292. </thead>
  9293. <tbody>
  9294. <tr>
  9295. <td>board</td>
  9296. <td>path</td>
  9297. <td>string</td>
  9298. <td>true</td>
  9299. <td>the board value</td>
  9300. </tr>
  9301. <tr>
  9302. <td>body</td>
  9303. <td>body</td>
  9304. <td>object</td>
  9305. <td>true</td>
  9306. <td>none</td>
  9307. </tr>
  9308. <tr>
  9309. <td>» name</td>
  9310. <td>body</td>
  9311. <td>string</td>
  9312. <td>true</td>
  9313. <td>the name of the custom field</td>
  9314. </tr>
  9315. <tr>
  9316. <td>» type</td>
  9317. <td>body</td>
  9318. <td>string</td>
  9319. <td>true</td>
  9320. <td>the type of the custom field</td>
  9321. </tr>
  9322. <tr>
  9323. <td>» settings</td>
  9324. <td>body</td>
  9325. <td>string</td>
  9326. <td>true</td>
  9327. <td>the settings object of the custom field</td>
  9328. </tr>
  9329. <tr>
  9330. <td>» showOnCard</td>
  9331. <td>body</td>
  9332. <td>boolean</td>
  9333. <td>true</td>
  9334. <td>should we show the custom field on cards?</td>
  9335. </tr>
  9336. <tr>
  9337. <td>» automaticallyOnCard</td>
  9338. <td>body</td>
  9339. <td>boolean</td>
  9340. <td>true</td>
  9341. <td>should the custom fields automatically be added on cards?</td>
  9342. </tr>
  9343. <tr>
  9344. <td>» showLabelOnMiniCard</td>
  9345. <td>body</td>
  9346. <td>boolean</td>
  9347. <td>true</td>
  9348. <td>should the label of the custom field be shown on minicards?</td>
  9349. </tr>
  9350. <tr>
  9351. <td>» showSumAtTopOfList</td>
  9352. <td>body</td>
  9353. <td>boolean</td>
  9354. <td>true</td>
  9355. <td>should the sum of the custom fields be shown at top of list?</td>
  9356. </tr>
  9357. <tr>
  9358. <td>» authorId</td>
  9359. <td>body</td>
  9360. <td>string</td>
  9361. <td>true</td>
  9362. <td>the authorId value</td>
  9363. </tr>
  9364. </tbody>
  9365. </table>
  9366. <blockquote>
  9367. <p>Example responses</p>
  9368. </blockquote>
  9369. <blockquote>
  9370. <p>200 Response</p>
  9371. </blockquote>
  9372. <pre class="highlight tab tab-json"><code>{
  9373. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9374. }
  9375. </code></pre>
  9376. <h3 id="new_custom_field-responses">Responses</h3>
  9377. <table>
  9378. <thead>
  9379. <tr>
  9380. <th>Status</th>
  9381. <th>Meaning</th>
  9382. <th>Description</th>
  9383. <th>Schema</th>
  9384. </tr>
  9385. </thead>
  9386. <tbody>
  9387. <tr>
  9388. <td>200</td>
  9389. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9390. <td>200 response</td>
  9391. <td>Inline</td>
  9392. </tr>
  9393. </tbody>
  9394. </table>
  9395. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9396. <p>Status Code <strong>200</strong></p>
  9397. <table>
  9398. <thead>
  9399. <tr>
  9400. <th>Name</th>
  9401. <th>Type</th>
  9402. <th>Required</th>
  9403. <th>Restrictions</th>
  9404. <th>Description</th>
  9405. </tr>
  9406. </thead>
  9407. <tbody>
  9408. <tr>
  9409. <td>» _id</td>
  9410. <td>string</td>
  9411. <td>false</td>
  9412. <td>none</td>
  9413. <td>none</td>
  9414. </tr>
  9415. </tbody>
  9416. </table>
  9417. <aside class="warning">
  9418. To perform this operation, you must be authenticated by means of one of the following methods:
  9419. UserSecurity
  9420. </aside>
  9421. <h2 id="get_custom_field">get_custom_field</h2>
  9422. <p><a id="opIdget_custom_field"></a></p>
  9423. <blockquote>
  9424. <p>Code samples</p>
  9425. </blockquote>
  9426. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9427. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9428. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9429. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9430. </code></pre>
  9431. <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>
  9432. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9433. </span></code></pre>
  9434. <pre class="highlight tab tab-javascript"><code>
  9435. <span class="hljs-keyword">const</span> headers = {
  9436. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9437. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9438. };
  9439. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9440. {
  9441. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9442. <span class="hljs-attr">headers</span>: headers
  9443. })
  9444. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9445. <span class="hljs-keyword">return</span> res.json();
  9446. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9447. <span class="hljs-built_in">console</span>.log(body);
  9448. });
  9449. </code></pre>
  9450. <pre class="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>);
  9451. <span class="hljs-keyword">const</span> headers = {
  9452. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9453. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9454. };
  9455. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9456. {
  9457. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9458. <span class="hljs-attr">headers</span>: headers
  9459. })
  9460. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9461. <span class="hljs-keyword">return</span> res.json();
  9462. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9463. <span class="hljs-built_in">console</span>.log(body);
  9464. });
  9465. </code></pre>
  9466. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9467. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9468. headers = {
  9469. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9470. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9471. }
  9472. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9473. <span class="hljs-symbol">params:</span> {
  9474. }, <span class="hljs-symbol">headers:</span> headers
  9475. p JSON.parse(result)
  9476. </code></pre>
  9477. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9478. headers = {
  9479. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9480. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9481. }
  9482. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9483. <span class="hljs-built_in">print</span>(r.json())
  9484. </code></pre>
  9485. <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>);
  9486. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9487. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9488. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9489. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9490. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9491. String inputLine;
  9492. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9493. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9494. response.append(inputLine);
  9495. }
  9496. in.close();
  9497. System.out.println(response.toString());
  9498. </code></pre>
  9499. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9500. <span class="hljs-keyword">import</span> (
  9501. <span class="hljs-string">&quot;bytes&quot;</span>
  9502. <span class="hljs-string">&quot;net/http&quot;</span>
  9503. )
  9504. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9505. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9506. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9507. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9508. }
  9509. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9510. 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)
  9511. req.Header = headers
  9512. client := &amp;http.Client{}
  9513. resp, err := client.Do(req)
  9514. <span class="hljs-comment">// ...</span>
  9515. }
  9516. </code></pre>
  9517. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9518. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9519. );
  9520. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9521. <span class="hljs-comment">// Define array of request body.</span>
  9522. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9523. <span class="hljs-keyword">try</span> {
  9524. <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>(
  9525. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9526. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9527. )
  9528. );
  9529. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9530. }
  9531. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9532. <span class="hljs-comment">// handle exception or api errors.</span>
  9533. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9534. }
  9535. <span class="hljs-comment">// ...</span>
  9536. </code></pre>
  9537. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9538. <p><em>Get a Custom Fields attached to a board</em></p>
  9539. <h3 id="get_custom_field-parameters">Parameters</h3>
  9540. <table>
  9541. <thead>
  9542. <tr>
  9543. <th>Name</th>
  9544. <th>In</th>
  9545. <th>Type</th>
  9546. <th>Required</th>
  9547. <th>Description</th>
  9548. </tr>
  9549. </thead>
  9550. <tbody>
  9551. <tr>
  9552. <td>board</td>
  9553. <td>path</td>
  9554. <td>string</td>
  9555. <td>true</td>
  9556. <td>the board value</td>
  9557. </tr>
  9558. <tr>
  9559. <td>customField</td>
  9560. <td>path</td>
  9561. <td>string</td>
  9562. <td>true</td>
  9563. <td>the ID of the custom field</td>
  9564. </tr>
  9565. </tbody>
  9566. </table>
  9567. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9568. <p><strong>customField</strong>: the ID of the custom field</p>
  9569. <blockquote>
  9570. <p>Example responses</p>
  9571. </blockquote>
  9572. <blockquote>
  9573. <p>200 Response</p>
  9574. </blockquote>
  9575. <pre class="highlight tab tab-json"><code>[
  9576. {
  9577. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9578. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9579. }
  9580. ]
  9581. </code></pre>
  9582. <h3 id="get_custom_field-responses">Responses</h3>
  9583. <table>
  9584. <thead>
  9585. <tr>
  9586. <th>Status</th>
  9587. <th>Meaning</th>
  9588. <th>Description</th>
  9589. <th>Schema</th>
  9590. </tr>
  9591. </thead>
  9592. <tbody>
  9593. <tr>
  9594. <td>200</td>
  9595. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9596. <td>200 response</td>
  9597. <td>Inline</td>
  9598. </tr>
  9599. </tbody>
  9600. </table>
  9601. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  9602. <p>Status Code <strong>200</strong></p>
  9603. <table>
  9604. <thead>
  9605. <tr>
  9606. <th>Name</th>
  9607. <th>Type</th>
  9608. <th>Required</th>
  9609. <th>Restrictions</th>
  9610. <th>Description</th>
  9611. </tr>
  9612. </thead>
  9613. <tbody>
  9614. <tr>
  9615. <td>» _id</td>
  9616. <td>string</td>
  9617. <td>false</td>
  9618. <td>none</td>
  9619. <td>none</td>
  9620. </tr>
  9621. <tr>
  9622. <td>» boardIds</td>
  9623. <td>string</td>
  9624. <td>false</td>
  9625. <td>none</td>
  9626. <td>none</td>
  9627. </tr>
  9628. </tbody>
  9629. </table>
  9630. <aside class="warning">
  9631. To perform this operation, you must be authenticated by means of one of the following methods:
  9632. UserSecurity
  9633. </aside>
  9634. <h2 id="edit_custom_field">edit_custom_field</h2>
  9635. <p><a id="opIdedit_custom_field"></a></p>
  9636. <blockquote>
  9637. <p>Code samples</p>
  9638. </blockquote>
  9639. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9640. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  9641. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9642. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9643. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9644. </code></pre>
  9645. <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>
  9646. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9647. Accept: application/json
  9648. </span></code></pre>
  9649. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9650. &quot;name&quot;: &quot;string&quot;,
  9651. &quot;type&quot;: &quot;string&quot;,
  9652. &quot;settings&quot;: &quot;string&quot;,
  9653. &quot;showOnCard&quot;: true,
  9654. &quot;automaticallyOnCard&quot;: true,
  9655. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  9656. &quot;showLabelOnMiniCard&quot;: true,
  9657. &quot;showSumAtTopOfList&quot;: true
  9658. }&#x27;</span>;
  9659. <span class="hljs-keyword">const</span> headers = {
  9660. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9661. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9662. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9663. };
  9664. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9665. {
  9666. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9667. <span class="hljs-attr">body</span>: inputBody,
  9668. <span class="hljs-attr">headers</span>: headers
  9669. })
  9670. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9671. <span class="hljs-keyword">return</span> res.json();
  9672. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9673. <span class="hljs-built_in">console</span>.log(body);
  9674. });
  9675. </code></pre>
  9676. <pre class="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>);
  9677. <span class="hljs-keyword">const</span> inputBody = {
  9678. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9679. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9680. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9681. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9682. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9683. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9684. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9685. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  9686. };
  9687. <span class="hljs-keyword">const</span> headers = {
  9688. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9689. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9690. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9691. };
  9692. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9693. {
  9694. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9695. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9696. <span class="hljs-attr">headers</span>: headers
  9697. })
  9698. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9699. <span class="hljs-keyword">return</span> res.json();
  9700. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9701. <span class="hljs-built_in">console</span>.log(body);
  9702. });
  9703. </code></pre>
  9704. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9705. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9706. headers = {
  9707. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9708. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9709. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9710. }
  9711. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9712. <span class="hljs-symbol">params:</span> {
  9713. }, <span class="hljs-symbol">headers:</span> headers
  9714. p JSON.parse(result)
  9715. </code></pre>
  9716. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9717. headers = {
  9718. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9719. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9720. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9721. }
  9722. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9723. <span class="hljs-built_in">print</span>(r.json())
  9724. </code></pre>
  9725. <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>);
  9726. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9727. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  9728. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9729. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9730. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9731. String inputLine;
  9732. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9733. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9734. response.append(inputLine);
  9735. }
  9736. in.close();
  9737. System.out.println(response.toString());
  9738. </code></pre>
  9739. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9740. <span class="hljs-keyword">import</span> (
  9741. <span class="hljs-string">&quot;bytes&quot;</span>
  9742. <span class="hljs-string">&quot;net/http&quot;</span>
  9743. )
  9744. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9745. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9746. <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>},
  9747. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9748. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9749. }
  9750. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9751. 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)
  9752. req.Header = headers
  9753. client := &amp;http.Client{}
  9754. resp, err := client.Do(req)
  9755. <span class="hljs-comment">// ...</span>
  9756. }
  9757. </code></pre>
  9758. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9759. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9760. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9761. );
  9762. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9763. <span class="hljs-comment">// Define array of request body.</span>
  9764. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9765. <span class="hljs-keyword">try</span> {
  9766. <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>(
  9767. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9768. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9769. )
  9770. );
  9771. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9772. }
  9773. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9774. <span class="hljs-comment">// handle exception or api errors.</span>
  9775. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9776. }
  9777. <span class="hljs-comment">// ...</span>
  9778. </code></pre>
  9779. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  9780. <p><em>Update a Custom Field</em></p>
  9781. <blockquote>
  9782. <p>Body parameter</p>
  9783. </blockquote>
  9784. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9785. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9786. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9787. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9788. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9789. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  9790. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9791. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9792. </code></pre>
  9793. <h3 id="edit_custom_field-parameters">Parameters</h3>
  9794. <table>
  9795. <thead>
  9796. <tr>
  9797. <th>Name</th>
  9798. <th>In</th>
  9799. <th>Type</th>
  9800. <th>Required</th>
  9801. <th>Description</th>
  9802. </tr>
  9803. </thead>
  9804. <tbody>
  9805. <tr>
  9806. <td>board</td>
  9807. <td>path</td>
  9808. <td>string</td>
  9809. <td>true</td>
  9810. <td>the board value</td>
  9811. </tr>
  9812. <tr>
  9813. <td>customField</td>
  9814. <td>path</td>
  9815. <td>string</td>
  9816. <td>true</td>
  9817. <td>the customField value</td>
  9818. </tr>
  9819. <tr>
  9820. <td>body</td>
  9821. <td>body</td>
  9822. <td>object</td>
  9823. <td>true</td>
  9824. <td>none</td>
  9825. </tr>
  9826. <tr>
  9827. <td>» name</td>
  9828. <td>body</td>
  9829. <td>string</td>
  9830. <td>true</td>
  9831. <td>the name of the custom field</td>
  9832. </tr>
  9833. <tr>
  9834. <td>» type</td>
  9835. <td>body</td>
  9836. <td>string</td>
  9837. <td>true</td>
  9838. <td>the type of the custom field</td>
  9839. </tr>
  9840. <tr>
  9841. <td>» settings</td>
  9842. <td>body</td>
  9843. <td>string</td>
  9844. <td>true</td>
  9845. <td>the settings object of the custom field</td>
  9846. </tr>
  9847. <tr>
  9848. <td>» showOnCard</td>
  9849. <td>body</td>
  9850. <td>boolean</td>
  9851. <td>true</td>
  9852. <td>should we show the custom field on cards</td>
  9853. </tr>
  9854. <tr>
  9855. <td>» automaticallyOnCard</td>
  9856. <td>body</td>
  9857. <td>boolean</td>
  9858. <td>true</td>
  9859. <td>should the custom fields automatically be added on cards</td>
  9860. </tr>
  9861. <tr>
  9862. <td>» alwaysOnCard</td>
  9863. <td>body</td>
  9864. <td>string</td>
  9865. <td>true</td>
  9866. <td>the alwaysOnCard value</td>
  9867. </tr>
  9868. <tr>
  9869. <td>» showLabelOnMiniCard</td>
  9870. <td>body</td>
  9871. <td>boolean</td>
  9872. <td>true</td>
  9873. <td>should the label of the custom field be shown on minicards</td>
  9874. </tr>
  9875. <tr>
  9876. <td>» showSumAtTopOfList</td>
  9877. <td>body</td>
  9878. <td>boolean</td>
  9879. <td>true</td>
  9880. <td>should the sum of the custom fields be shown at top of list</td>
  9881. </tr>
  9882. </tbody>
  9883. </table>
  9884. <blockquote>
  9885. <p>Example responses</p>
  9886. </blockquote>
  9887. <blockquote>
  9888. <p>200 Response</p>
  9889. </blockquote>
  9890. <pre class="highlight tab tab-json"><code>{
  9891. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9892. }
  9893. </code></pre>
  9894. <h3 id="edit_custom_field-responses">Responses</h3>
  9895. <table>
  9896. <thead>
  9897. <tr>
  9898. <th>Status</th>
  9899. <th>Meaning</th>
  9900. <th>Description</th>
  9901. <th>Schema</th>
  9902. </tr>
  9903. </thead>
  9904. <tbody>
  9905. <tr>
  9906. <td>200</td>
  9907. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9908. <td>200 response</td>
  9909. <td>Inline</td>
  9910. </tr>
  9911. </tbody>
  9912. </table>
  9913. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  9914. <p>Status Code <strong>200</strong></p>
  9915. <table>
  9916. <thead>
  9917. <tr>
  9918. <th>Name</th>
  9919. <th>Type</th>
  9920. <th>Required</th>
  9921. <th>Restrictions</th>
  9922. <th>Description</th>
  9923. </tr>
  9924. </thead>
  9925. <tbody>
  9926. <tr>
  9927. <td>» _id</td>
  9928. <td>string</td>
  9929. <td>false</td>
  9930. <td>none</td>
  9931. <td>none</td>
  9932. </tr>
  9933. </tbody>
  9934. </table>
  9935. <aside class="warning">
  9936. To perform this operation, you must be authenticated by means of one of the following methods:
  9937. UserSecurity
  9938. </aside>
  9939. <h2 id="delete_custom_field">delete_custom_field</h2>
  9940. <p><a id="opIddelete_custom_field"></a></p>
  9941. <blockquote>
  9942. <p>Code samples</p>
  9943. </blockquote>
  9944. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9945. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  9946. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9947. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9948. </code></pre>
  9949. <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>
  9950. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9951. </span></code></pre>
  9952. <pre class="highlight tab tab-javascript"><code>
  9953. <span class="hljs-keyword">const</span> headers = {
  9954. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9955. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9956. };
  9957. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9958. {
  9959. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9960. <span class="hljs-attr">headers</span>: headers
  9961. })
  9962. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9963. <span class="hljs-keyword">return</span> res.json();
  9964. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9965. <span class="hljs-built_in">console</span>.log(body);
  9966. });
  9967. </code></pre>
  9968. <pre class="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>);
  9969. <span class="hljs-keyword">const</span> headers = {
  9970. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9971. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9972. };
  9973. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9974. {
  9975. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9976. <span class="hljs-attr">headers</span>: headers
  9977. })
  9978. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9979. <span class="hljs-keyword">return</span> res.json();
  9980. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9981. <span class="hljs-built_in">console</span>.log(body);
  9982. });
  9983. </code></pre>
  9984. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9985. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9986. headers = {
  9987. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9988. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9989. }
  9990. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9991. <span class="hljs-symbol">params:</span> {
  9992. }, <span class="hljs-symbol">headers:</span> headers
  9993. p JSON.parse(result)
  9994. </code></pre>
  9995. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9996. headers = {
  9997. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9998. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9999. }
  10000. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10001. <span class="hljs-built_in">print</span>(r.json())
  10002. </code></pre>
  10003. <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>);
  10004. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10005. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10006. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10007. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10008. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10009. String inputLine;
  10010. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10011. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10012. response.append(inputLine);
  10013. }
  10014. in.close();
  10015. System.out.println(response.toString());
  10016. </code></pre>
  10017. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10018. <span class="hljs-keyword">import</span> (
  10019. <span class="hljs-string">&quot;bytes&quot;</span>
  10020. <span class="hljs-string">&quot;net/http&quot;</span>
  10021. )
  10022. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10023. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10024. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10025. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10026. }
  10027. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10028. 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)
  10029. req.Header = headers
  10030. client := &amp;http.Client{}
  10031. resp, err := client.Do(req)
  10032. <span class="hljs-comment">// ...</span>
  10033. }
  10034. </code></pre>
  10035. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10036. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10037. );
  10038. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10039. <span class="hljs-comment">// Define array of request body.</span>
  10040. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10041. <span class="hljs-keyword">try</span> {
  10042. <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>(
  10043. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10044. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10045. )
  10046. );
  10047. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10048. }
  10049. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10050. <span class="hljs-comment">// handle exception or api errors.</span>
  10051. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10052. }
  10053. <span class="hljs-comment">// ...</span>
  10054. </code></pre>
  10055. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10056. <p><em>Delete a Custom Fields attached to a board</em></p>
  10057. <p>The Custom Field can't be retrieved after this operation</p>
  10058. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10059. <table>
  10060. <thead>
  10061. <tr>
  10062. <th>Name</th>
  10063. <th>In</th>
  10064. <th>Type</th>
  10065. <th>Required</th>
  10066. <th>Description</th>
  10067. </tr>
  10068. </thead>
  10069. <tbody>
  10070. <tr>
  10071. <td>board</td>
  10072. <td>path</td>
  10073. <td>string</td>
  10074. <td>true</td>
  10075. <td>the board value</td>
  10076. </tr>
  10077. <tr>
  10078. <td>customField</td>
  10079. <td>path</td>
  10080. <td>string</td>
  10081. <td>true</td>
  10082. <td>the ID of the custom field</td>
  10083. </tr>
  10084. </tbody>
  10085. </table>
  10086. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  10087. <p><strong>customField</strong>: the ID of the custom field</p>
  10088. <blockquote>
  10089. <p>Example responses</p>
  10090. </blockquote>
  10091. <blockquote>
  10092. <p>200 Response</p>
  10093. </blockquote>
  10094. <pre class="highlight tab tab-json"><code>{
  10095. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10096. }
  10097. </code></pre>
  10098. <h3 id="delete_custom_field-responses">Responses</h3>
  10099. <table>
  10100. <thead>
  10101. <tr>
  10102. <th>Status</th>
  10103. <th>Meaning</th>
  10104. <th>Description</th>
  10105. <th>Schema</th>
  10106. </tr>
  10107. </thead>
  10108. <tbody>
  10109. <tr>
  10110. <td>200</td>
  10111. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10112. <td>200 response</td>
  10113. <td>Inline</td>
  10114. </tr>
  10115. </tbody>
  10116. </table>
  10117. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10118. <p>Status Code <strong>200</strong></p>
  10119. <table>
  10120. <thead>
  10121. <tr>
  10122. <th>Name</th>
  10123. <th>Type</th>
  10124. <th>Required</th>
  10125. <th>Restrictions</th>
  10126. <th>Description</th>
  10127. </tr>
  10128. </thead>
  10129. <tbody>
  10130. <tr>
  10131. <td>» _id</td>
  10132. <td>string</td>
  10133. <td>false</td>
  10134. <td>none</td>
  10135. <td>none</td>
  10136. </tr>
  10137. </tbody>
  10138. </table>
  10139. <aside class="warning">
  10140. To perform this operation, you must be authenticated by means of one of the following methods:
  10141. UserSecurity
  10142. </aside>
  10143. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10144. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10145. <blockquote>
  10146. <p>Code samples</p>
  10147. </blockquote>
  10148. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10149. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10150. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10151. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10152. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10153. </code></pre>
  10154. <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>
  10155. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10156. Accept: application/json
  10157. </span></code></pre>
  10158. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10159. &quot;items&quot;: &quot;string&quot;
  10160. }&#x27;</span>;
  10161. <span class="hljs-keyword">const</span> headers = {
  10162. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10163. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10164. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10165. };
  10166. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10167. {
  10168. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10169. <span class="hljs-attr">body</span>: inputBody,
  10170. <span class="hljs-attr">headers</span>: headers
  10171. })
  10172. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10173. <span class="hljs-keyword">return</span> res.json();
  10174. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10175. <span class="hljs-built_in">console</span>.log(body);
  10176. });
  10177. </code></pre>
  10178. <pre class="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>);
  10179. <span class="hljs-keyword">const</span> inputBody = {
  10180. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10181. };
  10182. <span class="hljs-keyword">const</span> headers = {
  10183. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10184. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10185. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10186. };
  10187. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10188. {
  10189. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10190. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10191. <span class="hljs-attr">headers</span>: headers
  10192. })
  10193. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10194. <span class="hljs-keyword">return</span> res.json();
  10195. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10196. <span class="hljs-built_in">console</span>.log(body);
  10197. });
  10198. </code></pre>
  10199. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10200. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10201. headers = {
  10202. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10203. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10204. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10205. }
  10206. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10207. <span class="hljs-symbol">params:</span> {
  10208. }, <span class="hljs-symbol">headers:</span> headers
  10209. p JSON.parse(result)
  10210. </code></pre>
  10211. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10212. headers = {
  10213. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10214. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10215. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10216. }
  10217. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10218. <span class="hljs-built_in">print</span>(r.json())
  10219. </code></pre>
  10220. <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>);
  10221. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10222. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10223. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10224. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10225. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10226. String inputLine;
  10227. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10228. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10229. response.append(inputLine);
  10230. }
  10231. in.close();
  10232. System.out.println(response.toString());
  10233. </code></pre>
  10234. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10235. <span class="hljs-keyword">import</span> (
  10236. <span class="hljs-string">&quot;bytes&quot;</span>
  10237. <span class="hljs-string">&quot;net/http&quot;</span>
  10238. )
  10239. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10240. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10241. <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>},
  10242. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10243. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10244. }
  10245. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10246. 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)
  10247. req.Header = headers
  10248. client := &amp;http.Client{}
  10249. resp, err := client.Do(req)
  10250. <span class="hljs-comment">// ...</span>
  10251. }
  10252. </code></pre>
  10253. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10254. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10255. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10256. );
  10257. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10258. <span class="hljs-comment">// Define array of request body.</span>
  10259. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10260. <span class="hljs-keyword">try</span> {
  10261. <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>(
  10262. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10263. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10264. )
  10265. );
  10266. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10267. }
  10268. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10269. <span class="hljs-comment">// handle exception or api errors.</span>
  10270. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10271. }
  10272. <span class="hljs-comment">// ...</span>
  10273. </code></pre>
  10274. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10275. <p><em>Update a Custom Field's dropdown items</em></p>
  10276. <blockquote>
  10277. <p>Body parameter</p>
  10278. </blockquote>
  10279. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10280. </code></pre>
  10281. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10282. <table>
  10283. <thead>
  10284. <tr>
  10285. <th>Name</th>
  10286. <th>In</th>
  10287. <th>Type</th>
  10288. <th>Required</th>
  10289. <th>Description</th>
  10290. </tr>
  10291. </thead>
  10292. <tbody>
  10293. <tr>
  10294. <td>board</td>
  10295. <td>path</td>
  10296. <td>string</td>
  10297. <td>true</td>
  10298. <td>the board value</td>
  10299. </tr>
  10300. <tr>
  10301. <td>customField</td>
  10302. <td>path</td>
  10303. <td>string</td>
  10304. <td>true</td>
  10305. <td>the customField value</td>
  10306. </tr>
  10307. <tr>
  10308. <td>body</td>
  10309. <td>body</td>
  10310. <td>object</td>
  10311. <td>false</td>
  10312. <td>none</td>
  10313. </tr>
  10314. <tr>
  10315. <td>» items</td>
  10316. <td>body</td>
  10317. <td>string</td>
  10318. <td>false</td>
  10319. <td>names of the custom field</td>
  10320. </tr>
  10321. </tbody>
  10322. </table>
  10323. <blockquote>
  10324. <p>Example responses</p>
  10325. </blockquote>
  10326. <blockquote>
  10327. <p>200 Response</p>
  10328. </blockquote>
  10329. <pre class="highlight tab tab-json"><code>{
  10330. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10331. }
  10332. </code></pre>
  10333. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10334. <table>
  10335. <thead>
  10336. <tr>
  10337. <th>Status</th>
  10338. <th>Meaning</th>
  10339. <th>Description</th>
  10340. <th>Schema</th>
  10341. </tr>
  10342. </thead>
  10343. <tbody>
  10344. <tr>
  10345. <td>200</td>
  10346. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10347. <td>200 response</td>
  10348. <td>Inline</td>
  10349. </tr>
  10350. </tbody>
  10351. </table>
  10352. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10353. <p>Status Code <strong>200</strong></p>
  10354. <table>
  10355. <thead>
  10356. <tr>
  10357. <th>Name</th>
  10358. <th>Type</th>
  10359. <th>Required</th>
  10360. <th>Restrictions</th>
  10361. <th>Description</th>
  10362. </tr>
  10363. </thead>
  10364. <tbody>
  10365. <tr>
  10366. <td>» _id</td>
  10367. <td>string</td>
  10368. <td>false</td>
  10369. <td>none</td>
  10370. <td>none</td>
  10371. </tr>
  10372. </tbody>
  10373. </table>
  10374. <aside class="warning">
  10375. To perform this operation, you must be authenticated by means of one of the following methods:
  10376. UserSecurity
  10377. </aside>
  10378. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10379. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10380. <blockquote>
  10381. <p>Code samples</p>
  10382. </blockquote>
  10383. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10384. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10385. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10386. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10387. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10388. </code></pre>
  10389. <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>
  10390. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10391. Accept: application/json
  10392. </span></code></pre>
  10393. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10394. &quot;name&quot;: &quot;string&quot;
  10395. }&#x27;</span>;
  10396. <span class="hljs-keyword">const</span> headers = {
  10397. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10398. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10399. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10400. };
  10401. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10402. {
  10403. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10404. <span class="hljs-attr">body</span>: inputBody,
  10405. <span class="hljs-attr">headers</span>: headers
  10406. })
  10407. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10408. <span class="hljs-keyword">return</span> res.json();
  10409. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10410. <span class="hljs-built_in">console</span>.log(body);
  10411. });
  10412. </code></pre>
  10413. <pre class="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>);
  10414. <span class="hljs-keyword">const</span> inputBody = {
  10415. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10416. };
  10417. <span class="hljs-keyword">const</span> headers = {
  10418. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10419. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10420. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10421. };
  10422. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10423. {
  10424. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10425. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10426. <span class="hljs-attr">headers</span>: headers
  10427. })
  10428. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10429. <span class="hljs-keyword">return</span> res.json();
  10430. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10431. <span class="hljs-built_in">console</span>.log(body);
  10432. });
  10433. </code></pre>
  10434. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10435. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10436. headers = {
  10437. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10438. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10439. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10440. }
  10441. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10442. <span class="hljs-symbol">params:</span> {
  10443. }, <span class="hljs-symbol">headers:</span> headers
  10444. p JSON.parse(result)
  10445. </code></pre>
  10446. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10447. headers = {
  10448. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10449. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10450. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10451. }
  10452. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10453. <span class="hljs-built_in">print</span>(r.json())
  10454. </code></pre>
  10455. <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>);
  10456. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10457. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10458. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10459. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10460. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10461. String inputLine;
  10462. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10463. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10464. response.append(inputLine);
  10465. }
  10466. in.close();
  10467. System.out.println(response.toString());
  10468. </code></pre>
  10469. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10470. <span class="hljs-keyword">import</span> (
  10471. <span class="hljs-string">&quot;bytes&quot;</span>
  10472. <span class="hljs-string">&quot;net/http&quot;</span>
  10473. )
  10474. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10475. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10476. <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>},
  10477. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10478. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10479. }
  10480. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10481. 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)
  10482. req.Header = headers
  10483. client := &amp;http.Client{}
  10484. resp, err := client.Do(req)
  10485. <span class="hljs-comment">// ...</span>
  10486. }
  10487. </code></pre>
  10488. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10489. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10490. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10491. );
  10492. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10493. <span class="hljs-comment">// Define array of request body.</span>
  10494. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10495. <span class="hljs-keyword">try</span> {
  10496. <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>(
  10497. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10498. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10499. )
  10500. );
  10501. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10502. }
  10503. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10504. <span class="hljs-comment">// handle exception or api errors.</span>
  10505. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10506. }
  10507. <span class="hljs-comment">// ...</span>
  10508. </code></pre>
  10509. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10510. <p><em>Update a Custom Field's dropdown item</em></p>
  10511. <blockquote>
  10512. <p>Body parameter</p>
  10513. </blockquote>
  10514. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10515. </code></pre>
  10516. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10517. <table>
  10518. <thead>
  10519. <tr>
  10520. <th>Name</th>
  10521. <th>In</th>
  10522. <th>Type</th>
  10523. <th>Required</th>
  10524. <th>Description</th>
  10525. </tr>
  10526. </thead>
  10527. <tbody>
  10528. <tr>
  10529. <td>board</td>
  10530. <td>path</td>
  10531. <td>string</td>
  10532. <td>true</td>
  10533. <td>the board value</td>
  10534. </tr>
  10535. <tr>
  10536. <td>customField</td>
  10537. <td>path</td>
  10538. <td>string</td>
  10539. <td>true</td>
  10540. <td>the customField value</td>
  10541. </tr>
  10542. <tr>
  10543. <td>dropdownItem</td>
  10544. <td>path</td>
  10545. <td>string</td>
  10546. <td>true</td>
  10547. <td>the dropdownItem value</td>
  10548. </tr>
  10549. <tr>
  10550. <td>body</td>
  10551. <td>body</td>
  10552. <td>object</td>
  10553. <td>true</td>
  10554. <td>none</td>
  10555. </tr>
  10556. <tr>
  10557. <td>» name</td>
  10558. <td>body</td>
  10559. <td>string</td>
  10560. <td>true</td>
  10561. <td>names of the custom field</td>
  10562. </tr>
  10563. </tbody>
  10564. </table>
  10565. <blockquote>
  10566. <p>Example responses</p>
  10567. </blockquote>
  10568. <blockquote>
  10569. <p>200 Response</p>
  10570. </blockquote>
  10571. <pre class="highlight tab tab-json"><code>{
  10572. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10573. }
  10574. </code></pre>
  10575. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10576. <table>
  10577. <thead>
  10578. <tr>
  10579. <th>Status</th>
  10580. <th>Meaning</th>
  10581. <th>Description</th>
  10582. <th>Schema</th>
  10583. </tr>
  10584. </thead>
  10585. <tbody>
  10586. <tr>
  10587. <td>200</td>
  10588. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10589. <td>200 response</td>
  10590. <td>Inline</td>
  10591. </tr>
  10592. </tbody>
  10593. </table>
  10594. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10595. <p>Status Code <strong>200</strong></p>
  10596. <table>
  10597. <thead>
  10598. <tr>
  10599. <th>Name</th>
  10600. <th>Type</th>
  10601. <th>Required</th>
  10602. <th>Restrictions</th>
  10603. <th>Description</th>
  10604. </tr>
  10605. </thead>
  10606. <tbody>
  10607. <tr>
  10608. <td>» _id</td>
  10609. <td>string</td>
  10610. <td>false</td>
  10611. <td>none</td>
  10612. <td>none</td>
  10613. </tr>
  10614. </tbody>
  10615. </table>
  10616. <aside class="warning">
  10617. To perform this operation, you must be authenticated by means of one of the following methods:
  10618. UserSecurity
  10619. </aside>
  10620. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  10621. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  10622. <blockquote>
  10623. <p>Code samples</p>
  10624. </blockquote>
  10625. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10626. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10627. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10628. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10629. </code></pre>
  10630. <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>
  10631. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10632. </span></code></pre>
  10633. <pre class="highlight tab tab-javascript"><code>
  10634. <span class="hljs-keyword">const</span> headers = {
  10635. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10636. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10637. };
  10638. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10639. {
  10640. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10641. <span class="hljs-attr">headers</span>: headers
  10642. })
  10643. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10644. <span class="hljs-keyword">return</span> res.json();
  10645. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10646. <span class="hljs-built_in">console</span>.log(body);
  10647. });
  10648. </code></pre>
  10649. <pre class="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>);
  10650. <span class="hljs-keyword">const</span> headers = {
  10651. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10652. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10653. };
  10654. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10655. {
  10656. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10657. <span class="hljs-attr">headers</span>: headers
  10658. })
  10659. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10660. <span class="hljs-keyword">return</span> res.json();
  10661. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10662. <span class="hljs-built_in">console</span>.log(body);
  10663. });
  10664. </code></pre>
  10665. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10666. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10667. headers = {
  10668. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10669. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10670. }
  10671. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10672. <span class="hljs-symbol">params:</span> {
  10673. }, <span class="hljs-symbol">headers:</span> headers
  10674. p JSON.parse(result)
  10675. </code></pre>
  10676. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10677. headers = {
  10678. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10679. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10680. }
  10681. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10682. <span class="hljs-built_in">print</span>(r.json())
  10683. </code></pre>
  10684. <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>);
  10685. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10686. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10687. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10688. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10689. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10690. String inputLine;
  10691. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10692. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10693. response.append(inputLine);
  10694. }
  10695. in.close();
  10696. System.out.println(response.toString());
  10697. </code></pre>
  10698. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10699. <span class="hljs-keyword">import</span> (
  10700. <span class="hljs-string">&quot;bytes&quot;</span>
  10701. <span class="hljs-string">&quot;net/http&quot;</span>
  10702. )
  10703. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10704. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10705. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10706. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10707. }
  10708. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10709. 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)
  10710. req.Header = headers
  10711. client := &amp;http.Client{}
  10712. resp, err := client.Do(req)
  10713. <span class="hljs-comment">// ...</span>
  10714. }
  10715. </code></pre>
  10716. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10717. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10718. );
  10719. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10720. <span class="hljs-comment">// Define array of request body.</span>
  10721. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10722. <span class="hljs-keyword">try</span> {
  10723. <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>(
  10724. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10725. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10726. )
  10727. );
  10728. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10729. }
  10730. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10731. <span class="hljs-comment">// handle exception or api errors.</span>
  10732. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10733. }
  10734. <span class="hljs-comment">// ...</span>
  10735. </code></pre>
  10736. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10737. <p><em>Update a Custom Field's dropdown items</em></p>
  10738. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  10739. <table>
  10740. <thead>
  10741. <tr>
  10742. <th>Name</th>
  10743. <th>In</th>
  10744. <th>Type</th>
  10745. <th>Required</th>
  10746. <th>Description</th>
  10747. </tr>
  10748. </thead>
  10749. <tbody>
  10750. <tr>
  10751. <td>board</td>
  10752. <td>path</td>
  10753. <td>string</td>
  10754. <td>true</td>
  10755. <td>the board value</td>
  10756. </tr>
  10757. <tr>
  10758. <td>customField</td>
  10759. <td>path</td>
  10760. <td>string</td>
  10761. <td>true</td>
  10762. <td>the customField value</td>
  10763. </tr>
  10764. <tr>
  10765. <td>dropdownItem</td>
  10766. <td>path</td>
  10767. <td>string</td>
  10768. <td>true</td>
  10769. <td>the dropdownItem value</td>
  10770. </tr>
  10771. </tbody>
  10772. </table>
  10773. <blockquote>
  10774. <p>Example responses</p>
  10775. </blockquote>
  10776. <blockquote>
  10777. <p>200 Response</p>
  10778. </blockquote>
  10779. <pre class="highlight tab tab-json"><code>{
  10780. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10781. }
  10782. </code></pre>
  10783. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  10784. <table>
  10785. <thead>
  10786. <tr>
  10787. <th>Status</th>
  10788. <th>Meaning</th>
  10789. <th>Description</th>
  10790. <th>Schema</th>
  10791. </tr>
  10792. </thead>
  10793. <tbody>
  10794. <tr>
  10795. <td>200</td>
  10796. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10797. <td>200 response</td>
  10798. <td>Inline</td>
  10799. </tr>
  10800. </tbody>
  10801. </table>
  10802. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10803. <p>Status Code <strong>200</strong></p>
  10804. <table>
  10805. <thead>
  10806. <tr>
  10807. <th>Name</th>
  10808. <th>Type</th>
  10809. <th>Required</th>
  10810. <th>Restrictions</th>
  10811. <th>Description</th>
  10812. </tr>
  10813. </thead>
  10814. <tbody>
  10815. <tr>
  10816. <td>» _id</td>
  10817. <td>string</td>
  10818. <td>false</td>
  10819. <td>none</td>
  10820. <td>none</td>
  10821. </tr>
  10822. </tbody>
  10823. </table>
  10824. <aside class="warning">
  10825. To perform this operation, you must be authenticated by means of one of the following methods:
  10826. UserSecurity
  10827. </aside>
  10828. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  10829. <h2 id="get_all_integrations">get_all_integrations</h2>
  10830. <p><a id="opIdget_all_integrations"></a></p>
  10831. <blockquote>
  10832. <p>Code samples</p>
  10833. </blockquote>
  10834. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10835. curl -X GET /api/boards/{board}/integrations \
  10836. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10837. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10838. </code></pre>
  10839. <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>
  10840. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10841. </span></code></pre>
  10842. <pre class="highlight tab tab-javascript"><code>
  10843. <span class="hljs-keyword">const</span> headers = {
  10844. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10845. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10846. };
  10847. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10848. {
  10849. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10850. <span class="hljs-attr">headers</span>: headers
  10851. })
  10852. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10853. <span class="hljs-keyword">return</span> res.json();
  10854. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10855. <span class="hljs-built_in">console</span>.log(body);
  10856. });
  10857. </code></pre>
  10858. <pre class="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>);
  10859. <span class="hljs-keyword">const</span> headers = {
  10860. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10861. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10862. };
  10863. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10864. {
  10865. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10866. <span class="hljs-attr">headers</span>: headers
  10867. })
  10868. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10869. <span class="hljs-keyword">return</span> res.json();
  10870. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10871. <span class="hljs-built_in">console</span>.log(body);
  10872. });
  10873. </code></pre>
  10874. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10875. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10876. headers = {
  10877. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10878. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10879. }
  10880. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10881. <span class="hljs-symbol">params:</span> {
  10882. }, <span class="hljs-symbol">headers:</span> headers
  10883. p JSON.parse(result)
  10884. </code></pre>
  10885. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10886. headers = {
  10887. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10888. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10889. }
  10890. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  10891. <span class="hljs-built_in">print</span>(r.json())
  10892. </code></pre>
  10893. <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>);
  10894. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10895. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10896. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10897. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10898. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10899. String inputLine;
  10900. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10901. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10902. response.append(inputLine);
  10903. }
  10904. in.close();
  10905. System.out.println(response.toString());
  10906. </code></pre>
  10907. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10908. <span class="hljs-keyword">import</span> (
  10909. <span class="hljs-string">&quot;bytes&quot;</span>
  10910. <span class="hljs-string">&quot;net/http&quot;</span>
  10911. )
  10912. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10913. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10914. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10915. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10916. }
  10917. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10918. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  10919. req.Header = headers
  10920. client := &amp;http.Client{}
  10921. resp, err := client.Do(req)
  10922. <span class="hljs-comment">// ...</span>
  10923. }
  10924. </code></pre>
  10925. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10926. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10927. );
  10928. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10929. <span class="hljs-comment">// Define array of request body.</span>
  10930. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10931. <span class="hljs-keyword">try</span> {
  10932. <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>(
  10933. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10934. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10935. )
  10936. );
  10937. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10938. }
  10939. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10940. <span class="hljs-comment">// handle exception or api errors.</span>
  10941. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10942. }
  10943. <span class="hljs-comment">// ...</span>
  10944. </code></pre>
  10945. <p><code>GET /api/boards/{board}/integrations</code></p>
  10946. <p><em>Get all integrations in board</em></p>
  10947. <h3 id="get_all_integrations-parameters">Parameters</h3>
  10948. <table>
  10949. <thead>
  10950. <tr>
  10951. <th>Name</th>
  10952. <th>In</th>
  10953. <th>Type</th>
  10954. <th>Required</th>
  10955. <th>Description</th>
  10956. </tr>
  10957. </thead>
  10958. <tbody>
  10959. <tr>
  10960. <td>board</td>
  10961. <td>path</td>
  10962. <td>string</td>
  10963. <td>true</td>
  10964. <td>the board ID</td>
  10965. </tr>
  10966. </tbody>
  10967. </table>
  10968. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  10969. <p><strong>board</strong>: the board ID</p>
  10970. <blockquote>
  10971. <p>Example responses</p>
  10972. </blockquote>
  10973. <blockquote>
  10974. <p>200 Response</p>
  10975. </blockquote>
  10976. <pre class="highlight tab tab-json"><code>[
  10977. {
  10978. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  10979. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10980. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10981. <span class="hljs-attr">&quot;activities&quot;</span>: [
  10982. <span class="hljs-string">&quot;string&quot;</span>
  10983. ],
  10984. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10985. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10986. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10987. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10988. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10989. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10990. }
  10991. ]
  10992. </code></pre>
  10993. <h3 id="get_all_integrations-responses">Responses</h3>
  10994. <table>
  10995. <thead>
  10996. <tr>
  10997. <th>Status</th>
  10998. <th>Meaning</th>
  10999. <th>Description</th>
  11000. <th>Schema</th>
  11001. </tr>
  11002. </thead>
  11003. <tbody>
  11004. <tr>
  11005. <td>200</td>
  11006. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11007. <td>200 response</td>
  11008. <td>Inline</td>
  11009. </tr>
  11010. </tbody>
  11011. </table>
  11012. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11013. <p>Status Code <strong>200</strong></p>
  11014. <table>
  11015. <thead>
  11016. <tr>
  11017. <th>Name</th>
  11018. <th>Type</th>
  11019. <th>Required</th>
  11020. <th>Restrictions</th>
  11021. <th>Description</th>
  11022. </tr>
  11023. </thead>
  11024. <tbody>
  11025. <tr>
  11026. <td><em>anonymous</em></td>
  11027. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11028. <td>false</td>
  11029. <td>none</td>
  11030. <td>[Integration with third-party applications]</td>
  11031. </tr>
  11032. <tr>
  11033. <td>» enabled</td>
  11034. <td>boolean</td>
  11035. <td>true</td>
  11036. <td>none</td>
  11037. <td>is the integration enabled?</td>
  11038. </tr>
  11039. <tr>
  11040. <td>» title</td>
  11041. <td>string¦null</td>
  11042. <td>false</td>
  11043. <td>none</td>
  11044. <td>name of the integration</td>
  11045. </tr>
  11046. <tr>
  11047. <td>» type</td>
  11048. <td>string</td>
  11049. <td>true</td>
  11050. <td>none</td>
  11051. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11052. </tr>
  11053. <tr>
  11054. <td>» activities</td>
  11055. <td>[string]</td>
  11056. <td>true</td>
  11057. <td>none</td>
  11058. <td>activities the integration gets triggered (list)</td>
  11059. </tr>
  11060. <tr>
  11061. <td>» url</td>
  11062. <td>string</td>
  11063. <td>true</td>
  11064. <td>none</td>
  11065. <td>none</td>
  11066. </tr>
  11067. <tr>
  11068. <td>» token</td>
  11069. <td>string¦null</td>
  11070. <td>false</td>
  11071. <td>none</td>
  11072. <td>token of the integration</td>
  11073. </tr>
  11074. <tr>
  11075. <td>» boardId</td>
  11076. <td>string</td>
  11077. <td>true</td>
  11078. <td>none</td>
  11079. <td>Board ID of the integration</td>
  11080. </tr>
  11081. <tr>
  11082. <td>» createdAt</td>
  11083. <td>string</td>
  11084. <td>true</td>
  11085. <td>none</td>
  11086. <td>Creation date of the integration</td>
  11087. </tr>
  11088. <tr>
  11089. <td>» modifiedAt</td>
  11090. <td>string</td>
  11091. <td>true</td>
  11092. <td>none</td>
  11093. <td>none</td>
  11094. </tr>
  11095. <tr>
  11096. <td>» userId</td>
  11097. <td>string</td>
  11098. <td>true</td>
  11099. <td>none</td>
  11100. <td>user ID who created the interation</td>
  11101. </tr>
  11102. </tbody>
  11103. </table>
  11104. <aside class="warning">
  11105. To perform this operation, you must be authenticated by means of one of the following methods:
  11106. UserSecurity
  11107. </aside>
  11108. <h2 id="new_integration">new_integration</h2>
  11109. <p><a id="opIdnew_integration"></a></p>
  11110. <blockquote>
  11111. <p>Code samples</p>
  11112. </blockquote>
  11113. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11114. curl -X POST /api/boards/{board}/integrations \
  11115. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11116. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11117. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11118. </code></pre>
  11119. <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>
  11120. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11121. Accept: application/json
  11122. </span></code></pre>
  11123. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11124. &quot;url&quot;: &quot;string&quot;
  11125. }&#x27;</span>;
  11126. <span class="hljs-keyword">const</span> headers = {
  11127. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11128. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11129. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11130. };
  11131. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11132. {
  11133. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11134. <span class="hljs-attr">body</span>: inputBody,
  11135. <span class="hljs-attr">headers</span>: headers
  11136. })
  11137. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11138. <span class="hljs-keyword">return</span> res.json();
  11139. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11140. <span class="hljs-built_in">console</span>.log(body);
  11141. });
  11142. </code></pre>
  11143. <pre class="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>);
  11144. <span class="hljs-keyword">const</span> inputBody = {
  11145. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11146. };
  11147. <span class="hljs-keyword">const</span> headers = {
  11148. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11149. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11150. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11151. };
  11152. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11153. {
  11154. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11155. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11156. <span class="hljs-attr">headers</span>: headers
  11157. })
  11158. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11159. <span class="hljs-keyword">return</span> res.json();
  11160. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11161. <span class="hljs-built_in">console</span>.log(body);
  11162. });
  11163. </code></pre>
  11164. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11165. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11166. headers = {
  11167. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11168. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11169. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11170. }
  11171. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11172. <span class="hljs-symbol">params:</span> {
  11173. }, <span class="hljs-symbol">headers:</span> headers
  11174. p JSON.parse(result)
  11175. </code></pre>
  11176. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11177. headers = {
  11178. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11179. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11180. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11181. }
  11182. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11183. <span class="hljs-built_in">print</span>(r.json())
  11184. </code></pre>
  11185. <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>);
  11186. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11187. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11188. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11189. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11190. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11191. String inputLine;
  11192. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11193. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11194. response.append(inputLine);
  11195. }
  11196. in.close();
  11197. System.out.println(response.toString());
  11198. </code></pre>
  11199. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11200. <span class="hljs-keyword">import</span> (
  11201. <span class="hljs-string">&quot;bytes&quot;</span>
  11202. <span class="hljs-string">&quot;net/http&quot;</span>
  11203. )
  11204. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11205. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11206. <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>},
  11207. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11208. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11209. }
  11210. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11211. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11212. req.Header = headers
  11213. client := &amp;http.Client{}
  11214. resp, err := client.Do(req)
  11215. <span class="hljs-comment">// ...</span>
  11216. }
  11217. </code></pre>
  11218. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11219. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11220. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11221. );
  11222. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11223. <span class="hljs-comment">// Define array of request body.</span>
  11224. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11225. <span class="hljs-keyword">try</span> {
  11226. <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>(
  11227. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11228. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11229. )
  11230. );
  11231. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11232. }
  11233. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11234. <span class="hljs-comment">// handle exception or api errors.</span>
  11235. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11236. }
  11237. <span class="hljs-comment">// ...</span>
  11238. </code></pre>
  11239. <p><code>POST /api/boards/{board}/integrations</code></p>
  11240. <p><em>Create a new integration</em></p>
  11241. <blockquote>
  11242. <p>Body parameter</p>
  11243. </blockquote>
  11244. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11245. </code></pre>
  11246. <h3 id="new_integration-parameters">Parameters</h3>
  11247. <table>
  11248. <thead>
  11249. <tr>
  11250. <th>Name</th>
  11251. <th>In</th>
  11252. <th>Type</th>
  11253. <th>Required</th>
  11254. <th>Description</th>
  11255. </tr>
  11256. </thead>
  11257. <tbody>
  11258. <tr>
  11259. <td>board</td>
  11260. <td>path</td>
  11261. <td>string</td>
  11262. <td>true</td>
  11263. <td>the board ID</td>
  11264. </tr>
  11265. <tr>
  11266. <td>body</td>
  11267. <td>body</td>
  11268. <td>object</td>
  11269. <td>true</td>
  11270. <td>none</td>
  11271. </tr>
  11272. <tr>
  11273. <td>» url</td>
  11274. <td>body</td>
  11275. <td>string</td>
  11276. <td>true</td>
  11277. <td>the URL of the integration</td>
  11278. </tr>
  11279. </tbody>
  11280. </table>
  11281. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  11282. <p><strong>board</strong>: the board ID</p>
  11283. <blockquote>
  11284. <p>Example responses</p>
  11285. </blockquote>
  11286. <blockquote>
  11287. <p>200 Response</p>
  11288. </blockquote>
  11289. <pre class="highlight tab tab-json"><code>{
  11290. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11291. }
  11292. </code></pre>
  11293. <h3 id="new_integration-responses">Responses</h3>
  11294. <table>
  11295. <thead>
  11296. <tr>
  11297. <th>Status</th>
  11298. <th>Meaning</th>
  11299. <th>Description</th>
  11300. <th>Schema</th>
  11301. </tr>
  11302. </thead>
  11303. <tbody>
  11304. <tr>
  11305. <td>200</td>
  11306. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11307. <td>200 response</td>
  11308. <td>Inline</td>
  11309. </tr>
  11310. </tbody>
  11311. </table>
  11312. <h3 id="new_integration-responseschema">Response Schema</h3>
  11313. <p>Status Code <strong>200</strong></p>
  11314. <table>
  11315. <thead>
  11316. <tr>
  11317. <th>Name</th>
  11318. <th>Type</th>
  11319. <th>Required</th>
  11320. <th>Restrictions</th>
  11321. <th>Description</th>
  11322. </tr>
  11323. </thead>
  11324. <tbody>
  11325. <tr>
  11326. <td>» _id</td>
  11327. <td>string</td>
  11328. <td>false</td>
  11329. <td>none</td>
  11330. <td>none</td>
  11331. </tr>
  11332. </tbody>
  11333. </table>
  11334. <aside class="warning">
  11335. To perform this operation, you must be authenticated by means of one of the following methods:
  11336. UserSecurity
  11337. </aside>
  11338. <h2 id="get_integration">get_integration</h2>
  11339. <p><a id="opIdget_integration"></a></p>
  11340. <blockquote>
  11341. <p>Code samples</p>
  11342. </blockquote>
  11343. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11344. curl -X GET /api/boards/{board}/integrations/{int} \
  11345. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11346. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11347. </code></pre>
  11348. <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>
  11349. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11350. </span></code></pre>
  11351. <pre class="highlight tab tab-javascript"><code>
  11352. <span class="hljs-keyword">const</span> headers = {
  11353. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11354. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11355. };
  11356. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11357. {
  11358. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11359. <span class="hljs-attr">headers</span>: headers
  11360. })
  11361. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11362. <span class="hljs-keyword">return</span> res.json();
  11363. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11364. <span class="hljs-built_in">console</span>.log(body);
  11365. });
  11366. </code></pre>
  11367. <pre class="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>);
  11368. <span class="hljs-keyword">const</span> headers = {
  11369. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11370. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11371. };
  11372. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11373. {
  11374. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11375. <span class="hljs-attr">headers</span>: headers
  11376. })
  11377. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11378. <span class="hljs-keyword">return</span> res.json();
  11379. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11380. <span class="hljs-built_in">console</span>.log(body);
  11381. });
  11382. </code></pre>
  11383. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11384. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11385. headers = {
  11386. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11387. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11388. }
  11389. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11390. <span class="hljs-symbol">params:</span> {
  11391. }, <span class="hljs-symbol">headers:</span> headers
  11392. p JSON.parse(result)
  11393. </code></pre>
  11394. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11395. headers = {
  11396. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11397. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11398. }
  11399. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11400. <span class="hljs-built_in">print</span>(r.json())
  11401. </code></pre>
  11402. <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>);
  11403. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11404. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11405. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11406. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11407. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11408. String inputLine;
  11409. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11410. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11411. response.append(inputLine);
  11412. }
  11413. in.close();
  11414. System.out.println(response.toString());
  11415. </code></pre>
  11416. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11417. <span class="hljs-keyword">import</span> (
  11418. <span class="hljs-string">&quot;bytes&quot;</span>
  11419. <span class="hljs-string">&quot;net/http&quot;</span>
  11420. )
  11421. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11422. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11423. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11424. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11425. }
  11426. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11427. 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)
  11428. req.Header = headers
  11429. client := &amp;http.Client{}
  11430. resp, err := client.Do(req)
  11431. <span class="hljs-comment">// ...</span>
  11432. }
  11433. </code></pre>
  11434. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11435. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11436. );
  11437. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11438. <span class="hljs-comment">// Define array of request body.</span>
  11439. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11440. <span class="hljs-keyword">try</span> {
  11441. <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>(
  11442. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11443. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11444. )
  11445. );
  11446. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11447. }
  11448. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11449. <span class="hljs-comment">// handle exception or api errors.</span>
  11450. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11451. }
  11452. <span class="hljs-comment">// ...</span>
  11453. </code></pre>
  11454. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11455. <p><em>Get a single integration in board</em></p>
  11456. <h3 id="get_integration-parameters">Parameters</h3>
  11457. <table>
  11458. <thead>
  11459. <tr>
  11460. <th>Name</th>
  11461. <th>In</th>
  11462. <th>Type</th>
  11463. <th>Required</th>
  11464. <th>Description</th>
  11465. </tr>
  11466. </thead>
  11467. <tbody>
  11468. <tr>
  11469. <td>board</td>
  11470. <td>path</td>
  11471. <td>string</td>
  11472. <td>true</td>
  11473. <td>the board ID</td>
  11474. </tr>
  11475. <tr>
  11476. <td>int</td>
  11477. <td>path</td>
  11478. <td>string</td>
  11479. <td>true</td>
  11480. <td>the integration ID</td>
  11481. </tr>
  11482. </tbody>
  11483. </table>
  11484. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11485. <p><strong>board</strong>: the board ID</p>
  11486. <p><strong>int</strong>: the integration ID</p>
  11487. <blockquote>
  11488. <p>Example responses</p>
  11489. </blockquote>
  11490. <blockquote>
  11491. <p>200 Response</p>
  11492. </blockquote>
  11493. <pre class="highlight tab tab-json"><code>{
  11494. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11495. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11496. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11497. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11498. <span class="hljs-string">&quot;string&quot;</span>
  11499. ],
  11500. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11501. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11502. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11503. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11504. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11505. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11506. }
  11507. </code></pre>
  11508. <h3 id="get_integration-responses">Responses</h3>
  11509. <table>
  11510. <thead>
  11511. <tr>
  11512. <th>Status</th>
  11513. <th>Meaning</th>
  11514. <th>Description</th>
  11515. <th>Schema</th>
  11516. </tr>
  11517. </thead>
  11518. <tbody>
  11519. <tr>
  11520. <td>200</td>
  11521. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11522. <td>200 response</td>
  11523. <td><a href="#schemaintegrations">Integrations</a></td>
  11524. </tr>
  11525. </tbody>
  11526. </table>
  11527. <aside class="warning">
  11528. To perform this operation, you must be authenticated by means of one of the following methods:
  11529. UserSecurity
  11530. </aside>
  11531. <h2 id="edit_integration">edit_integration</h2>
  11532. <p><a id="opIdedit_integration"></a></p>
  11533. <blockquote>
  11534. <p>Code samples</p>
  11535. </blockquote>
  11536. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11537. curl -X PUT /api/boards/{board}/integrations/{int} \
  11538. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11539. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11540. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11541. </code></pre>
  11542. <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>
  11543. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11544. Accept: application/json
  11545. </span></code></pre>
  11546. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11547. &quot;enabled&quot;: &quot;string&quot;,
  11548. &quot;title&quot;: &quot;string&quot;,
  11549. &quot;url&quot;: &quot;string&quot;,
  11550. &quot;token&quot;: &quot;string&quot;,
  11551. &quot;activities&quot;: &quot;string&quot;
  11552. }&#x27;</span>;
  11553. <span class="hljs-keyword">const</span> headers = {
  11554. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11555. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11556. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11557. };
  11558. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11559. {
  11560. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11561. <span class="hljs-attr">body</span>: inputBody,
  11562. <span class="hljs-attr">headers</span>: headers
  11563. })
  11564. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11565. <span class="hljs-keyword">return</span> res.json();
  11566. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11567. <span class="hljs-built_in">console</span>.log(body);
  11568. });
  11569. </code></pre>
  11570. <pre class="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>);
  11571. <span class="hljs-keyword">const</span> inputBody = {
  11572. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11573. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11574. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11575. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11576. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11577. };
  11578. <span class="hljs-keyword">const</span> headers = {
  11579. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11580. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11581. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11582. };
  11583. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11584. {
  11585. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11586. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11587. <span class="hljs-attr">headers</span>: headers
  11588. })
  11589. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11590. <span class="hljs-keyword">return</span> res.json();
  11591. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11592. <span class="hljs-built_in">console</span>.log(body);
  11593. });
  11594. </code></pre>
  11595. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11596. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11597. headers = {
  11598. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11599. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11600. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11601. }
  11602. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11603. <span class="hljs-symbol">params:</span> {
  11604. }, <span class="hljs-symbol">headers:</span> headers
  11605. p JSON.parse(result)
  11606. </code></pre>
  11607. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11608. headers = {
  11609. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11610. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11611. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11612. }
  11613. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11614. <span class="hljs-built_in">print</span>(r.json())
  11615. </code></pre>
  11616. <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>);
  11617. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11618. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11619. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11620. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11621. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11622. String inputLine;
  11623. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11624. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11625. response.append(inputLine);
  11626. }
  11627. in.close();
  11628. System.out.println(response.toString());
  11629. </code></pre>
  11630. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11631. <span class="hljs-keyword">import</span> (
  11632. <span class="hljs-string">&quot;bytes&quot;</span>
  11633. <span class="hljs-string">&quot;net/http&quot;</span>
  11634. )
  11635. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11636. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11637. <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>},
  11638. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11639. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11640. }
  11641. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11642. 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)
  11643. req.Header = headers
  11644. client := &amp;http.Client{}
  11645. resp, err := client.Do(req)
  11646. <span class="hljs-comment">// ...</span>
  11647. }
  11648. </code></pre>
  11649. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11650. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11651. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11652. );
  11653. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11654. <span class="hljs-comment">// Define array of request body.</span>
  11655. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11656. <span class="hljs-keyword">try</span> {
  11657. <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>(
  11658. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11659. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11660. )
  11661. );
  11662. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11663. }
  11664. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11665. <span class="hljs-comment">// handle exception or api errors.</span>
  11666. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11667. }
  11668. <span class="hljs-comment">// ...</span>
  11669. </code></pre>
  11670. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  11671. <p><em>Edit integration data</em></p>
  11672. <blockquote>
  11673. <p>Body parameter</p>
  11674. </blockquote>
  11675. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  11676. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11677. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11678. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  11679. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  11680. </code></pre>
  11681. <h3 id="edit_integration-parameters">Parameters</h3>
  11682. <table>
  11683. <thead>
  11684. <tr>
  11685. <th>Name</th>
  11686. <th>In</th>
  11687. <th>Type</th>
  11688. <th>Required</th>
  11689. <th>Description</th>
  11690. </tr>
  11691. </thead>
  11692. <tbody>
  11693. <tr>
  11694. <td>board</td>
  11695. <td>path</td>
  11696. <td>string</td>
  11697. <td>true</td>
  11698. <td>the board ID</td>
  11699. </tr>
  11700. <tr>
  11701. <td>int</td>
  11702. <td>path</td>
  11703. <td>string</td>
  11704. <td>true</td>
  11705. <td>the integration ID</td>
  11706. </tr>
  11707. <tr>
  11708. <td>body</td>
  11709. <td>body</td>
  11710. <td>object</td>
  11711. <td>false</td>
  11712. <td>none</td>
  11713. </tr>
  11714. <tr>
  11715. <td>» enabled</td>
  11716. <td>body</td>
  11717. <td>string</td>
  11718. <td>false</td>
  11719. <td>is the integration enabled?</td>
  11720. </tr>
  11721. <tr>
  11722. <td>» title</td>
  11723. <td>body</td>
  11724. <td>string</td>
  11725. <td>false</td>
  11726. <td>new name of the integration</td>
  11727. </tr>
  11728. <tr>
  11729. <td>» url</td>
  11730. <td>body</td>
  11731. <td>string</td>
  11732. <td>false</td>
  11733. <td>new URL of the integration</td>
  11734. </tr>
  11735. <tr>
  11736. <td>» token</td>
  11737. <td>body</td>
  11738. <td>string</td>
  11739. <td>false</td>
  11740. <td>new token of the integration</td>
  11741. </tr>
  11742. <tr>
  11743. <td>» activities</td>
  11744. <td>body</td>
  11745. <td>string</td>
  11746. <td>false</td>
  11747. <td>new list of activities of the integration</td>
  11748. </tr>
  11749. </tbody>
  11750. </table>
  11751. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11752. <p><strong>board</strong>: the board ID</p>
  11753. <p><strong>int</strong>: the integration ID</p>
  11754. <blockquote>
  11755. <p>Example responses</p>
  11756. </blockquote>
  11757. <blockquote>
  11758. <p>200 Response</p>
  11759. </blockquote>
  11760. <pre class="highlight tab tab-json"><code>{
  11761. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11762. }
  11763. </code></pre>
  11764. <h3 id="edit_integration-responses">Responses</h3>
  11765. <table>
  11766. <thead>
  11767. <tr>
  11768. <th>Status</th>
  11769. <th>Meaning</th>
  11770. <th>Description</th>
  11771. <th>Schema</th>
  11772. </tr>
  11773. </thead>
  11774. <tbody>
  11775. <tr>
  11776. <td>200</td>
  11777. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11778. <td>200 response</td>
  11779. <td>Inline</td>
  11780. </tr>
  11781. </tbody>
  11782. </table>
  11783. <h3 id="edit_integration-responseschema">Response Schema</h3>
  11784. <p>Status Code <strong>200</strong></p>
  11785. <table>
  11786. <thead>
  11787. <tr>
  11788. <th>Name</th>
  11789. <th>Type</th>
  11790. <th>Required</th>
  11791. <th>Restrictions</th>
  11792. <th>Description</th>
  11793. </tr>
  11794. </thead>
  11795. <tbody>
  11796. <tr>
  11797. <td>» _id</td>
  11798. <td>string</td>
  11799. <td>false</td>
  11800. <td>none</td>
  11801. <td>none</td>
  11802. </tr>
  11803. </tbody>
  11804. </table>
  11805. <aside class="warning">
  11806. To perform this operation, you must be authenticated by means of one of the following methods:
  11807. UserSecurity
  11808. </aside>
  11809. <h2 id="delete_integration">delete_integration</h2>
  11810. <p><a id="opIddelete_integration"></a></p>
  11811. <blockquote>
  11812. <p>Code samples</p>
  11813. </blockquote>
  11814. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11815. curl -X DELETE /api/boards/{board}/integrations/{int} \
  11816. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11817. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11818. </code></pre>
  11819. <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>
  11820. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11821. </span></code></pre>
  11822. <pre class="highlight tab tab-javascript"><code>
  11823. <span class="hljs-keyword">const</span> headers = {
  11824. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11825. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11826. };
  11827. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11828. {
  11829. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11830. <span class="hljs-attr">headers</span>: headers
  11831. })
  11832. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11833. <span class="hljs-keyword">return</span> res.json();
  11834. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11835. <span class="hljs-built_in">console</span>.log(body);
  11836. });
  11837. </code></pre>
  11838. <pre class="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>);
  11839. <span class="hljs-keyword">const</span> headers = {
  11840. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11841. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11842. };
  11843. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11844. {
  11845. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11846. <span class="hljs-attr">headers</span>: headers
  11847. })
  11848. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11849. <span class="hljs-keyword">return</span> res.json();
  11850. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11851. <span class="hljs-built_in">console</span>.log(body);
  11852. });
  11853. </code></pre>
  11854. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11855. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11856. headers = {
  11857. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11858. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11859. }
  11860. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11861. <span class="hljs-symbol">params:</span> {
  11862. }, <span class="hljs-symbol">headers:</span> headers
  11863. p JSON.parse(result)
  11864. </code></pre>
  11865. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11866. headers = {
  11867. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11868. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11869. }
  11870. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11871. <span class="hljs-built_in">print</span>(r.json())
  11872. </code></pre>
  11873. <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>);
  11874. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11875. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11876. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11877. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11878. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11879. String inputLine;
  11880. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11881. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11882. response.append(inputLine);
  11883. }
  11884. in.close();
  11885. System.out.println(response.toString());
  11886. </code></pre>
  11887. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11888. <span class="hljs-keyword">import</span> (
  11889. <span class="hljs-string">&quot;bytes&quot;</span>
  11890. <span class="hljs-string">&quot;net/http&quot;</span>
  11891. )
  11892. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11893. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11894. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11895. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11896. }
  11897. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11898. 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)
  11899. req.Header = headers
  11900. client := &amp;http.Client{}
  11901. resp, err := client.Do(req)
  11902. <span class="hljs-comment">// ...</span>
  11903. }
  11904. </code></pre>
  11905. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11906. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11907. );
  11908. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11909. <span class="hljs-comment">// Define array of request body.</span>
  11910. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11911. <span class="hljs-keyword">try</span> {
  11912. <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>(
  11913. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11914. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11915. )
  11916. );
  11917. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11918. }
  11919. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11920. <span class="hljs-comment">// handle exception or api errors.</span>
  11921. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11922. }
  11923. <span class="hljs-comment">// ...</span>
  11924. </code></pre>
  11925. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  11926. <p><em>Delete integration</em></p>
  11927. <h3 id="delete_integration-parameters">Parameters</h3>
  11928. <table>
  11929. <thead>
  11930. <tr>
  11931. <th>Name</th>
  11932. <th>In</th>
  11933. <th>Type</th>
  11934. <th>Required</th>
  11935. <th>Description</th>
  11936. </tr>
  11937. </thead>
  11938. <tbody>
  11939. <tr>
  11940. <td>board</td>
  11941. <td>path</td>
  11942. <td>string</td>
  11943. <td>true</td>
  11944. <td>the board ID</td>
  11945. </tr>
  11946. <tr>
  11947. <td>int</td>
  11948. <td>path</td>
  11949. <td>string</td>
  11950. <td>true</td>
  11951. <td>the integration ID</td>
  11952. </tr>
  11953. </tbody>
  11954. </table>
  11955. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11956. <p><strong>board</strong>: the board ID</p>
  11957. <p><strong>int</strong>: the integration ID</p>
  11958. <blockquote>
  11959. <p>Example responses</p>
  11960. </blockquote>
  11961. <blockquote>
  11962. <p>200 Response</p>
  11963. </blockquote>
  11964. <pre class="highlight tab tab-json"><code>{
  11965. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11966. }
  11967. </code></pre>
  11968. <h3 id="delete_integration-responses">Responses</h3>
  11969. <table>
  11970. <thead>
  11971. <tr>
  11972. <th>Status</th>
  11973. <th>Meaning</th>
  11974. <th>Description</th>
  11975. <th>Schema</th>
  11976. </tr>
  11977. </thead>
  11978. <tbody>
  11979. <tr>
  11980. <td>200</td>
  11981. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11982. <td>200 response</td>
  11983. <td>Inline</td>
  11984. </tr>
  11985. </tbody>
  11986. </table>
  11987. <h3 id="delete_integration-responseschema">Response Schema</h3>
  11988. <p>Status Code <strong>200</strong></p>
  11989. <table>
  11990. <thead>
  11991. <tr>
  11992. <th>Name</th>
  11993. <th>Type</th>
  11994. <th>Required</th>
  11995. <th>Restrictions</th>
  11996. <th>Description</th>
  11997. </tr>
  11998. </thead>
  11999. <tbody>
  12000. <tr>
  12001. <td>» _id</td>
  12002. <td>string</td>
  12003. <td>false</td>
  12004. <td>none</td>
  12005. <td>none</td>
  12006. </tr>
  12007. </tbody>
  12008. </table>
  12009. <aside class="warning">
  12010. To perform this operation, you must be authenticated by means of one of the following methods:
  12011. UserSecurity
  12012. </aside>
  12013. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12014. <p><a id="opIddelete_integration_activities"></a></p>
  12015. <blockquote>
  12016. <p>Code samples</p>
  12017. </blockquote>
  12018. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12019. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12020. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12021. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12022. </code></pre>
  12023. <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>
  12024. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12025. </span></code></pre>
  12026. <pre class="highlight tab tab-javascript"><code>
  12027. <span class="hljs-keyword">const</span> headers = {
  12028. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12029. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12030. };
  12031. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12032. {
  12033. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12034. <span class="hljs-attr">headers</span>: headers
  12035. })
  12036. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12037. <span class="hljs-keyword">return</span> res.json();
  12038. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12039. <span class="hljs-built_in">console</span>.log(body);
  12040. });
  12041. </code></pre>
  12042. <pre class="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>);
  12043. <span class="hljs-keyword">const</span> headers = {
  12044. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12045. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12046. };
  12047. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12048. {
  12049. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12050. <span class="hljs-attr">headers</span>: headers
  12051. })
  12052. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12053. <span class="hljs-keyword">return</span> res.json();
  12054. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12055. <span class="hljs-built_in">console</span>.log(body);
  12056. });
  12057. </code></pre>
  12058. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12059. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12060. headers = {
  12061. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12062. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12063. }
  12064. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12065. <span class="hljs-symbol">params:</span> {
  12066. }, <span class="hljs-symbol">headers:</span> headers
  12067. p JSON.parse(result)
  12068. </code></pre>
  12069. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12070. headers = {
  12071. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12072. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12073. }
  12074. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12075. <span class="hljs-built_in">print</span>(r.json())
  12076. </code></pre>
  12077. <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>);
  12078. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12079. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12080. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12081. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12082. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12083. String inputLine;
  12084. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12085. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12086. response.append(inputLine);
  12087. }
  12088. in.close();
  12089. System.out.println(response.toString());
  12090. </code></pre>
  12091. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12092. <span class="hljs-keyword">import</span> (
  12093. <span class="hljs-string">&quot;bytes&quot;</span>
  12094. <span class="hljs-string">&quot;net/http&quot;</span>
  12095. )
  12096. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12097. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12098. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12099. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12100. }
  12101. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12102. 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)
  12103. req.Header = headers
  12104. client := &amp;http.Client{}
  12105. resp, err := client.Do(req)
  12106. <span class="hljs-comment">// ...</span>
  12107. }
  12108. </code></pre>
  12109. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12110. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12111. );
  12112. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12113. <span class="hljs-comment">// Define array of request body.</span>
  12114. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12115. <span class="hljs-keyword">try</span> {
  12116. <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>(
  12117. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12118. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12119. )
  12120. );
  12121. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12122. }
  12123. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12124. <span class="hljs-comment">// handle exception or api errors.</span>
  12125. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12126. }
  12127. <span class="hljs-comment">// ...</span>
  12128. </code></pre>
  12129. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12130. <p><em>Delete subscribed activities</em></p>
  12131. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12132. <table>
  12133. <thead>
  12134. <tr>
  12135. <th>Name</th>
  12136. <th>In</th>
  12137. <th>Type</th>
  12138. <th>Required</th>
  12139. <th>Description</th>
  12140. </tr>
  12141. </thead>
  12142. <tbody>
  12143. <tr>
  12144. <td>board</td>
  12145. <td>path</td>
  12146. <td>string</td>
  12147. <td>true</td>
  12148. <td>the board ID</td>
  12149. </tr>
  12150. <tr>
  12151. <td>int</td>
  12152. <td>path</td>
  12153. <td>string</td>
  12154. <td>true</td>
  12155. <td>the integration ID</td>
  12156. </tr>
  12157. </tbody>
  12158. </table>
  12159. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12160. <p><strong>board</strong>: the board ID</p>
  12161. <p><strong>int</strong>: the integration ID</p>
  12162. <blockquote>
  12163. <p>Example responses</p>
  12164. </blockquote>
  12165. <blockquote>
  12166. <p>200 Response</p>
  12167. </blockquote>
  12168. <pre class="highlight tab tab-json"><code>{
  12169. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12170. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12171. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12172. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12173. <span class="hljs-string">&quot;string&quot;</span>
  12174. ],
  12175. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12176. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12177. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12178. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12179. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12180. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12181. }
  12182. </code></pre>
  12183. <h3 id="delete_integration_activities-responses">Responses</h3>
  12184. <table>
  12185. <thead>
  12186. <tr>
  12187. <th>Status</th>
  12188. <th>Meaning</th>
  12189. <th>Description</th>
  12190. <th>Schema</th>
  12191. </tr>
  12192. </thead>
  12193. <tbody>
  12194. <tr>
  12195. <td>200</td>
  12196. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12197. <td>200 response</td>
  12198. <td><a href="#schemaintegrations">Integrations</a></td>
  12199. </tr>
  12200. </tbody>
  12201. </table>
  12202. <aside class="warning">
  12203. To perform this operation, you must be authenticated by means of one of the following methods:
  12204. UserSecurity
  12205. </aside>
  12206. <h2 id="new_integration_activities">new_integration_activities</h2>
  12207. <p><a id="opIdnew_integration_activities"></a></p>
  12208. <blockquote>
  12209. <p>Code samples</p>
  12210. </blockquote>
  12211. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12212. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12213. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12214. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12215. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12216. </code></pre>
  12217. <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>
  12218. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12219. Accept: application/json
  12220. </span></code></pre>
  12221. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12222. &quot;activities&quot;: &quot;string&quot;
  12223. }&#x27;</span>;
  12224. <span class="hljs-keyword">const</span> headers = {
  12225. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12226. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12227. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12228. };
  12229. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12230. {
  12231. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12232. <span class="hljs-attr">body</span>: inputBody,
  12233. <span class="hljs-attr">headers</span>: headers
  12234. })
  12235. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12236. <span class="hljs-keyword">return</span> res.json();
  12237. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12238. <span class="hljs-built_in">console</span>.log(body);
  12239. });
  12240. </code></pre>
  12241. <pre class="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>);
  12242. <span class="hljs-keyword">const</span> inputBody = {
  12243. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12244. };
  12245. <span class="hljs-keyword">const</span> headers = {
  12246. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12247. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12248. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12249. };
  12250. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12251. {
  12252. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12253. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12254. <span class="hljs-attr">headers</span>: headers
  12255. })
  12256. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12257. <span class="hljs-keyword">return</span> res.json();
  12258. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12259. <span class="hljs-built_in">console</span>.log(body);
  12260. });
  12261. </code></pre>
  12262. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12263. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12264. headers = {
  12265. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12266. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12267. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12268. }
  12269. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12270. <span class="hljs-symbol">params:</span> {
  12271. }, <span class="hljs-symbol">headers:</span> headers
  12272. p JSON.parse(result)
  12273. </code></pre>
  12274. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12275. headers = {
  12276. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12277. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12278. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12279. }
  12280. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12281. <span class="hljs-built_in">print</span>(r.json())
  12282. </code></pre>
  12283. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>);
  12284. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12285. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12286. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12287. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12288. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12289. String inputLine;
  12290. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12291. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12292. response.append(inputLine);
  12293. }
  12294. in.close();
  12295. System.out.println(response.toString());
  12296. </code></pre>
  12297. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12298. <span class="hljs-keyword">import</span> (
  12299. <span class="hljs-string">&quot;bytes&quot;</span>
  12300. <span class="hljs-string">&quot;net/http&quot;</span>
  12301. )
  12302. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12303. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12304. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  12305. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12306. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12307. }
  12308. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12309. 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)
  12310. req.Header = headers
  12311. client := &amp;http.Client{}
  12312. resp, err := client.Do(req)
  12313. <span class="hljs-comment">// ...</span>
  12314. }
  12315. </code></pre>
  12316. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12317. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12318. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12319. );
  12320. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12321. <span class="hljs-comment">// Define array of request body.</span>
  12322. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12323. <span class="hljs-keyword">try</span> {
  12324. <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>(
  12325. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12326. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12327. )
  12328. );
  12329. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12330. }
  12331. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12332. <span class="hljs-comment">// handle exception or api errors.</span>
  12333. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12334. }
  12335. <span class="hljs-comment">// ...</span>
  12336. </code></pre>
  12337. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12338. <p><em>Add subscribed activities</em></p>
  12339. <blockquote>
  12340. <p>Body parameter</p>
  12341. </blockquote>
  12342. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12343. </code></pre>
  12344. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12345. <table>
  12346. <thead>
  12347. <tr>
  12348. <th>Name</th>
  12349. <th>In</th>
  12350. <th>Type</th>
  12351. <th>Required</th>
  12352. <th>Description</th>
  12353. </tr>
  12354. </thead>
  12355. <tbody>
  12356. <tr>
  12357. <td>board</td>
  12358. <td>path</td>
  12359. <td>string</td>
  12360. <td>true</td>
  12361. <td>the board ID</td>
  12362. </tr>
  12363. <tr>
  12364. <td>int</td>
  12365. <td>path</td>
  12366. <td>string</td>
  12367. <td>true</td>
  12368. <td>the integration ID</td>
  12369. </tr>
  12370. <tr>
  12371. <td>body</td>
  12372. <td>body</td>
  12373. <td>object</td>
  12374. <td>true</td>
  12375. <td>none</td>
  12376. </tr>
  12377. <tr>
  12378. <td>» activities</td>
  12379. <td>body</td>
  12380. <td>string</td>
  12381. <td>true</td>
  12382. <td>the activities value</td>
  12383. </tr>
  12384. </tbody>
  12385. </table>
  12386. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12387. <p><strong>board</strong>: the board ID</p>
  12388. <p><strong>int</strong>: the integration ID</p>
  12389. <blockquote>
  12390. <p>Example responses</p>
  12391. </blockquote>
  12392. <blockquote>
  12393. <p>200 Response</p>
  12394. </blockquote>
  12395. <pre class="highlight tab tab-json"><code>{
  12396. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12397. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12398. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12399. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12400. <span class="hljs-string">&quot;string&quot;</span>
  12401. ],
  12402. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12403. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12404. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12405. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12406. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12407. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12408. }
  12409. </code></pre>
  12410. <h3 id="new_integration_activities-responses">Responses</h3>
  12411. <table>
  12412. <thead>
  12413. <tr>
  12414. <th>Status</th>
  12415. <th>Meaning</th>
  12416. <th>Description</th>
  12417. <th>Schema</th>
  12418. </tr>
  12419. </thead>
  12420. <tbody>
  12421. <tr>
  12422. <td>200</td>
  12423. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12424. <td>200 response</td>
  12425. <td><a href="#schemaintegrations">Integrations</a></td>
  12426. </tr>
  12427. </tbody>
  12428. </table>
  12429. <aside class="warning">
  12430. To perform this operation, you must be authenticated by means of one of the following methods:
  12431. UserSecurity
  12432. </aside>
  12433. <h1 id="wekan-rest-api-lists">Lists</h1>
  12434. <h2 id="get_all_lists">get_all_lists</h2>
  12435. <p><a id="opIdget_all_lists"></a></p>
  12436. <blockquote>
  12437. <p>Code samples</p>
  12438. </blockquote>
  12439. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12440. curl -X GET /api/boards/{board}/lists \
  12441. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12442. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12443. </code></pre>
  12444. <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>
  12445. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12446. </span></code></pre>
  12447. <pre class="highlight tab tab-javascript"><code>
  12448. <span class="hljs-keyword">const</span> headers = {
  12449. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12450. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12451. };
  12452. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12453. {
  12454. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12455. <span class="hljs-attr">headers</span>: headers
  12456. })
  12457. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12458. <span class="hljs-keyword">return</span> res.json();
  12459. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12460. <span class="hljs-built_in">console</span>.log(body);
  12461. });
  12462. </code></pre>
  12463. <pre class="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>);
  12464. <span class="hljs-keyword">const</span> headers = {
  12465. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12466. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12467. };
  12468. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12469. {
  12470. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12471. <span class="hljs-attr">headers</span>: headers
  12472. })
  12473. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12474. <span class="hljs-keyword">return</span> res.json();
  12475. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12476. <span class="hljs-built_in">console</span>.log(body);
  12477. });
  12478. </code></pre>
  12479. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12480. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12481. headers = {
  12482. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12483. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12484. }
  12485. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12486. <span class="hljs-symbol">params:</span> {
  12487. }, <span class="hljs-symbol">headers:</span> headers
  12488. p JSON.parse(result)
  12489. </code></pre>
  12490. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12491. headers = {
  12492. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12493. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12494. }
  12495. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12496. <span class="hljs-built_in">print</span>(r.json())
  12497. </code></pre>
  12498. <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>);
  12499. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12500. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12501. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12502. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12503. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12504. String inputLine;
  12505. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12506. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12507. response.append(inputLine);
  12508. }
  12509. in.close();
  12510. System.out.println(response.toString());
  12511. </code></pre>
  12512. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12513. <span class="hljs-keyword">import</span> (
  12514. <span class="hljs-string">&quot;bytes&quot;</span>
  12515. <span class="hljs-string">&quot;net/http&quot;</span>
  12516. )
  12517. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12518. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12519. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12520. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12521. }
  12522. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12523. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12524. req.Header = headers
  12525. client := &amp;http.Client{}
  12526. resp, err := client.Do(req)
  12527. <span class="hljs-comment">// ...</span>
  12528. }
  12529. </code></pre>
  12530. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12531. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12532. );
  12533. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12534. <span class="hljs-comment">// Define array of request body.</span>
  12535. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12536. <span class="hljs-keyword">try</span> {
  12537. <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>(
  12538. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12539. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12540. )
  12541. );
  12542. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12543. }
  12544. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12545. <span class="hljs-comment">// handle exception or api errors.</span>
  12546. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12547. }
  12548. <span class="hljs-comment">// ...</span>
  12549. </code></pre>
  12550. <p><code>GET /api/boards/{board}/lists</code></p>
  12551. <p><em>Get the list of Lists attached to a board</em></p>
  12552. <h3 id="get_all_lists-parameters">Parameters</h3>
  12553. <table>
  12554. <thead>
  12555. <tr>
  12556. <th>Name</th>
  12557. <th>In</th>
  12558. <th>Type</th>
  12559. <th>Required</th>
  12560. <th>Description</th>
  12561. </tr>
  12562. </thead>
  12563. <tbody>
  12564. <tr>
  12565. <td>board</td>
  12566. <td>path</td>
  12567. <td>string</td>
  12568. <td>true</td>
  12569. <td>the board ID</td>
  12570. </tr>
  12571. </tbody>
  12572. </table>
  12573. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12574. <p><strong>board</strong>: the board ID</p>
  12575. <blockquote>
  12576. <p>Example responses</p>
  12577. </blockquote>
  12578. <blockquote>
  12579. <p>200 Response</p>
  12580. </blockquote>
  12581. <pre class="highlight tab tab-json"><code>[
  12582. {
  12583. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12584. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12585. }
  12586. ]
  12587. </code></pre>
  12588. <h3 id="get_all_lists-responses">Responses</h3>
  12589. <table>
  12590. <thead>
  12591. <tr>
  12592. <th>Status</th>
  12593. <th>Meaning</th>
  12594. <th>Description</th>
  12595. <th>Schema</th>
  12596. </tr>
  12597. </thead>
  12598. <tbody>
  12599. <tr>
  12600. <td>200</td>
  12601. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12602. <td>200 response</td>
  12603. <td>Inline</td>
  12604. </tr>
  12605. </tbody>
  12606. </table>
  12607. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12608. <p>Status Code <strong>200</strong></p>
  12609. <table>
  12610. <thead>
  12611. <tr>
  12612. <th>Name</th>
  12613. <th>Type</th>
  12614. <th>Required</th>
  12615. <th>Restrictions</th>
  12616. <th>Description</th>
  12617. </tr>
  12618. </thead>
  12619. <tbody>
  12620. <tr>
  12621. <td>» _id</td>
  12622. <td>string</td>
  12623. <td>false</td>
  12624. <td>none</td>
  12625. <td>none</td>
  12626. </tr>
  12627. <tr>
  12628. <td>» title</td>
  12629. <td>string</td>
  12630. <td>false</td>
  12631. <td>none</td>
  12632. <td>none</td>
  12633. </tr>
  12634. </tbody>
  12635. </table>
  12636. <aside class="warning">
  12637. To perform this operation, you must be authenticated by means of one of the following methods:
  12638. UserSecurity
  12639. </aside>
  12640. <h2 id="new_list">new_list</h2>
  12641. <p><a id="opIdnew_list"></a></p>
  12642. <blockquote>
  12643. <p>Code samples</p>
  12644. </blockquote>
  12645. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12646. curl -X POST /api/boards/{board}/lists \
  12647. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12648. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12649. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12650. </code></pre>
  12651. <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>
  12652. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12653. Accept: application/json
  12654. </span></code></pre>
  12655. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12656. &quot;title&quot;: &quot;string&quot;
  12657. }&#x27;</span>;
  12658. <span class="hljs-keyword">const</span> headers = {
  12659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12662. };
  12663. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12664. {
  12665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12666. <span class="hljs-attr">body</span>: inputBody,
  12667. <span class="hljs-attr">headers</span>: headers
  12668. })
  12669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12670. <span class="hljs-keyword">return</span> res.json();
  12671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12672. <span class="hljs-built_in">console</span>.log(body);
  12673. });
  12674. </code></pre>
  12675. <pre class="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>);
  12676. <span class="hljs-keyword">const</span> inputBody = {
  12677. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12678. };
  12679. <span class="hljs-keyword">const</span> headers = {
  12680. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12681. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12682. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12683. };
  12684. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12685. {
  12686. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12687. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12688. <span class="hljs-attr">headers</span>: headers
  12689. })
  12690. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12691. <span class="hljs-keyword">return</span> res.json();
  12692. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12693. <span class="hljs-built_in">console</span>.log(body);
  12694. });
  12695. </code></pre>
  12696. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12697. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12698. headers = {
  12699. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12700. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12701. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12702. }
  12703. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12704. <span class="hljs-symbol">params:</span> {
  12705. }, <span class="hljs-symbol">headers:</span> headers
  12706. p JSON.parse(result)
  12707. </code></pre>
  12708. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12709. headers = {
  12710. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12711. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12712. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12713. }
  12714. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12715. <span class="hljs-built_in">print</span>(r.json())
  12716. </code></pre>
  12717. <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>);
  12718. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12719. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12720. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12721. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12722. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12723. String inputLine;
  12724. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12725. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12726. response.append(inputLine);
  12727. }
  12728. in.close();
  12729. System.out.println(response.toString());
  12730. </code></pre>
  12731. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12732. <span class="hljs-keyword">import</span> (
  12733. <span class="hljs-string">&quot;bytes&quot;</span>
  12734. <span class="hljs-string">&quot;net/http&quot;</span>
  12735. )
  12736. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12737. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12738. <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>},
  12739. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12740. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12741. }
  12742. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12743. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12744. req.Header = headers
  12745. client := &amp;http.Client{}
  12746. resp, err := client.Do(req)
  12747. <span class="hljs-comment">// ...</span>
  12748. }
  12749. </code></pre>
  12750. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12751. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12752. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12753. );
  12754. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12755. <span class="hljs-comment">// Define array of request body.</span>
  12756. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12757. <span class="hljs-keyword">try</span> {
  12758. <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>(
  12759. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12760. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12761. )
  12762. );
  12763. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12764. }
  12765. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12766. <span class="hljs-comment">// handle exception or api errors.</span>
  12767. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12768. }
  12769. <span class="hljs-comment">// ...</span>
  12770. </code></pre>
  12771. <p><code>POST /api/boards/{board}/lists</code></p>
  12772. <p><em>Add a List to a board</em></p>
  12773. <blockquote>
  12774. <p>Body parameter</p>
  12775. </blockquote>
  12776. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12777. </code></pre>
  12778. <h3 id="new_list-parameters">Parameters</h3>
  12779. <table>
  12780. <thead>
  12781. <tr>
  12782. <th>Name</th>
  12783. <th>In</th>
  12784. <th>Type</th>
  12785. <th>Required</th>
  12786. <th>Description</th>
  12787. </tr>
  12788. </thead>
  12789. <tbody>
  12790. <tr>
  12791. <td>board</td>
  12792. <td>path</td>
  12793. <td>string</td>
  12794. <td>true</td>
  12795. <td>the board ID</td>
  12796. </tr>
  12797. <tr>
  12798. <td>body</td>
  12799. <td>body</td>
  12800. <td>object</td>
  12801. <td>true</td>
  12802. <td>none</td>
  12803. </tr>
  12804. <tr>
  12805. <td>» title</td>
  12806. <td>body</td>
  12807. <td>string</td>
  12808. <td>true</td>
  12809. <td>the title of the List</td>
  12810. </tr>
  12811. </tbody>
  12812. </table>
  12813. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12814. <p><strong>board</strong>: the board ID</p>
  12815. <blockquote>
  12816. <p>Example responses</p>
  12817. </blockquote>
  12818. <blockquote>
  12819. <p>200 Response</p>
  12820. </blockquote>
  12821. <pre class="highlight tab tab-json"><code>{
  12822. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12823. }
  12824. </code></pre>
  12825. <h3 id="new_list-responses">Responses</h3>
  12826. <table>
  12827. <thead>
  12828. <tr>
  12829. <th>Status</th>
  12830. <th>Meaning</th>
  12831. <th>Description</th>
  12832. <th>Schema</th>
  12833. </tr>
  12834. </thead>
  12835. <tbody>
  12836. <tr>
  12837. <td>200</td>
  12838. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12839. <td>200 response</td>
  12840. <td>Inline</td>
  12841. </tr>
  12842. </tbody>
  12843. </table>
  12844. <h3 id="new_list-responseschema">Response Schema</h3>
  12845. <p>Status Code <strong>200</strong></p>
  12846. <table>
  12847. <thead>
  12848. <tr>
  12849. <th>Name</th>
  12850. <th>Type</th>
  12851. <th>Required</th>
  12852. <th>Restrictions</th>
  12853. <th>Description</th>
  12854. </tr>
  12855. </thead>
  12856. <tbody>
  12857. <tr>
  12858. <td>» _id</td>
  12859. <td>string</td>
  12860. <td>false</td>
  12861. <td>none</td>
  12862. <td>none</td>
  12863. </tr>
  12864. </tbody>
  12865. </table>
  12866. <aside class="warning">
  12867. To perform this operation, you must be authenticated by means of one of the following methods:
  12868. UserSecurity
  12869. </aside>
  12870. <h2 id="get_list">get_list</h2>
  12871. <p><a id="opIdget_list"></a></p>
  12872. <blockquote>
  12873. <p>Code samples</p>
  12874. </blockquote>
  12875. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12876. curl -X GET /api/boards/{board}/lists/{list} \
  12877. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12878. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12879. </code></pre>
  12880. <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>
  12881. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12882. </span></code></pre>
  12883. <pre class="highlight tab tab-javascript"><code>
  12884. <span class="hljs-keyword">const</span> headers = {
  12885. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12886. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12887. };
  12888. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12889. {
  12890. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12891. <span class="hljs-attr">headers</span>: headers
  12892. })
  12893. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12894. <span class="hljs-keyword">return</span> res.json();
  12895. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12896. <span class="hljs-built_in">console</span>.log(body);
  12897. });
  12898. </code></pre>
  12899. <pre class="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>);
  12900. <span class="hljs-keyword">const</span> headers = {
  12901. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12902. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12903. };
  12904. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12905. {
  12906. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12907. <span class="hljs-attr">headers</span>: headers
  12908. })
  12909. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12910. <span class="hljs-keyword">return</span> res.json();
  12911. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12912. <span class="hljs-built_in">console</span>.log(body);
  12913. });
  12914. </code></pre>
  12915. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12916. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12917. headers = {
  12918. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12919. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12920. }
  12921. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12922. <span class="hljs-symbol">params:</span> {
  12923. }, <span class="hljs-symbol">headers:</span> headers
  12924. p JSON.parse(result)
  12925. </code></pre>
  12926. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12927. headers = {
  12928. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12929. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12930. }
  12931. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  12932. <span class="hljs-built_in">print</span>(r.json())
  12933. </code></pre>
  12934. <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>);
  12935. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12936. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12937. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12938. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12939. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12940. String inputLine;
  12941. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12942. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12943. response.append(inputLine);
  12944. }
  12945. in.close();
  12946. System.out.println(response.toString());
  12947. </code></pre>
  12948. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12949. <span class="hljs-keyword">import</span> (
  12950. <span class="hljs-string">&quot;bytes&quot;</span>
  12951. <span class="hljs-string">&quot;net/http&quot;</span>
  12952. )
  12953. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12954. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12955. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12956. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12957. }
  12958. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12959. 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)
  12960. req.Header = headers
  12961. client := &amp;http.Client{}
  12962. resp, err := client.Do(req)
  12963. <span class="hljs-comment">// ...</span>
  12964. }
  12965. </code></pre>
  12966. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12967. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12968. );
  12969. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12970. <span class="hljs-comment">// Define array of request body.</span>
  12971. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12972. <span class="hljs-keyword">try</span> {
  12973. <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>(
  12974. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12975. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12976. )
  12977. );
  12978. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12979. }
  12980. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12981. <span class="hljs-comment">// handle exception or api errors.</span>
  12982. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12983. }
  12984. <span class="hljs-comment">// ...</span>
  12985. </code></pre>
  12986. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  12987. <p><em>Get a List attached to a board</em></p>
  12988. <h3 id="get_list-parameters">Parameters</h3>
  12989. <table>
  12990. <thead>
  12991. <tr>
  12992. <th>Name</th>
  12993. <th>In</th>
  12994. <th>Type</th>
  12995. <th>Required</th>
  12996. <th>Description</th>
  12997. </tr>
  12998. </thead>
  12999. <tbody>
  13000. <tr>
  13001. <td>board</td>
  13002. <td>path</td>
  13003. <td>string</td>
  13004. <td>true</td>
  13005. <td>the board ID</td>
  13006. </tr>
  13007. <tr>
  13008. <td>list</td>
  13009. <td>path</td>
  13010. <td>string</td>
  13011. <td>true</td>
  13012. <td>the List ID</td>
  13013. </tr>
  13014. </tbody>
  13015. </table>
  13016. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13017. <p><strong>board</strong>: the board ID</p>
  13018. <p><strong>list</strong>: the List ID</p>
  13019. <blockquote>
  13020. <p>Example responses</p>
  13021. </blockquote>
  13022. <blockquote>
  13023. <p>200 Response</p>
  13024. </blockquote>
  13025. <pre class="highlight tab tab-json"><code>{
  13026. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13027. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13028. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13029. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13030. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13031. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13032. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13033. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13034. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13035. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13036. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13037. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13038. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13039. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13040. },
  13041. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13042. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13043. }
  13044. </code></pre>
  13045. <h3 id="get_list-responses">Responses</h3>
  13046. <table>
  13047. <thead>
  13048. <tr>
  13049. <th>Status</th>
  13050. <th>Meaning</th>
  13051. <th>Description</th>
  13052. <th>Schema</th>
  13053. </tr>
  13054. </thead>
  13055. <tbody>
  13056. <tr>
  13057. <td>200</td>
  13058. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13059. <td>200 response</td>
  13060. <td><a href="#schemalists">Lists</a></td>
  13061. </tr>
  13062. </tbody>
  13063. </table>
  13064. <aside class="warning">
  13065. To perform this operation, you must be authenticated by means of one of the following methods:
  13066. UserSecurity
  13067. </aside>
  13068. <h2 id="delete_list">delete_list</h2>
  13069. <p><a id="opIddelete_list"></a></p>
  13070. <blockquote>
  13071. <p>Code samples</p>
  13072. </blockquote>
  13073. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13074. curl -X DELETE /api/boards/{board}/lists/{list} \
  13075. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13076. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13077. </code></pre>
  13078. <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>
  13079. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13080. </span></code></pre>
  13081. <pre class="highlight tab tab-javascript"><code>
  13082. <span class="hljs-keyword">const</span> headers = {
  13083. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13084. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13085. };
  13086. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13087. {
  13088. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13089. <span class="hljs-attr">headers</span>: headers
  13090. })
  13091. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13092. <span class="hljs-keyword">return</span> res.json();
  13093. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13094. <span class="hljs-built_in">console</span>.log(body);
  13095. });
  13096. </code></pre>
  13097. <pre class="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>);
  13098. <span class="hljs-keyword">const</span> headers = {
  13099. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13100. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13101. };
  13102. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13103. {
  13104. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13105. <span class="hljs-attr">headers</span>: headers
  13106. })
  13107. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13108. <span class="hljs-keyword">return</span> res.json();
  13109. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13110. <span class="hljs-built_in">console</span>.log(body);
  13111. });
  13112. </code></pre>
  13113. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13114. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13115. headers = {
  13116. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13117. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13118. }
  13119. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13120. <span class="hljs-symbol">params:</span> {
  13121. }, <span class="hljs-symbol">headers:</span> headers
  13122. p JSON.parse(result)
  13123. </code></pre>
  13124. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13125. headers = {
  13126. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13127. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13128. }
  13129. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13130. <span class="hljs-built_in">print</span>(r.json())
  13131. </code></pre>
  13132. <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>);
  13133. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13134. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13135. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13136. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13137. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13138. String inputLine;
  13139. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13140. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13141. response.append(inputLine);
  13142. }
  13143. in.close();
  13144. System.out.println(response.toString());
  13145. </code></pre>
  13146. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13147. <span class="hljs-keyword">import</span> (
  13148. <span class="hljs-string">&quot;bytes&quot;</span>
  13149. <span class="hljs-string">&quot;net/http&quot;</span>
  13150. )
  13151. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13152. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13153. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13154. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13155. }
  13156. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13157. 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)
  13158. req.Header = headers
  13159. client := &amp;http.Client{}
  13160. resp, err := client.Do(req)
  13161. <span class="hljs-comment">// ...</span>
  13162. }
  13163. </code></pre>
  13164. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13165. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13166. );
  13167. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13168. <span class="hljs-comment">// Define array of request body.</span>
  13169. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13170. <span class="hljs-keyword">try</span> {
  13171. <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>(
  13172. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13173. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13174. )
  13175. );
  13176. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13177. }
  13178. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13179. <span class="hljs-comment">// handle exception or api errors.</span>
  13180. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13181. }
  13182. <span class="hljs-comment">// ...</span>
  13183. </code></pre>
  13184. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13185. <p><em>Delete a List</em></p>
  13186. <p>This <strong>deletes</strong> a list from a board.
  13187. The list is not put in the recycle bin.</p>
  13188. <h3 id="delete_list-parameters">Parameters</h3>
  13189. <table>
  13190. <thead>
  13191. <tr>
  13192. <th>Name</th>
  13193. <th>In</th>
  13194. <th>Type</th>
  13195. <th>Required</th>
  13196. <th>Description</th>
  13197. </tr>
  13198. </thead>
  13199. <tbody>
  13200. <tr>
  13201. <td>board</td>
  13202. <td>path</td>
  13203. <td>string</td>
  13204. <td>true</td>
  13205. <td>the board ID</td>
  13206. </tr>
  13207. <tr>
  13208. <td>list</td>
  13209. <td>path</td>
  13210. <td>string</td>
  13211. <td>true</td>
  13212. <td>the ID of the list to remove</td>
  13213. </tr>
  13214. </tbody>
  13215. </table>
  13216. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13217. <p><strong>board</strong>: the board ID</p>
  13218. <p><strong>list</strong>: the ID of the list to remove</p>
  13219. <blockquote>
  13220. <p>Example responses</p>
  13221. </blockquote>
  13222. <blockquote>
  13223. <p>200 Response</p>
  13224. </blockquote>
  13225. <pre class="highlight tab tab-json"><code>{
  13226. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13227. }
  13228. </code></pre>
  13229. <h3 id="delete_list-responses">Responses</h3>
  13230. <table>
  13231. <thead>
  13232. <tr>
  13233. <th>Status</th>
  13234. <th>Meaning</th>
  13235. <th>Description</th>
  13236. <th>Schema</th>
  13237. </tr>
  13238. </thead>
  13239. <tbody>
  13240. <tr>
  13241. <td>200</td>
  13242. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13243. <td>200 response</td>
  13244. <td>Inline</td>
  13245. </tr>
  13246. </tbody>
  13247. </table>
  13248. <h3 id="delete_list-responseschema">Response Schema</h3>
  13249. <p>Status Code <strong>200</strong></p>
  13250. <table>
  13251. <thead>
  13252. <tr>
  13253. <th>Name</th>
  13254. <th>Type</th>
  13255. <th>Required</th>
  13256. <th>Restrictions</th>
  13257. <th>Description</th>
  13258. </tr>
  13259. </thead>
  13260. <tbody>
  13261. <tr>
  13262. <td>» _id</td>
  13263. <td>string</td>
  13264. <td>false</td>
  13265. <td>none</td>
  13266. <td>none</td>
  13267. </tr>
  13268. </tbody>
  13269. </table>
  13270. <aside class="warning">
  13271. To perform this operation, you must be authenticated by means of one of the following methods:
  13272. UserSecurity
  13273. </aside>
  13274. <h1 id="wekan-rest-api-users">Users</h1>
  13275. <h2 id="add_board_member">add_board_member</h2>
  13276. <p><a id="opIdadd_board_member"></a></p>
  13277. <blockquote>
  13278. <p>Code samples</p>
  13279. </blockquote>
  13280. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13281. curl -X POST /api/boards/{board}/members/{user}/add \
  13282. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13283. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13284. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13285. </code></pre>
  13286. <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>
  13287. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13288. Accept: application/json
  13289. </span></code></pre>
  13290. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13291. &quot;action&quot;: &quot;string&quot;,
  13292. &quot;isAdmin&quot;: true,
  13293. &quot;isNoComments&quot;: true,
  13294. &quot;isCommentOnly&quot;: true
  13295. }&#x27;</span>;
  13296. <span class="hljs-keyword">const</span> headers = {
  13297. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13298. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13299. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13300. };
  13301. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13302. {
  13303. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13304. <span class="hljs-attr">body</span>: inputBody,
  13305. <span class="hljs-attr">headers</span>: headers
  13306. })
  13307. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13308. <span class="hljs-keyword">return</span> res.json();
  13309. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13310. <span class="hljs-built_in">console</span>.log(body);
  13311. });
  13312. </code></pre>
  13313. <pre class="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>);
  13314. <span class="hljs-keyword">const</span> inputBody = {
  13315. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13316. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13317. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13318. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13319. };
  13320. <span class="hljs-keyword">const</span> headers = {
  13321. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13322. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13323. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13324. };
  13325. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13326. {
  13327. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13328. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13329. <span class="hljs-attr">headers</span>: headers
  13330. })
  13331. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13332. <span class="hljs-keyword">return</span> res.json();
  13333. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13334. <span class="hljs-built_in">console</span>.log(body);
  13335. });
  13336. </code></pre>
  13337. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13338. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13339. headers = {
  13340. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13341. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13342. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13343. }
  13344. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13345. <span class="hljs-symbol">params:</span> {
  13346. }, <span class="hljs-symbol">headers:</span> headers
  13347. p JSON.parse(result)
  13348. </code></pre>
  13349. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13350. headers = {
  13351. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13352. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13353. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13354. }
  13355. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13356. <span class="hljs-built_in">print</span>(r.json())
  13357. </code></pre>
  13358. <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>);
  13359. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13360. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13361. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13362. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13363. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13364. String inputLine;
  13365. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13366. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13367. response.append(inputLine);
  13368. }
  13369. in.close();
  13370. System.out.println(response.toString());
  13371. </code></pre>
  13372. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13373. <span class="hljs-keyword">import</span> (
  13374. <span class="hljs-string">&quot;bytes&quot;</span>
  13375. <span class="hljs-string">&quot;net/http&quot;</span>
  13376. )
  13377. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13378. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13379. <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>},
  13380. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13381. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13382. }
  13383. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13384. 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)
  13385. req.Header = headers
  13386. client := &amp;http.Client{}
  13387. resp, err := client.Do(req)
  13388. <span class="hljs-comment">// ...</span>
  13389. }
  13390. </code></pre>
  13391. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13392. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13393. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13394. );
  13395. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13396. <span class="hljs-comment">// Define array of request body.</span>
  13397. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13398. <span class="hljs-keyword">try</span> {
  13399. <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>(
  13400. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13401. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13402. )
  13403. );
  13404. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13405. }
  13406. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13407. <span class="hljs-comment">// handle exception or api errors.</span>
  13408. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13409. }
  13410. <span class="hljs-comment">// ...</span>
  13411. </code></pre>
  13412. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13413. <p><em>Add New Board Member with Role</em></p>
  13414. <p>Only the admin user (the first user) can call the REST API.</p>
  13415. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13416. to later change the permissions.</p>
  13417. <blockquote>
  13418. <p>Body parameter</p>
  13419. </blockquote>
  13420. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13421. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13422. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13423. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13424. </code></pre>
  13425. <h3 id="add_board_member-parameters">Parameters</h3>
  13426. <table>
  13427. <thead>
  13428. <tr>
  13429. <th>Name</th>
  13430. <th>In</th>
  13431. <th>Type</th>
  13432. <th>Required</th>
  13433. <th>Description</th>
  13434. </tr>
  13435. </thead>
  13436. <tbody>
  13437. <tr>
  13438. <td>board</td>
  13439. <td>path</td>
  13440. <td>string</td>
  13441. <td>true</td>
  13442. <td>the board ID</td>
  13443. </tr>
  13444. <tr>
  13445. <td>user</td>
  13446. <td>path</td>
  13447. <td>string</td>
  13448. <td>true</td>
  13449. <td>the user ID</td>
  13450. </tr>
  13451. <tr>
  13452. <td>body</td>
  13453. <td>body</td>
  13454. <td>object</td>
  13455. <td>true</td>
  13456. <td>none</td>
  13457. </tr>
  13458. <tr>
  13459. <td>» action</td>
  13460. <td>body</td>
  13461. <td>string</td>
  13462. <td>true</td>
  13463. <td>the action value</td>
  13464. </tr>
  13465. <tr>
  13466. <td>» isAdmin</td>
  13467. <td>body</td>
  13468. <td>boolean</td>
  13469. <td>true</td>
  13470. <td>is the user an admin of the board</td>
  13471. </tr>
  13472. <tr>
  13473. <td>» isNoComments</td>
  13474. <td>body</td>
  13475. <td>boolean</td>
  13476. <td>true</td>
  13477. <td>disable comments</td>
  13478. </tr>
  13479. <tr>
  13480. <td>» isCommentOnly</td>
  13481. <td>body</td>
  13482. <td>boolean</td>
  13483. <td>true</td>
  13484. <td>only enable comments</td>
  13485. </tr>
  13486. </tbody>
  13487. </table>
  13488. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13489. <p><strong>board</strong>: the board ID</p>
  13490. <p><strong>user</strong>: the user ID</p>
  13491. <blockquote>
  13492. <p>Example responses</p>
  13493. </blockquote>
  13494. <blockquote>
  13495. <p>200 Response</p>
  13496. </blockquote>
  13497. <pre class="highlight tab tab-json"><code>{
  13498. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13499. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13500. }
  13501. </code></pre>
  13502. <h3 id="add_board_member-responses">Responses</h3>
  13503. <table>
  13504. <thead>
  13505. <tr>
  13506. <th>Status</th>
  13507. <th>Meaning</th>
  13508. <th>Description</th>
  13509. <th>Schema</th>
  13510. </tr>
  13511. </thead>
  13512. <tbody>
  13513. <tr>
  13514. <td>200</td>
  13515. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13516. <td>200 response</td>
  13517. <td>Inline</td>
  13518. </tr>
  13519. </tbody>
  13520. </table>
  13521. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13522. <p>Status Code <strong>200</strong></p>
  13523. <table>
  13524. <thead>
  13525. <tr>
  13526. <th>Name</th>
  13527. <th>Type</th>
  13528. <th>Required</th>
  13529. <th>Restrictions</th>
  13530. <th>Description</th>
  13531. </tr>
  13532. </thead>
  13533. <tbody>
  13534. <tr>
  13535. <td>» _id</td>
  13536. <td>string</td>
  13537. <td>false</td>
  13538. <td>none</td>
  13539. <td>none</td>
  13540. </tr>
  13541. <tr>
  13542. <td>» title</td>
  13543. <td>string</td>
  13544. <td>false</td>
  13545. <td>none</td>
  13546. <td>none</td>
  13547. </tr>
  13548. </tbody>
  13549. </table>
  13550. <aside class="warning">
  13551. To perform this operation, you must be authenticated by means of one of the following methods:
  13552. UserSecurity
  13553. </aside>
  13554. <h2 id="remove_board_member">remove_board_member</h2>
  13555. <p><a id="opIdremove_board_member"></a></p>
  13556. <blockquote>
  13557. <p>Code samples</p>
  13558. </blockquote>
  13559. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13560. curl -X POST /api/boards/{board}/members/{user}/remove \
  13561. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13562. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13563. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13564. </code></pre>
  13565. <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>
  13566. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13567. Accept: application/json
  13568. </span></code></pre>
  13569. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13570. &quot;action&quot;: &quot;string&quot;
  13571. }&#x27;</span>;
  13572. <span class="hljs-keyword">const</span> headers = {
  13573. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13574. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13575. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13576. };
  13577. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13578. {
  13579. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13580. <span class="hljs-attr">body</span>: inputBody,
  13581. <span class="hljs-attr">headers</span>: headers
  13582. })
  13583. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13584. <span class="hljs-keyword">return</span> res.json();
  13585. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13586. <span class="hljs-built_in">console</span>.log(body);
  13587. });
  13588. </code></pre>
  13589. <pre class="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>);
  13590. <span class="hljs-keyword">const</span> inputBody = {
  13591. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13592. };
  13593. <span class="hljs-keyword">const</span> headers = {
  13594. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13595. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13596. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13597. };
  13598. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13599. {
  13600. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13601. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13602. <span class="hljs-attr">headers</span>: headers
  13603. })
  13604. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13605. <span class="hljs-keyword">return</span> res.json();
  13606. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13607. <span class="hljs-built_in">console</span>.log(body);
  13608. });
  13609. </code></pre>
  13610. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13611. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13612. headers = {
  13613. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13614. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13615. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13616. }
  13617. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13618. <span class="hljs-symbol">params:</span> {
  13619. }, <span class="hljs-symbol">headers:</span> headers
  13620. p JSON.parse(result)
  13621. </code></pre>
  13622. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13623. headers = {
  13624. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13625. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13626. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13627. }
  13628. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  13629. <span class="hljs-built_in">print</span>(r.json())
  13630. </code></pre>
  13631. <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>);
  13632. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13633. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13634. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13635. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13636. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13637. String inputLine;
  13638. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13639. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13640. response.append(inputLine);
  13641. }
  13642. in.close();
  13643. System.out.println(response.toString());
  13644. </code></pre>
  13645. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13646. <span class="hljs-keyword">import</span> (
  13647. <span class="hljs-string">&quot;bytes&quot;</span>
  13648. <span class="hljs-string">&quot;net/http&quot;</span>
  13649. )
  13650. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13651. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13652. <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>},
  13653. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13654. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13655. }
  13656. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13657. 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)
  13658. req.Header = headers
  13659. client := &amp;http.Client{}
  13660. resp, err := client.Do(req)
  13661. <span class="hljs-comment">// ...</span>
  13662. }
  13663. </code></pre>
  13664. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13665. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13666. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13667. );
  13668. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13669. <span class="hljs-comment">// Define array of request body.</span>
  13670. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13671. <span class="hljs-keyword">try</span> {
  13672. <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>(
  13673. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13674. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13675. )
  13676. );
  13677. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13678. }
  13679. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13680. <span class="hljs-comment">// handle exception or api errors.</span>
  13681. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13682. }
  13683. <span class="hljs-comment">// ...</span>
  13684. </code></pre>
  13685. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  13686. <p><em>Remove Member from Board</em></p>
  13687. <p>Only the admin user (the first user) can call the REST API.</p>
  13688. <blockquote>
  13689. <p>Body parameter</p>
  13690. </blockquote>
  13691. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13692. </code></pre>
  13693. <h3 id="remove_board_member-parameters">Parameters</h3>
  13694. <table>
  13695. <thead>
  13696. <tr>
  13697. <th>Name</th>
  13698. <th>In</th>
  13699. <th>Type</th>
  13700. <th>Required</th>
  13701. <th>Description</th>
  13702. </tr>
  13703. </thead>
  13704. <tbody>
  13705. <tr>
  13706. <td>board</td>
  13707. <td>path</td>
  13708. <td>string</td>
  13709. <td>true</td>
  13710. <td>the board ID</td>
  13711. </tr>
  13712. <tr>
  13713. <td>user</td>
  13714. <td>path</td>
  13715. <td>string</td>
  13716. <td>true</td>
  13717. <td>the user ID</td>
  13718. </tr>
  13719. <tr>
  13720. <td>body</td>
  13721. <td>body</td>
  13722. <td>object</td>
  13723. <td>true</td>
  13724. <td>none</td>
  13725. </tr>
  13726. <tr>
  13727. <td>» action</td>
  13728. <td>body</td>
  13729. <td>string</td>
  13730. <td>true</td>
  13731. <td>the action (needs to be <code>remove</code>)</td>
  13732. </tr>
  13733. </tbody>
  13734. </table>
  13735. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13736. <p><strong>board</strong>: the board ID</p>
  13737. <p><strong>user</strong>: the user ID</p>
  13738. <blockquote>
  13739. <p>Example responses</p>
  13740. </blockquote>
  13741. <blockquote>
  13742. <p>200 Response</p>
  13743. </blockquote>
  13744. <pre class="highlight tab tab-json"><code>{
  13745. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13746. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13747. }
  13748. </code></pre>
  13749. <h3 id="remove_board_member-responses">Responses</h3>
  13750. <table>
  13751. <thead>
  13752. <tr>
  13753. <th>Status</th>
  13754. <th>Meaning</th>
  13755. <th>Description</th>
  13756. <th>Schema</th>
  13757. </tr>
  13758. </thead>
  13759. <tbody>
  13760. <tr>
  13761. <td>200</td>
  13762. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13763. <td>200 response</td>
  13764. <td>Inline</td>
  13765. </tr>
  13766. </tbody>
  13767. </table>
  13768. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  13769. <p>Status Code <strong>200</strong></p>
  13770. <table>
  13771. <thead>
  13772. <tr>
  13773. <th>Name</th>
  13774. <th>Type</th>
  13775. <th>Required</th>
  13776. <th>Restrictions</th>
  13777. <th>Description</th>
  13778. </tr>
  13779. </thead>
  13780. <tbody>
  13781. <tr>
  13782. <td>» _id</td>
  13783. <td>string</td>
  13784. <td>false</td>
  13785. <td>none</td>
  13786. <td>none</td>
  13787. </tr>
  13788. <tr>
  13789. <td>» title</td>
  13790. <td>string</td>
  13791. <td>false</td>
  13792. <td>none</td>
  13793. <td>none</td>
  13794. </tr>
  13795. </tbody>
  13796. </table>
  13797. <aside class="warning">
  13798. To perform this operation, you must be authenticated by means of one of the following methods:
  13799. UserSecurity
  13800. </aside>
  13801. <h2 id="create_user_token">create_user_token</h2>
  13802. <p><a id="opIdcreate_user_token"></a></p>
  13803. <blockquote>
  13804. <p>Code samples</p>
  13805. </blockquote>
  13806. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13807. curl -X POST /api/createtoken/{user} \
  13808. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13809. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13810. </code></pre>
  13811. <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>
  13812. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13813. </span></code></pre>
  13814. <pre class="highlight tab tab-javascript"><code>
  13815. <span class="hljs-keyword">const</span> headers = {
  13816. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13817. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13818. };
  13819. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13820. {
  13821. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13822. <span class="hljs-attr">headers</span>: headers
  13823. })
  13824. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13825. <span class="hljs-keyword">return</span> res.json();
  13826. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13827. <span class="hljs-built_in">console</span>.log(body);
  13828. });
  13829. </code></pre>
  13830. <pre class="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>);
  13831. <span class="hljs-keyword">const</span> headers = {
  13832. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13833. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13834. };
  13835. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13836. {
  13837. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13838. <span class="hljs-attr">headers</span>: headers
  13839. })
  13840. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13841. <span class="hljs-keyword">return</span> res.json();
  13842. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13843. <span class="hljs-built_in">console</span>.log(body);
  13844. });
  13845. </code></pre>
  13846. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13847. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13848. headers = {
  13849. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13850. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13851. }
  13852. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13853. <span class="hljs-symbol">params:</span> {
  13854. }, <span class="hljs-symbol">headers:</span> headers
  13855. p JSON.parse(result)
  13856. </code></pre>
  13857. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13858. headers = {
  13859. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13860. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13861. }
  13862. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  13863. <span class="hljs-built_in">print</span>(r.json())
  13864. </code></pre>
  13865. <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>);
  13866. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13867. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13868. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13869. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13870. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13871. String inputLine;
  13872. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13873. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13874. response.append(inputLine);
  13875. }
  13876. in.close();
  13877. System.out.println(response.toString());
  13878. </code></pre>
  13879. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13880. <span class="hljs-keyword">import</span> (
  13881. <span class="hljs-string">&quot;bytes&quot;</span>
  13882. <span class="hljs-string">&quot;net/http&quot;</span>
  13883. )
  13884. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13885. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13886. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13887. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13888. }
  13889. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13890. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  13891. req.Header = headers
  13892. client := &amp;http.Client{}
  13893. resp, err := client.Do(req)
  13894. <span class="hljs-comment">// ...</span>
  13895. }
  13896. </code></pre>
  13897. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13898. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13899. );
  13900. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13901. <span class="hljs-comment">// Define array of request body.</span>
  13902. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13903. <span class="hljs-keyword">try</span> {
  13904. <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>(
  13905. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13906. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13907. )
  13908. );
  13909. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13910. }
  13911. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13912. <span class="hljs-comment">// handle exception or api errors.</span>
  13913. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13914. }
  13915. <span class="hljs-comment">// ...</span>
  13916. </code></pre>
  13917. <p><code>POST /api/createtoken/{user}</code></p>
  13918. <p><em>Create a user token</em></p>
  13919. <p>Only the admin user (the first user) can call the REST API.</p>
  13920. <h3 id="create_user_token-parameters">Parameters</h3>
  13921. <table>
  13922. <thead>
  13923. <tr>
  13924. <th>Name</th>
  13925. <th>In</th>
  13926. <th>Type</th>
  13927. <th>Required</th>
  13928. <th>Description</th>
  13929. </tr>
  13930. </thead>
  13931. <tbody>
  13932. <tr>
  13933. <td>user</td>
  13934. <td>path</td>
  13935. <td>string</td>
  13936. <td>true</td>
  13937. <td>the ID of the user to create token for.</td>
  13938. </tr>
  13939. </tbody>
  13940. </table>
  13941. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13942. <p><strong>user</strong>: the ID of the user to create token for.</p>
  13943. <blockquote>
  13944. <p>Example responses</p>
  13945. </blockquote>
  13946. <blockquote>
  13947. <p>200 Response</p>
  13948. </blockquote>
  13949. <pre class="highlight tab tab-json"><code>{
  13950. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13951. }
  13952. </code></pre>
  13953. <h3 id="create_user_token-responses">Responses</h3>
  13954. <table>
  13955. <thead>
  13956. <tr>
  13957. <th>Status</th>
  13958. <th>Meaning</th>
  13959. <th>Description</th>
  13960. <th>Schema</th>
  13961. </tr>
  13962. </thead>
  13963. <tbody>
  13964. <tr>
  13965. <td>200</td>
  13966. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13967. <td>200 response</td>
  13968. <td>Inline</td>
  13969. </tr>
  13970. </tbody>
  13971. </table>
  13972. <h3 id="create_user_token-responseschema">Response Schema</h3>
  13973. <p>Status Code <strong>200</strong></p>
  13974. <table>
  13975. <thead>
  13976. <tr>
  13977. <th>Name</th>
  13978. <th>Type</th>
  13979. <th>Required</th>
  13980. <th>Restrictions</th>
  13981. <th>Description</th>
  13982. </tr>
  13983. </thead>
  13984. <tbody>
  13985. <tr>
  13986. <td>» _id</td>
  13987. <td>string</td>
  13988. <td>false</td>
  13989. <td>none</td>
  13990. <td>none</td>
  13991. </tr>
  13992. </tbody>
  13993. </table>
  13994. <aside class="warning">
  13995. To perform this operation, you must be authenticated by means of one of the following methods:
  13996. UserSecurity
  13997. </aside>
  13998. <h2 id="get_current_user">get_current_user</h2>
  13999. <p><a id="opIdget_current_user"></a></p>
  14000. <blockquote>
  14001. <p>Code samples</p>
  14002. </blockquote>
  14003. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14004. curl -X GET /api/user \
  14005. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14006. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14007. </code></pre>
  14008. <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>
  14009. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14010. </span></code></pre>
  14011. <pre class="highlight tab tab-javascript"><code>
  14012. <span class="hljs-keyword">const</span> headers = {
  14013. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14014. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14015. };
  14016. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14017. {
  14018. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14019. <span class="hljs-attr">headers</span>: headers
  14020. })
  14021. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14022. <span class="hljs-keyword">return</span> res.json();
  14023. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14024. <span class="hljs-built_in">console</span>.log(body);
  14025. });
  14026. </code></pre>
  14027. <pre class="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>);
  14028. <span class="hljs-keyword">const</span> headers = {
  14029. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14030. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14031. };
  14032. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14033. {
  14034. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14035. <span class="hljs-attr">headers</span>: headers
  14036. })
  14037. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14038. <span class="hljs-keyword">return</span> res.json();
  14039. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14040. <span class="hljs-built_in">console</span>.log(body);
  14041. });
  14042. </code></pre>
  14043. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14044. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14045. headers = {
  14046. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14047. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14048. }
  14049. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14050. <span class="hljs-symbol">params:</span> {
  14051. }, <span class="hljs-symbol">headers:</span> headers
  14052. p JSON.parse(result)
  14053. </code></pre>
  14054. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14055. headers = {
  14056. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14057. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14058. }
  14059. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14060. <span class="hljs-built_in">print</span>(r.json())
  14061. </code></pre>
  14062. <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>);
  14063. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14064. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14065. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14066. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14067. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14068. String inputLine;
  14069. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14070. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14071. response.append(inputLine);
  14072. }
  14073. in.close();
  14074. System.out.println(response.toString());
  14075. </code></pre>
  14076. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14077. <span class="hljs-keyword">import</span> (
  14078. <span class="hljs-string">&quot;bytes&quot;</span>
  14079. <span class="hljs-string">&quot;net/http&quot;</span>
  14080. )
  14081. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14082. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14083. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14084. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14085. }
  14086. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14087. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14088. req.Header = headers
  14089. client := &amp;http.Client{}
  14090. resp, err := client.Do(req)
  14091. <span class="hljs-comment">// ...</span>
  14092. }
  14093. </code></pre>
  14094. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14095. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14096. );
  14097. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14098. <span class="hljs-comment">// Define array of request body.</span>
  14099. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14100. <span class="hljs-keyword">try</span> {
  14101. <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>(
  14102. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14103. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14104. )
  14105. );
  14106. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14107. }
  14108. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14109. <span class="hljs-comment">// handle exception or api errors.</span>
  14110. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14111. }
  14112. <span class="hljs-comment">// ...</span>
  14113. </code></pre>
  14114. <p><code>GET /api/user</code></p>
  14115. <p><em>returns the current user</em></p>
  14116. <blockquote>
  14117. <p>Example responses</p>
  14118. </blockquote>
  14119. <blockquote>
  14120. <p>200 Response</p>
  14121. </blockquote>
  14122. <pre class="highlight tab tab-json"><code>{
  14123. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14124. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14125. {
  14126. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14127. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14128. }
  14129. ],
  14130. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14131. {
  14132. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14133. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14134. }
  14135. ],
  14136. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14137. {
  14138. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14139. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14140. }
  14141. ],
  14142. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14143. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14144. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14145. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14146. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14147. <span class="hljs-string">&quot;string&quot;</span>
  14148. ],
  14149. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14150. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14151. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14152. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14153. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14154. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14155. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14156. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14157. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14158. <span class="hljs-string">&quot;string&quot;</span>
  14159. ],
  14160. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14161. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14162. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14163. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14164. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14165. {
  14166. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14167. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14168. }
  14169. ],
  14170. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14171. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14172. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14173. <span class="hljs-string">&quot;string&quot;</span>
  14174. ],
  14175. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14176. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14177. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14178. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14179. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14180. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14181. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14182. },
  14183. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14184. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14185. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14186. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14187. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14188. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14189. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14190. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14191. },
  14192. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14193. <span class="hljs-string">&quot;string&quot;</span>
  14194. ]
  14195. }
  14196. </code></pre>
  14197. <h3 id="get_current_user-responses">Responses</h3>
  14198. <table>
  14199. <thead>
  14200. <tr>
  14201. <th>Status</th>
  14202. <th>Meaning</th>
  14203. <th>Description</th>
  14204. <th>Schema</th>
  14205. </tr>
  14206. </thead>
  14207. <tbody>
  14208. <tr>
  14209. <td>200</td>
  14210. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14211. <td>200 response</td>
  14212. <td><a href="#schemausers">Users</a></td>
  14213. </tr>
  14214. </tbody>
  14215. </table>
  14216. <aside class="warning">
  14217. To perform this operation, you must be authenticated by means of one of the following methods:
  14218. UserSecurity
  14219. </aside>
  14220. <h2 id="get_all_users">get_all_users</h2>
  14221. <p><a id="opIdget_all_users"></a></p>
  14222. <blockquote>
  14223. <p>Code samples</p>
  14224. </blockquote>
  14225. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14226. curl -X GET /api/users \
  14227. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14228. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14229. </code></pre>
  14230. <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>
  14231. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14232. </span></code></pre>
  14233. <pre class="highlight tab tab-javascript"><code>
  14234. <span class="hljs-keyword">const</span> headers = {
  14235. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14236. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14237. };
  14238. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14239. {
  14240. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14241. <span class="hljs-attr">headers</span>: headers
  14242. })
  14243. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14244. <span class="hljs-keyword">return</span> res.json();
  14245. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14246. <span class="hljs-built_in">console</span>.log(body);
  14247. });
  14248. </code></pre>
  14249. <pre class="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>);
  14250. <span class="hljs-keyword">const</span> headers = {
  14251. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14252. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14253. };
  14254. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14255. {
  14256. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14257. <span class="hljs-attr">headers</span>: headers
  14258. })
  14259. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14260. <span class="hljs-keyword">return</span> res.json();
  14261. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14262. <span class="hljs-built_in">console</span>.log(body);
  14263. });
  14264. </code></pre>
  14265. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14266. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14267. headers = {
  14268. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14269. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14270. }
  14271. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14272. <span class="hljs-symbol">params:</span> {
  14273. }, <span class="hljs-symbol">headers:</span> headers
  14274. p JSON.parse(result)
  14275. </code></pre>
  14276. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14277. headers = {
  14278. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14279. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14280. }
  14281. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14282. <span class="hljs-built_in">print</span>(r.json())
  14283. </code></pre>
  14284. <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>);
  14285. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14286. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14287. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14288. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14289. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14290. String inputLine;
  14291. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14292. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14293. response.append(inputLine);
  14294. }
  14295. in.close();
  14296. System.out.println(response.toString());
  14297. </code></pre>
  14298. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14299. <span class="hljs-keyword">import</span> (
  14300. <span class="hljs-string">&quot;bytes&quot;</span>
  14301. <span class="hljs-string">&quot;net/http&quot;</span>
  14302. )
  14303. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14304. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14305. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14306. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14307. }
  14308. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14309. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14310. req.Header = headers
  14311. client := &amp;http.Client{}
  14312. resp, err := client.Do(req)
  14313. <span class="hljs-comment">// ...</span>
  14314. }
  14315. </code></pre>
  14316. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14317. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14318. );
  14319. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14320. <span class="hljs-comment">// Define array of request body.</span>
  14321. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14322. <span class="hljs-keyword">try</span> {
  14323. <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>(
  14324. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14325. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14326. )
  14327. );
  14328. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14329. }
  14330. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14331. <span class="hljs-comment">// handle exception or api errors.</span>
  14332. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14333. }
  14334. <span class="hljs-comment">// ...</span>
  14335. </code></pre>
  14336. <p><code>GET /api/users</code></p>
  14337. <p><em>return all the users</em></p>
  14338. <p>Only the admin user (the first user) can call the REST API.</p>
  14339. <blockquote>
  14340. <p>Example responses</p>
  14341. </blockquote>
  14342. <blockquote>
  14343. <p>200 Response</p>
  14344. </blockquote>
  14345. <pre class="highlight tab tab-json"><code>[
  14346. {
  14347. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14348. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14349. }
  14350. ]
  14351. </code></pre>
  14352. <h3 id="get_all_users-responses">Responses</h3>
  14353. <table>
  14354. <thead>
  14355. <tr>
  14356. <th>Status</th>
  14357. <th>Meaning</th>
  14358. <th>Description</th>
  14359. <th>Schema</th>
  14360. </tr>
  14361. </thead>
  14362. <tbody>
  14363. <tr>
  14364. <td>200</td>
  14365. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14366. <td>200 response</td>
  14367. <td>Inline</td>
  14368. </tr>
  14369. </tbody>
  14370. </table>
  14371. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14372. <p>Status Code <strong>200</strong></p>
  14373. <table>
  14374. <thead>
  14375. <tr>
  14376. <th>Name</th>
  14377. <th>Type</th>
  14378. <th>Required</th>
  14379. <th>Restrictions</th>
  14380. <th>Description</th>
  14381. </tr>
  14382. </thead>
  14383. <tbody>
  14384. <tr>
  14385. <td>» _id</td>
  14386. <td>string</td>
  14387. <td>false</td>
  14388. <td>none</td>
  14389. <td>none</td>
  14390. </tr>
  14391. <tr>
  14392. <td>» username</td>
  14393. <td>string</td>
  14394. <td>false</td>
  14395. <td>none</td>
  14396. <td>none</td>
  14397. </tr>
  14398. </tbody>
  14399. </table>
  14400. <aside class="warning">
  14401. To perform this operation, you must be authenticated by means of one of the following methods:
  14402. UserSecurity
  14403. </aside>
  14404. <h2 id="new_user">new_user</h2>
  14405. <p><a id="opIdnew_user"></a></p>
  14406. <blockquote>
  14407. <p>Code samples</p>
  14408. </blockquote>
  14409. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14410. curl -X POST /api/users \
  14411. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14412. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14413. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14414. </code></pre>
  14415. <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>
  14416. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14417. Accept: application/json
  14418. </span></code></pre>
  14419. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14420. &quot;username&quot;: &quot;string&quot;,
  14421. &quot;email&quot;: &quot;string&quot;,
  14422. &quot;password&quot;: &quot;string&quot;
  14423. }&#x27;</span>;
  14424. <span class="hljs-keyword">const</span> headers = {
  14425. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14426. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14427. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14428. };
  14429. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14430. {
  14431. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14432. <span class="hljs-attr">body</span>: inputBody,
  14433. <span class="hljs-attr">headers</span>: headers
  14434. })
  14435. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14436. <span class="hljs-keyword">return</span> res.json();
  14437. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14438. <span class="hljs-built_in">console</span>.log(body);
  14439. });
  14440. </code></pre>
  14441. <pre class="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>);
  14442. <span class="hljs-keyword">const</span> inputBody = {
  14443. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14444. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14445. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14446. };
  14447. <span class="hljs-keyword">const</span> headers = {
  14448. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14449. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14450. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14451. };
  14452. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14453. {
  14454. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14455. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14456. <span class="hljs-attr">headers</span>: headers
  14457. })
  14458. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14459. <span class="hljs-keyword">return</span> res.json();
  14460. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14461. <span class="hljs-built_in">console</span>.log(body);
  14462. });
  14463. </code></pre>
  14464. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14465. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14466. headers = {
  14467. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14468. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14469. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14470. }
  14471. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14472. <span class="hljs-symbol">params:</span> {
  14473. }, <span class="hljs-symbol">headers:</span> headers
  14474. p JSON.parse(result)
  14475. </code></pre>
  14476. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14477. headers = {
  14478. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14479. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14480. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14481. }
  14482. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14483. <span class="hljs-built_in">print</span>(r.json())
  14484. </code></pre>
  14485. <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>);
  14486. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14487. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14488. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14489. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14490. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14491. String inputLine;
  14492. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14493. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14494. response.append(inputLine);
  14495. }
  14496. in.close();
  14497. System.out.println(response.toString());
  14498. </code></pre>
  14499. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14500. <span class="hljs-keyword">import</span> (
  14501. <span class="hljs-string">&quot;bytes&quot;</span>
  14502. <span class="hljs-string">&quot;net/http&quot;</span>
  14503. )
  14504. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14505. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14506. <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>},
  14507. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14508. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14509. }
  14510. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14511. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14512. req.Header = headers
  14513. client := &amp;http.Client{}
  14514. resp, err := client.Do(req)
  14515. <span class="hljs-comment">// ...</span>
  14516. }
  14517. </code></pre>
  14518. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14519. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14520. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14521. );
  14522. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14523. <span class="hljs-comment">// Define array of request body.</span>
  14524. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14525. <span class="hljs-keyword">try</span> {
  14526. <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>(
  14527. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14528. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14529. )
  14530. );
  14531. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14532. }
  14533. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14534. <span class="hljs-comment">// handle exception or api errors.</span>
  14535. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14536. }
  14537. <span class="hljs-comment">// ...</span>
  14538. </code></pre>
  14539. <p><code>POST /api/users</code></p>
  14540. <p><em>Create a new user</em></p>
  14541. <p>Only the admin user (the first user) can call the REST API.</p>
  14542. <blockquote>
  14543. <p>Body parameter</p>
  14544. </blockquote>
  14545. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14546. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14547. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14548. </code></pre>
  14549. <h3 id="new_user-parameters">Parameters</h3>
  14550. <table>
  14551. <thead>
  14552. <tr>
  14553. <th>Name</th>
  14554. <th>In</th>
  14555. <th>Type</th>
  14556. <th>Required</th>
  14557. <th>Description</th>
  14558. </tr>
  14559. </thead>
  14560. <tbody>
  14561. <tr>
  14562. <td>body</td>
  14563. <td>body</td>
  14564. <td>object</td>
  14565. <td>true</td>
  14566. <td>none</td>
  14567. </tr>
  14568. <tr>
  14569. <td>» username</td>
  14570. <td>body</td>
  14571. <td>string</td>
  14572. <td>true</td>
  14573. <td>the new username</td>
  14574. </tr>
  14575. <tr>
  14576. <td>» email</td>
  14577. <td>body</td>
  14578. <td>string</td>
  14579. <td>true</td>
  14580. <td>the email of the new user</td>
  14581. </tr>
  14582. <tr>
  14583. <td>» password</td>
  14584. <td>body</td>
  14585. <td>string</td>
  14586. <td>true</td>
  14587. <td>the password of the new user</td>
  14588. </tr>
  14589. </tbody>
  14590. </table>
  14591. <blockquote>
  14592. <p>Example responses</p>
  14593. </blockquote>
  14594. <blockquote>
  14595. <p>200 Response</p>
  14596. </blockquote>
  14597. <pre class="highlight tab tab-json"><code>{
  14598. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14599. }
  14600. </code></pre>
  14601. <h3 id="new_user-responses">Responses</h3>
  14602. <table>
  14603. <thead>
  14604. <tr>
  14605. <th>Status</th>
  14606. <th>Meaning</th>
  14607. <th>Description</th>
  14608. <th>Schema</th>
  14609. </tr>
  14610. </thead>
  14611. <tbody>
  14612. <tr>
  14613. <td>200</td>
  14614. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14615. <td>200 response</td>
  14616. <td>Inline</td>
  14617. </tr>
  14618. </tbody>
  14619. </table>
  14620. <h3 id="new_user-responseschema">Response Schema</h3>
  14621. <p>Status Code <strong>200</strong></p>
  14622. <table>
  14623. <thead>
  14624. <tr>
  14625. <th>Name</th>
  14626. <th>Type</th>
  14627. <th>Required</th>
  14628. <th>Restrictions</th>
  14629. <th>Description</th>
  14630. </tr>
  14631. </thead>
  14632. <tbody>
  14633. <tr>
  14634. <td>» _id</td>
  14635. <td>string</td>
  14636. <td>false</td>
  14637. <td>none</td>
  14638. <td>none</td>
  14639. </tr>
  14640. </tbody>
  14641. </table>
  14642. <aside class="warning">
  14643. To perform this operation, you must be authenticated by means of one of the following methods:
  14644. UserSecurity
  14645. </aside>
  14646. <h2 id="get_user">get_user</h2>
  14647. <p><a id="opIdget_user"></a></p>
  14648. <blockquote>
  14649. <p>Code samples</p>
  14650. </blockquote>
  14651. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14652. curl -X GET /api/users/{user} \
  14653. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14654. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14655. </code></pre>
  14656. <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>
  14657. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14658. </span></code></pre>
  14659. <pre class="highlight tab tab-javascript"><code>
  14660. <span class="hljs-keyword">const</span> headers = {
  14661. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14662. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14663. };
  14664. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14665. {
  14666. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14667. <span class="hljs-attr">headers</span>: headers
  14668. })
  14669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14670. <span class="hljs-keyword">return</span> res.json();
  14671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14672. <span class="hljs-built_in">console</span>.log(body);
  14673. });
  14674. </code></pre>
  14675. <pre class="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>);
  14676. <span class="hljs-keyword">const</span> headers = {
  14677. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14678. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14679. };
  14680. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14681. {
  14682. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14683. <span class="hljs-attr">headers</span>: headers
  14684. })
  14685. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14686. <span class="hljs-keyword">return</span> res.json();
  14687. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14688. <span class="hljs-built_in">console</span>.log(body);
  14689. });
  14690. </code></pre>
  14691. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14692. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14693. headers = {
  14694. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14695. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14696. }
  14697. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14698. <span class="hljs-symbol">params:</span> {
  14699. }, <span class="hljs-symbol">headers:</span> headers
  14700. p JSON.parse(result)
  14701. </code></pre>
  14702. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14703. headers = {
  14704. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14705. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14706. }
  14707. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14708. <span class="hljs-built_in">print</span>(r.json())
  14709. </code></pre>
  14710. <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>);
  14711. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14712. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14713. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14714. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14715. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14716. String inputLine;
  14717. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14718. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14719. response.append(inputLine);
  14720. }
  14721. in.close();
  14722. System.out.println(response.toString());
  14723. </code></pre>
  14724. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14725. <span class="hljs-keyword">import</span> (
  14726. <span class="hljs-string">&quot;bytes&quot;</span>
  14727. <span class="hljs-string">&quot;net/http&quot;</span>
  14728. )
  14729. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14730. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14731. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14732. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14733. }
  14734. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14735. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14736. req.Header = headers
  14737. client := &amp;http.Client{}
  14738. resp, err := client.Do(req)
  14739. <span class="hljs-comment">// ...</span>
  14740. }
  14741. </code></pre>
  14742. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14743. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14744. );
  14745. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14746. <span class="hljs-comment">// Define array of request body.</span>
  14747. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14748. <span class="hljs-keyword">try</span> {
  14749. <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>(
  14750. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14751. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14752. )
  14753. );
  14754. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14755. }
  14756. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14757. <span class="hljs-comment">// handle exception or api errors.</span>
  14758. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14759. }
  14760. <span class="hljs-comment">// ...</span>
  14761. </code></pre>
  14762. <p><code>GET /api/users/{user}</code></p>
  14763. <p><em>get a given user</em></p>
  14764. <p>Only the admin user (the first user) can call the REST API.</p>
  14765. <h3 id="get_user-parameters">Parameters</h3>
  14766. <table>
  14767. <thead>
  14768. <tr>
  14769. <th>Name</th>
  14770. <th>In</th>
  14771. <th>Type</th>
  14772. <th>Required</th>
  14773. <th>Description</th>
  14774. </tr>
  14775. </thead>
  14776. <tbody>
  14777. <tr>
  14778. <td>user</td>
  14779. <td>path</td>
  14780. <td>string</td>
  14781. <td>true</td>
  14782. <td>the user ID or username</td>
  14783. </tr>
  14784. </tbody>
  14785. </table>
  14786. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14787. <p><strong>user</strong>: the user ID or username</p>
  14788. <blockquote>
  14789. <p>Example responses</p>
  14790. </blockquote>
  14791. <blockquote>
  14792. <p>200 Response</p>
  14793. </blockquote>
  14794. <pre class="highlight tab tab-json"><code>{
  14795. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14796. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14797. {
  14798. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14799. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14800. }
  14801. ],
  14802. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14803. {
  14804. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14805. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14806. }
  14807. ],
  14808. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14809. {
  14810. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14811. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14812. }
  14813. ],
  14814. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14815. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14816. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14817. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14818. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14819. <span class="hljs-string">&quot;string&quot;</span>
  14820. ],
  14821. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14822. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14823. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14824. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14825. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14826. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14827. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14828. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14829. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14830. <span class="hljs-string">&quot;string&quot;</span>
  14831. ],
  14832. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14833. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14834. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14835. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14836. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14837. {
  14838. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14839. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14840. }
  14841. ],
  14842. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14843. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14844. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14845. <span class="hljs-string">&quot;string&quot;</span>
  14846. ],
  14847. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14848. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14849. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14850. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14851. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14852. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14853. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14854. },
  14855. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14856. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14857. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14858. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14859. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14860. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14861. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14862. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14863. },
  14864. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14865. <span class="hljs-string">&quot;string&quot;</span>
  14866. ]
  14867. }
  14868. </code></pre>
  14869. <h3 id="get_user-responses">Responses</h3>
  14870. <table>
  14871. <thead>
  14872. <tr>
  14873. <th>Status</th>
  14874. <th>Meaning</th>
  14875. <th>Description</th>
  14876. <th>Schema</th>
  14877. </tr>
  14878. </thead>
  14879. <tbody>
  14880. <tr>
  14881. <td>200</td>
  14882. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14883. <td>200 response</td>
  14884. <td><a href="#schemausers">Users</a></td>
  14885. </tr>
  14886. </tbody>
  14887. </table>
  14888. <aside class="warning">
  14889. To perform this operation, you must be authenticated by means of one of the following methods:
  14890. UserSecurity
  14891. </aside>
  14892. <h2 id="edit_user">edit_user</h2>
  14893. <p><a id="opIdedit_user"></a></p>
  14894. <blockquote>
  14895. <p>Code samples</p>
  14896. </blockquote>
  14897. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14898. curl -X PUT /api/users/{user} \
  14899. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14900. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14901. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14902. </code></pre>
  14903. <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>
  14904. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14905. Accept: application/json
  14906. </span></code></pre>
  14907. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14908. &quot;action&quot;: &quot;string&quot;
  14909. }&#x27;</span>;
  14910. <span class="hljs-keyword">const</span> headers = {
  14911. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14912. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14913. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14914. };
  14915. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14916. {
  14917. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14918. <span class="hljs-attr">body</span>: inputBody,
  14919. <span class="hljs-attr">headers</span>: headers
  14920. })
  14921. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14922. <span class="hljs-keyword">return</span> res.json();
  14923. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14924. <span class="hljs-built_in">console</span>.log(body);
  14925. });
  14926. </code></pre>
  14927. <pre class="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>);
  14928. <span class="hljs-keyword">const</span> inputBody = {
  14929. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14930. };
  14931. <span class="hljs-keyword">const</span> headers = {
  14932. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14933. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14934. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14935. };
  14936. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14937. {
  14938. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14939. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14940. <span class="hljs-attr">headers</span>: headers
  14941. })
  14942. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14943. <span class="hljs-keyword">return</span> res.json();
  14944. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14945. <span class="hljs-built_in">console</span>.log(body);
  14946. });
  14947. </code></pre>
  14948. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14949. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14950. headers = {
  14951. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14952. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14953. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14954. }
  14955. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14956. <span class="hljs-symbol">params:</span> {
  14957. }, <span class="hljs-symbol">headers:</span> headers
  14958. p JSON.parse(result)
  14959. </code></pre>
  14960. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14961. headers = {
  14962. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14963. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14964. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14965. }
  14966. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14967. <span class="hljs-built_in">print</span>(r.json())
  14968. </code></pre>
  14969. <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>);
  14970. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14971. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14972. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14973. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14974. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14975. String inputLine;
  14976. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14977. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14978. response.append(inputLine);
  14979. }
  14980. in.close();
  14981. System.out.println(response.toString());
  14982. </code></pre>
  14983. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14984. <span class="hljs-keyword">import</span> (
  14985. <span class="hljs-string">&quot;bytes&quot;</span>
  14986. <span class="hljs-string">&quot;net/http&quot;</span>
  14987. )
  14988. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14989. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14990. <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>},
  14991. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14992. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14993. }
  14994. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14995. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14996. req.Header = headers
  14997. client := &amp;http.Client{}
  14998. resp, err := client.Do(req)
  14999. <span class="hljs-comment">// ...</span>
  15000. }
  15001. </code></pre>
  15002. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15003. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15004. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15005. );
  15006. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15007. <span class="hljs-comment">// Define array of request body.</span>
  15008. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15009. <span class="hljs-keyword">try</span> {
  15010. <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>(
  15011. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15012. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15013. )
  15014. );
  15015. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15016. }
  15017. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15018. <span class="hljs-comment">// handle exception or api errors.</span>
  15019. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15020. }
  15021. <span class="hljs-comment">// ...</span>
  15022. </code></pre>
  15023. <p><code>PUT /api/users/{user}</code></p>
  15024. <p><em>edit a given user</em></p>
  15025. <p>Only the admin user (the first user) can call the REST API.</p>
  15026. <p>Possible values for <em>action</em>:</p>
  15027. <ul>
  15028. <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>
  15029. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  15030. <li><code>enableLogin</code>: Enable a user</li>
  15031. </ul>
  15032. <blockquote>
  15033. <p>Body parameter</p>
  15034. </blockquote>
  15035. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  15036. </code></pre>
  15037. <h3 id="edit_user-parameters">Parameters</h3>
  15038. <table>
  15039. <thead>
  15040. <tr>
  15041. <th>Name</th>
  15042. <th>In</th>
  15043. <th>Type</th>
  15044. <th>Required</th>
  15045. <th>Description</th>
  15046. </tr>
  15047. </thead>
  15048. <tbody>
  15049. <tr>
  15050. <td>user</td>
  15051. <td>path</td>
  15052. <td>string</td>
  15053. <td>true</td>
  15054. <td>the user ID</td>
  15055. </tr>
  15056. <tr>
  15057. <td>body</td>
  15058. <td>body</td>
  15059. <td>object</td>
  15060. <td>true</td>
  15061. <td>none</td>
  15062. </tr>
  15063. <tr>
  15064. <td>» action</td>
  15065. <td>body</td>
  15066. <td>string</td>
  15067. <td>true</td>
  15068. <td>the action</td>
  15069. </tr>
  15070. </tbody>
  15071. </table>
  15072. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  15073. <p><strong>user</strong>: the user ID</p>
  15074. <blockquote>
  15075. <p>Example responses</p>
  15076. </blockquote>
  15077. <blockquote>
  15078. <p>200 Response</p>
  15079. </blockquote>
  15080. <pre class="highlight tab tab-json"><code>{
  15081. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15082. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15083. }
  15084. </code></pre>
  15085. <h3 id="edit_user-responses">Responses</h3>
  15086. <table>
  15087. <thead>
  15088. <tr>
  15089. <th>Status</th>
  15090. <th>Meaning</th>
  15091. <th>Description</th>
  15092. <th>Schema</th>
  15093. </tr>
  15094. </thead>
  15095. <tbody>
  15096. <tr>
  15097. <td>200</td>
  15098. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15099. <td>200 response</td>
  15100. <td>Inline</td>
  15101. </tr>
  15102. </tbody>
  15103. </table>
  15104. <h3 id="edit_user-responseschema">Response Schema</h3>
  15105. <p>Status Code <strong>200</strong></p>
  15106. <table>
  15107. <thead>
  15108. <tr>
  15109. <th>Name</th>
  15110. <th>Type</th>
  15111. <th>Required</th>
  15112. <th>Restrictions</th>
  15113. <th>Description</th>
  15114. </tr>
  15115. </thead>
  15116. <tbody>
  15117. <tr>
  15118. <td>» _id</td>
  15119. <td>string</td>
  15120. <td>false</td>
  15121. <td>none</td>
  15122. <td>none</td>
  15123. </tr>
  15124. <tr>
  15125. <td>» title</td>
  15126. <td>string</td>
  15127. <td>false</td>
  15128. <td>none</td>
  15129. <td>none</td>
  15130. </tr>
  15131. </tbody>
  15132. </table>
  15133. <aside class="warning">
  15134. To perform this operation, you must be authenticated by means of one of the following methods:
  15135. UserSecurity
  15136. </aside>
  15137. <h2 id="delete_user">delete_user</h2>
  15138. <p><a id="opIddelete_user"></a></p>
  15139. <blockquote>
  15140. <p>Code samples</p>
  15141. </blockquote>
  15142. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15143. curl -X DELETE /api/users/{user} \
  15144. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15145. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15146. </code></pre>
  15147. <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>
  15148. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15149. </span></code></pre>
  15150. <pre class="highlight tab tab-javascript"><code>
  15151. <span class="hljs-keyword">const</span> headers = {
  15152. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15153. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15154. };
  15155. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15156. {
  15157. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15158. <span class="hljs-attr">headers</span>: headers
  15159. })
  15160. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15161. <span class="hljs-keyword">return</span> res.json();
  15162. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15163. <span class="hljs-built_in">console</span>.log(body);
  15164. });
  15165. </code></pre>
  15166. <pre class="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>);
  15167. <span class="hljs-keyword">const</span> headers = {
  15168. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15169. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15170. };
  15171. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15172. {
  15173. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15174. <span class="hljs-attr">headers</span>: headers
  15175. })
  15176. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15177. <span class="hljs-keyword">return</span> res.json();
  15178. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15179. <span class="hljs-built_in">console</span>.log(body);
  15180. });
  15181. </code></pre>
  15182. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15183. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15184. headers = {
  15185. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15186. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15187. }
  15188. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15189. <span class="hljs-symbol">params:</span> {
  15190. }, <span class="hljs-symbol">headers:</span> headers
  15191. p JSON.parse(result)
  15192. </code></pre>
  15193. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15194. headers = {
  15195. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15196. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15197. }
  15198. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15199. <span class="hljs-built_in">print</span>(r.json())
  15200. </code></pre>
  15201. <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>);
  15202. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15203. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15204. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15205. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15206. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15207. String inputLine;
  15208. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15209. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15210. response.append(inputLine);
  15211. }
  15212. in.close();
  15213. System.out.println(response.toString());
  15214. </code></pre>
  15215. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15216. <span class="hljs-keyword">import</span> (
  15217. <span class="hljs-string">&quot;bytes&quot;</span>
  15218. <span class="hljs-string">&quot;net/http&quot;</span>
  15219. )
  15220. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15221. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15222. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15223. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15224. }
  15225. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15226. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15227. req.Header = headers
  15228. client := &amp;http.Client{}
  15229. resp, err := client.Do(req)
  15230. <span class="hljs-comment">// ...</span>
  15231. }
  15232. </code></pre>
  15233. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15234. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15235. );
  15236. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15237. <span class="hljs-comment">// Define array of request body.</span>
  15238. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15239. <span class="hljs-keyword">try</span> {
  15240. <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>(
  15241. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15242. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15243. )
  15244. );
  15245. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15246. }
  15247. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15248. <span class="hljs-comment">// handle exception or api errors.</span>
  15249. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15250. }
  15251. <span class="hljs-comment">// ...</span>
  15252. </code></pre>
  15253. <p><code>DELETE /api/users/{user}</code></p>
  15254. <p><em>Delete a user</em></p>
  15255. <p>Only the admin user (the first user) can call the REST API.</p>
  15256. <h3 id="delete_user-parameters">Parameters</h3>
  15257. <table>
  15258. <thead>
  15259. <tr>
  15260. <th>Name</th>
  15261. <th>In</th>
  15262. <th>Type</th>
  15263. <th>Required</th>
  15264. <th>Description</th>
  15265. </tr>
  15266. </thead>
  15267. <tbody>
  15268. <tr>
  15269. <td>user</td>
  15270. <td>path</td>
  15271. <td>string</td>
  15272. <td>true</td>
  15273. <td>the ID of the user to delete</td>
  15274. </tr>
  15275. </tbody>
  15276. </table>
  15277. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15278. <p><strong>user</strong>: the ID of the user to delete</p>
  15279. <blockquote>
  15280. <p>Example responses</p>
  15281. </blockquote>
  15282. <blockquote>
  15283. <p>200 Response</p>
  15284. </blockquote>
  15285. <pre class="highlight tab tab-json"><code>{
  15286. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15287. }
  15288. </code></pre>
  15289. <h3 id="delete_user-responses">Responses</h3>
  15290. <table>
  15291. <thead>
  15292. <tr>
  15293. <th>Status</th>
  15294. <th>Meaning</th>
  15295. <th>Description</th>
  15296. <th>Schema</th>
  15297. </tr>
  15298. </thead>
  15299. <tbody>
  15300. <tr>
  15301. <td>200</td>
  15302. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15303. <td>200 response</td>
  15304. <td>Inline</td>
  15305. </tr>
  15306. </tbody>
  15307. </table>
  15308. <h3 id="delete_user-responseschema">Response Schema</h3>
  15309. <p>Status Code <strong>200</strong></p>
  15310. <table>
  15311. <thead>
  15312. <tr>
  15313. <th>Name</th>
  15314. <th>Type</th>
  15315. <th>Required</th>
  15316. <th>Restrictions</th>
  15317. <th>Description</th>
  15318. </tr>
  15319. </thead>
  15320. <tbody>
  15321. <tr>
  15322. <td>» _id</td>
  15323. <td>string</td>
  15324. <td>false</td>
  15325. <td>none</td>
  15326. <td>none</td>
  15327. </tr>
  15328. </tbody>
  15329. </table>
  15330. <aside class="warning">
  15331. To perform this operation, you must be authenticated by means of one of the following methods:
  15332. UserSecurity
  15333. </aside>
  15334. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15335. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15336. <p><a id="opIdget_all_swimlanes"></a></p>
  15337. <blockquote>
  15338. <p>Code samples</p>
  15339. </blockquote>
  15340. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15341. curl -X GET /api/boards/{board}/swimlanes \
  15342. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15343. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15344. </code></pre>
  15345. <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>
  15346. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15347. </span></code></pre>
  15348. <pre class="highlight tab tab-javascript"><code>
  15349. <span class="hljs-keyword">const</span> headers = {
  15350. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15351. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15352. };
  15353. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15354. {
  15355. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15356. <span class="hljs-attr">headers</span>: headers
  15357. })
  15358. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15359. <span class="hljs-keyword">return</span> res.json();
  15360. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15361. <span class="hljs-built_in">console</span>.log(body);
  15362. });
  15363. </code></pre>
  15364. <pre class="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>);
  15365. <span class="hljs-keyword">const</span> headers = {
  15366. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15367. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15368. };
  15369. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15370. {
  15371. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15372. <span class="hljs-attr">headers</span>: headers
  15373. })
  15374. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15375. <span class="hljs-keyword">return</span> res.json();
  15376. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15377. <span class="hljs-built_in">console</span>.log(body);
  15378. });
  15379. </code></pre>
  15380. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15381. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15382. headers = {
  15383. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15384. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15385. }
  15386. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15387. <span class="hljs-symbol">params:</span> {
  15388. }, <span class="hljs-symbol">headers:</span> headers
  15389. p JSON.parse(result)
  15390. </code></pre>
  15391. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15392. headers = {
  15393. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15394. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15395. }
  15396. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15397. <span class="hljs-built_in">print</span>(r.json())
  15398. </code></pre>
  15399. <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>);
  15400. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15401. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15402. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15403. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15404. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15405. String inputLine;
  15406. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15407. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15408. response.append(inputLine);
  15409. }
  15410. in.close();
  15411. System.out.println(response.toString());
  15412. </code></pre>
  15413. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15414. <span class="hljs-keyword">import</span> (
  15415. <span class="hljs-string">&quot;bytes&quot;</span>
  15416. <span class="hljs-string">&quot;net/http&quot;</span>
  15417. )
  15418. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15419. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15420. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15421. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15422. }
  15423. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15424. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15425. req.Header = headers
  15426. client := &amp;http.Client{}
  15427. resp, err := client.Do(req)
  15428. <span class="hljs-comment">// ...</span>
  15429. }
  15430. </code></pre>
  15431. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15432. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15433. );
  15434. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15435. <span class="hljs-comment">// Define array of request body.</span>
  15436. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15437. <span class="hljs-keyword">try</span> {
  15438. <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>(
  15439. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15440. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15441. )
  15442. );
  15443. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15444. }
  15445. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15446. <span class="hljs-comment">// handle exception or api errors.</span>
  15447. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15448. }
  15449. <span class="hljs-comment">// ...</span>
  15450. </code></pre>
  15451. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15452. <p><em>Get the list of swimlanes attached to a board</em></p>
  15453. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15454. <table>
  15455. <thead>
  15456. <tr>
  15457. <th>Name</th>
  15458. <th>In</th>
  15459. <th>Type</th>
  15460. <th>Required</th>
  15461. <th>Description</th>
  15462. </tr>
  15463. </thead>
  15464. <tbody>
  15465. <tr>
  15466. <td>board</td>
  15467. <td>path</td>
  15468. <td>string</td>
  15469. <td>true</td>
  15470. <td>the ID of the board</td>
  15471. </tr>
  15472. </tbody>
  15473. </table>
  15474. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15475. <p><strong>board</strong>: the ID of the board</p>
  15476. <blockquote>
  15477. <p>Example responses</p>
  15478. </blockquote>
  15479. <blockquote>
  15480. <p>200 Response</p>
  15481. </blockquote>
  15482. <pre class="highlight tab tab-json"><code>[
  15483. {
  15484. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15485. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15486. }
  15487. ]
  15488. </code></pre>
  15489. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15490. <table>
  15491. <thead>
  15492. <tr>
  15493. <th>Status</th>
  15494. <th>Meaning</th>
  15495. <th>Description</th>
  15496. <th>Schema</th>
  15497. </tr>
  15498. </thead>
  15499. <tbody>
  15500. <tr>
  15501. <td>200</td>
  15502. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15503. <td>200 response</td>
  15504. <td>Inline</td>
  15505. </tr>
  15506. </tbody>
  15507. </table>
  15508. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15509. <p>Status Code <strong>200</strong></p>
  15510. <table>
  15511. <thead>
  15512. <tr>
  15513. <th>Name</th>
  15514. <th>Type</th>
  15515. <th>Required</th>
  15516. <th>Restrictions</th>
  15517. <th>Description</th>
  15518. </tr>
  15519. </thead>
  15520. <tbody>
  15521. <tr>
  15522. <td>» _id</td>
  15523. <td>string</td>
  15524. <td>false</td>
  15525. <td>none</td>
  15526. <td>none</td>
  15527. </tr>
  15528. <tr>
  15529. <td>» title</td>
  15530. <td>string</td>
  15531. <td>false</td>
  15532. <td>none</td>
  15533. <td>none</td>
  15534. </tr>
  15535. </tbody>
  15536. </table>
  15537. <aside class="warning">
  15538. To perform this operation, you must be authenticated by means of one of the following methods:
  15539. UserSecurity
  15540. </aside>
  15541. <h2 id="new_swimlane">new_swimlane</h2>
  15542. <p><a id="opIdnew_swimlane"></a></p>
  15543. <blockquote>
  15544. <p>Code samples</p>
  15545. </blockquote>
  15546. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15547. curl -X POST /api/boards/{board}/swimlanes \
  15548. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15549. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15550. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15551. </code></pre>
  15552. <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>
  15553. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15554. Accept: application/json
  15555. </span></code></pre>
  15556. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15557. &quot;title&quot;: &quot;string&quot;
  15558. }&#x27;</span>;
  15559. <span class="hljs-keyword">const</span> headers = {
  15560. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15561. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15562. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15563. };
  15564. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15565. {
  15566. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15567. <span class="hljs-attr">body</span>: inputBody,
  15568. <span class="hljs-attr">headers</span>: headers
  15569. })
  15570. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15571. <span class="hljs-keyword">return</span> res.json();
  15572. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15573. <span class="hljs-built_in">console</span>.log(body);
  15574. });
  15575. </code></pre>
  15576. <pre class="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>);
  15577. <span class="hljs-keyword">const</span> inputBody = {
  15578. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15579. };
  15580. <span class="hljs-keyword">const</span> headers = {
  15581. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15582. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15583. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15584. };
  15585. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15586. {
  15587. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15588. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15589. <span class="hljs-attr">headers</span>: headers
  15590. })
  15591. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15592. <span class="hljs-keyword">return</span> res.json();
  15593. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15594. <span class="hljs-built_in">console</span>.log(body);
  15595. });
  15596. </code></pre>
  15597. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15598. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15599. headers = {
  15600. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15601. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15602. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15603. }
  15604. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15605. <span class="hljs-symbol">params:</span> {
  15606. }, <span class="hljs-symbol">headers:</span> headers
  15607. p JSON.parse(result)
  15608. </code></pre>
  15609. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15610. headers = {
  15611. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15612. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15613. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15614. }
  15615. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15616. <span class="hljs-built_in">print</span>(r.json())
  15617. </code></pre>
  15618. <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>);
  15619. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15620. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15621. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15622. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15623. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15624. String inputLine;
  15625. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15626. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15627. response.append(inputLine);
  15628. }
  15629. in.close();
  15630. System.out.println(response.toString());
  15631. </code></pre>
  15632. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15633. <span class="hljs-keyword">import</span> (
  15634. <span class="hljs-string">&quot;bytes&quot;</span>
  15635. <span class="hljs-string">&quot;net/http&quot;</span>
  15636. )
  15637. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15638. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15639. <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>},
  15640. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15641. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15642. }
  15643. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15644. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15645. req.Header = headers
  15646. client := &amp;http.Client{}
  15647. resp, err := client.Do(req)
  15648. <span class="hljs-comment">// ...</span>
  15649. }
  15650. </code></pre>
  15651. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15652. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15653. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15654. );
  15655. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15656. <span class="hljs-comment">// Define array of request body.</span>
  15657. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15658. <span class="hljs-keyword">try</span> {
  15659. <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>(
  15660. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15661. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15662. )
  15663. );
  15664. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15665. }
  15666. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15667. <span class="hljs-comment">// handle exception or api errors.</span>
  15668. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15669. }
  15670. <span class="hljs-comment">// ...</span>
  15671. </code></pre>
  15672. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  15673. <p><em>Add a swimlane to a board</em></p>
  15674. <blockquote>
  15675. <p>Body parameter</p>
  15676. </blockquote>
  15677. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15678. </code></pre>
  15679. <h3 id="new_swimlane-parameters">Parameters</h3>
  15680. <table>
  15681. <thead>
  15682. <tr>
  15683. <th>Name</th>
  15684. <th>In</th>
  15685. <th>Type</th>
  15686. <th>Required</th>
  15687. <th>Description</th>
  15688. </tr>
  15689. </thead>
  15690. <tbody>
  15691. <tr>
  15692. <td>board</td>
  15693. <td>path</td>
  15694. <td>string</td>
  15695. <td>true</td>
  15696. <td>the ID of the board</td>
  15697. </tr>
  15698. <tr>
  15699. <td>body</td>
  15700. <td>body</td>
  15701. <td>object</td>
  15702. <td>true</td>
  15703. <td>none</td>
  15704. </tr>
  15705. <tr>
  15706. <td>» title</td>
  15707. <td>body</td>
  15708. <td>string</td>
  15709. <td>true</td>
  15710. <td>the new title of the swimlane</td>
  15711. </tr>
  15712. </tbody>
  15713. </table>
  15714. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15715. <p><strong>board</strong>: the ID of the board</p>
  15716. <blockquote>
  15717. <p>Example responses</p>
  15718. </blockquote>
  15719. <blockquote>
  15720. <p>200 Response</p>
  15721. </blockquote>
  15722. <pre class="highlight tab tab-json"><code>{
  15723. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15724. }
  15725. </code></pre>
  15726. <h3 id="new_swimlane-responses">Responses</h3>
  15727. <table>
  15728. <thead>
  15729. <tr>
  15730. <th>Status</th>
  15731. <th>Meaning</th>
  15732. <th>Description</th>
  15733. <th>Schema</th>
  15734. </tr>
  15735. </thead>
  15736. <tbody>
  15737. <tr>
  15738. <td>200</td>
  15739. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15740. <td>200 response</td>
  15741. <td>Inline</td>
  15742. </tr>
  15743. </tbody>
  15744. </table>
  15745. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15746. <p>Status Code <strong>200</strong></p>
  15747. <table>
  15748. <thead>
  15749. <tr>
  15750. <th>Name</th>
  15751. <th>Type</th>
  15752. <th>Required</th>
  15753. <th>Restrictions</th>
  15754. <th>Description</th>
  15755. </tr>
  15756. </thead>
  15757. <tbody>
  15758. <tr>
  15759. <td>» _id</td>
  15760. <td>string</td>
  15761. <td>false</td>
  15762. <td>none</td>
  15763. <td>none</td>
  15764. </tr>
  15765. </tbody>
  15766. </table>
  15767. <aside class="warning">
  15768. To perform this operation, you must be authenticated by means of one of the following methods:
  15769. UserSecurity
  15770. </aside>
  15771. <h2 id="get_swimlane">get_swimlane</h2>
  15772. <p><a id="opIdget_swimlane"></a></p>
  15773. <blockquote>
  15774. <p>Code samples</p>
  15775. </blockquote>
  15776. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15777. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15778. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15779. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15780. </code></pre>
  15781. <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>
  15782. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15783. </span></code></pre>
  15784. <pre class="highlight tab tab-javascript"><code>
  15785. <span class="hljs-keyword">const</span> headers = {
  15786. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15787. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15788. };
  15789. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15790. {
  15791. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15792. <span class="hljs-attr">headers</span>: headers
  15793. })
  15794. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15795. <span class="hljs-keyword">return</span> res.json();
  15796. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15797. <span class="hljs-built_in">console</span>.log(body);
  15798. });
  15799. </code></pre>
  15800. <pre class="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>);
  15801. <span class="hljs-keyword">const</span> headers = {
  15802. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15803. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15804. };
  15805. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15806. {
  15807. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15808. <span class="hljs-attr">headers</span>: headers
  15809. })
  15810. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15811. <span class="hljs-keyword">return</span> res.json();
  15812. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15813. <span class="hljs-built_in">console</span>.log(body);
  15814. });
  15815. </code></pre>
  15816. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15817. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15818. headers = {
  15819. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15820. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15821. }
  15822. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15823. <span class="hljs-symbol">params:</span> {
  15824. }, <span class="hljs-symbol">headers:</span> headers
  15825. p JSON.parse(result)
  15826. </code></pre>
  15827. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15828. headers = {
  15829. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15830. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15831. }
  15832. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15833. <span class="hljs-built_in">print</span>(r.json())
  15834. </code></pre>
  15835. <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>);
  15836. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15837. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15838. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15839. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15840. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15841. String inputLine;
  15842. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15843. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15844. response.append(inputLine);
  15845. }
  15846. in.close();
  15847. System.out.println(response.toString());
  15848. </code></pre>
  15849. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15850. <span class="hljs-keyword">import</span> (
  15851. <span class="hljs-string">&quot;bytes&quot;</span>
  15852. <span class="hljs-string">&quot;net/http&quot;</span>
  15853. )
  15854. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15855. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15856. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15857. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15858. }
  15859. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15860. 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)
  15861. req.Header = headers
  15862. client := &amp;http.Client{}
  15863. resp, err := client.Do(req)
  15864. <span class="hljs-comment">// ...</span>
  15865. }
  15866. </code></pre>
  15867. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15868. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15869. );
  15870. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15871. <span class="hljs-comment">// Define array of request body.</span>
  15872. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15873. <span class="hljs-keyword">try</span> {
  15874. <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>(
  15875. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15876. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15877. )
  15878. );
  15879. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15880. }
  15881. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15882. <span class="hljs-comment">// handle exception or api errors.</span>
  15883. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15884. }
  15885. <span class="hljs-comment">// ...</span>
  15886. </code></pre>
  15887. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15888. <p><em>Get a swimlane</em></p>
  15889. <h3 id="get_swimlane-parameters">Parameters</h3>
  15890. <table>
  15891. <thead>
  15892. <tr>
  15893. <th>Name</th>
  15894. <th>In</th>
  15895. <th>Type</th>
  15896. <th>Required</th>
  15897. <th>Description</th>
  15898. </tr>
  15899. </thead>
  15900. <tbody>
  15901. <tr>
  15902. <td>board</td>
  15903. <td>path</td>
  15904. <td>string</td>
  15905. <td>true</td>
  15906. <td>the ID of the board</td>
  15907. </tr>
  15908. <tr>
  15909. <td>swimlane</td>
  15910. <td>path</td>
  15911. <td>string</td>
  15912. <td>true</td>
  15913. <td>the ID of the swimlane</td>
  15914. </tr>
  15915. </tbody>
  15916. </table>
  15917. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15918. <p><strong>board</strong>: the ID of the board</p>
  15919. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15920. <blockquote>
  15921. <p>Example responses</p>
  15922. </blockquote>
  15923. <blockquote>
  15924. <p>200 Response</p>
  15925. </blockquote>
  15926. <pre class="highlight tab tab-json"><code>{
  15927. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15928. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15929. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15930. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15931. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15932. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15933. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15934. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15935. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15936. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15937. }
  15938. </code></pre>
  15939. <h3 id="get_swimlane-responses">Responses</h3>
  15940. <table>
  15941. <thead>
  15942. <tr>
  15943. <th>Status</th>
  15944. <th>Meaning</th>
  15945. <th>Description</th>
  15946. <th>Schema</th>
  15947. </tr>
  15948. </thead>
  15949. <tbody>
  15950. <tr>
  15951. <td>200</td>
  15952. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15953. <td>200 response</td>
  15954. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15955. </tr>
  15956. </tbody>
  15957. </table>
  15958. <aside class="warning">
  15959. To perform this operation, you must be authenticated by means of one of the following methods:
  15960. UserSecurity
  15961. </aside>
  15962. <h2 id="delete_swimlane">delete_swimlane</h2>
  15963. <p><a id="opIddelete_swimlane"></a></p>
  15964. <blockquote>
  15965. <p>Code samples</p>
  15966. </blockquote>
  15967. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15968. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15969. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15970. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15971. </code></pre>
  15972. <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>
  15973. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15974. </span></code></pre>
  15975. <pre class="highlight tab tab-javascript"><code>
  15976. <span class="hljs-keyword">const</span> headers = {
  15977. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15978. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15979. };
  15980. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15981. {
  15982. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15983. <span class="hljs-attr">headers</span>: headers
  15984. })
  15985. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15986. <span class="hljs-keyword">return</span> res.json();
  15987. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15988. <span class="hljs-built_in">console</span>.log(body);
  15989. });
  15990. </code></pre>
  15991. <pre class="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>);
  15992. <span class="hljs-keyword">const</span> headers = {
  15993. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15994. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15995. };
  15996. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15997. {
  15998. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15999. <span class="hljs-attr">headers</span>: headers
  16000. })
  16001. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16002. <span class="hljs-keyword">return</span> res.json();
  16003. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16004. <span class="hljs-built_in">console</span>.log(body);
  16005. });
  16006. </code></pre>
  16007. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16008. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16009. headers = {
  16010. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16011. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16012. }
  16013. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16014. <span class="hljs-symbol">params:</span> {
  16015. }, <span class="hljs-symbol">headers:</span> headers
  16016. p JSON.parse(result)
  16017. </code></pre>
  16018. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16019. headers = {
  16020. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16021. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16022. }
  16023. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16024. <span class="hljs-built_in">print</span>(r.json())
  16025. </code></pre>
  16026. <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>);
  16027. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16028. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16029. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16030. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16031. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16032. String inputLine;
  16033. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16034. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16035. response.append(inputLine);
  16036. }
  16037. in.close();
  16038. System.out.println(response.toString());
  16039. </code></pre>
  16040. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16041. <span class="hljs-keyword">import</span> (
  16042. <span class="hljs-string">&quot;bytes&quot;</span>
  16043. <span class="hljs-string">&quot;net/http&quot;</span>
  16044. )
  16045. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16046. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16047. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16048. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16049. }
  16050. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16051. 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)
  16052. req.Header = headers
  16053. client := &amp;http.Client{}
  16054. resp, err := client.Do(req)
  16055. <span class="hljs-comment">// ...</span>
  16056. }
  16057. </code></pre>
  16058. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16059. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16060. );
  16061. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16062. <span class="hljs-comment">// Define array of request body.</span>
  16063. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16064. <span class="hljs-keyword">try</span> {
  16065. <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>(
  16066. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16067. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16068. )
  16069. );
  16070. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16071. }
  16072. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16073. <span class="hljs-comment">// handle exception or api errors.</span>
  16074. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16075. }
  16076. <span class="hljs-comment">// ...</span>
  16077. </code></pre>
  16078. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16079. <p><em>Delete a swimlane</em></p>
  16080. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16081. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16082. <table>
  16083. <thead>
  16084. <tr>
  16085. <th>Name</th>
  16086. <th>In</th>
  16087. <th>Type</th>
  16088. <th>Required</th>
  16089. <th>Description</th>
  16090. </tr>
  16091. </thead>
  16092. <tbody>
  16093. <tr>
  16094. <td>board</td>
  16095. <td>path</td>
  16096. <td>string</td>
  16097. <td>true</td>
  16098. <td>the ID of the board</td>
  16099. </tr>
  16100. <tr>
  16101. <td>swimlane</td>
  16102. <td>path</td>
  16103. <td>string</td>
  16104. <td>true</td>
  16105. <td>the ID of the swimlane</td>
  16106. </tr>
  16107. </tbody>
  16108. </table>
  16109. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16110. <p><strong>board</strong>: the ID of the board</p>
  16111. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16112. <blockquote>
  16113. <p>Example responses</p>
  16114. </blockquote>
  16115. <blockquote>
  16116. <p>200 Response</p>
  16117. </blockquote>
  16118. <pre class="highlight tab tab-json"><code>{
  16119. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16120. }
  16121. </code></pre>
  16122. <h3 id="delete_swimlane-responses">Responses</h3>
  16123. <table>
  16124. <thead>
  16125. <tr>
  16126. <th>Status</th>
  16127. <th>Meaning</th>
  16128. <th>Description</th>
  16129. <th>Schema</th>
  16130. </tr>
  16131. </thead>
  16132. <tbody>
  16133. <tr>
  16134. <td>200</td>
  16135. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16136. <td>200 response</td>
  16137. <td>Inline</td>
  16138. </tr>
  16139. </tbody>
  16140. </table>
  16141. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16142. <p>Status Code <strong>200</strong></p>
  16143. <table>
  16144. <thead>
  16145. <tr>
  16146. <th>Name</th>
  16147. <th>Type</th>
  16148. <th>Required</th>
  16149. <th>Restrictions</th>
  16150. <th>Description</th>
  16151. </tr>
  16152. </thead>
  16153. <tbody>
  16154. <tr>
  16155. <td>» _id</td>
  16156. <td>string</td>
  16157. <td>false</td>
  16158. <td>none</td>
  16159. <td>none</td>
  16160. </tr>
  16161. </tbody>
  16162. </table>
  16163. <aside class="warning">
  16164. To perform this operation, you must be authenticated by means of one of the following methods:
  16165. UserSecurity
  16166. </aside>
  16167. <h1 id="schemas">Schemas</h1>
  16168. <h2 id="tocs_boards">Boards</h2>
  16169. <p><a id="schemaboards"></a>
  16170. <a id="schema_Boards"></a>
  16171. <a id="tocSboards"></a>
  16172. <a id="tocsboards"></a></p>
  16173. <pre class="highlight tab tab-json"><code>{
  16174. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16175. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16176. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16177. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16178. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16179. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16180. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16181. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16182. {
  16183. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16184. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16185. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16186. }
  16187. ],
  16188. <span class="hljs-attr">&quot;members&quot;</span>: [
  16189. {
  16190. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16191. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16192. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16193. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16194. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16195. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16196. }
  16197. ],
  16198. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16199. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16200. {
  16201. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16202. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16203. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16204. }
  16205. ],
  16206. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16207. {
  16208. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16209. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16210. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16211. }
  16212. ],
  16213. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16214. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16215. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16216. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16217. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16218. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16219. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16220. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16221. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16222. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16223. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16224. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16225. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16226. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16227. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16228. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16229. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16230. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16231. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16232. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16233. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16234. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16235. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16236. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16237. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16238. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16239. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16240. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16241. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16242. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16243. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16244. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16245. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16246. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16247. }
  16248. </code></pre>
  16249. <p>This is a Board.</p>
  16250. <h3 id="properties">Properties</h3>
  16251. <table>
  16252. <thead>
  16253. <tr>
  16254. <th>Name</th>
  16255. <th>Type</th>
  16256. <th>Required</th>
  16257. <th>Restrictions</th>
  16258. <th>Description</th>
  16259. </tr>
  16260. </thead>
  16261. <tbody>
  16262. <tr>
  16263. <td>title</td>
  16264. <td>string</td>
  16265. <td>true</td>
  16266. <td>none</td>
  16267. <td>The title of the board</td>
  16268. </tr>
  16269. <tr>
  16270. <td>slug</td>
  16271. <td>string</td>
  16272. <td>true</td>
  16273. <td>none</td>
  16274. <td>The title slugified.</td>
  16275. </tr>
  16276. <tr>
  16277. <td>archived</td>
  16278. <td>boolean</td>
  16279. <td>true</td>
  16280. <td>none</td>
  16281. <td>Is the board archived?</td>
  16282. </tr>
  16283. <tr>
  16284. <td>archivedAt</td>
  16285. <td>string¦null</td>
  16286. <td>false</td>
  16287. <td>none</td>
  16288. <td>Latest archiving time of the board</td>
  16289. </tr>
  16290. <tr>
  16291. <td>createdAt</td>
  16292. <td>string</td>
  16293. <td>true</td>
  16294. <td>none</td>
  16295. <td>Creation time of the board</td>
  16296. </tr>
  16297. <tr>
  16298. <td>modifiedAt</td>
  16299. <td>string¦null</td>
  16300. <td>false</td>
  16301. <td>none</td>
  16302. <td>Last modification time of the board</td>
  16303. </tr>
  16304. <tr>
  16305. <td>stars</td>
  16306. <td>number</td>
  16307. <td>true</td>
  16308. <td>none</td>
  16309. <td>How many stars the board has</td>
  16310. </tr>
  16311. <tr>
  16312. <td>labels</td>
  16313. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16314. <td>false</td>
  16315. <td>none</td>
  16316. <td>List of labels attached to a board</td>
  16317. </tr>
  16318. <tr>
  16319. <td>members</td>
  16320. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16321. <td>true</td>
  16322. <td>none</td>
  16323. <td>List of members of a board</td>
  16324. </tr>
  16325. <tr>
  16326. <td>permission</td>
  16327. <td>string</td>
  16328. <td>true</td>
  16329. <td>none</td>
  16330. <td>visibility of the board</td>
  16331. </tr>
  16332. <tr>
  16333. <td>orgs</td>
  16334. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16335. <td>false</td>
  16336. <td>none</td>
  16337. <td>the list of organizations that a board belongs to</td>
  16338. </tr>
  16339. <tr>
  16340. <td>teams</td>
  16341. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16342. <td>false</td>
  16343. <td>none</td>
  16344. <td>the list of teams that a board belongs to</td>
  16345. </tr>
  16346. <tr>
  16347. <td>color</td>
  16348. <td>string</td>
  16349. <td>true</td>
  16350. <td>none</td>
  16351. <td>The color of the board.</td>
  16352. </tr>
  16353. <tr>
  16354. <td>description</td>
  16355. <td>string¦null</td>
  16356. <td>false</td>
  16357. <td>none</td>
  16358. <td>The description of the board</td>
  16359. </tr>
  16360. <tr>
  16361. <td>subtasksDefaultBoardId</td>
  16362. <td>string¦null</td>
  16363. <td>false</td>
  16364. <td>none</td>
  16365. <td>The default board ID assigned to subtasks.</td>
  16366. </tr>
  16367. <tr>
  16368. <td>subtasksDefaultListId</td>
  16369. <td>string¦null</td>
  16370. <td>false</td>
  16371. <td>none</td>
  16372. <td>The default List ID assigned to subtasks.</td>
  16373. </tr>
  16374. <tr>
  16375. <td>dateSettingsDefaultBoardId</td>
  16376. <td>string¦null</td>
  16377. <td>false</td>
  16378. <td>none</td>
  16379. <td>none</td>
  16380. </tr>
  16381. <tr>
  16382. <td>dateSettingsDefaultListId</td>
  16383. <td>string¦null</td>
  16384. <td>false</td>
  16385. <td>none</td>
  16386. <td>none</td>
  16387. </tr>
  16388. <tr>
  16389. <td>allowsSubtasks</td>
  16390. <td>boolean</td>
  16391. <td>true</td>
  16392. <td>none</td>
  16393. <td>Does the board allows subtasks?</td>
  16394. </tr>
  16395. <tr>
  16396. <td>allowsAttachments</td>
  16397. <td>boolean</td>
  16398. <td>true</td>
  16399. <td>none</td>
  16400. <td>Does the board allows attachments?</td>
  16401. </tr>
  16402. <tr>
  16403. <td>allowsChecklists</td>
  16404. <td>boolean</td>
  16405. <td>true</td>
  16406. <td>none</td>
  16407. <td>Does the board allows checklists?</td>
  16408. </tr>
  16409. <tr>
  16410. <td>allowsComments</td>
  16411. <td>boolean</td>
  16412. <td>true</td>
  16413. <td>none</td>
  16414. <td>Does the board allows comments?</td>
  16415. </tr>
  16416. <tr>
  16417. <td>allowsDescriptionTitle</td>
  16418. <td>boolean</td>
  16419. <td>true</td>
  16420. <td>none</td>
  16421. <td>Does the board allows description title?</td>
  16422. </tr>
  16423. <tr>
  16424. <td>allowsDescriptionText</td>
  16425. <td>boolean</td>
  16426. <td>true</td>
  16427. <td>none</td>
  16428. <td>Does the board allows description text?</td>
  16429. </tr>
  16430. <tr>
  16431. <td>allowsCardNumber</td>
  16432. <td>boolean</td>
  16433. <td>true</td>
  16434. <td>none</td>
  16435. <td>Does the board allows card numbers?</td>
  16436. </tr>
  16437. <tr>
  16438. <td>allowsActivities</td>
  16439. <td>boolean</td>
  16440. <td>true</td>
  16441. <td>none</td>
  16442. <td>Does the board allows comments?</td>
  16443. </tr>
  16444. <tr>
  16445. <td>allowsLabels</td>
  16446. <td>boolean</td>
  16447. <td>true</td>
  16448. <td>none</td>
  16449. <td>Does the board allows labels?</td>
  16450. </tr>
  16451. <tr>
  16452. <td>allowsCreator</td>
  16453. <td>boolean</td>
  16454. <td>true</td>
  16455. <td>none</td>
  16456. <td>Does the board allow creator?</td>
  16457. </tr>
  16458. <tr>
  16459. <td>allowsAssignee</td>
  16460. <td>boolean</td>
  16461. <td>true</td>
  16462. <td>none</td>
  16463. <td>Does the board allows assignee?</td>
  16464. </tr>
  16465. <tr>
  16466. <td>allowsMembers</td>
  16467. <td>boolean</td>
  16468. <td>true</td>
  16469. <td>none</td>
  16470. <td>Does the board allows members?</td>
  16471. </tr>
  16472. <tr>
  16473. <td>allowsRequestedBy</td>
  16474. <td>boolean</td>
  16475. <td>true</td>
  16476. <td>none</td>
  16477. <td>Does the board allows requested by?</td>
  16478. </tr>
  16479. <tr>
  16480. <td>allowsCardSortingByNumber</td>
  16481. <td>boolean</td>
  16482. <td>true</td>
  16483. <td>none</td>
  16484. <td>Does the board allows card sorting by number?</td>
  16485. </tr>
  16486. <tr>
  16487. <td>allowsAssignedBy</td>
  16488. <td>boolean</td>
  16489. <td>true</td>
  16490. <td>none</td>
  16491. <td>Does the board allows requested by?</td>
  16492. </tr>
  16493. <tr>
  16494. <td>allowsReceivedDate</td>
  16495. <td>boolean</td>
  16496. <td>true</td>
  16497. <td>none</td>
  16498. <td>Does the board allows received date?</td>
  16499. </tr>
  16500. <tr>
  16501. <td>allowsStartDate</td>
  16502. <td>boolean</td>
  16503. <td>true</td>
  16504. <td>none</td>
  16505. <td>Does the board allows start date?</td>
  16506. </tr>
  16507. <tr>
  16508. <td>allowsEndDate</td>
  16509. <td>boolean</td>
  16510. <td>true</td>
  16511. <td>none</td>
  16512. <td>Does the board allows end date?</td>
  16513. </tr>
  16514. <tr>
  16515. <td>allowsDueDate</td>
  16516. <td>boolean</td>
  16517. <td>true</td>
  16518. <td>none</td>
  16519. <td>Does the board allows due date?</td>
  16520. </tr>
  16521. <tr>
  16522. <td>presentParentTask</td>
  16523. <td>string¦null</td>
  16524. <td>false</td>
  16525. <td>none</td>
  16526. <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>
  16527. </tr>
  16528. <tr>
  16529. <td>receivedAt</td>
  16530. <td>string¦null</td>
  16531. <td>false</td>
  16532. <td>none</td>
  16533. <td>Date the card was received</td>
  16534. </tr>
  16535. <tr>
  16536. <td>startAt</td>
  16537. <td>string¦null</td>
  16538. <td>false</td>
  16539. <td>none</td>
  16540. <td>Starting date of the board.</td>
  16541. </tr>
  16542. <tr>
  16543. <td>dueAt</td>
  16544. <td>string¦null</td>
  16545. <td>false</td>
  16546. <td>none</td>
  16547. <td>Due date of the board.</td>
  16548. </tr>
  16549. <tr>
  16550. <td>endAt</td>
  16551. <td>string¦null</td>
  16552. <td>false</td>
  16553. <td>none</td>
  16554. <td>End date of the board.</td>
  16555. </tr>
  16556. <tr>
  16557. <td>spentTime</td>
  16558. <td>number¦null</td>
  16559. <td>false</td>
  16560. <td>none</td>
  16561. <td>Time spent in the board.</td>
  16562. </tr>
  16563. <tr>
  16564. <td>isOvertime</td>
  16565. <td>boolean¦null</td>
  16566. <td>false</td>
  16567. <td>none</td>
  16568. <td>Is the board overtimed?</td>
  16569. </tr>
  16570. <tr>
  16571. <td>type</td>
  16572. <td>string</td>
  16573. <td>true</td>
  16574. <td>none</td>
  16575. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16576. </tr>
  16577. <tr>
  16578. <td>sort</td>
  16579. <td>number</td>
  16580. <td>true</td>
  16581. <td>none</td>
  16582. <td>Sort value</td>
  16583. </tr>
  16584. </tbody>
  16585. </table>
  16586. <h4 id="enumerated-values">Enumerated Values</h4>
  16587. <table>
  16588. <thead>
  16589. <tr>
  16590. <th>Property</th>
  16591. <th>Value</th>
  16592. </tr>
  16593. </thead>
  16594. <tbody>
  16595. <tr>
  16596. <td>permission</td>
  16597. <td>public</td>
  16598. </tr>
  16599. <tr>
  16600. <td>permission</td>
  16601. <td>private</td>
  16602. </tr>
  16603. <tr>
  16604. <td>color</td>
  16605. <td>belize</td>
  16606. </tr>
  16607. <tr>
  16608. <td>color</td>
  16609. <td>nephritis</td>
  16610. </tr>
  16611. <tr>
  16612. <td>color</td>
  16613. <td>pomegranate</td>
  16614. </tr>
  16615. <tr>
  16616. <td>color</td>
  16617. <td>pumpkin</td>
  16618. </tr>
  16619. <tr>
  16620. <td>color</td>
  16621. <td>wisteria</td>
  16622. </tr>
  16623. <tr>
  16624. <td>color</td>
  16625. <td>moderatepink</td>
  16626. </tr>
  16627. <tr>
  16628. <td>color</td>
  16629. <td>strongcyan</td>
  16630. </tr>
  16631. <tr>
  16632. <td>color</td>
  16633. <td>limegreen</td>
  16634. </tr>
  16635. <tr>
  16636. <td>color</td>
  16637. <td>midnight</td>
  16638. </tr>
  16639. <tr>
  16640. <td>color</td>
  16641. <td>dark</td>
  16642. </tr>
  16643. <tr>
  16644. <td>color</td>
  16645. <td>relax</td>
  16646. </tr>
  16647. <tr>
  16648. <td>color</td>
  16649. <td>corteza</td>
  16650. </tr>
  16651. <tr>
  16652. <td>color</td>
  16653. <td>clearblue</td>
  16654. </tr>
  16655. <tr>
  16656. <td>color</td>
  16657. <td>natural</td>
  16658. </tr>
  16659. <tr>
  16660. <td>color</td>
  16661. <td>modern</td>
  16662. </tr>
  16663. <tr>
  16664. <td>color</td>
  16665. <td>moderndark</td>
  16666. </tr>
  16667. <tr>
  16668. <td>presentParentTask</td>
  16669. <td>prefix-with-full-path</td>
  16670. </tr>
  16671. <tr>
  16672. <td>presentParentTask</td>
  16673. <td>prefix-with-parent</td>
  16674. </tr>
  16675. <tr>
  16676. <td>presentParentTask</td>
  16677. <td>subtext-with-full-path</td>
  16678. </tr>
  16679. <tr>
  16680. <td>presentParentTask</td>
  16681. <td>subtext-with-parent</td>
  16682. </tr>
  16683. <tr>
  16684. <td>presentParentTask</td>
  16685. <td>no-parent</td>
  16686. </tr>
  16687. <tr>
  16688. <td>type</td>
  16689. <td>board</td>
  16690. </tr>
  16691. <tr>
  16692. <td>type</td>
  16693. <td>template-board</td>
  16694. </tr>
  16695. <tr>
  16696. <td>type</td>
  16697. <td>template-container</td>
  16698. </tr>
  16699. </tbody>
  16700. </table>
  16701. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16702. <p><a id="schemaboardslabels"></a>
  16703. <a id="schema_BoardsLabels"></a>
  16704. <a id="tocSboardslabels"></a>
  16705. <a id="tocsboardslabels"></a></p>
  16706. <pre class="highlight tab tab-json"><code>{
  16707. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16708. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16709. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16710. }
  16711. </code></pre>
  16712. <h3 id="properties-2">Properties</h3>
  16713. <table>
  16714. <thead>
  16715. <tr>
  16716. <th>Name</th>
  16717. <th>Type</th>
  16718. <th>Required</th>
  16719. <th>Restrictions</th>
  16720. <th>Description</th>
  16721. </tr>
  16722. </thead>
  16723. <tbody>
  16724. <tr>
  16725. <td>_id</td>
  16726. <td>string</td>
  16727. <td>true</td>
  16728. <td>none</td>
  16729. <td>Unique id of a label</td>
  16730. </tr>
  16731. <tr>
  16732. <td>name</td>
  16733. <td>string</td>
  16734. <td>false</td>
  16735. <td>none</td>
  16736. <td>Name of a label</td>
  16737. </tr>
  16738. <tr>
  16739. <td>color</td>
  16740. <td>string</td>
  16741. <td>true</td>
  16742. <td>none</td>
  16743. <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>
  16744. </tr>
  16745. </tbody>
  16746. </table>
  16747. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16748. <table>
  16749. <thead>
  16750. <tr>
  16751. <th>Property</th>
  16752. <th>Value</th>
  16753. </tr>
  16754. </thead>
  16755. <tbody>
  16756. <tr>
  16757. <td>color</td>
  16758. <td>white</td>
  16759. </tr>
  16760. <tr>
  16761. <td>color</td>
  16762. <td>green</td>
  16763. </tr>
  16764. <tr>
  16765. <td>color</td>
  16766. <td>yellow</td>
  16767. </tr>
  16768. <tr>
  16769. <td>color</td>
  16770. <td>orange</td>
  16771. </tr>
  16772. <tr>
  16773. <td>color</td>
  16774. <td>red</td>
  16775. </tr>
  16776. <tr>
  16777. <td>color</td>
  16778. <td>purple</td>
  16779. </tr>
  16780. <tr>
  16781. <td>color</td>
  16782. <td>blue</td>
  16783. </tr>
  16784. <tr>
  16785. <td>color</td>
  16786. <td>sky</td>
  16787. </tr>
  16788. <tr>
  16789. <td>color</td>
  16790. <td>lime</td>
  16791. </tr>
  16792. <tr>
  16793. <td>color</td>
  16794. <td>pink</td>
  16795. </tr>
  16796. <tr>
  16797. <td>color</td>
  16798. <td>black</td>
  16799. </tr>
  16800. <tr>
  16801. <td>color</td>
  16802. <td>silver</td>
  16803. </tr>
  16804. <tr>
  16805. <td>color</td>
  16806. <td>peachpuff</td>
  16807. </tr>
  16808. <tr>
  16809. <td>color</td>
  16810. <td>crimson</td>
  16811. </tr>
  16812. <tr>
  16813. <td>color</td>
  16814. <td>plum</td>
  16815. </tr>
  16816. <tr>
  16817. <td>color</td>
  16818. <td>darkgreen</td>
  16819. </tr>
  16820. <tr>
  16821. <td>color</td>
  16822. <td>slateblue</td>
  16823. </tr>
  16824. <tr>
  16825. <td>color</td>
  16826. <td>magenta</td>
  16827. </tr>
  16828. <tr>
  16829. <td>color</td>
  16830. <td>gold</td>
  16831. </tr>
  16832. <tr>
  16833. <td>color</td>
  16834. <td>navy</td>
  16835. </tr>
  16836. <tr>
  16837. <td>color</td>
  16838. <td>gray</td>
  16839. </tr>
  16840. <tr>
  16841. <td>color</td>
  16842. <td>saddlebrown</td>
  16843. </tr>
  16844. <tr>
  16845. <td>color</td>
  16846. <td>paleturquoise</td>
  16847. </tr>
  16848. <tr>
  16849. <td>color</td>
  16850. <td>mistyrose</td>
  16851. </tr>
  16852. <tr>
  16853. <td>color</td>
  16854. <td>indigo</td>
  16855. </tr>
  16856. </tbody>
  16857. </table>
  16858. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16859. <p><a id="schemaboardsmembers"></a>
  16860. <a id="schema_BoardsMembers"></a>
  16861. <a id="tocSboardsmembers"></a>
  16862. <a id="tocsboardsmembers"></a></p>
  16863. <pre class="highlight tab tab-json"><code>{
  16864. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16865. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16866. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16867. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16868. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16869. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16870. }
  16871. </code></pre>
  16872. <h3 id="properties-3">Properties</h3>
  16873. <table>
  16874. <thead>
  16875. <tr>
  16876. <th>Name</th>
  16877. <th>Type</th>
  16878. <th>Required</th>
  16879. <th>Restrictions</th>
  16880. <th>Description</th>
  16881. </tr>
  16882. </thead>
  16883. <tbody>
  16884. <tr>
  16885. <td>userId</td>
  16886. <td>string</td>
  16887. <td>true</td>
  16888. <td>none</td>
  16889. <td>The uniq ID of the member</td>
  16890. </tr>
  16891. <tr>
  16892. <td>isAdmin</td>
  16893. <td>boolean</td>
  16894. <td>true</td>
  16895. <td>none</td>
  16896. <td>Is the member an admin of the board?</td>
  16897. </tr>
  16898. <tr>
  16899. <td>isActive</td>
  16900. <td>boolean</td>
  16901. <td>true</td>
  16902. <td>none</td>
  16903. <td>Is the member active?</td>
  16904. </tr>
  16905. <tr>
  16906. <td>isNoComments</td>
  16907. <td>boolean</td>
  16908. <td>false</td>
  16909. <td>none</td>
  16910. <td>Is the member not allowed to make comments</td>
  16911. </tr>
  16912. <tr>
  16913. <td>isCommentOnly</td>
  16914. <td>boolean</td>
  16915. <td>false</td>
  16916. <td>none</td>
  16917. <td>Is the member only allowed to comment on the board</td>
  16918. </tr>
  16919. <tr>
  16920. <td>isWorker</td>
  16921. <td>boolean</td>
  16922. <td>false</td>
  16923. <td>none</td>
  16924. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16925. </tr>
  16926. </tbody>
  16927. </table>
  16928. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16929. <p><a id="schemaboardsorgs"></a>
  16930. <a id="schema_BoardsOrgs"></a>
  16931. <a id="tocSboardsorgs"></a>
  16932. <a id="tocsboardsorgs"></a></p>
  16933. <pre class="highlight tab tab-json"><code>{
  16934. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16935. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16936. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16937. }
  16938. </code></pre>
  16939. <h3 id="properties-4">Properties</h3>
  16940. <table>
  16941. <thead>
  16942. <tr>
  16943. <th>Name</th>
  16944. <th>Type</th>
  16945. <th>Required</th>
  16946. <th>Restrictions</th>
  16947. <th>Description</th>
  16948. </tr>
  16949. </thead>
  16950. <tbody>
  16951. <tr>
  16952. <td>orgId</td>
  16953. <td>string</td>
  16954. <td>true</td>
  16955. <td>none</td>
  16956. <td>The uniq ID of the organization</td>
  16957. </tr>
  16958. <tr>
  16959. <td>orgDisplayName</td>
  16960. <td>string</td>
  16961. <td>true</td>
  16962. <td>none</td>
  16963. <td>The display name of the organization</td>
  16964. </tr>
  16965. <tr>
  16966. <td>isActive</td>
  16967. <td>boolean</td>
  16968. <td>true</td>
  16969. <td>none</td>
  16970. <td>Is the organization active?</td>
  16971. </tr>
  16972. </tbody>
  16973. </table>
  16974. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16975. <p><a id="schemaboardsteams"></a>
  16976. <a id="schema_BoardsTeams"></a>
  16977. <a id="tocSboardsteams"></a>
  16978. <a id="tocsboardsteams"></a></p>
  16979. <pre class="highlight tab tab-json"><code>{
  16980. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16981. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16982. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16983. }
  16984. </code></pre>
  16985. <h3 id="properties-5">Properties</h3>
  16986. <table>
  16987. <thead>
  16988. <tr>
  16989. <th>Name</th>
  16990. <th>Type</th>
  16991. <th>Required</th>
  16992. <th>Restrictions</th>
  16993. <th>Description</th>
  16994. </tr>
  16995. </thead>
  16996. <tbody>
  16997. <tr>
  16998. <td>teamId</td>
  16999. <td>string</td>
  17000. <td>true</td>
  17001. <td>none</td>
  17002. <td>The uniq ID of the team</td>
  17003. </tr>
  17004. <tr>
  17005. <td>teamDisplayName</td>
  17006. <td>string</td>
  17007. <td>true</td>
  17008. <td>none</td>
  17009. <td>The display name of the team</td>
  17010. </tr>
  17011. <tr>
  17012. <td>isActive</td>
  17013. <td>boolean</td>
  17014. <td>true</td>
  17015. <td>none</td>
  17016. <td>Is the team active?</td>
  17017. </tr>
  17018. </tbody>
  17019. </table>
  17020. <h2 id="tocs_cardcomments">CardComments</h2>
  17021. <p><a id="schemacardcomments"></a>
  17022. <a id="schema_CardComments"></a>
  17023. <a id="tocScardcomments"></a>
  17024. <a id="tocscardcomments"></a></p>
  17025. <pre class="highlight tab tab-json"><code>{
  17026. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17027. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17028. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17029. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17030. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17031. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17032. }
  17033. </code></pre>
  17034. <p>A comment on a card</p>
  17035. <h3 id="properties-6">Properties</h3>
  17036. <table>
  17037. <thead>
  17038. <tr>
  17039. <th>Name</th>
  17040. <th>Type</th>
  17041. <th>Required</th>
  17042. <th>Restrictions</th>
  17043. <th>Description</th>
  17044. </tr>
  17045. </thead>
  17046. <tbody>
  17047. <tr>
  17048. <td>boardId</td>
  17049. <td>string</td>
  17050. <td>true</td>
  17051. <td>none</td>
  17052. <td>the board ID</td>
  17053. </tr>
  17054. <tr>
  17055. <td>cardId</td>
  17056. <td>string</td>
  17057. <td>true</td>
  17058. <td>none</td>
  17059. <td>the card ID</td>
  17060. </tr>
  17061. <tr>
  17062. <td>text</td>
  17063. <td>string</td>
  17064. <td>true</td>
  17065. <td>none</td>
  17066. <td>the text of the comment</td>
  17067. </tr>
  17068. <tr>
  17069. <td>createdAt</td>
  17070. <td>string</td>
  17071. <td>true</td>
  17072. <td>none</td>
  17073. <td>when was the comment created</td>
  17074. </tr>
  17075. <tr>
  17076. <td>modifiedAt</td>
  17077. <td>string</td>
  17078. <td>true</td>
  17079. <td>none</td>
  17080. <td>none</td>
  17081. </tr>
  17082. <tr>
  17083. <td>userId</td>
  17084. <td>string</td>
  17085. <td>true</td>
  17086. <td>none</td>
  17087. <td>the author ID of the comment</td>
  17088. </tr>
  17089. </tbody>
  17090. </table>
  17091. <h2 id="tocs_cards">Cards</h2>
  17092. <p><a id="schemacards"></a>
  17093. <a id="schema_Cards"></a>
  17094. <a id="tocScards"></a>
  17095. <a id="tocscards"></a></p>
  17096. <pre class="highlight tab tab-json"><code>{
  17097. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17098. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17099. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17100. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17101. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17102. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17103. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17104. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17105. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17106. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17107. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17108. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17109. {}
  17110. ],
  17111. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17112. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17113. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17114. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17115. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17116. <span class="hljs-string">&quot;string&quot;</span>
  17117. ],
  17118. <span class="hljs-attr">&quot;members&quot;</span>: [
  17119. <span class="hljs-string">&quot;string&quot;</span>
  17120. ],
  17121. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17122. <span class="hljs-string">&quot;string&quot;</span>
  17123. ],
  17124. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17125. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17126. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17127. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17128. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17129. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17130. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17131. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17132. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17133. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17134. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17135. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17136. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17137. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17138. <span class="hljs-string">&quot;string&quot;</span>
  17139. ],
  17140. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17141. <span class="hljs-string">&quot;string&quot;</span>
  17142. ],
  17143. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17144. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17145. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17146. },
  17147. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17148. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17149. <span class="hljs-attr">&quot;one&quot;</span>: [
  17150. <span class="hljs-string">&quot;string&quot;</span>
  17151. ],
  17152. <span class="hljs-attr">&quot;two&quot;</span>: [
  17153. <span class="hljs-string">&quot;string&quot;</span>
  17154. ],
  17155. <span class="hljs-attr">&quot;three&quot;</span>: [
  17156. <span class="hljs-string">&quot;string&quot;</span>
  17157. ],
  17158. <span class="hljs-attr">&quot;five&quot;</span>: [
  17159. <span class="hljs-string">&quot;string&quot;</span>
  17160. ],
  17161. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17162. <span class="hljs-string">&quot;string&quot;</span>
  17163. ],
  17164. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17165. <span class="hljs-string">&quot;string&quot;</span>
  17166. ],
  17167. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17168. <span class="hljs-string">&quot;string&quot;</span>
  17169. ],
  17170. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17171. <span class="hljs-string">&quot;string&quot;</span>
  17172. ],
  17173. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17174. <span class="hljs-string">&quot;string&quot;</span>
  17175. ],
  17176. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17177. <span class="hljs-string">&quot;string&quot;</span>
  17178. ],
  17179. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17180. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17181. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17182. },
  17183. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17184. <span class="hljs-string">&quot;string&quot;</span>
  17185. ],
  17186. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17187. <span class="hljs-number">0</span>
  17188. ],
  17189. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17190. <span class="hljs-string">&quot;string&quot;</span>
  17191. ],
  17192. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17193. }
  17194. </code></pre>
  17195. <h3 id="properties-7">Properties</h3>
  17196. <table>
  17197. <thead>
  17198. <tr>
  17199. <th>Name</th>
  17200. <th>Type</th>
  17201. <th>Required</th>
  17202. <th>Restrictions</th>
  17203. <th>Description</th>
  17204. </tr>
  17205. </thead>
  17206. <tbody>
  17207. <tr>
  17208. <td>title</td>
  17209. <td>string¦null</td>
  17210. <td>false</td>
  17211. <td>none</td>
  17212. <td>the title of the card</td>
  17213. </tr>
  17214. <tr>
  17215. <td>archived</td>
  17216. <td>boolean</td>
  17217. <td>true</td>
  17218. <td>none</td>
  17219. <td>is the card archived</td>
  17220. </tr>
  17221. <tr>
  17222. <td>archivedAt</td>
  17223. <td>string¦null</td>
  17224. <td>false</td>
  17225. <td>none</td>
  17226. <td>latest archiving date</td>
  17227. </tr>
  17228. <tr>
  17229. <td>parentId</td>
  17230. <td>string¦null</td>
  17231. <td>false</td>
  17232. <td>none</td>
  17233. <td>ID of the parent card</td>
  17234. </tr>
  17235. <tr>
  17236. <td>listId</td>
  17237. <td>string¦null</td>
  17238. <td>false</td>
  17239. <td>none</td>
  17240. <td>List ID where the card is</td>
  17241. </tr>
  17242. <tr>
  17243. <td>swimlaneId</td>
  17244. <td>string</td>
  17245. <td>true</td>
  17246. <td>none</td>
  17247. <td>Swimlane ID where the card is</td>
  17248. </tr>
  17249. <tr>
  17250. <td>boardId</td>
  17251. <td>string¦null</td>
  17252. <td>false</td>
  17253. <td>none</td>
  17254. <td>Board ID of the card</td>
  17255. </tr>
  17256. <tr>
  17257. <td>coverId</td>
  17258. <td>string¦null</td>
  17259. <td>false</td>
  17260. <td>none</td>
  17261. <td>Cover ID of the card</td>
  17262. </tr>
  17263. <tr>
  17264. <td>color</td>
  17265. <td>string¦null</td>
  17266. <td>false</td>
  17267. <td>none</td>
  17268. <td>none</td>
  17269. </tr>
  17270. <tr>
  17271. <td>createdAt</td>
  17272. <td>string</td>
  17273. <td>true</td>
  17274. <td>none</td>
  17275. <td>creation date</td>
  17276. </tr>
  17277. <tr>
  17278. <td>modifiedAt</td>
  17279. <td>string</td>
  17280. <td>true</td>
  17281. <td>none</td>
  17282. <td>none</td>
  17283. </tr>
  17284. <tr>
  17285. <td>customFields</td>
  17286. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17287. <td>false</td>
  17288. <td>none</td>
  17289. <td>list of custom fields</td>
  17290. </tr>
  17291. <tr>
  17292. <td>dateLastActivity</td>
  17293. <td>string</td>
  17294. <td>true</td>
  17295. <td>none</td>
  17296. <td>Date of last activity</td>
  17297. </tr>
  17298. <tr>
  17299. <td>description</td>
  17300. <td>string¦null</td>
  17301. <td>false</td>
  17302. <td>none</td>
  17303. <td>description of the card</td>
  17304. </tr>
  17305. <tr>
  17306. <td>requestedBy</td>
  17307. <td>string¦null</td>
  17308. <td>false</td>
  17309. <td>none</td>
  17310. <td>who requested the card (ID of the user)</td>
  17311. </tr>
  17312. <tr>
  17313. <td>assignedBy</td>
  17314. <td>string¦null</td>
  17315. <td>false</td>
  17316. <td>none</td>
  17317. <td>who assigned the card (ID of the user)</td>
  17318. </tr>
  17319. <tr>
  17320. <td>labelIds</td>
  17321. <td>[string]¦null</td>
  17322. <td>false</td>
  17323. <td>none</td>
  17324. <td>list of labels ID the card has</td>
  17325. </tr>
  17326. <tr>
  17327. <td>members</td>
  17328. <td>[string]¦null</td>
  17329. <td>false</td>
  17330. <td>none</td>
  17331. <td>list of members (user IDs)</td>
  17332. </tr>
  17333. <tr>
  17334. <td>assignees</td>
  17335. <td>[string]¦null</td>
  17336. <td>false</td>
  17337. <td>none</td>
  17338. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  17339. </tr>
  17340. <tr>
  17341. <td>receivedAt</td>
  17342. <td>string¦null</td>
  17343. <td>false</td>
  17344. <td>none</td>
  17345. <td>Date the card was received</td>
  17346. </tr>
  17347. <tr>
  17348. <td>startAt</td>
  17349. <td>string¦null</td>
  17350. <td>false</td>
  17351. <td>none</td>
  17352. <td>Date the card was started to be worked on</td>
  17353. </tr>
  17354. <tr>
  17355. <td>dueAt</td>
  17356. <td>string¦null</td>
  17357. <td>false</td>
  17358. <td>none</td>
  17359. <td>Date the card is due</td>
  17360. </tr>
  17361. <tr>
  17362. <td>endAt</td>
  17363. <td>string¦null</td>
  17364. <td>false</td>
  17365. <td>none</td>
  17366. <td>Date the card ended</td>
  17367. </tr>
  17368. <tr>
  17369. <td>spentTime</td>
  17370. <td>number¦null</td>
  17371. <td>false</td>
  17372. <td>none</td>
  17373. <td>How much time has been spent on this</td>
  17374. </tr>
  17375. <tr>
  17376. <td>isOvertime</td>
  17377. <td>boolean¦null</td>
  17378. <td>false</td>
  17379. <td>none</td>
  17380. <td>is the card over time?</td>
  17381. </tr>
  17382. <tr>
  17383. <td>userId</td>
  17384. <td>string</td>
  17385. <td>true</td>
  17386. <td>none</td>
  17387. <td>user ID of the author of the card</td>
  17388. </tr>
  17389. <tr>
  17390. <td>sort</td>
  17391. <td>number¦null</td>
  17392. <td>false</td>
  17393. <td>none</td>
  17394. <td>Sort value</td>
  17395. </tr>
  17396. <tr>
  17397. <td>subtaskSort</td>
  17398. <td>number¦null</td>
  17399. <td>false</td>
  17400. <td>none</td>
  17401. <td>subtask sort value</td>
  17402. </tr>
  17403. <tr>
  17404. <td>type</td>
  17405. <td>string</td>
  17406. <td>true</td>
  17407. <td>none</td>
  17408. <td>type of the card</td>
  17409. </tr>
  17410. <tr>
  17411. <td>linkedId</td>
  17412. <td>string¦null</td>
  17413. <td>false</td>
  17414. <td>none</td>
  17415. <td>ID of the linked card</td>
  17416. </tr>
  17417. <tr>
  17418. <td>vote</td>
  17419. <td><a href="#schemacardsvote">CardsVote</a></td>
  17420. <td>false</td>
  17421. <td>none</td>
  17422. <td>none</td>
  17423. </tr>
  17424. <tr>
  17425. <td>poker</td>
  17426. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17427. <td>false</td>
  17428. <td>none</td>
  17429. <td>none</td>
  17430. </tr>
  17431. <tr>
  17432. <td>targetId_gantt</td>
  17433. <td>[string]¦null</td>
  17434. <td>false</td>
  17435. <td>none</td>
  17436. <td>ID of card which is the child link in gantt view</td>
  17437. </tr>
  17438. <tr>
  17439. <td>linkType_gantt</td>
  17440. <td>[number]¦null</td>
  17441. <td>false</td>
  17442. <td>none</td>
  17443. <td>ID of card which is the parent link in gantt view</td>
  17444. </tr>
  17445. <tr>
  17446. <td>linkId_gantt</td>
  17447. <td>[string]¦null</td>
  17448. <td>false</td>
  17449. <td>none</td>
  17450. <td>ID of card which is the parent link in gantt view</td>
  17451. </tr>
  17452. <tr>
  17453. <td>cardNumber</td>
  17454. <td>number¦null</td>
  17455. <td>false</td>
  17456. <td>none</td>
  17457. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17458. </tr>
  17459. </tbody>
  17460. </table>
  17461. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17462. <table>
  17463. <thead>
  17464. <tr>
  17465. <th>Property</th>
  17466. <th>Value</th>
  17467. </tr>
  17468. </thead>
  17469. <tbody>
  17470. <tr>
  17471. <td>color</td>
  17472. <td>white</td>
  17473. </tr>
  17474. <tr>
  17475. <td>color</td>
  17476. <td>green</td>
  17477. </tr>
  17478. <tr>
  17479. <td>color</td>
  17480. <td>yellow</td>
  17481. </tr>
  17482. <tr>
  17483. <td>color</td>
  17484. <td>orange</td>
  17485. </tr>
  17486. <tr>
  17487. <td>color</td>
  17488. <td>red</td>
  17489. </tr>
  17490. <tr>
  17491. <td>color</td>
  17492. <td>purple</td>
  17493. </tr>
  17494. <tr>
  17495. <td>color</td>
  17496. <td>blue</td>
  17497. </tr>
  17498. <tr>
  17499. <td>color</td>
  17500. <td>sky</td>
  17501. </tr>
  17502. <tr>
  17503. <td>color</td>
  17504. <td>lime</td>
  17505. </tr>
  17506. <tr>
  17507. <td>color</td>
  17508. <td>pink</td>
  17509. </tr>
  17510. <tr>
  17511. <td>color</td>
  17512. <td>black</td>
  17513. </tr>
  17514. <tr>
  17515. <td>color</td>
  17516. <td>silver</td>
  17517. </tr>
  17518. <tr>
  17519. <td>color</td>
  17520. <td>peachpuff</td>
  17521. </tr>
  17522. <tr>
  17523. <td>color</td>
  17524. <td>crimson</td>
  17525. </tr>
  17526. <tr>
  17527. <td>color</td>
  17528. <td>plum</td>
  17529. </tr>
  17530. <tr>
  17531. <td>color</td>
  17532. <td>darkgreen</td>
  17533. </tr>
  17534. <tr>
  17535. <td>color</td>
  17536. <td>slateblue</td>
  17537. </tr>
  17538. <tr>
  17539. <td>color</td>
  17540. <td>magenta</td>
  17541. </tr>
  17542. <tr>
  17543. <td>color</td>
  17544. <td>gold</td>
  17545. </tr>
  17546. <tr>
  17547. <td>color</td>
  17548. <td>navy</td>
  17549. </tr>
  17550. <tr>
  17551. <td>color</td>
  17552. <td>gray</td>
  17553. </tr>
  17554. <tr>
  17555. <td>color</td>
  17556. <td>saddlebrown</td>
  17557. </tr>
  17558. <tr>
  17559. <td>color</td>
  17560. <td>paleturquoise</td>
  17561. </tr>
  17562. <tr>
  17563. <td>color</td>
  17564. <td>mistyrose</td>
  17565. </tr>
  17566. <tr>
  17567. <td>color</td>
  17568. <td>indigo</td>
  17569. </tr>
  17570. </tbody>
  17571. </table>
  17572. <h2 id="tocs_cardsvote">CardsVote</h2>
  17573. <p><a id="schemacardsvote"></a>
  17574. <a id="schema_CardsVote"></a>
  17575. <a id="tocScardsvote"></a>
  17576. <a id="tocscardsvote"></a></p>
  17577. <pre class="highlight tab tab-json"><code>{
  17578. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17579. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17580. <span class="hljs-string">&quot;string&quot;</span>
  17581. ],
  17582. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17583. <span class="hljs-string">&quot;string&quot;</span>
  17584. ],
  17585. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17586. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17587. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17588. }
  17589. </code></pre>
  17590. <h3 id="properties-8">Properties</h3>
  17591. <table>
  17592. <thead>
  17593. <tr>
  17594. <th>Name</th>
  17595. <th>Type</th>
  17596. <th>Required</th>
  17597. <th>Restrictions</th>
  17598. <th>Description</th>
  17599. </tr>
  17600. </thead>
  17601. <tbody>
  17602. <tr>
  17603. <td>question</td>
  17604. <td>string</td>
  17605. <td>true</td>
  17606. <td>none</td>
  17607. <td>none</td>
  17608. </tr>
  17609. <tr>
  17610. <td>positive</td>
  17611. <td>[string]</td>
  17612. <td>false</td>
  17613. <td>none</td>
  17614. <td>list of members (user IDs)</td>
  17615. </tr>
  17616. <tr>
  17617. <td>negative</td>
  17618. <td>[string]</td>
  17619. <td>false</td>
  17620. <td>none</td>
  17621. <td>list of members (user IDs)</td>
  17622. </tr>
  17623. <tr>
  17624. <td>end</td>
  17625. <td>string</td>
  17626. <td>false</td>
  17627. <td>none</td>
  17628. <td>none</td>
  17629. </tr>
  17630. <tr>
  17631. <td>public</td>
  17632. <td>boolean</td>
  17633. <td>true</td>
  17634. <td>none</td>
  17635. <td>none</td>
  17636. </tr>
  17637. <tr>
  17638. <td>allowNonBoardMembers</td>
  17639. <td>boolean</td>
  17640. <td>true</td>
  17641. <td>none</td>
  17642. <td>none</td>
  17643. </tr>
  17644. </tbody>
  17645. </table>
  17646. <h2 id="tocs_cardspoker">CardsPoker</h2>
  17647. <p><a id="schemacardspoker"></a>
  17648. <a id="schema_CardsPoker"></a>
  17649. <a id="tocScardspoker"></a>
  17650. <a id="tocscardspoker"></a></p>
  17651. <pre class="highlight tab tab-json"><code>{
  17652. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17653. <span class="hljs-attr">&quot;one&quot;</span>: [
  17654. <span class="hljs-string">&quot;string&quot;</span>
  17655. ],
  17656. <span class="hljs-attr">&quot;two&quot;</span>: [
  17657. <span class="hljs-string">&quot;string&quot;</span>
  17658. ],
  17659. <span class="hljs-attr">&quot;three&quot;</span>: [
  17660. <span class="hljs-string">&quot;string&quot;</span>
  17661. ],
  17662. <span class="hljs-attr">&quot;five&quot;</span>: [
  17663. <span class="hljs-string">&quot;string&quot;</span>
  17664. ],
  17665. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17666. <span class="hljs-string">&quot;string&quot;</span>
  17667. ],
  17668. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17669. <span class="hljs-string">&quot;string&quot;</span>
  17670. ],
  17671. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17672. <span class="hljs-string">&quot;string&quot;</span>
  17673. ],
  17674. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17675. <span class="hljs-string">&quot;string&quot;</span>
  17676. ],
  17677. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17678. <span class="hljs-string">&quot;string&quot;</span>
  17679. ],
  17680. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17681. <span class="hljs-string">&quot;string&quot;</span>
  17682. ],
  17683. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17684. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17685. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17686. }
  17687. </code></pre>
  17688. <h3 id="properties-9">Properties</h3>
  17689. <table>
  17690. <thead>
  17691. <tr>
  17692. <th>Name</th>
  17693. <th>Type</th>
  17694. <th>Required</th>
  17695. <th>Restrictions</th>
  17696. <th>Description</th>
  17697. </tr>
  17698. </thead>
  17699. <tbody>
  17700. <tr>
  17701. <td>question</td>
  17702. <td>boolean</td>
  17703. <td>true</td>
  17704. <td>none</td>
  17705. <td>none</td>
  17706. </tr>
  17707. <tr>
  17708. <td>one</td>
  17709. <td>[string]</td>
  17710. <td>false</td>
  17711. <td>none</td>
  17712. <td>poker card one</td>
  17713. </tr>
  17714. <tr>
  17715. <td>two</td>
  17716. <td>[string]</td>
  17717. <td>false</td>
  17718. <td>none</td>
  17719. <td>poker card two</td>
  17720. </tr>
  17721. <tr>
  17722. <td>three</td>
  17723. <td>[string]</td>
  17724. <td>false</td>
  17725. <td>none</td>
  17726. <td>poker card three</td>
  17727. </tr>
  17728. <tr>
  17729. <td>five</td>
  17730. <td>[string]</td>
  17731. <td>false</td>
  17732. <td>none</td>
  17733. <td>poker card five</td>
  17734. </tr>
  17735. <tr>
  17736. <td>eight</td>
  17737. <td>[string]</td>
  17738. <td>false</td>
  17739. <td>none</td>
  17740. <td>poker card eight</td>
  17741. </tr>
  17742. <tr>
  17743. <td>thirteen</td>
  17744. <td>[string]</td>
  17745. <td>false</td>
  17746. <td>none</td>
  17747. <td>poker card thirteen</td>
  17748. </tr>
  17749. <tr>
  17750. <td>twenty</td>
  17751. <td>[string]</td>
  17752. <td>false</td>
  17753. <td>none</td>
  17754. <td>poker card twenty</td>
  17755. </tr>
  17756. <tr>
  17757. <td>forty</td>
  17758. <td>[string]</td>
  17759. <td>false</td>
  17760. <td>none</td>
  17761. <td>poker card forty</td>
  17762. </tr>
  17763. <tr>
  17764. <td>oneHundred</td>
  17765. <td>[string]</td>
  17766. <td>false</td>
  17767. <td>none</td>
  17768. <td>poker card oneHundred</td>
  17769. </tr>
  17770. <tr>
  17771. <td>unsure</td>
  17772. <td>[string]</td>
  17773. <td>false</td>
  17774. <td>none</td>
  17775. <td>poker card unsure</td>
  17776. </tr>
  17777. <tr>
  17778. <td>end</td>
  17779. <td>string</td>
  17780. <td>false</td>
  17781. <td>none</td>
  17782. <td>none</td>
  17783. </tr>
  17784. <tr>
  17785. <td>allowNonBoardMembers</td>
  17786. <td>boolean</td>
  17787. <td>true</td>
  17788. <td>none</td>
  17789. <td>none</td>
  17790. </tr>
  17791. <tr>
  17792. <td>estimation</td>
  17793. <td>number</td>
  17794. <td>false</td>
  17795. <td>none</td>
  17796. <td>poker estimation value</td>
  17797. </tr>
  17798. </tbody>
  17799. </table>
  17800. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17801. <p><a id="schemacardscustomfields"></a>
  17802. <a id="schema_CardsCustomfields"></a>
  17803. <a id="tocScardscustomfields"></a>
  17804. <a id="tocscardscustomfields"></a></p>
  17805. <pre class="highlight tab tab-json"><code>{}
  17806. </code></pre>
  17807. <h3 id="properties-10">Properties</h3>
  17808. <p><em>None</em></p>
  17809. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17810. <p><a id="schemachecklistitems"></a>
  17811. <a id="schema_ChecklistItems"></a>
  17812. <a id="tocSchecklistitems"></a>
  17813. <a id="tocschecklistitems"></a></p>
  17814. <pre class="highlight tab tab-json"><code>{
  17815. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17816. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17817. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17818. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17819. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17820. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17821. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17822. }
  17823. </code></pre>
  17824. <p>An item in a checklist</p>
  17825. <h3 id="properties-11">Properties</h3>
  17826. <table>
  17827. <thead>
  17828. <tr>
  17829. <th>Name</th>
  17830. <th>Type</th>
  17831. <th>Required</th>
  17832. <th>Restrictions</th>
  17833. <th>Description</th>
  17834. </tr>
  17835. </thead>
  17836. <tbody>
  17837. <tr>
  17838. <td>title</td>
  17839. <td>string</td>
  17840. <td>true</td>
  17841. <td>none</td>
  17842. <td>the text of the item</td>
  17843. </tr>
  17844. <tr>
  17845. <td>sort</td>
  17846. <td>number</td>
  17847. <td>true</td>
  17848. <td>none</td>
  17849. <td>the sorting field of the item</td>
  17850. </tr>
  17851. <tr>
  17852. <td>isFinished</td>
  17853. <td>boolean</td>
  17854. <td>true</td>
  17855. <td>none</td>
  17856. <td>Is the item checked?</td>
  17857. </tr>
  17858. <tr>
  17859. <td>checklistId</td>
  17860. <td>string</td>
  17861. <td>true</td>
  17862. <td>none</td>
  17863. <td>the checklist ID the item is attached to</td>
  17864. </tr>
  17865. <tr>
  17866. <td>cardId</td>
  17867. <td>string</td>
  17868. <td>true</td>
  17869. <td>none</td>
  17870. <td>the card ID the item is attached to</td>
  17871. </tr>
  17872. <tr>
  17873. <td>createdAt</td>
  17874. <td>string¦null</td>
  17875. <td>false</td>
  17876. <td>none</td>
  17877. <td>none</td>
  17878. </tr>
  17879. <tr>
  17880. <td>modifiedAt</td>
  17881. <td>string</td>
  17882. <td>true</td>
  17883. <td>none</td>
  17884. <td>none</td>
  17885. </tr>
  17886. </tbody>
  17887. </table>
  17888. <h2 id="tocs_checklists">Checklists</h2>
  17889. <p><a id="schemachecklists"></a>
  17890. <a id="schema_Checklists"></a>
  17891. <a id="tocSchecklists"></a>
  17892. <a id="tocschecklists"></a></p>
  17893. <pre class="highlight tab tab-json"><code>{
  17894. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17895. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17896. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17897. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17898. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17899. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17900. }
  17901. </code></pre>
  17902. <p>A Checklist</p>
  17903. <h3 id="properties-12">Properties</h3>
  17904. <table>
  17905. <thead>
  17906. <tr>
  17907. <th>Name</th>
  17908. <th>Type</th>
  17909. <th>Required</th>
  17910. <th>Restrictions</th>
  17911. <th>Description</th>
  17912. </tr>
  17913. </thead>
  17914. <tbody>
  17915. <tr>
  17916. <td>cardId</td>
  17917. <td>string</td>
  17918. <td>true</td>
  17919. <td>none</td>
  17920. <td>The ID of the card the checklist is in</td>
  17921. </tr>
  17922. <tr>
  17923. <td>title</td>
  17924. <td>string</td>
  17925. <td>true</td>
  17926. <td>none</td>
  17927. <td>the title of the checklist</td>
  17928. </tr>
  17929. <tr>
  17930. <td>finishedAt</td>
  17931. <td>string¦null</td>
  17932. <td>false</td>
  17933. <td>none</td>
  17934. <td>When was the checklist finished</td>
  17935. </tr>
  17936. <tr>
  17937. <td>createdAt</td>
  17938. <td>string</td>
  17939. <td>true</td>
  17940. <td>none</td>
  17941. <td>Creation date of the checklist</td>
  17942. </tr>
  17943. <tr>
  17944. <td>modifiedAt</td>
  17945. <td>string</td>
  17946. <td>true</td>
  17947. <td>none</td>
  17948. <td>none</td>
  17949. </tr>
  17950. <tr>
  17951. <td>sort</td>
  17952. <td>number</td>
  17953. <td>true</td>
  17954. <td>none</td>
  17955. <td>sorting value of the checklist</td>
  17956. </tr>
  17957. </tbody>
  17958. </table>
  17959. <h2 id="tocs_customfields">CustomFields</h2>
  17960. <p><a id="schemacustomfields"></a>
  17961. <a id="schema_CustomFields"></a>
  17962. <a id="tocScustomfields"></a>
  17963. <a id="tocscustomfields"></a></p>
  17964. <pre class="highlight tab tab-json"><code>{
  17965. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17966. <span class="hljs-string">&quot;string&quot;</span>
  17967. ],
  17968. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17969. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17970. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17971. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17972. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17973. {}
  17974. ],
  17975. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17976. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17977. },
  17978. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17979. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17980. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17981. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17982. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  17983. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17984. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17985. }
  17986. </code></pre>
  17987. <p>A custom field on a card in the board</p>
  17988. <h3 id="properties-13">Properties</h3>
  17989. <table>
  17990. <thead>
  17991. <tr>
  17992. <th>Name</th>
  17993. <th>Type</th>
  17994. <th>Required</th>
  17995. <th>Restrictions</th>
  17996. <th>Description</th>
  17997. </tr>
  17998. </thead>
  17999. <tbody>
  18000. <tr>
  18001. <td>boardIds</td>
  18002. <td>[string]</td>
  18003. <td>true</td>
  18004. <td>none</td>
  18005. <td>the ID of the board</td>
  18006. </tr>
  18007. <tr>
  18008. <td>name</td>
  18009. <td>string</td>
  18010. <td>true</td>
  18011. <td>none</td>
  18012. <td>name of the custom field</td>
  18013. </tr>
  18014. <tr>
  18015. <td>type</td>
  18016. <td>string</td>
  18017. <td>true</td>
  18018. <td>none</td>
  18019. <td>type of the custom field</td>
  18020. </tr>
  18021. <tr>
  18022. <td>settings</td>
  18023. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  18024. <td>true</td>
  18025. <td>none</td>
  18026. <td>none</td>
  18027. </tr>
  18028. <tr>
  18029. <td>showOnCard</td>
  18030. <td>boolean</td>
  18031. <td>true</td>
  18032. <td>none</td>
  18033. <td>should we show on the cards this custom field</td>
  18034. </tr>
  18035. <tr>
  18036. <td>automaticallyOnCard</td>
  18037. <td>boolean</td>
  18038. <td>true</td>
  18039. <td>none</td>
  18040. <td>should the custom fields automatically be added on cards?</td>
  18041. </tr>
  18042. <tr>
  18043. <td>alwaysOnCard</td>
  18044. <td>boolean</td>
  18045. <td>true</td>
  18046. <td>none</td>
  18047. <td>should the custom field be automatically added to all cards?</td>
  18048. </tr>
  18049. <tr>
  18050. <td>showLabelOnMiniCard</td>
  18051. <td>boolean</td>
  18052. <td>true</td>
  18053. <td>none</td>
  18054. <td>should the label of the custom field be shown on minicards?</td>
  18055. </tr>
  18056. <tr>
  18057. <td>showSumAtTopOfList</td>
  18058. <td>boolean</td>
  18059. <td>true</td>
  18060. <td>none</td>
  18061. <td>should the sum of the custom fields be shown at top of list?</td>
  18062. </tr>
  18063. <tr>
  18064. <td>createdAt</td>
  18065. <td>string¦null</td>
  18066. <td>false</td>
  18067. <td>none</td>
  18068. <td>none</td>
  18069. </tr>
  18070. <tr>
  18071. <td>modifiedAt</td>
  18072. <td>string</td>
  18073. <td>true</td>
  18074. <td>none</td>
  18075. <td>none</td>
  18076. </tr>
  18077. </tbody>
  18078. </table>
  18079. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18080. <table>
  18081. <thead>
  18082. <tr>
  18083. <th>Property</th>
  18084. <th>Value</th>
  18085. </tr>
  18086. </thead>
  18087. <tbody>
  18088. <tr>
  18089. <td>type</td>
  18090. <td>text</td>
  18091. </tr>
  18092. <tr>
  18093. <td>type</td>
  18094. <td>number</td>
  18095. </tr>
  18096. <tr>
  18097. <td>type</td>
  18098. <td>date</td>
  18099. </tr>
  18100. <tr>
  18101. <td>type</td>
  18102. <td>dropdown</td>
  18103. </tr>
  18104. <tr>
  18105. <td>type</td>
  18106. <td>checkbox</td>
  18107. </tr>
  18108. <tr>
  18109. <td>type</td>
  18110. <td>currency</td>
  18111. </tr>
  18112. <tr>
  18113. <td>type</td>
  18114. <td>stringtemplate</td>
  18115. </tr>
  18116. </tbody>
  18117. </table>
  18118. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18119. <p><a id="schemacustomfieldssettings"></a>
  18120. <a id="schema_CustomFieldsSettings"></a>
  18121. <a id="tocScustomfieldssettings"></a>
  18122. <a id="tocscustomfieldssettings"></a></p>
  18123. <pre class="highlight tab tab-json"><code>{
  18124. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18125. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18126. {}
  18127. ],
  18128. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18129. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18130. }
  18131. </code></pre>
  18132. <h3 id="properties-14">Properties</h3>
  18133. <table>
  18134. <thead>
  18135. <tr>
  18136. <th>Name</th>
  18137. <th>Type</th>
  18138. <th>Required</th>
  18139. <th>Restrictions</th>
  18140. <th>Description</th>
  18141. </tr>
  18142. </thead>
  18143. <tbody>
  18144. <tr>
  18145. <td>currencyCode</td>
  18146. <td>string</td>
  18147. <td>false</td>
  18148. <td>none</td>
  18149. <td>none</td>
  18150. </tr>
  18151. <tr>
  18152. <td>dropdownItems</td>
  18153. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18154. <td>false</td>
  18155. <td>none</td>
  18156. <td>list of drop down items objects</td>
  18157. </tr>
  18158. <tr>
  18159. <td>stringtemplateFormat</td>
  18160. <td>string</td>
  18161. <td>false</td>
  18162. <td>none</td>
  18163. <td>none</td>
  18164. </tr>
  18165. <tr>
  18166. <td>stringtemplateSeparator</td>
  18167. <td>string</td>
  18168. <td>false</td>
  18169. <td>none</td>
  18170. <td>none</td>
  18171. </tr>
  18172. </tbody>
  18173. </table>
  18174. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18175. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18176. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18177. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18178. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18179. <pre class="highlight tab tab-json"><code>{}
  18180. </code></pre>
  18181. <h3 id="properties-15">Properties</h3>
  18182. <p><em>None</em></p>
  18183. <h2 id="tocs_integrations">Integrations</h2>
  18184. <p><a id="schemaintegrations"></a>
  18185. <a id="schema_Integrations"></a>
  18186. <a id="tocSintegrations"></a>
  18187. <a id="tocsintegrations"></a></p>
  18188. <pre class="highlight tab tab-json"><code>{
  18189. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18190. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18191. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18192. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18193. <span class="hljs-string">&quot;string&quot;</span>
  18194. ],
  18195. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18196. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18197. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18198. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18199. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18200. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18201. }
  18202. </code></pre>
  18203. <p>Integration with third-party applications</p>
  18204. <h3 id="properties-16">Properties</h3>
  18205. <table>
  18206. <thead>
  18207. <tr>
  18208. <th>Name</th>
  18209. <th>Type</th>
  18210. <th>Required</th>
  18211. <th>Restrictions</th>
  18212. <th>Description</th>
  18213. </tr>
  18214. </thead>
  18215. <tbody>
  18216. <tr>
  18217. <td>enabled</td>
  18218. <td>boolean</td>
  18219. <td>true</td>
  18220. <td>none</td>
  18221. <td>is the integration enabled?</td>
  18222. </tr>
  18223. <tr>
  18224. <td>title</td>
  18225. <td>string¦null</td>
  18226. <td>false</td>
  18227. <td>none</td>
  18228. <td>name of the integration</td>
  18229. </tr>
  18230. <tr>
  18231. <td>type</td>
  18232. <td>string</td>
  18233. <td>true</td>
  18234. <td>none</td>
  18235. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18236. </tr>
  18237. <tr>
  18238. <td>activities</td>
  18239. <td>[string]</td>
  18240. <td>true</td>
  18241. <td>none</td>
  18242. <td>activities the integration gets triggered (list)</td>
  18243. </tr>
  18244. <tr>
  18245. <td>url</td>
  18246. <td>string</td>
  18247. <td>true</td>
  18248. <td>none</td>
  18249. <td>none</td>
  18250. </tr>
  18251. <tr>
  18252. <td>token</td>
  18253. <td>string¦null</td>
  18254. <td>false</td>
  18255. <td>none</td>
  18256. <td>token of the integration</td>
  18257. </tr>
  18258. <tr>
  18259. <td>boardId</td>
  18260. <td>string</td>
  18261. <td>true</td>
  18262. <td>none</td>
  18263. <td>Board ID of the integration</td>
  18264. </tr>
  18265. <tr>
  18266. <td>createdAt</td>
  18267. <td>string</td>
  18268. <td>true</td>
  18269. <td>none</td>
  18270. <td>Creation date of the integration</td>
  18271. </tr>
  18272. <tr>
  18273. <td>modifiedAt</td>
  18274. <td>string</td>
  18275. <td>true</td>
  18276. <td>none</td>
  18277. <td>none</td>
  18278. </tr>
  18279. <tr>
  18280. <td>userId</td>
  18281. <td>string</td>
  18282. <td>true</td>
  18283. <td>none</td>
  18284. <td>user ID who created the interation</td>
  18285. </tr>
  18286. </tbody>
  18287. </table>
  18288. <h2 id="tocs_lists">Lists</h2>
  18289. <p><a id="schemalists"></a>
  18290. <a id="schema_Lists"></a>
  18291. <a id="tocSlists"></a>
  18292. <a id="tocslists"></a></p>
  18293. <pre class="highlight tab tab-json"><code>{
  18294. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18295. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18296. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18297. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18298. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18299. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18300. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18301. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18302. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18303. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18304. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18305. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18306. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18307. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18308. },
  18309. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18310. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18311. }
  18312. </code></pre>
  18313. <p>A list (column) in the Wekan board.</p>
  18314. <h3 id="properties-17">Properties</h3>
  18315. <table>
  18316. <thead>
  18317. <tr>
  18318. <th>Name</th>
  18319. <th>Type</th>
  18320. <th>Required</th>
  18321. <th>Restrictions</th>
  18322. <th>Description</th>
  18323. </tr>
  18324. </thead>
  18325. <tbody>
  18326. <tr>
  18327. <td>title</td>
  18328. <td>string</td>
  18329. <td>true</td>
  18330. <td>none</td>
  18331. <td>the title of the list</td>
  18332. </tr>
  18333. <tr>
  18334. <td>starred</td>
  18335. <td>boolean¦null</td>
  18336. <td>false</td>
  18337. <td>none</td>
  18338. <td>if a list is stared<br />then we put it on the top</td>
  18339. </tr>
  18340. <tr>
  18341. <td>archived</td>
  18342. <td>boolean</td>
  18343. <td>true</td>
  18344. <td>none</td>
  18345. <td>is the list archived</td>
  18346. </tr>
  18347. <tr>
  18348. <td>archivedAt</td>
  18349. <td>string¦null</td>
  18350. <td>false</td>
  18351. <td>none</td>
  18352. <td>latest archiving date</td>
  18353. </tr>
  18354. <tr>
  18355. <td>boardId</td>
  18356. <td>string</td>
  18357. <td>true</td>
  18358. <td>none</td>
  18359. <td>the board associated to this list</td>
  18360. </tr>
  18361. <tr>
  18362. <td>swimlaneId</td>
  18363. <td>string</td>
  18364. <td>true</td>
  18365. <td>none</td>
  18366. <td>the swimlane associated to this list. Used for templates</td>
  18367. </tr>
  18368. <tr>
  18369. <td>createdAt</td>
  18370. <td>string</td>
  18371. <td>true</td>
  18372. <td>none</td>
  18373. <td>creation date</td>
  18374. </tr>
  18375. <tr>
  18376. <td>sort</td>
  18377. <td>number¦null</td>
  18378. <td>false</td>
  18379. <td>none</td>
  18380. <td>is the list sorted</td>
  18381. </tr>
  18382. <tr>
  18383. <td>updatedAt</td>
  18384. <td>string¦null</td>
  18385. <td>false</td>
  18386. <td>none</td>
  18387. <td>last update of the list</td>
  18388. </tr>
  18389. <tr>
  18390. <td>modifiedAt</td>
  18391. <td>string</td>
  18392. <td>true</td>
  18393. <td>none</td>
  18394. <td>none</td>
  18395. </tr>
  18396. <tr>
  18397. <td>wipLimit</td>
  18398. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  18399. <td>false</td>
  18400. <td>none</td>
  18401. <td>none</td>
  18402. </tr>
  18403. <tr>
  18404. <td>color</td>
  18405. <td>string¦null</td>
  18406. <td>false</td>
  18407. <td>none</td>
  18408. <td>the color of the list</td>
  18409. </tr>
  18410. <tr>
  18411. <td>type</td>
  18412. <td>string</td>
  18413. <td>true</td>
  18414. <td>none</td>
  18415. <td>The type of list</td>
  18416. </tr>
  18417. </tbody>
  18418. </table>
  18419. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18420. <table>
  18421. <thead>
  18422. <tr>
  18423. <th>Property</th>
  18424. <th>Value</th>
  18425. </tr>
  18426. </thead>
  18427. <tbody>
  18428. <tr>
  18429. <td>color</td>
  18430. <td>white</td>
  18431. </tr>
  18432. <tr>
  18433. <td>color</td>
  18434. <td>green</td>
  18435. </tr>
  18436. <tr>
  18437. <td>color</td>
  18438. <td>yellow</td>
  18439. </tr>
  18440. <tr>
  18441. <td>color</td>
  18442. <td>orange</td>
  18443. </tr>
  18444. <tr>
  18445. <td>color</td>
  18446. <td>red</td>
  18447. </tr>
  18448. <tr>
  18449. <td>color</td>
  18450. <td>purple</td>
  18451. </tr>
  18452. <tr>
  18453. <td>color</td>
  18454. <td>blue</td>
  18455. </tr>
  18456. <tr>
  18457. <td>color</td>
  18458. <td>sky</td>
  18459. </tr>
  18460. <tr>
  18461. <td>color</td>
  18462. <td>lime</td>
  18463. </tr>
  18464. <tr>
  18465. <td>color</td>
  18466. <td>pink</td>
  18467. </tr>
  18468. <tr>
  18469. <td>color</td>
  18470. <td>black</td>
  18471. </tr>
  18472. <tr>
  18473. <td>color</td>
  18474. <td>silver</td>
  18475. </tr>
  18476. <tr>
  18477. <td>color</td>
  18478. <td>peachpuff</td>
  18479. </tr>
  18480. <tr>
  18481. <td>color</td>
  18482. <td>crimson</td>
  18483. </tr>
  18484. <tr>
  18485. <td>color</td>
  18486. <td>plum</td>
  18487. </tr>
  18488. <tr>
  18489. <td>color</td>
  18490. <td>darkgreen</td>
  18491. </tr>
  18492. <tr>
  18493. <td>color</td>
  18494. <td>slateblue</td>
  18495. </tr>
  18496. <tr>
  18497. <td>color</td>
  18498. <td>magenta</td>
  18499. </tr>
  18500. <tr>
  18501. <td>color</td>
  18502. <td>gold</td>
  18503. </tr>
  18504. <tr>
  18505. <td>color</td>
  18506. <td>navy</td>
  18507. </tr>
  18508. <tr>
  18509. <td>color</td>
  18510. <td>gray</td>
  18511. </tr>
  18512. <tr>
  18513. <td>color</td>
  18514. <td>saddlebrown</td>
  18515. </tr>
  18516. <tr>
  18517. <td>color</td>
  18518. <td>paleturquoise</td>
  18519. </tr>
  18520. <tr>
  18521. <td>color</td>
  18522. <td>mistyrose</td>
  18523. </tr>
  18524. <tr>
  18525. <td>color</td>
  18526. <td>indigo</td>
  18527. </tr>
  18528. </tbody>
  18529. </table>
  18530. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18531. <p><a id="schemalistswiplimit"></a>
  18532. <a id="schema_ListsWiplimit"></a>
  18533. <a id="tocSlistswiplimit"></a>
  18534. <a id="tocslistswiplimit"></a></p>
  18535. <pre class="highlight tab tab-json"><code>{
  18536. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18537. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18538. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18539. }
  18540. </code></pre>
  18541. <h3 id="properties-18">Properties</h3>
  18542. <table>
  18543. <thead>
  18544. <tr>
  18545. <th>Name</th>
  18546. <th>Type</th>
  18547. <th>Required</th>
  18548. <th>Restrictions</th>
  18549. <th>Description</th>
  18550. </tr>
  18551. </thead>
  18552. <tbody>
  18553. <tr>
  18554. <td>value</td>
  18555. <td>number</td>
  18556. <td>true</td>
  18557. <td>none</td>
  18558. <td>value of the WIP</td>
  18559. </tr>
  18560. <tr>
  18561. <td>enabled</td>
  18562. <td>boolean</td>
  18563. <td>true</td>
  18564. <td>none</td>
  18565. <td>is the WIP enabled</td>
  18566. </tr>
  18567. <tr>
  18568. <td>soft</td>
  18569. <td>boolean</td>
  18570. <td>true</td>
  18571. <td>none</td>
  18572. <td>is the WIP a soft or hard requirement</td>
  18573. </tr>
  18574. </tbody>
  18575. </table>
  18576. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18577. <p><a id="schemaswimlanes"></a>
  18578. <a id="schema_Swimlanes"></a>
  18579. <a id="tocSswimlanes"></a>
  18580. <a id="tocsswimlanes"></a></p>
  18581. <pre class="highlight tab tab-json"><code>{
  18582. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18583. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18584. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18585. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18586. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18587. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18588. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18589. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18590. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18591. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18592. }
  18593. </code></pre>
  18594. <p>A swimlane is an line in the kaban board.</p>
  18595. <h3 id="properties-19">Properties</h3>
  18596. <table>
  18597. <thead>
  18598. <tr>
  18599. <th>Name</th>
  18600. <th>Type</th>
  18601. <th>Required</th>
  18602. <th>Restrictions</th>
  18603. <th>Description</th>
  18604. </tr>
  18605. </thead>
  18606. <tbody>
  18607. <tr>
  18608. <td>title</td>
  18609. <td>string</td>
  18610. <td>true</td>
  18611. <td>none</td>
  18612. <td>the title of the swimlane</td>
  18613. </tr>
  18614. <tr>
  18615. <td>archived</td>
  18616. <td>boolean</td>
  18617. <td>true</td>
  18618. <td>none</td>
  18619. <td>is the swimlane archived?</td>
  18620. </tr>
  18621. <tr>
  18622. <td>archivedAt</td>
  18623. <td>string¦null</td>
  18624. <td>false</td>
  18625. <td>none</td>
  18626. <td>latest archiving date of the swimlane</td>
  18627. </tr>
  18628. <tr>
  18629. <td>boardId</td>
  18630. <td>string</td>
  18631. <td>true</td>
  18632. <td>none</td>
  18633. <td>the ID of the board the swimlane is attached to</td>
  18634. </tr>
  18635. <tr>
  18636. <td>createdAt</td>
  18637. <td>string</td>
  18638. <td>true</td>
  18639. <td>none</td>
  18640. <td>creation date of the swimlane</td>
  18641. </tr>
  18642. <tr>
  18643. <td>sort</td>
  18644. <td>number¦null</td>
  18645. <td>false</td>
  18646. <td>none</td>
  18647. <td>the sort value of the swimlane</td>
  18648. </tr>
  18649. <tr>
  18650. <td>color</td>
  18651. <td>string¦null</td>
  18652. <td>false</td>
  18653. <td>none</td>
  18654. <td>the color of the swimlane</td>
  18655. </tr>
  18656. <tr>
  18657. <td>updatedAt</td>
  18658. <td>string¦null</td>
  18659. <td>false</td>
  18660. <td>none</td>
  18661. <td>when was the swimlane last edited</td>
  18662. </tr>
  18663. <tr>
  18664. <td>modifiedAt</td>
  18665. <td>string</td>
  18666. <td>true</td>
  18667. <td>none</td>
  18668. <td>none</td>
  18669. </tr>
  18670. <tr>
  18671. <td>type</td>
  18672. <td>string</td>
  18673. <td>true</td>
  18674. <td>none</td>
  18675. <td>The type of swimlane</td>
  18676. </tr>
  18677. </tbody>
  18678. </table>
  18679. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18680. <table>
  18681. <thead>
  18682. <tr>
  18683. <th>Property</th>
  18684. <th>Value</th>
  18685. </tr>
  18686. </thead>
  18687. <tbody>
  18688. <tr>
  18689. <td>color</td>
  18690. <td>white</td>
  18691. </tr>
  18692. <tr>
  18693. <td>color</td>
  18694. <td>green</td>
  18695. </tr>
  18696. <tr>
  18697. <td>color</td>
  18698. <td>yellow</td>
  18699. </tr>
  18700. <tr>
  18701. <td>color</td>
  18702. <td>orange</td>
  18703. </tr>
  18704. <tr>
  18705. <td>color</td>
  18706. <td>red</td>
  18707. </tr>
  18708. <tr>
  18709. <td>color</td>
  18710. <td>purple</td>
  18711. </tr>
  18712. <tr>
  18713. <td>color</td>
  18714. <td>blue</td>
  18715. </tr>
  18716. <tr>
  18717. <td>color</td>
  18718. <td>sky</td>
  18719. </tr>
  18720. <tr>
  18721. <td>color</td>
  18722. <td>lime</td>
  18723. </tr>
  18724. <tr>
  18725. <td>color</td>
  18726. <td>pink</td>
  18727. </tr>
  18728. <tr>
  18729. <td>color</td>
  18730. <td>black</td>
  18731. </tr>
  18732. <tr>
  18733. <td>color</td>
  18734. <td>silver</td>
  18735. </tr>
  18736. <tr>
  18737. <td>color</td>
  18738. <td>peachpuff</td>
  18739. </tr>
  18740. <tr>
  18741. <td>color</td>
  18742. <td>crimson</td>
  18743. </tr>
  18744. <tr>
  18745. <td>color</td>
  18746. <td>plum</td>
  18747. </tr>
  18748. <tr>
  18749. <td>color</td>
  18750. <td>darkgreen</td>
  18751. </tr>
  18752. <tr>
  18753. <td>color</td>
  18754. <td>slateblue</td>
  18755. </tr>
  18756. <tr>
  18757. <td>color</td>
  18758. <td>magenta</td>
  18759. </tr>
  18760. <tr>
  18761. <td>color</td>
  18762. <td>gold</td>
  18763. </tr>
  18764. <tr>
  18765. <td>color</td>
  18766. <td>navy</td>
  18767. </tr>
  18768. <tr>
  18769. <td>color</td>
  18770. <td>gray</td>
  18771. </tr>
  18772. <tr>
  18773. <td>color</td>
  18774. <td>saddlebrown</td>
  18775. </tr>
  18776. <tr>
  18777. <td>color</td>
  18778. <td>paleturquoise</td>
  18779. </tr>
  18780. <tr>
  18781. <td>color</td>
  18782. <td>mistyrose</td>
  18783. </tr>
  18784. <tr>
  18785. <td>color</td>
  18786. <td>indigo</td>
  18787. </tr>
  18788. </tbody>
  18789. </table>
  18790. <h2 id="tocs_users">Users</h2>
  18791. <p><a id="schemausers"></a>
  18792. <a id="schema_Users"></a>
  18793. <a id="tocSusers"></a>
  18794. <a id="tocsusers"></a></p>
  18795. <pre class="highlight tab tab-json"><code>{
  18796. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18797. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  18798. {
  18799. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18800. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18801. }
  18802. ],
  18803. <span class="hljs-attr">&quot;teams&quot;</span>: [
  18804. {
  18805. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18806. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18807. }
  18808. ],
  18809. <span class="hljs-attr">&quot;emails&quot;</span>: [
  18810. {
  18811. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18812. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18813. }
  18814. ],
  18815. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18816. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18817. <span class="hljs-attr">&quot;profile&quot;</span>: {
  18818. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18819. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18820. <span class="hljs-string">&quot;string&quot;</span>
  18821. ],
  18822. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18823. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18824. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18825. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18826. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  18827. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18828. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18829. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18830. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18831. <span class="hljs-string">&quot;string&quot;</span>
  18832. ],
  18833. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18834. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  18835. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  18836. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  18837. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  18838. {
  18839. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18840. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18841. }
  18842. ],
  18843. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18844. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18845. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18846. <span class="hljs-string">&quot;string&quot;</span>
  18847. ],
  18848. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18849. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18850. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18851. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18852. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18853. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18854. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18855. },
  18856. <span class="hljs-attr">&quot;services&quot;</span>: {},
  18857. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18858. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18859. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  18860. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  18861. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18862. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  18863. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  18864. },
  18865. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  18866. <span class="hljs-string">&quot;string&quot;</span>
  18867. ]
  18868. }
  18869. </code></pre>
  18870. <p>A User in wekan</p>
  18871. <h3 id="properties-20">Properties</h3>
  18872. <table>
  18873. <thead>
  18874. <tr>
  18875. <th>Name</th>
  18876. <th>Type</th>
  18877. <th>Required</th>
  18878. <th>Restrictions</th>
  18879. <th>Description</th>
  18880. </tr>
  18881. </thead>
  18882. <tbody>
  18883. <tr>
  18884. <td>username</td>
  18885. <td>string¦null</td>
  18886. <td>false</td>
  18887. <td>none</td>
  18888. <td>the username of the user</td>
  18889. </tr>
  18890. <tr>
  18891. <td>orgs</td>
  18892. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  18893. <td>false</td>
  18894. <td>none</td>
  18895. <td>the list of organizations that a user belongs to</td>
  18896. </tr>
  18897. <tr>
  18898. <td>teams</td>
  18899. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  18900. <td>false</td>
  18901. <td>none</td>
  18902. <td>the list of teams that a user belongs to</td>
  18903. </tr>
  18904. <tr>
  18905. <td>emails</td>
  18906. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  18907. <td>false</td>
  18908. <td>none</td>
  18909. <td>the list of emails attached to a user</td>
  18910. </tr>
  18911. <tr>
  18912. <td>createdAt</td>
  18913. <td>string</td>
  18914. <td>true</td>
  18915. <td>none</td>
  18916. <td>creation date of the user</td>
  18917. </tr>
  18918. <tr>
  18919. <td>modifiedAt</td>
  18920. <td>string</td>
  18921. <td>true</td>
  18922. <td>none</td>
  18923. <td>none</td>
  18924. </tr>
  18925. <tr>
  18926. <td>profile</td>
  18927. <td><a href="#schemausersprofile">UsersProfile</a></td>
  18928. <td>false</td>
  18929. <td>none</td>
  18930. <td>none</td>
  18931. </tr>
  18932. <tr>
  18933. <td>services</td>
  18934. <td>object¦null</td>
  18935. <td>false</td>
  18936. <td>none</td>
  18937. <td>services field of the user</td>
  18938. </tr>
  18939. <tr>
  18940. <td>heartbeat</td>
  18941. <td>string¦null</td>
  18942. <td>false</td>
  18943. <td>none</td>
  18944. <td>last time the user has been seen</td>
  18945. </tr>
  18946. <tr>
  18947. <td>isAdmin</td>
  18948. <td>boolean¦null</td>
  18949. <td>false</td>
  18950. <td>none</td>
  18951. <td>is the user an admin of the board?</td>
  18952. </tr>
  18953. <tr>
  18954. <td>createdThroughApi</td>
  18955. <td>boolean¦null</td>
  18956. <td>false</td>
  18957. <td>none</td>
  18958. <td>was the user created through the API?</td>
  18959. </tr>
  18960. <tr>
  18961. <td>loginDisabled</td>
  18962. <td>boolean¦null</td>
  18963. <td>false</td>
  18964. <td>none</td>
  18965. <td>loginDisabled field of the user</td>
  18966. </tr>
  18967. <tr>
  18968. <td>authenticationMethod</td>
  18969. <td>string</td>
  18970. <td>true</td>
  18971. <td>none</td>
  18972. <td>authentication method of the user</td>
  18973. </tr>
  18974. <tr>
  18975. <td>sessionData</td>
  18976. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  18977. <td>false</td>
  18978. <td>none</td>
  18979. <td>none</td>
  18980. </tr>
  18981. <tr>
  18982. <td>importUsernames</td>
  18983. <td>[string]¦null</td>
  18984. <td>false</td>
  18985. <td>none</td>
  18986. <td>username for imported</td>
  18987. </tr>
  18988. </tbody>
  18989. </table>
  18990. <h2 id="tocs_usersprofile">UsersProfile</h2>
  18991. <p><a id="schemausersprofile"></a>
  18992. <a id="schema_UsersProfile"></a>
  18993. <a id="tocSusersprofile"></a>
  18994. <a id="tocsusersprofile"></a></p>
  18995. <pre class="highlight tab tab-json"><code>{
  18996. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18997. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18998. <span class="hljs-string">&quot;string&quot;</span>
  18999. ],
  19000. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19001. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19002. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19003. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19004. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19005. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19006. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19007. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19008. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19009. <span class="hljs-string">&quot;string&quot;</span>
  19010. ],
  19011. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19012. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19013. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19014. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19015. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19016. {
  19017. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19018. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19019. }
  19020. ],
  19021. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19022. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19023. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19024. <span class="hljs-string">&quot;string&quot;</span>
  19025. ],
  19026. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19027. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19028. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19029. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19030. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19031. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19032. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19033. }
  19034. </code></pre>
  19035. <h3 id="properties-21">Properties</h3>
  19036. <table>
  19037. <thead>
  19038. <tr>
  19039. <th>Name</th>
  19040. <th>Type</th>
  19041. <th>Required</th>
  19042. <th>Restrictions</th>
  19043. <th>Description</th>
  19044. </tr>
  19045. </thead>
  19046. <tbody>
  19047. <tr>
  19048. <td>avatarUrl</td>
  19049. <td>string</td>
  19050. <td>false</td>
  19051. <td>none</td>
  19052. <td>URL of the avatar of the user</td>
  19053. </tr>
  19054. <tr>
  19055. <td>emailBuffer</td>
  19056. <td>[string]</td>
  19057. <td>false</td>
  19058. <td>none</td>
  19059. <td>list of email buffers of the user</td>
  19060. </tr>
  19061. <tr>
  19062. <td>fullname</td>
  19063. <td>string</td>
  19064. <td>false</td>
  19065. <td>none</td>
  19066. <td>full name of the user</td>
  19067. </tr>
  19068. <tr>
  19069. <td>showDesktopDragHandles</td>
  19070. <td>boolean</td>
  19071. <td>false</td>
  19072. <td>none</td>
  19073. <td>does the user want to show desktop drag handles?</td>
  19074. </tr>
  19075. <tr>
  19076. <td>hideCheckedItems</td>
  19077. <td>boolean</td>
  19078. <td>false</td>
  19079. <td>none</td>
  19080. <td>does the user want to hide checked checklist items?</td>
  19081. </tr>
  19082. <tr>
  19083. <td>cardMaximized</td>
  19084. <td>boolean</td>
  19085. <td>false</td>
  19086. <td>none</td>
  19087. <td>has user clicked maximize card?</td>
  19088. </tr>
  19089. <tr>
  19090. <td>customFieldsGrid</td>
  19091. <td>boolean</td>
  19092. <td>false</td>
  19093. <td>none</td>
  19094. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  19095. </tr>
  19096. <tr>
  19097. <td>hiddenSystemMessages</td>
  19098. <td>boolean</td>
  19099. <td>false</td>
  19100. <td>none</td>
  19101. <td>does the user want to hide system messages?</td>
  19102. </tr>
  19103. <tr>
  19104. <td>hiddenMinicardLabelText</td>
  19105. <td>boolean</td>
  19106. <td>false</td>
  19107. <td>none</td>
  19108. <td>does the user want to hide minicard label texts?</td>
  19109. </tr>
  19110. <tr>
  19111. <td>initials</td>
  19112. <td>string</td>
  19113. <td>false</td>
  19114. <td>none</td>
  19115. <td>initials of the user</td>
  19116. </tr>
  19117. <tr>
  19118. <td>invitedBoards</td>
  19119. <td>[string]</td>
  19120. <td>false</td>
  19121. <td>none</td>
  19122. <td>board IDs the user has been invited to</td>
  19123. </tr>
  19124. <tr>
  19125. <td>language</td>
  19126. <td>string</td>
  19127. <td>false</td>
  19128. <td>none</td>
  19129. <td>language of the user</td>
  19130. </tr>
  19131. <tr>
  19132. <td>moveAndCopyDialog</td>
  19133. <td>object</td>
  19134. <td>false</td>
  19135. <td>none</td>
  19136. <td>move and copy card dialog</td>
  19137. </tr>
  19138. <tr>
  19139. <td>moveChecklistDialog</td>
  19140. <td>object</td>
  19141. <td>false</td>
  19142. <td>none</td>
  19143. <td>move checklist dialog</td>
  19144. </tr>
  19145. <tr>
  19146. <td>copyChecklistDialog</td>
  19147. <td>object</td>
  19148. <td>false</td>
  19149. <td>none</td>
  19150. <td>copy checklist dialog</td>
  19151. </tr>
  19152. <tr>
  19153. <td>notifications</td>
  19154. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19155. <td>false</td>
  19156. <td>none</td>
  19157. <td>enabled notifications for the user</td>
  19158. </tr>
  19159. <tr>
  19160. <td>showCardsCountAt</td>
  19161. <td>number</td>
  19162. <td>false</td>
  19163. <td>none</td>
  19164. <td>showCardCountAt field of the user</td>
  19165. </tr>
  19166. <tr>
  19167. <td>startDayOfWeek</td>
  19168. <td>number</td>
  19169. <td>false</td>
  19170. <td>none</td>
  19171. <td>startDayOfWeek field of the user</td>
  19172. </tr>
  19173. <tr>
  19174. <td>starredBoards</td>
  19175. <td>[string]</td>
  19176. <td>false</td>
  19177. <td>none</td>
  19178. <td>list of starred board IDs</td>
  19179. </tr>
  19180. <tr>
  19181. <td>icode</td>
  19182. <td>string</td>
  19183. <td>false</td>
  19184. <td>none</td>
  19185. <td>icode</td>
  19186. </tr>
  19187. <tr>
  19188. <td>boardView</td>
  19189. <td>string</td>
  19190. <td>false</td>
  19191. <td>none</td>
  19192. <td>boardView field of the user</td>
  19193. </tr>
  19194. <tr>
  19195. <td>listSortBy</td>
  19196. <td>string</td>
  19197. <td>false</td>
  19198. <td>none</td>
  19199. <td>default sort list for user</td>
  19200. </tr>
  19201. <tr>
  19202. <td>templatesBoardId</td>
  19203. <td>string</td>
  19204. <td>true</td>
  19205. <td>none</td>
  19206. <td>Reference to the templates board</td>
  19207. </tr>
  19208. <tr>
  19209. <td>cardTemplatesSwimlaneId</td>
  19210. <td>string</td>
  19211. <td>true</td>
  19212. <td>none</td>
  19213. <td>Reference to the card templates swimlane Id</td>
  19214. </tr>
  19215. <tr>
  19216. <td>listTemplatesSwimlaneId</td>
  19217. <td>string</td>
  19218. <td>true</td>
  19219. <td>none</td>
  19220. <td>Reference to the list templates swimlane Id</td>
  19221. </tr>
  19222. <tr>
  19223. <td>boardTemplatesSwimlaneId</td>
  19224. <td>string</td>
  19225. <td>true</td>
  19226. <td>none</td>
  19227. <td>Reference to the board templates swimlane Id</td>
  19228. </tr>
  19229. </tbody>
  19230. </table>
  19231. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19232. <table>
  19233. <thead>
  19234. <tr>
  19235. <th>Property</th>
  19236. <th>Value</th>
  19237. </tr>
  19238. </thead>
  19239. <tbody>
  19240. <tr>
  19241. <td>boardView</td>
  19242. <td>board-view-swimlanes</td>
  19243. </tr>
  19244. <tr>
  19245. <td>boardView</td>
  19246. <td>board-view-lists</td>
  19247. </tr>
  19248. <tr>
  19249. <td>boardView</td>
  19250. <td>board-view-cal</td>
  19251. </tr>
  19252. <tr>
  19253. <td>listSortBy</td>
  19254. <td>-modifiedat</td>
  19255. </tr>
  19256. <tr>
  19257. <td>listSortBy</td>
  19258. <td>modifiedat</td>
  19259. </tr>
  19260. <tr>
  19261. <td>listSortBy</td>
  19262. <td>-title</td>
  19263. </tr>
  19264. <tr>
  19265. <td>listSortBy</td>
  19266. <td>title</td>
  19267. </tr>
  19268. <tr>
  19269. <td>listSortBy</td>
  19270. <td>-sort</td>
  19271. </tr>
  19272. <tr>
  19273. <td>listSortBy</td>
  19274. <td>sort</td>
  19275. </tr>
  19276. </tbody>
  19277. </table>
  19278. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19279. <p><a id="schemauserssessiondata"></a>
  19280. <a id="schema_UsersSessiondata"></a>
  19281. <a id="tocSuserssessiondata"></a>
  19282. <a id="tocsuserssessiondata"></a></p>
  19283. <pre class="highlight tab tab-json"><code>{
  19284. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19285. }
  19286. </code></pre>
  19287. <h3 id="properties-22">Properties</h3>
  19288. <table>
  19289. <thead>
  19290. <tr>
  19291. <th>Name</th>
  19292. <th>Type</th>
  19293. <th>Required</th>
  19294. <th>Restrictions</th>
  19295. <th>Description</th>
  19296. </tr>
  19297. </thead>
  19298. <tbody>
  19299. <tr>
  19300. <td>totalHits</td>
  19301. <td>number</td>
  19302. <td>false</td>
  19303. <td>none</td>
  19304. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  19305. </tr>
  19306. </tbody>
  19307. </table>
  19308. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  19309. <p><a id="schemausersorgs"></a>
  19310. <a id="schema_UsersOrgs"></a>
  19311. <a id="tocSusersorgs"></a>
  19312. <a id="tocsusersorgs"></a></p>
  19313. <pre class="highlight tab tab-json"><code>{
  19314. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19315. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19316. }
  19317. </code></pre>
  19318. <h3 id="properties-23">Properties</h3>
  19319. <table>
  19320. <thead>
  19321. <tr>
  19322. <th>Name</th>
  19323. <th>Type</th>
  19324. <th>Required</th>
  19325. <th>Restrictions</th>
  19326. <th>Description</th>
  19327. </tr>
  19328. </thead>
  19329. <tbody>
  19330. <tr>
  19331. <td>orgId</td>
  19332. <td>string</td>
  19333. <td>true</td>
  19334. <td>none</td>
  19335. <td>The uniq ID of the organization</td>
  19336. </tr>
  19337. <tr>
  19338. <td>orgDisplayName</td>
  19339. <td>string</td>
  19340. <td>true</td>
  19341. <td>none</td>
  19342. <td>The display name of the organization</td>
  19343. </tr>
  19344. </tbody>
  19345. </table>
  19346. <h2 id="tocs_usersteams">UsersTeams</h2>
  19347. <p><a id="schemausersteams"></a>
  19348. <a id="schema_UsersTeams"></a>
  19349. <a id="tocSusersteams"></a>
  19350. <a id="tocsusersteams"></a></p>
  19351. <pre class="highlight tab tab-json"><code>{
  19352. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19353. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19354. }
  19355. </code></pre>
  19356. <h3 id="properties-24">Properties</h3>
  19357. <table>
  19358. <thead>
  19359. <tr>
  19360. <th>Name</th>
  19361. <th>Type</th>
  19362. <th>Required</th>
  19363. <th>Restrictions</th>
  19364. <th>Description</th>
  19365. </tr>
  19366. </thead>
  19367. <tbody>
  19368. <tr>
  19369. <td>teamId</td>
  19370. <td>string</td>
  19371. <td>true</td>
  19372. <td>none</td>
  19373. <td>The uniq ID of the team</td>
  19374. </tr>
  19375. <tr>
  19376. <td>teamDisplayName</td>
  19377. <td>string</td>
  19378. <td>true</td>
  19379. <td>none</td>
  19380. <td>The display name of the team</td>
  19381. </tr>
  19382. </tbody>
  19383. </table>
  19384. <h2 id="tocs_usersemails">UsersEmails</h2>
  19385. <p><a id="schemausersemails"></a>
  19386. <a id="schema_UsersEmails"></a>
  19387. <a id="tocSusersemails"></a>
  19388. <a id="tocsusersemails"></a></p>
  19389. <pre class="highlight tab tab-json"><code>{
  19390. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19391. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19392. }
  19393. </code></pre>
  19394. <h3 id="properties-25">Properties</h3>
  19395. <table>
  19396. <thead>
  19397. <tr>
  19398. <th>Name</th>
  19399. <th>Type</th>
  19400. <th>Required</th>
  19401. <th>Restrictions</th>
  19402. <th>Description</th>
  19403. </tr>
  19404. </thead>
  19405. <tbody>
  19406. <tr>
  19407. <td>address</td>
  19408. <td>string</td>
  19409. <td>true</td>
  19410. <td>none</td>
  19411. <td>The email address</td>
  19412. </tr>
  19413. <tr>
  19414. <td>verified</td>
  19415. <td>boolean</td>
  19416. <td>true</td>
  19417. <td>none</td>
  19418. <td>Has the email been verified</td>
  19419. </tr>
  19420. </tbody>
  19421. </table>
  19422. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  19423. <p><a id="schemausersprofilemoveandcopydialog"></a>
  19424. <a id="schema_UsersProfileMoveandcopydialog"></a>
  19425. <a id="tocSusersprofilemoveandcopydialog"></a>
  19426. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  19427. <pre class="highlight tab tab-json"><code>{
  19428. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19429. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19430. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19431. }
  19432. </code></pre>
  19433. <h3 id="properties-26">Properties</h3>
  19434. <table>
  19435. <thead>
  19436. <tr>
  19437. <th>Name</th>
  19438. <th>Type</th>
  19439. <th>Required</th>
  19440. <th>Restrictions</th>
  19441. <th>Description</th>
  19442. </tr>
  19443. </thead>
  19444. <tbody>
  19445. <tr>
  19446. <td>boardId</td>
  19447. <td>string</td>
  19448. <td>true</td>
  19449. <td>none</td>
  19450. <td>last selected board id</td>
  19451. </tr>
  19452. <tr>
  19453. <td>swimlaneId</td>
  19454. <td>string</td>
  19455. <td>true</td>
  19456. <td>none</td>
  19457. <td>last selected swimlane id</td>
  19458. </tr>
  19459. <tr>
  19460. <td>listId</td>
  19461. <td>string</td>
  19462. <td>true</td>
  19463. <td>none</td>
  19464. <td>last selected list id</td>
  19465. </tr>
  19466. </tbody>
  19467. </table>
  19468. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  19469. <p><a id="schemausersprofilemovechecklistdialog"></a>
  19470. <a id="schema_UsersProfileMovechecklistdialog"></a>
  19471. <a id="tocSusersprofilemovechecklistdialog"></a>
  19472. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  19473. <pre class="highlight tab tab-json"><code>{
  19474. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19475. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19476. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19477. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19478. }
  19479. </code></pre>
  19480. <h3 id="properties-27">Properties</h3>
  19481. <table>
  19482. <thead>
  19483. <tr>
  19484. <th>Name</th>
  19485. <th>Type</th>
  19486. <th>Required</th>
  19487. <th>Restrictions</th>
  19488. <th>Description</th>
  19489. </tr>
  19490. </thead>
  19491. <tbody>
  19492. <tr>
  19493. <td>boardId</td>
  19494. <td>string</td>
  19495. <td>true</td>
  19496. <td>none</td>
  19497. <td>last selected board id</td>
  19498. </tr>
  19499. <tr>
  19500. <td>swimlaneId</td>
  19501. <td>string</td>
  19502. <td>true</td>
  19503. <td>none</td>
  19504. <td>last selected swimlane id</td>
  19505. </tr>
  19506. <tr>
  19507. <td>listId</td>
  19508. <td>string</td>
  19509. <td>true</td>
  19510. <td>none</td>
  19511. <td>last selected list id</td>
  19512. </tr>
  19513. <tr>
  19514. <td>cardId</td>
  19515. <td>string</td>
  19516. <td>true</td>
  19517. <td>none</td>
  19518. <td>last selected card id</td>
  19519. </tr>
  19520. </tbody>
  19521. </table>
  19522. <h2 id="tocs_usersprofilecopychecklistdialog">UsersProfileCopychecklistdialog</h2>
  19523. <p><a id="schemausersprofilecopychecklistdialog"></a>
  19524. <a id="schema_UsersProfileCopychecklistdialog"></a>
  19525. <a id="tocSusersprofilecopychecklistdialog"></a>
  19526. <a id="tocsusersprofilecopychecklistdialog"></a></p>
  19527. <pre class="highlight tab tab-json"><code>{
  19528. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19529. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19530. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19531. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19532. }
  19533. </code></pre>
  19534. <h3 id="properties-28">Properties</h3>
  19535. <table>
  19536. <thead>
  19537. <tr>
  19538. <th>Name</th>
  19539. <th>Type</th>
  19540. <th>Required</th>
  19541. <th>Restrictions</th>
  19542. <th>Description</th>
  19543. </tr>
  19544. </thead>
  19545. <tbody>
  19546. <tr>
  19547. <td>boardId</td>
  19548. <td>string</td>
  19549. <td>true</td>
  19550. <td>none</td>
  19551. <td>last selected board id</td>
  19552. </tr>
  19553. <tr>
  19554. <td>swimlaneId</td>
  19555. <td>string</td>
  19556. <td>true</td>
  19557. <td>none</td>
  19558. <td>last selected swimlane id</td>
  19559. </tr>
  19560. <tr>
  19561. <td>listId</td>
  19562. <td>string</td>
  19563. <td>true</td>
  19564. <td>none</td>
  19565. <td>last selected list id</td>
  19566. </tr>
  19567. <tr>
  19568. <td>cardId</td>
  19569. <td>string</td>
  19570. <td>true</td>
  19571. <td>none</td>
  19572. <td>last selected card id</td>
  19573. </tr>
  19574. </tbody>
  19575. </table>
  19576. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  19577. <p><a id="schemausersprofilenotifications"></a>
  19578. <a id="schema_UsersProfileNotifications"></a>
  19579. <a id="tocSusersprofilenotifications"></a>
  19580. <a id="tocsusersprofilenotifications"></a></p>
  19581. <pre class="highlight tab tab-json"><code>{
  19582. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19583. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19584. }
  19585. </code></pre>
  19586. <h3 id="properties-29">Properties</h3>
  19587. <table>
  19588. <thead>
  19589. <tr>
  19590. <th>Name</th>
  19591. <th>Type</th>
  19592. <th>Required</th>
  19593. <th>Restrictions</th>
  19594. <th>Description</th>
  19595. </tr>
  19596. </thead>
  19597. <tbody>
  19598. <tr>
  19599. <td>activity</td>
  19600. <td>string</td>
  19601. <td>true</td>
  19602. <td>none</td>
  19603. <td>The id of the activity this notification references</td>
  19604. </tr>
  19605. <tr>
  19606. <td>read</td>
  19607. <td>string</td>
  19608. <td>false</td>
  19609. <td>none</td>
  19610. <td>the date on which this notification was read</td>
  19611. </tr>
  19612. </tbody>
  19613. </table>
  19614. <!-- Renderer: Shins v2.6.0 -->
  19615. <!-- Generator: Widdershins v4.0.1 -->
  19616. <!-- backwards compatibility -->
  19617. <!-- backwards compatibility -->
  19618. <!-- backwards compatibility -->
  19619. <!-- backwards compatibility -->
  19620. <!-- backwards compatibility -->
  19621. <!-- backwards compatibility -->
  19622. <!-- backwards compatibility -->
  19623. <!-- backwards compatibility -->
  19624. <!-- backwards compatibility -->
  19625. <!-- backwards compatibility -->
  19626. <!-- backwards compatibility -->
  19627. <!-- backwards compatibility -->
  19628. <!-- backwards compatibility -->
  19629. <!-- backwards compatibility -->
  19630. <!-- backwards compatibility -->
  19631. <!-- backwards compatibility -->
  19632. <!-- backwards compatibility -->
  19633. <!-- backwards compatibility -->
  19634. <!-- backwards compatibility -->
  19635. <!-- backwards compatibility -->
  19636. <!-- backwards compatibility -->
  19637. <!-- backwards compatibility -->
  19638. <!-- backwards compatibility -->
  19639. <!-- backwards compatibility -->
  19640. <!-- backwards compatibility -->
  19641. <!-- backwards compatibility -->
  19642. <!-- backwards compatibility -->
  19643. <!-- backwards compatibility -->
  19644. <!-- backwards compatibility -->
  19645. </div>
  19646. <div class="dark-box">
  19647. <div class="lang-selector">
  19648. <a href="#" data-language-name="shell">Shell</a>
  19649. <a href="#" data-language-name="http">HTTP</a>
  19650. <a href="#" data-language-name="javascript">JavaScript</a>
  19651. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  19652. <a href="#" data-language-name="ruby">Ruby</a>
  19653. <a href="#" data-language-name="python">Python</a>
  19654. <a href="#" data-language-name="java">Java</a>
  19655. <a href="#" data-language-name="go">Go</a>
  19656. <a href="#" data-language-name="php">PHP</a>
  19657. </div>
  19658. </div>
  19659. </div>
  19660. </body>
  19661. </html>