wekan.html 996 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API v6.98</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. <!-- Renderer: Shins v2.6.0 -->
  1319. <!-- Generator: Widdershins v4.0.1 -->
  1320. <!-- backwards compatibility -->
  1321. <!-- backwards compatibility -->
  1322. <!-- backwards compatibility -->
  1323. <!-- backwards compatibility -->
  1324. <!-- backwards compatibility -->
  1325. <!-- backwards compatibility -->
  1326. <!-- backwards compatibility -->
  1327. <!-- backwards compatibility -->
  1328. <!-- backwards compatibility -->
  1329. <!-- backwards compatibility -->
  1330. <!-- backwards compatibility -->
  1331. <!-- backwards compatibility -->
  1332. <!-- backwards compatibility -->
  1333. <!-- backwards compatibility -->
  1334. <!-- backwards compatibility -->
  1335. <!-- backwards compatibility -->
  1336. <!-- backwards compatibility -->
  1337. <!-- backwards compatibility -->
  1338. <!-- backwards compatibility -->
  1339. <!-- backwards compatibility -->
  1340. <!-- backwards compatibility -->
  1341. <!-- backwards compatibility -->
  1342. <!-- backwards compatibility -->
  1343. <!-- backwards compatibility -->
  1344. <!-- backwards compatibility -->
  1345. <!-- backwards compatibility -->
  1346. <!-- backwards compatibility -->
  1347. <!-- backwards compatibility -->
  1348. <!-- backwards compatibility -->
  1349. </head>
  1350. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;,&quot;php&quot;]">
  1351. <a href="#" id="nav-button">
  1352. <span>
  1353. NAV
  1354. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1355. </span>
  1356. </a>
  1357. <div class="toc-wrapper">
  1358. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1359. <div class="lang-selector">
  1360. <a href="#" data-language-name="shell">Shell</a>
  1361. <a href="#" data-language-name="http">HTTP</a>
  1362. <a href="#" data-language-name="javascript">JavaScript</a>
  1363. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1364. <a href="#" data-language-name="ruby">Ruby</a>
  1365. <a href="#" data-language-name="python">Python</a>
  1366. <a href="#" data-language-name="java">Java</a>
  1367. <a href="#" data-language-name="go">Go</a>
  1368. <a href="#" data-language-name="php">PHP</a>
  1369. </div>
  1370. <div class="search">
  1371. <input type="text" class="search" id="input-search" placeholder="Search">
  1372. </div>
  1373. <ul class="search-results"></ul>
  1374. <div id="toc" class="toc-list-h1">
  1375. <ul class="toc-list-h1">
  1376. <li>
  1377. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v6.98">Wekan REST API v6.98</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="#new_checklist_item" class="toc-h2 toc-link" data-title="">new_checklist_item</a>
  1453. </li>
  1454. <li>
  1455. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1456. </li>
  1457. <li>
  1458. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1459. </li>
  1460. <li>
  1461. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1462. </li>
  1463. </ul>
  1464. </li>
  1465. <li>
  1466. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1467. <ul class="toc-list-h2">
  1468. <li>
  1469. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1470. </li>
  1471. <li>
  1472. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1473. </li>
  1474. <li>
  1475. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1476. </li>
  1477. <li>
  1478. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1479. </li>
  1480. </ul>
  1481. </li>
  1482. <li>
  1483. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1484. <ul class="toc-list-h2">
  1485. <li>
  1486. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1487. </li>
  1488. <li>
  1489. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="">get_board_cards_count</a>
  1490. </li>
  1491. <li>
  1492. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1493. </li>
  1494. <li>
  1495. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1499. </li>
  1500. <li>
  1501. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1502. </li>
  1503. <li>
  1504. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1505. </li>
  1506. <li>
  1507. <a href="#edit_card_custom_field" class="toc-h2 toc-link" data-title="">edit_card_custom_field</a>
  1508. </li>
  1509. <li>
  1510. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="">get_list_cards_count</a>
  1511. </li>
  1512. <li>
  1513. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1514. </li>
  1515. </ul>
  1516. </li>
  1517. <li>
  1518. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1519. <ul class="toc-list-h2">
  1520. <li>
  1521. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1522. </li>
  1523. <li>
  1524. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1525. </li>
  1526. <li>
  1527. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1528. </li>
  1529. <li>
  1530. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1531. </li>
  1532. <li>
  1533. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1534. </li>
  1535. <li>
  1536. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1537. </li>
  1538. <li>
  1539. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1540. </li>
  1541. <li>
  1542. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1543. </li>
  1544. </ul>
  1545. </li>
  1546. <li>
  1547. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1548. <ul class="toc-list-h2">
  1549. <li>
  1550. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1551. </li>
  1552. <li>
  1553. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1554. </li>
  1555. <li>
  1556. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1557. </li>
  1558. <li>
  1559. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1560. </li>
  1561. <li>
  1562. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1563. </li>
  1564. <li>
  1565. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1566. </li>
  1567. <li>
  1568. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1569. </li>
  1570. </ul>
  1571. </li>
  1572. <li>
  1573. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1574. <ul class="toc-list-h2">
  1575. <li>
  1576. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1577. </li>
  1578. <li>
  1579. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1580. </li>
  1581. <li>
  1582. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1583. </li>
  1584. <li>
  1585. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1586. </li>
  1587. </ul>
  1588. </li>
  1589. <li>
  1590. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1591. <ul class="toc-list-h2">
  1592. <li>
  1593. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1594. </li>
  1595. <li>
  1596. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1597. </li>
  1598. <li>
  1599. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1600. </li>
  1601. <li>
  1602. <a href="#delete_user_token" class="toc-h2 toc-link" data-title="">delete_user_token</a>
  1603. </li>
  1604. <li>
  1605. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1606. </li>
  1607. <li>
  1608. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1609. </li>
  1610. <li>
  1611. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1612. </li>
  1613. <li>
  1614. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1615. </li>
  1616. <li>
  1617. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1618. </li>
  1619. <li>
  1620. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1621. </li>
  1622. </ul>
  1623. </li>
  1624. <li>
  1625. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1626. <ul class="toc-list-h2">
  1627. <li>
  1628. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1629. </li>
  1630. <li>
  1631. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1632. </li>
  1633. <li>
  1634. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1635. </li>
  1636. <li>
  1637. <a href="#edit_swimlane" class="toc-h2 toc-link" data-title="">edit_swimlane</a>
  1638. </li>
  1639. <li>
  1640. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1641. </li>
  1642. </ul>
  1643. </li>
  1644. <li>
  1645. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1646. <ul class="toc-list-h2">
  1647. <li>
  1648. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1703. </li>
  1704. <li>
  1705. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1706. </li>
  1707. <li>
  1708. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1709. </li>
  1710. <li>
  1711. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1712. </li>
  1713. <li>
  1714. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1715. </li>
  1716. <li>
  1717. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1718. </li>
  1719. <li>
  1720. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1721. </li>
  1722. <li>
  1723. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1724. </li>
  1725. <li>
  1726. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1727. </li>
  1728. <li>
  1729. <a href="#tocs_usersprofilecopychecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileCopychecklistdialog</a>
  1730. </li>
  1731. <li>
  1732. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1733. </li>
  1734. </ul>
  1735. </li>
  1736. </ul>
  1737. </div>
  1738. <ul class="toc-footer">
  1739. </ul>
  1740. </div>
  1741. <div class="page-wrapper">
  1742. <div class="dark-box"></div>
  1743. <div class="content">
  1744. <h1 id="wekan-rest-api">Wekan REST API v6.98</h1>
  1745. <blockquote>
  1746. <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>
  1747. </blockquote>
  1748. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1749. <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>
  1750. <blockquote>
  1751. <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>
  1752. </blockquote>
  1753. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1754. <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>
  1755. <ul>
  1756. <li>Only call via HTTPS</li>
  1757. <li>Implement a timed authorization token expiration strategy</li>
  1758. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1759. </ul>
  1760. <h1 id="authentication">Authentication</h1>
  1761. <ul>
  1762. <li>API Key (UserSecurity)
  1763. <ul>
  1764. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1765. </ul>
  1766. </li>
  1767. </ul>
  1768. <h1 id="wekan-rest-api-login">Login</h1>
  1769. <h2 id="login">login</h2>
  1770. <p><a id="opIdlogin"></a></p>
  1771. <blockquote>
  1772. <p>Code samples</p>
  1773. </blockquote>
  1774. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1775. curl -X POST /users/login \
  1776. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1777. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1778. </code></pre>
  1779. <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>
  1780. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1781. <span class="hljs-keyword">Accept</span>: */*
  1782. </span></code></pre>
  1783. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1784. &quot;username&quot;: &quot;string&quot;,
  1785. &quot;password&quot;: &quot;pa$$word&quot;
  1786. }&#x27;</span>;
  1787. <span class="hljs-keyword">const</span> headers = {
  1788. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1789. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1790. };
  1791. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1792. {
  1793. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1794. <span class="hljs-attr">body</span>: inputBody,
  1795. <span class="hljs-attr">headers</span>: headers
  1796. })
  1797. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1798. <span class="hljs-keyword">return</span> res.json();
  1799. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1800. <span class="hljs-built_in">console</span>.log(body);
  1801. });
  1802. </code></pre>
  1803. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  1804. <span class="hljs-keyword">const</span> inputBody = {
  1805. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1806. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1807. };
  1808. <span class="hljs-keyword">const</span> headers = {
  1809. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1810. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1811. };
  1812. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1813. {
  1814. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1815. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1816. <span class="hljs-attr">headers</span>: headers
  1817. })
  1818. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1819. <span class="hljs-keyword">return</span> res.json();
  1820. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1821. <span class="hljs-built_in">console</span>.log(body);
  1822. });
  1823. </code></pre>
  1824. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1825. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1826. headers = {
  1827. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1828. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1829. }
  1830. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1831. <span class="hljs-symbol">params:</span> {
  1832. }, <span class="hljs-symbol">headers:</span> headers
  1833. p JSON.parse(result)
  1834. </code></pre>
  1835. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1836. headers = {
  1837. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1838. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1839. }
  1840. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1841. <span class="hljs-built_in">print</span>(r.json())
  1842. </code></pre>
  1843. <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>);
  1844. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1845. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1846. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1847. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1848. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1849. String inputLine;
  1850. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1851. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1852. response.append(inputLine);
  1853. }
  1854. in.close();
  1855. System.out.println(response.toString());
  1856. </code></pre>
  1857. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1858. <span class="hljs-keyword">import</span> (
  1859. <span class="hljs-string">&quot;bytes&quot;</span>
  1860. <span class="hljs-string">&quot;net/http&quot;</span>
  1861. )
  1862. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1863. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1864. <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>},
  1865. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1866. }
  1867. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1868. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1869. req.Header = headers
  1870. client := &amp;http.Client{}
  1871. resp, err := client.Do(req)
  1872. <span class="hljs-comment">// ...</span>
  1873. }
  1874. </code></pre>
  1875. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1876. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1877. );
  1878. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1879. <span class="hljs-comment">// Define array of request body.</span>
  1880. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1881. <span class="hljs-keyword">try</span> {
  1882. <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>(
  1883. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1884. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1885. )
  1886. );
  1887. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1888. }
  1889. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1890. <span class="hljs-comment">// handle exception or api errors.</span>
  1891. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1892. }
  1893. <span class="hljs-comment">// ...</span>
  1894. </code></pre>
  1895. <p><code>POST /users/login</code></p>
  1896. <p><em>Login with REST API</em></p>
  1897. <blockquote>
  1898. <p>Body parameter</p>
  1899. </blockquote>
  1900. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1901. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1902. </code></pre>
  1903. <h3 id="login-parameters">Parameters</h3>
  1904. <table>
  1905. <thead>
  1906. <tr>
  1907. <th>Name</th>
  1908. <th>In</th>
  1909. <th>Type</th>
  1910. <th>Required</th>
  1911. <th>Description</th>
  1912. </tr>
  1913. </thead>
  1914. <tbody>
  1915. <tr>
  1916. <td>body</td>
  1917. <td>body</td>
  1918. <td>object</td>
  1919. <td>true</td>
  1920. <td>none</td>
  1921. </tr>
  1922. <tr>
  1923. <td>» username</td>
  1924. <td>body</td>
  1925. <td>string</td>
  1926. <td>true</td>
  1927. <td>Your username</td>
  1928. </tr>
  1929. <tr>
  1930. <td>» password</td>
  1931. <td>body</td>
  1932. <td>string(password)</td>
  1933. <td>true</td>
  1934. <td>Your password</td>
  1935. </tr>
  1936. </tbody>
  1937. </table>
  1938. <blockquote>
  1939. <p>Example responses</p>
  1940. </blockquote>
  1941. <blockquote>
  1942. <p>200 Response</p>
  1943. </blockquote>
  1944. <h3 id="login-responses">Responses</h3>
  1945. <table>
  1946. <thead>
  1947. <tr>
  1948. <th>Status</th>
  1949. <th>Meaning</th>
  1950. <th>Description</th>
  1951. <th>Schema</th>
  1952. </tr>
  1953. </thead>
  1954. <tbody>
  1955. <tr>
  1956. <td>200</td>
  1957. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1958. <td>Successful authentication</td>
  1959. <td>Inline</td>
  1960. </tr>
  1961. <tr>
  1962. <td>400</td>
  1963. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1964. <td>Error in authentication</td>
  1965. <td>Inline</td>
  1966. </tr>
  1967. <tr>
  1968. <td>default</td>
  1969. <td>Default</td>
  1970. <td>Error in authentication</td>
  1971. <td>None</td>
  1972. </tr>
  1973. </tbody>
  1974. </table>
  1975. <h3 id="login-responseschema">Response Schema</h3>
  1976. <p>Status Code <strong>200</strong></p>
  1977. <table>
  1978. <thead>
  1979. <tr>
  1980. <th>Name</th>
  1981. <th>Type</th>
  1982. <th>Required</th>
  1983. <th>Restrictions</th>
  1984. <th>Description</th>
  1985. </tr>
  1986. </thead>
  1987. <tbody>
  1988. <tr>
  1989. <td>» id</td>
  1990. <td>string</td>
  1991. <td>false</td>
  1992. <td>none</td>
  1993. <td>none</td>
  1994. </tr>
  1995. <tr>
  1996. <td>» token</td>
  1997. <td>string</td>
  1998. <td>false</td>
  1999. <td>none</td>
  2000. <td>none</td>
  2001. </tr>
  2002. <tr>
  2003. <td>» tokenExpires</td>
  2004. <td>string</td>
  2005. <td>false</td>
  2006. <td>none</td>
  2007. <td>none</td>
  2008. </tr>
  2009. </tbody>
  2010. </table>
  2011. <p>Status Code <strong>400</strong></p>
  2012. <table>
  2013. <thead>
  2014. <tr>
  2015. <th>Name</th>
  2016. <th>Type</th>
  2017. <th>Required</th>
  2018. <th>Restrictions</th>
  2019. <th>Description</th>
  2020. </tr>
  2021. </thead>
  2022. <tbody>
  2023. <tr>
  2024. <td>» error</td>
  2025. <td>number</td>
  2026. <td>false</td>
  2027. <td>none</td>
  2028. <td>none</td>
  2029. </tr>
  2030. <tr>
  2031. <td>» reason</td>
  2032. <td>string</td>
  2033. <td>false</td>
  2034. <td>none</td>
  2035. <td>none</td>
  2036. </tr>
  2037. </tbody>
  2038. </table>
  2039. <aside class="success">
  2040. This operation does not require authentication
  2041. </aside>
  2042. <h2 id="register">register</h2>
  2043. <p><a id="opIdregister"></a></p>
  2044. <blockquote>
  2045. <p>Code samples</p>
  2046. </blockquote>
  2047. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2048. curl -X POST /users/register \
  2049. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2050. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2051. </code></pre>
  2052. <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>
  2053. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2054. <span class="hljs-keyword">Accept</span>: */*
  2055. </span></code></pre>
  2056. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2057. &quot;username&quot;: &quot;string&quot;,
  2058. &quot;password&quot;: &quot;pa$$word&quot;,
  2059. &quot;email&quot;: &quot;string&quot;
  2060. }&#x27;</span>;
  2061. <span class="hljs-keyword">const</span> headers = {
  2062. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2063. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2064. };
  2065. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2066. {
  2067. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2068. <span class="hljs-attr">body</span>: inputBody,
  2069. <span class="hljs-attr">headers</span>: headers
  2070. })
  2071. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2072. <span class="hljs-keyword">return</span> res.json();
  2073. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2074. <span class="hljs-built_in">console</span>.log(body);
  2075. });
  2076. </code></pre>
  2077. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2078. <span class="hljs-keyword">const</span> inputBody = {
  2079. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2080. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2081. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2082. };
  2083. <span class="hljs-keyword">const</span> headers = {
  2084. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2085. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2086. };
  2087. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2088. {
  2089. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2090. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2091. <span class="hljs-attr">headers</span>: headers
  2092. })
  2093. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2094. <span class="hljs-keyword">return</span> res.json();
  2095. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2096. <span class="hljs-built_in">console</span>.log(body);
  2097. });
  2098. </code></pre>
  2099. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2100. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2101. headers = {
  2102. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2103. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2104. }
  2105. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2106. <span class="hljs-symbol">params:</span> {
  2107. }, <span class="hljs-symbol">headers:</span> headers
  2108. p JSON.parse(result)
  2109. </code></pre>
  2110. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2111. headers = {
  2112. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2113. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2114. }
  2115. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2116. <span class="hljs-built_in">print</span>(r.json())
  2117. </code></pre>
  2118. <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>);
  2119. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2120. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2121. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2122. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2123. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2124. String inputLine;
  2125. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2126. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2127. response.append(inputLine);
  2128. }
  2129. in.close();
  2130. System.out.println(response.toString());
  2131. </code></pre>
  2132. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2133. <span class="hljs-keyword">import</span> (
  2134. <span class="hljs-string">&quot;bytes&quot;</span>
  2135. <span class="hljs-string">&quot;net/http&quot;</span>
  2136. )
  2137. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2138. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2139. <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>},
  2140. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2141. }
  2142. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2143. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2144. req.Header = headers
  2145. client := &amp;http.Client{}
  2146. resp, err := client.Do(req)
  2147. <span class="hljs-comment">// ...</span>
  2148. }
  2149. </code></pre>
  2150. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2151. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2152. );
  2153. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2154. <span class="hljs-comment">// Define array of request body.</span>
  2155. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2156. <span class="hljs-keyword">try</span> {
  2157. <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>(
  2158. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2159. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2160. )
  2161. );
  2162. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2163. }
  2164. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2165. <span class="hljs-comment">// handle exception or api errors.</span>
  2166. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2167. }
  2168. <span class="hljs-comment">// ...</span>
  2169. </code></pre>
  2170. <p><code>POST /users/register</code></p>
  2171. <p><em>Register with REST API</em></p>
  2172. <p>Notes:</p>
  2173. <ul>
  2174. <li>You will need to provide the token for any of the authenticated methods.</li>
  2175. </ul>
  2176. <blockquote>
  2177. <p>Body parameter</p>
  2178. </blockquote>
  2179. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2180. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2181. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2182. </code></pre>
  2183. <h3 id="register-parameters">Parameters</h3>
  2184. <table>
  2185. <thead>
  2186. <tr>
  2187. <th>Name</th>
  2188. <th>In</th>
  2189. <th>Type</th>
  2190. <th>Required</th>
  2191. <th>Description</th>
  2192. </tr>
  2193. </thead>
  2194. <tbody>
  2195. <tr>
  2196. <td>body</td>
  2197. <td>body</td>
  2198. <td>object</td>
  2199. <td>true</td>
  2200. <td>none</td>
  2201. </tr>
  2202. <tr>
  2203. <td>» username</td>
  2204. <td>body</td>
  2205. <td>string</td>
  2206. <td>true</td>
  2207. <td>Your username</td>
  2208. </tr>
  2209. <tr>
  2210. <td>» password</td>
  2211. <td>body</td>
  2212. <td>string(password)</td>
  2213. <td>true</td>
  2214. <td>Your password</td>
  2215. </tr>
  2216. <tr>
  2217. <td>» email</td>
  2218. <td>body</td>
  2219. <td>string</td>
  2220. <td>true</td>
  2221. <td>Your email</td>
  2222. </tr>
  2223. </tbody>
  2224. </table>
  2225. <blockquote>
  2226. <p>Example responses</p>
  2227. </blockquote>
  2228. <blockquote>
  2229. <p>200 Response</p>
  2230. </blockquote>
  2231. <h3 id="register-responses">Responses</h3>
  2232. <table>
  2233. <thead>
  2234. <tr>
  2235. <th>Status</th>
  2236. <th>Meaning</th>
  2237. <th>Description</th>
  2238. <th>Schema</th>
  2239. </tr>
  2240. </thead>
  2241. <tbody>
  2242. <tr>
  2243. <td>200</td>
  2244. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2245. <td>Successful registration</td>
  2246. <td>Inline</td>
  2247. </tr>
  2248. <tr>
  2249. <td>400</td>
  2250. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2251. <td>Error in registration</td>
  2252. <td>Inline</td>
  2253. </tr>
  2254. <tr>
  2255. <td>default</td>
  2256. <td>Default</td>
  2257. <td>Error in registration</td>
  2258. <td>None</td>
  2259. </tr>
  2260. </tbody>
  2261. </table>
  2262. <h3 id="register-responseschema">Response Schema</h3>
  2263. <p>Status Code <strong>200</strong></p>
  2264. <table>
  2265. <thead>
  2266. <tr>
  2267. <th>Name</th>
  2268. <th>Type</th>
  2269. <th>Required</th>
  2270. <th>Restrictions</th>
  2271. <th>Description</th>
  2272. </tr>
  2273. </thead>
  2274. <tbody>
  2275. <tr>
  2276. <td>» id</td>
  2277. <td>string</td>
  2278. <td>false</td>
  2279. <td>none</td>
  2280. <td>none</td>
  2281. </tr>
  2282. <tr>
  2283. <td>» token</td>
  2284. <td>string</td>
  2285. <td>false</td>
  2286. <td>none</td>
  2287. <td>none</td>
  2288. </tr>
  2289. <tr>
  2290. <td>» tokenExpires</td>
  2291. <td>string</td>
  2292. <td>false</td>
  2293. <td>none</td>
  2294. <td>none</td>
  2295. </tr>
  2296. </tbody>
  2297. </table>
  2298. <p>Status Code <strong>400</strong></p>
  2299. <table>
  2300. <thead>
  2301. <tr>
  2302. <th>Name</th>
  2303. <th>Type</th>
  2304. <th>Required</th>
  2305. <th>Restrictions</th>
  2306. <th>Description</th>
  2307. </tr>
  2308. </thead>
  2309. <tbody>
  2310. <tr>
  2311. <td>» error</td>
  2312. <td>number</td>
  2313. <td>false</td>
  2314. <td>none</td>
  2315. <td>none</td>
  2316. </tr>
  2317. <tr>
  2318. <td>» reason</td>
  2319. <td>string</td>
  2320. <td>false</td>
  2321. <td>none</td>
  2322. <td>none</td>
  2323. </tr>
  2324. </tbody>
  2325. </table>
  2326. <aside class="success">
  2327. This operation does not require authentication
  2328. </aside>
  2329. <h1 id="wekan-rest-api-boards">Boards</h1>
  2330. <h2 id="get_public_boards">get_public_boards</h2>
  2331. <p><a id="opIdget_public_boards"></a></p>
  2332. <blockquote>
  2333. <p>Code samples</p>
  2334. </blockquote>
  2335. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2336. curl -X GET /api/boards \
  2337. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2338. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2339. </code></pre>
  2340. <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>
  2341. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2342. </span></code></pre>
  2343. <pre class="highlight tab tab-javascript"><code>
  2344. <span class="hljs-keyword">const</span> headers = {
  2345. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2346. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2347. };
  2348. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2349. {
  2350. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2351. <span class="hljs-attr">headers</span>: headers
  2352. })
  2353. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2354. <span class="hljs-keyword">return</span> res.json();
  2355. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2356. <span class="hljs-built_in">console</span>.log(body);
  2357. });
  2358. </code></pre>
  2359. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2360. <span class="hljs-keyword">const</span> headers = {
  2361. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2362. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2363. };
  2364. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2365. {
  2366. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2367. <span class="hljs-attr">headers</span>: headers
  2368. })
  2369. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2370. <span class="hljs-keyword">return</span> res.json();
  2371. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2372. <span class="hljs-built_in">console</span>.log(body);
  2373. });
  2374. </code></pre>
  2375. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2376. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2377. headers = {
  2378. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2379. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2380. }
  2381. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2382. <span class="hljs-symbol">params:</span> {
  2383. }, <span class="hljs-symbol">headers:</span> headers
  2384. p JSON.parse(result)
  2385. </code></pre>
  2386. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2387. headers = {
  2388. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2389. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2390. }
  2391. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2392. <span class="hljs-built_in">print</span>(r.json())
  2393. </code></pre>
  2394. <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>);
  2395. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2396. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2397. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2398. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2399. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2400. String inputLine;
  2401. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2402. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2403. response.append(inputLine);
  2404. }
  2405. in.close();
  2406. System.out.println(response.toString());
  2407. </code></pre>
  2408. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2409. <span class="hljs-keyword">import</span> (
  2410. <span class="hljs-string">&quot;bytes&quot;</span>
  2411. <span class="hljs-string">&quot;net/http&quot;</span>
  2412. )
  2413. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2414. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2415. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2416. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2417. }
  2418. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2419. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2420. req.Header = headers
  2421. client := &amp;http.Client{}
  2422. resp, err := client.Do(req)
  2423. <span class="hljs-comment">// ...</span>
  2424. }
  2425. </code></pre>
  2426. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2427. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2428. );
  2429. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2430. <span class="hljs-comment">// Define array of request body.</span>
  2431. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2432. <span class="hljs-keyword">try</span> {
  2433. <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>(
  2434. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2435. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2436. )
  2437. );
  2438. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2439. }
  2440. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2441. <span class="hljs-comment">// handle exception or api errors.</span>
  2442. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2443. }
  2444. <span class="hljs-comment">// ...</span>
  2445. </code></pre>
  2446. <p><code>GET /api/boards</code></p>
  2447. <p><em>Get all public boards</em></p>
  2448. <blockquote>
  2449. <p>Example responses</p>
  2450. </blockquote>
  2451. <blockquote>
  2452. <p>200 Response</p>
  2453. </blockquote>
  2454. <pre class="highlight tab tab-json"><code>[
  2455. {
  2456. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2457. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2458. }
  2459. ]
  2460. </code></pre>
  2461. <h3 id="get_public_boards-responses">Responses</h3>
  2462. <table>
  2463. <thead>
  2464. <tr>
  2465. <th>Status</th>
  2466. <th>Meaning</th>
  2467. <th>Description</th>
  2468. <th>Schema</th>
  2469. </tr>
  2470. </thead>
  2471. <tbody>
  2472. <tr>
  2473. <td>200</td>
  2474. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2475. <td>200 response</td>
  2476. <td>Inline</td>
  2477. </tr>
  2478. </tbody>
  2479. </table>
  2480. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2481. <p>Status Code <strong>200</strong></p>
  2482. <table>
  2483. <thead>
  2484. <tr>
  2485. <th>Name</th>
  2486. <th>Type</th>
  2487. <th>Required</th>
  2488. <th>Restrictions</th>
  2489. <th>Description</th>
  2490. </tr>
  2491. </thead>
  2492. <tbody>
  2493. <tr>
  2494. <td>» _id</td>
  2495. <td>string</td>
  2496. <td>false</td>
  2497. <td>none</td>
  2498. <td>none</td>
  2499. </tr>
  2500. <tr>
  2501. <td>» title</td>
  2502. <td>string</td>
  2503. <td>false</td>
  2504. <td>none</td>
  2505. <td>none</td>
  2506. </tr>
  2507. </tbody>
  2508. </table>
  2509. <aside class="warning">
  2510. To perform this operation, you must be authenticated by means of one of the following methods:
  2511. UserSecurity
  2512. </aside>
  2513. <h2 id="new_board">new_board</h2>
  2514. <p><a id="opIdnew_board"></a></p>
  2515. <blockquote>
  2516. <p>Code samples</p>
  2517. </blockquote>
  2518. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2519. curl -X POST /api/boards \
  2520. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2521. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2522. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2523. </code></pre>
  2524. <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>
  2525. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2526. Accept: application/json
  2527. </span></code></pre>
  2528. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2529. &quot;title&quot;: &quot;string&quot;,
  2530. &quot;owner&quot;: &quot;string&quot;,
  2531. &quot;isAdmin&quot;: true,
  2532. &quot;isActive&quot;: true,
  2533. &quot;isNoComments&quot;: true,
  2534. &quot;isCommentOnly&quot;: true,
  2535. &quot;isWorker&quot;: true,
  2536. &quot;permission&quot;: &quot;string&quot;,
  2537. &quot;color&quot;: &quot;string&quot;
  2538. }&#x27;</span>;
  2539. <span class="hljs-keyword">const</span> headers = {
  2540. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2541. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2542. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2543. };
  2544. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2545. {
  2546. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2547. <span class="hljs-attr">body</span>: inputBody,
  2548. <span class="hljs-attr">headers</span>: headers
  2549. })
  2550. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2551. <span class="hljs-keyword">return</span> res.json();
  2552. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2553. <span class="hljs-built_in">console</span>.log(body);
  2554. });
  2555. </code></pre>
  2556. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2557. <span class="hljs-keyword">const</span> inputBody = {
  2558. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2559. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2560. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2561. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2562. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2563. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2564. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2565. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2566. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2567. };
  2568. <span class="hljs-keyword">const</span> headers = {
  2569. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2570. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2571. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2572. };
  2573. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2574. {
  2575. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2576. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2577. <span class="hljs-attr">headers</span>: headers
  2578. })
  2579. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2580. <span class="hljs-keyword">return</span> res.json();
  2581. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2582. <span class="hljs-built_in">console</span>.log(body);
  2583. });
  2584. </code></pre>
  2585. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2586. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2587. headers = {
  2588. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2589. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2590. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2591. }
  2592. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2593. <span class="hljs-symbol">params:</span> {
  2594. }, <span class="hljs-symbol">headers:</span> headers
  2595. p JSON.parse(result)
  2596. </code></pre>
  2597. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2598. headers = {
  2599. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2600. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2601. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2602. }
  2603. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2604. <span class="hljs-built_in">print</span>(r.json())
  2605. </code></pre>
  2606. <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>);
  2607. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2608. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2609. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2610. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2611. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2612. String inputLine;
  2613. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2614. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2615. response.append(inputLine);
  2616. }
  2617. in.close();
  2618. System.out.println(response.toString());
  2619. </code></pre>
  2620. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2621. <span class="hljs-keyword">import</span> (
  2622. <span class="hljs-string">&quot;bytes&quot;</span>
  2623. <span class="hljs-string">&quot;net/http&quot;</span>
  2624. )
  2625. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2626. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2627. <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>},
  2628. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2629. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2630. }
  2631. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2632. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2633. req.Header = headers
  2634. client := &amp;http.Client{}
  2635. resp, err := client.Do(req)
  2636. <span class="hljs-comment">// ...</span>
  2637. }
  2638. </code></pre>
  2639. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2640. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2641. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2642. );
  2643. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2644. <span class="hljs-comment">// Define array of request body.</span>
  2645. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2646. <span class="hljs-keyword">try</span> {
  2647. <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>(
  2648. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2649. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2650. )
  2651. );
  2652. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2653. }
  2654. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2655. <span class="hljs-comment">// handle exception or api errors.</span>
  2656. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2657. }
  2658. <span class="hljs-comment">// ...</span>
  2659. </code></pre>
  2660. <p><code>POST /api/boards</code></p>
  2661. <p><em>Create a board</em></p>
  2662. <p>This allows to create a board.</p>
  2663. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2664. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2665. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2666. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2667. <blockquote>
  2668. <p>Body parameter</p>
  2669. </blockquote>
  2670. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2671. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2672. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2673. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2674. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2675. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2676. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2677. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2678. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2679. </code></pre>
  2680. <h3 id="new_board-parameters">Parameters</h3>
  2681. <table>
  2682. <thead>
  2683. <tr>
  2684. <th>Name</th>
  2685. <th>In</th>
  2686. <th>Type</th>
  2687. <th>Required</th>
  2688. <th>Description</th>
  2689. </tr>
  2690. </thead>
  2691. <tbody>
  2692. <tr>
  2693. <td>body</td>
  2694. <td>body</td>
  2695. <td>object</td>
  2696. <td>true</td>
  2697. <td>none</td>
  2698. </tr>
  2699. <tr>
  2700. <td>» title</td>
  2701. <td>body</td>
  2702. <td>string</td>
  2703. <td>true</td>
  2704. <td>the new title of the board</td>
  2705. </tr>
  2706. <tr>
  2707. <td>» owner</td>
  2708. <td>body</td>
  2709. <td>string</td>
  2710. <td>true</td>
  2711. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2712. </tr>
  2713. <tr>
  2714. <td>» isAdmin</td>
  2715. <td>body</td>
  2716. <td>boolean</td>
  2717. <td>false</td>
  2718. <td>is the owner an admin of the board (default true)</td>
  2719. </tr>
  2720. <tr>
  2721. <td>» isActive</td>
  2722. <td>body</td>
  2723. <td>boolean</td>
  2724. <td>false</td>
  2725. <td>is the board active (default true)</td>
  2726. </tr>
  2727. <tr>
  2728. <td>» isNoComments</td>
  2729. <td>body</td>
  2730. <td>boolean</td>
  2731. <td>false</td>
  2732. <td>disable comments (default false)</td>
  2733. </tr>
  2734. <tr>
  2735. <td>» isCommentOnly</td>
  2736. <td>body</td>
  2737. <td>boolean</td>
  2738. <td>false</td>
  2739. <td>only enable comments (default false)</td>
  2740. </tr>
  2741. <tr>
  2742. <td>» isWorker</td>
  2743. <td>body</td>
  2744. <td>boolean</td>
  2745. <td>false</td>
  2746. <td>only move cards, assign himself to card and comment (default false)</td>
  2747. </tr>
  2748. <tr>
  2749. <td>» permission</td>
  2750. <td>body</td>
  2751. <td>string</td>
  2752. <td>false</td>
  2753. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2754. </tr>
  2755. <tr>
  2756. <td>» color</td>
  2757. <td>body</td>
  2758. <td>string</td>
  2759. <td>false</td>
  2760. <td>the color of the board</td>
  2761. </tr>
  2762. </tbody>
  2763. </table>
  2764. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2765. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2766. (Not username or email)</p>
  2767. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2768. want public Wekan board</p>
  2769. <blockquote>
  2770. <p>Example responses</p>
  2771. </blockquote>
  2772. <blockquote>
  2773. <p>200 Response</p>
  2774. </blockquote>
  2775. <pre class="highlight tab tab-json"><code>{
  2776. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2777. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2778. }
  2779. </code></pre>
  2780. <h3 id="new_board-responses">Responses</h3>
  2781. <table>
  2782. <thead>
  2783. <tr>
  2784. <th>Status</th>
  2785. <th>Meaning</th>
  2786. <th>Description</th>
  2787. <th>Schema</th>
  2788. </tr>
  2789. </thead>
  2790. <tbody>
  2791. <tr>
  2792. <td>200</td>
  2793. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2794. <td>200 response</td>
  2795. <td>Inline</td>
  2796. </tr>
  2797. </tbody>
  2798. </table>
  2799. <h3 id="new_board-responseschema">Response Schema</h3>
  2800. <p>Status Code <strong>200</strong></p>
  2801. <table>
  2802. <thead>
  2803. <tr>
  2804. <th>Name</th>
  2805. <th>Type</th>
  2806. <th>Required</th>
  2807. <th>Restrictions</th>
  2808. <th>Description</th>
  2809. </tr>
  2810. </thead>
  2811. <tbody>
  2812. <tr>
  2813. <td>» _id</td>
  2814. <td>string</td>
  2815. <td>false</td>
  2816. <td>none</td>
  2817. <td>none</td>
  2818. </tr>
  2819. <tr>
  2820. <td>» defaultSwimlaneId</td>
  2821. <td>string</td>
  2822. <td>false</td>
  2823. <td>none</td>
  2824. <td>none</td>
  2825. </tr>
  2826. </tbody>
  2827. </table>
  2828. <aside class="warning">
  2829. To perform this operation, you must be authenticated by means of one of the following methods:
  2830. UserSecurity
  2831. </aside>
  2832. <h2 id="get_board">get_board</h2>
  2833. <p><a id="opIdget_board"></a></p>
  2834. <blockquote>
  2835. <p>Code samples</p>
  2836. </blockquote>
  2837. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2838. curl -X GET /api/boards/{board} \
  2839. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2840. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2841. </code></pre>
  2842. <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>
  2843. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2844. </span></code></pre>
  2845. <pre class="highlight tab tab-javascript"><code>
  2846. <span class="hljs-keyword">const</span> headers = {
  2847. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2848. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2849. };
  2850. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2851. {
  2852. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2853. <span class="hljs-attr">headers</span>: headers
  2854. })
  2855. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2856. <span class="hljs-keyword">return</span> res.json();
  2857. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2858. <span class="hljs-built_in">console</span>.log(body);
  2859. });
  2860. </code></pre>
  2861. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2862. <span class="hljs-keyword">const</span> headers = {
  2863. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2864. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2865. };
  2866. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2867. {
  2868. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2869. <span class="hljs-attr">headers</span>: headers
  2870. })
  2871. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2872. <span class="hljs-keyword">return</span> res.json();
  2873. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2874. <span class="hljs-built_in">console</span>.log(body);
  2875. });
  2876. </code></pre>
  2877. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2878. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2879. headers = {
  2880. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2881. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2882. }
  2883. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2884. <span class="hljs-symbol">params:</span> {
  2885. }, <span class="hljs-symbol">headers:</span> headers
  2886. p JSON.parse(result)
  2887. </code></pre>
  2888. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2889. headers = {
  2890. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2891. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2892. }
  2893. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2894. <span class="hljs-built_in">print</span>(r.json())
  2895. </code></pre>
  2896. <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>);
  2897. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2898. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2899. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2900. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2901. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2902. String inputLine;
  2903. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2904. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2905. response.append(inputLine);
  2906. }
  2907. in.close();
  2908. System.out.println(response.toString());
  2909. </code></pre>
  2910. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2911. <span class="hljs-keyword">import</span> (
  2912. <span class="hljs-string">&quot;bytes&quot;</span>
  2913. <span class="hljs-string">&quot;net/http&quot;</span>
  2914. )
  2915. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2916. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2917. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2918. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2919. }
  2920. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2921. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2922. req.Header = headers
  2923. client := &amp;http.Client{}
  2924. resp, err := client.Do(req)
  2925. <span class="hljs-comment">// ...</span>
  2926. }
  2927. </code></pre>
  2928. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2929. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2930. );
  2931. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2932. <span class="hljs-comment">// Define array of request body.</span>
  2933. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2934. <span class="hljs-keyword">try</span> {
  2935. <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>(
  2936. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2937. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2938. )
  2939. );
  2940. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2941. }
  2942. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2943. <span class="hljs-comment">// handle exception or api errors.</span>
  2944. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2945. }
  2946. <span class="hljs-comment">// ...</span>
  2947. </code></pre>
  2948. <p><code>GET /api/boards/{board}</code></p>
  2949. <p><em>Get the board with that particular ID</em></p>
  2950. <h3 id="get_board-parameters">Parameters</h3>
  2951. <table>
  2952. <thead>
  2953. <tr>
  2954. <th>Name</th>
  2955. <th>In</th>
  2956. <th>Type</th>
  2957. <th>Required</th>
  2958. <th>Description</th>
  2959. </tr>
  2960. </thead>
  2961. <tbody>
  2962. <tr>
  2963. <td>board</td>
  2964. <td>path</td>
  2965. <td>string</td>
  2966. <td>true</td>
  2967. <td>the ID of the board to retrieve the data</td>
  2968. </tr>
  2969. </tbody>
  2970. </table>
  2971. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2972. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2973. <blockquote>
  2974. <p>Example responses</p>
  2975. </blockquote>
  2976. <blockquote>
  2977. <p>200 Response</p>
  2978. </blockquote>
  2979. <pre class="highlight tab tab-json"><code>{
  2980. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2981. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2982. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2983. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2984. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2985. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2986. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2987. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2988. {
  2989. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2990. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2991. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2992. }
  2993. ],
  2994. <span class="hljs-attr">&quot;members&quot;</span>: [
  2995. {
  2996. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2997. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2998. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2999. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3000. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3001. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3002. }
  3003. ],
  3004. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  3005. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  3006. {
  3007. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3008. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3009. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  3010. }
  3011. ],
  3012. <span class="hljs-attr">&quot;teams&quot;</span>: [
  3013. {
  3014. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3015. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3016. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  3017. }
  3018. ],
  3019. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  3020. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3021. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  3023. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3024. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3025. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3026. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3027. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3028. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3029. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3030. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3031. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3032. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3033. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3034. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3035. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3036. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3037. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3038. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3039. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3040. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3041. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3042. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3043. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3044. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3045. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3046. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  3047. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3048. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3049. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3050. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3051. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3052. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3053. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3054. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3055. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3056. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3057. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3058. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3059. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3060. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3061. }
  3062. </code></pre>
  3063. <h3 id="get_board-responses">Responses</h3>
  3064. <table>
  3065. <thead>
  3066. <tr>
  3067. <th>Status</th>
  3068. <th>Meaning</th>
  3069. <th>Description</th>
  3070. <th>Schema</th>
  3071. </tr>
  3072. </thead>
  3073. <tbody>
  3074. <tr>
  3075. <td>200</td>
  3076. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3077. <td>200 response</td>
  3078. <td><a href="#schemaboards">Boards</a></td>
  3079. </tr>
  3080. </tbody>
  3081. </table>
  3082. <aside class="warning">
  3083. To perform this operation, you must be authenticated by means of one of the following methods:
  3084. UserSecurity
  3085. </aside>
  3086. <h2 id="delete_board">delete_board</h2>
  3087. <p><a id="opIddelete_board"></a></p>
  3088. <blockquote>
  3089. <p>Code samples</p>
  3090. </blockquote>
  3091. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3092. curl -X DELETE /api/boards/{board} \
  3093. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3094. </code></pre>
  3095. <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>
  3096. </code></pre>
  3097. <pre class="highlight tab tab-javascript"><code>
  3098. <span class="hljs-keyword">const</span> headers = {
  3099. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3100. };
  3101. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3102. {
  3103. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3104. <span class="hljs-attr">headers</span>: headers
  3105. })
  3106. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3107. <span class="hljs-keyword">return</span> res.json();
  3108. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3109. <span class="hljs-built_in">console</span>.log(body);
  3110. });
  3111. </code></pre>
  3112. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3113. <span class="hljs-keyword">const</span> headers = {
  3114. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3115. };
  3116. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3117. {
  3118. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3119. <span class="hljs-attr">headers</span>: headers
  3120. })
  3121. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3122. <span class="hljs-keyword">return</span> res.json();
  3123. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3124. <span class="hljs-built_in">console</span>.log(body);
  3125. });
  3126. </code></pre>
  3127. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3128. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3129. headers = {
  3130. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3131. }
  3132. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3133. <span class="hljs-symbol">params:</span> {
  3134. }, <span class="hljs-symbol">headers:</span> headers
  3135. p JSON.parse(result)
  3136. </code></pre>
  3137. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3138. headers = {
  3139. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3140. }
  3141. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3142. <span class="hljs-built_in">print</span>(r.json())
  3143. </code></pre>
  3144. <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>);
  3145. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3146. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3147. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3148. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3149. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3150. String inputLine;
  3151. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3152. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3153. response.append(inputLine);
  3154. }
  3155. in.close();
  3156. System.out.println(response.toString());
  3157. </code></pre>
  3158. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3159. <span class="hljs-keyword">import</span> (
  3160. <span class="hljs-string">&quot;bytes&quot;</span>
  3161. <span class="hljs-string">&quot;net/http&quot;</span>
  3162. )
  3163. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3164. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3165. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3166. }
  3167. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3168. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3169. req.Header = headers
  3170. client := &amp;http.Client{}
  3171. resp, err := client.Do(req)
  3172. <span class="hljs-comment">// ...</span>
  3173. }
  3174. </code></pre>
  3175. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3176. );
  3177. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3178. <span class="hljs-comment">// Define array of request body.</span>
  3179. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3180. <span class="hljs-keyword">try</span> {
  3181. <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>(
  3182. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3183. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3184. )
  3185. );
  3186. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3187. }
  3188. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3189. <span class="hljs-comment">// handle exception or api errors.</span>
  3190. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3191. }
  3192. <span class="hljs-comment">// ...</span>
  3193. </code></pre>
  3194. <p><code>DELETE /api/boards/{board}</code></p>
  3195. <p><em>Delete a board</em></p>
  3196. <h3 id="delete_board-parameters">Parameters</h3>
  3197. <table>
  3198. <thead>
  3199. <tr>
  3200. <th>Name</th>
  3201. <th>In</th>
  3202. <th>Type</th>
  3203. <th>Required</th>
  3204. <th>Description</th>
  3205. </tr>
  3206. </thead>
  3207. <tbody>
  3208. <tr>
  3209. <td>board</td>
  3210. <td>path</td>
  3211. <td>string</td>
  3212. <td>true</td>
  3213. <td>the ID of the board</td>
  3214. </tr>
  3215. </tbody>
  3216. </table>
  3217. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3218. <p><strong>board</strong>: the ID of the board</p>
  3219. <h3 id="delete_board-responses">Responses</h3>
  3220. <table>
  3221. <thead>
  3222. <tr>
  3223. <th>Status</th>
  3224. <th>Meaning</th>
  3225. <th>Description</th>
  3226. <th>Schema</th>
  3227. </tr>
  3228. </thead>
  3229. <tbody>
  3230. <tr>
  3231. <td>200</td>
  3232. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3233. <td>200 response</td>
  3234. <td>None</td>
  3235. </tr>
  3236. </tbody>
  3237. </table>
  3238. <aside class="warning">
  3239. To perform this operation, you must be authenticated by means of one of the following methods:
  3240. UserSecurity
  3241. </aside>
  3242. <h2 id="get_board_attachments">get_board_attachments</h2>
  3243. <p><a id="opIdget_board_attachments"></a></p>
  3244. <blockquote>
  3245. <p>Code samples</p>
  3246. </blockquote>
  3247. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3248. curl -X GET /api/boards/{board}/attachments \
  3249. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3250. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3251. </code></pre>
  3252. <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>
  3253. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3254. </span></code></pre>
  3255. <pre class="highlight tab tab-javascript"><code>
  3256. <span class="hljs-keyword">const</span> headers = {
  3257. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3258. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3259. };
  3260. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3261. {
  3262. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3263. <span class="hljs-attr">headers</span>: headers
  3264. })
  3265. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3266. <span class="hljs-keyword">return</span> res.json();
  3267. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3268. <span class="hljs-built_in">console</span>.log(body);
  3269. });
  3270. </code></pre>
  3271. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3272. <span class="hljs-keyword">const</span> headers = {
  3273. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3274. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3275. };
  3276. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3277. {
  3278. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3279. <span class="hljs-attr">headers</span>: headers
  3280. })
  3281. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3282. <span class="hljs-keyword">return</span> res.json();
  3283. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3284. <span class="hljs-built_in">console</span>.log(body);
  3285. });
  3286. </code></pre>
  3287. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3288. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3289. headers = {
  3290. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3291. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3292. }
  3293. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3294. <span class="hljs-symbol">params:</span> {
  3295. }, <span class="hljs-symbol">headers:</span> headers
  3296. p JSON.parse(result)
  3297. </code></pre>
  3298. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3299. headers = {
  3300. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3301. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3302. }
  3303. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3304. <span class="hljs-built_in">print</span>(r.json())
  3305. </code></pre>
  3306. <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>);
  3307. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3308. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3309. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3310. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3311. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3312. String inputLine;
  3313. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3314. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3315. response.append(inputLine);
  3316. }
  3317. in.close();
  3318. System.out.println(response.toString());
  3319. </code></pre>
  3320. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3321. <span class="hljs-keyword">import</span> (
  3322. <span class="hljs-string">&quot;bytes&quot;</span>
  3323. <span class="hljs-string">&quot;net/http&quot;</span>
  3324. )
  3325. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3326. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3327. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3328. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3329. }
  3330. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3331. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3332. req.Header = headers
  3333. client := &amp;http.Client{}
  3334. resp, err := client.Do(req)
  3335. <span class="hljs-comment">// ...</span>
  3336. }
  3337. </code></pre>
  3338. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3339. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3340. );
  3341. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3342. <span class="hljs-comment">// Define array of request body.</span>
  3343. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3344. <span class="hljs-keyword">try</span> {
  3345. <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>(
  3346. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3347. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3348. )
  3349. );
  3350. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3351. }
  3352. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3353. <span class="hljs-comment">// handle exception or api errors.</span>
  3354. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3355. }
  3356. <span class="hljs-comment">// ...</span>
  3357. </code></pre>
  3358. <p><code>GET /api/boards/{board}/attachments</code></p>
  3359. <p><em>Get the list of attachments of a board</em></p>
  3360. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3361. <table>
  3362. <thead>
  3363. <tr>
  3364. <th>Name</th>
  3365. <th>In</th>
  3366. <th>Type</th>
  3367. <th>Required</th>
  3368. <th>Description</th>
  3369. </tr>
  3370. </thead>
  3371. <tbody>
  3372. <tr>
  3373. <td>board</td>
  3374. <td>path</td>
  3375. <td>string</td>
  3376. <td>true</td>
  3377. <td>the board ID</td>
  3378. </tr>
  3379. </tbody>
  3380. </table>
  3381. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3382. <p><strong>board</strong>: the board ID</p>
  3383. <blockquote>
  3384. <p>Example responses</p>
  3385. </blockquote>
  3386. <blockquote>
  3387. <p>200 Response</p>
  3388. </blockquote>
  3389. <pre class="highlight tab tab-json"><code>[
  3390. {
  3391. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3392. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3393. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3394. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3395. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3396. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3397. }
  3398. ]
  3399. </code></pre>
  3400. <h3 id="get_board_attachments-responses">Responses</h3>
  3401. <table>
  3402. <thead>
  3403. <tr>
  3404. <th>Status</th>
  3405. <th>Meaning</th>
  3406. <th>Description</th>
  3407. <th>Schema</th>
  3408. </tr>
  3409. </thead>
  3410. <tbody>
  3411. <tr>
  3412. <td>200</td>
  3413. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3414. <td>200 response</td>
  3415. <td>Inline</td>
  3416. </tr>
  3417. </tbody>
  3418. </table>
  3419. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3420. <p>Status Code <strong>200</strong></p>
  3421. <table>
  3422. <thead>
  3423. <tr>
  3424. <th>Name</th>
  3425. <th>Type</th>
  3426. <th>Required</th>
  3427. <th>Restrictions</th>
  3428. <th>Description</th>
  3429. </tr>
  3430. </thead>
  3431. <tbody>
  3432. <tr>
  3433. <td>» attachmentId</td>
  3434. <td>string</td>
  3435. <td>false</td>
  3436. <td>none</td>
  3437. <td>none</td>
  3438. </tr>
  3439. <tr>
  3440. <td>» attachmentName</td>
  3441. <td>string</td>
  3442. <td>false</td>
  3443. <td>none</td>
  3444. <td>none</td>
  3445. </tr>
  3446. <tr>
  3447. <td>» attachmentType</td>
  3448. <td>string</td>
  3449. <td>false</td>
  3450. <td>none</td>
  3451. <td>none</td>
  3452. </tr>
  3453. <tr>
  3454. <td>» cardId</td>
  3455. <td>string</td>
  3456. <td>false</td>
  3457. <td>none</td>
  3458. <td>none</td>
  3459. </tr>
  3460. <tr>
  3461. <td>» listId</td>
  3462. <td>string</td>
  3463. <td>false</td>
  3464. <td>none</td>
  3465. <td>none</td>
  3466. </tr>
  3467. <tr>
  3468. <td>» swimlaneId</td>
  3469. <td>string</td>
  3470. <td>false</td>
  3471. <td>none</td>
  3472. <td>none</td>
  3473. </tr>
  3474. </tbody>
  3475. </table>
  3476. <aside class="warning">
  3477. To perform this operation, you must be authenticated by means of one of the following methods:
  3478. UserSecurity
  3479. </aside>
  3480. <h2 id="exportjson">exportJson</h2>
  3481. <p><a id="opIdexportJson"></a></p>
  3482. <blockquote>
  3483. <p>Code samples</p>
  3484. </blockquote>
  3485. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3486. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3487. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3488. </code></pre>
  3489. <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>
  3490. </code></pre>
  3491. <pre class="highlight tab tab-javascript"><code>
  3492. <span class="hljs-keyword">const</span> headers = {
  3493. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3494. };
  3495. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3496. {
  3497. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3498. <span class="hljs-attr">headers</span>: headers
  3499. })
  3500. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3501. <span class="hljs-keyword">return</span> res.json();
  3502. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3503. <span class="hljs-built_in">console</span>.log(body);
  3504. });
  3505. </code></pre>
  3506. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3507. <span class="hljs-keyword">const</span> headers = {
  3508. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3509. };
  3510. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3511. {
  3512. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3513. <span class="hljs-attr">headers</span>: headers
  3514. })
  3515. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3516. <span class="hljs-keyword">return</span> res.json();
  3517. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3518. <span class="hljs-built_in">console</span>.log(body);
  3519. });
  3520. </code></pre>
  3521. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3522. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3523. headers = {
  3524. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3525. }
  3526. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3527. <span class="hljs-symbol">params:</span> {
  3528. }, <span class="hljs-symbol">headers:</span> headers
  3529. p JSON.parse(result)
  3530. </code></pre>
  3531. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3532. headers = {
  3533. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3534. }
  3535. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3536. <span class="hljs-built_in">print</span>(r.json())
  3537. </code></pre>
  3538. <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>);
  3539. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3540. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3541. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3542. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3543. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3544. String inputLine;
  3545. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3546. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3547. response.append(inputLine);
  3548. }
  3549. in.close();
  3550. System.out.println(response.toString());
  3551. </code></pre>
  3552. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3553. <span class="hljs-keyword">import</span> (
  3554. <span class="hljs-string">&quot;bytes&quot;</span>
  3555. <span class="hljs-string">&quot;net/http&quot;</span>
  3556. )
  3557. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3558. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3559. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3560. }
  3561. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3562. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3563. req.Header = headers
  3564. client := &amp;http.Client{}
  3565. resp, err := client.Do(req)
  3566. <span class="hljs-comment">// ...</span>
  3567. }
  3568. </code></pre>
  3569. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3570. );
  3571. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3572. <span class="hljs-comment">// Define array of request body.</span>
  3573. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3574. <span class="hljs-keyword">try</span> {
  3575. <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>(
  3576. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3577. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3578. )
  3579. );
  3580. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3581. }
  3582. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3583. <span class="hljs-comment">// handle exception or api errors.</span>
  3584. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3585. }
  3586. <span class="hljs-comment">// ...</span>
  3587. </code></pre>
  3588. <p><code>GET /api/boards/{board}/export</code></p>
  3589. <p><em>This route is used to export the board to a json file format.</em></p>
  3590. <p>If user is already logged-in, pass loginToken as param
  3591. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3592. <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>
  3593. for detailed explanations</p>
  3594. <h3 id="exportjson-parameters">Parameters</h3>
  3595. <table>
  3596. <thead>
  3597. <tr>
  3598. <th>Name</th>
  3599. <th>In</th>
  3600. <th>Type</th>
  3601. <th>Required</th>
  3602. <th>Description</th>
  3603. </tr>
  3604. </thead>
  3605. <tbody>
  3606. <tr>
  3607. <td>board</td>
  3608. <td>path</td>
  3609. <td>string</td>
  3610. <td>true</td>
  3611. <td>the ID of the board we are exporting</td>
  3612. </tr>
  3613. </tbody>
  3614. </table>
  3615. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3616. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3617. <h3 id="exportjson-responses">Responses</h3>
  3618. <table>
  3619. <thead>
  3620. <tr>
  3621. <th>Status</th>
  3622. <th>Meaning</th>
  3623. <th>Description</th>
  3624. <th>Schema</th>
  3625. </tr>
  3626. </thead>
  3627. <tbody>
  3628. <tr>
  3629. <td>200</td>
  3630. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3631. <td>200 response</td>
  3632. <td>None</td>
  3633. </tr>
  3634. </tbody>
  3635. </table>
  3636. <aside class="warning">
  3637. To perform this operation, you must be authenticated by means of one of the following methods:
  3638. UserSecurity
  3639. </aside>
  3640. <h2 id="add_board_label">add_board_label</h2>
  3641. <p><a id="opIdadd_board_label"></a></p>
  3642. <blockquote>
  3643. <p>Code samples</p>
  3644. </blockquote>
  3645. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3646. curl -X PUT /api/boards/{board}/labels \
  3647. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3648. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3649. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3650. </code></pre>
  3651. <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>
  3652. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3653. Accept: application/json
  3654. </span></code></pre>
  3655. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3656. &quot;label&quot;: &quot;string&quot;
  3657. }&#x27;</span>;
  3658. <span class="hljs-keyword">const</span> headers = {
  3659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3662. };
  3663. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3664. {
  3665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3666. <span class="hljs-attr">body</span>: inputBody,
  3667. <span class="hljs-attr">headers</span>: headers
  3668. })
  3669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3670. <span class="hljs-keyword">return</span> res.json();
  3671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3672. <span class="hljs-built_in">console</span>.log(body);
  3673. });
  3674. </code></pre>
  3675. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3676. <span class="hljs-keyword">const</span> inputBody = {
  3677. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3678. };
  3679. <span class="hljs-keyword">const</span> headers = {
  3680. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3681. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3682. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3683. };
  3684. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3685. {
  3686. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3687. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3688. <span class="hljs-attr">headers</span>: headers
  3689. })
  3690. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3691. <span class="hljs-keyword">return</span> res.json();
  3692. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3693. <span class="hljs-built_in">console</span>.log(body);
  3694. });
  3695. </code></pre>
  3696. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3697. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3698. headers = {
  3699. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3700. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3701. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3702. }
  3703. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3704. <span class="hljs-symbol">params:</span> {
  3705. }, <span class="hljs-symbol">headers:</span> headers
  3706. p JSON.parse(result)
  3707. </code></pre>
  3708. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3709. headers = {
  3710. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3711. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3712. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3713. }
  3714. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3715. <span class="hljs-built_in">print</span>(r.json())
  3716. </code></pre>
  3717. <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>);
  3718. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3719. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3720. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3721. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3722. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3723. String inputLine;
  3724. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3725. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3726. response.append(inputLine);
  3727. }
  3728. in.close();
  3729. System.out.println(response.toString());
  3730. </code></pre>
  3731. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3732. <span class="hljs-keyword">import</span> (
  3733. <span class="hljs-string">&quot;bytes&quot;</span>
  3734. <span class="hljs-string">&quot;net/http&quot;</span>
  3735. )
  3736. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3737. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3738. <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>},
  3739. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3740. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3741. }
  3742. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3743. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3744. req.Header = headers
  3745. client := &amp;http.Client{}
  3746. resp, err := client.Do(req)
  3747. <span class="hljs-comment">// ...</span>
  3748. }
  3749. </code></pre>
  3750. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3751. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3752. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3753. );
  3754. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3755. <span class="hljs-comment">// Define array of request body.</span>
  3756. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3757. <span class="hljs-keyword">try</span> {
  3758. <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>(
  3759. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3760. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3761. )
  3762. );
  3763. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3764. }
  3765. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3766. <span class="hljs-comment">// handle exception or api errors.</span>
  3767. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3768. }
  3769. <span class="hljs-comment">// ...</span>
  3770. </code></pre>
  3771. <p><code>PUT /api/boards/{board}/labels</code></p>
  3772. <p><em>Add a label to a board</em></p>
  3773. <p>If the board doesn't have the name/color label, this function
  3774. adds the label to the board.</p>
  3775. <blockquote>
  3776. <p>Body parameter</p>
  3777. </blockquote>
  3778. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3779. </code></pre>
  3780. <h3 id="add_board_label-parameters">Parameters</h3>
  3781. <table>
  3782. <thead>
  3783. <tr>
  3784. <th>Name</th>
  3785. <th>In</th>
  3786. <th>Type</th>
  3787. <th>Required</th>
  3788. <th>Description</th>
  3789. </tr>
  3790. </thead>
  3791. <tbody>
  3792. <tr>
  3793. <td>board</td>
  3794. <td>path</td>
  3795. <td>string</td>
  3796. <td>true</td>
  3797. <td>the board</td>
  3798. </tr>
  3799. <tr>
  3800. <td>body</td>
  3801. <td>body</td>
  3802. <td>object</td>
  3803. <td>true</td>
  3804. <td>none</td>
  3805. </tr>
  3806. <tr>
  3807. <td>» label</td>
  3808. <td>body</td>
  3809. <td>string</td>
  3810. <td>true</td>
  3811. <td>the label value</td>
  3812. </tr>
  3813. </tbody>
  3814. </table>
  3815. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3816. <p><strong>board</strong>: the board</p>
  3817. <blockquote>
  3818. <p>Example responses</p>
  3819. </blockquote>
  3820. <blockquote>
  3821. <p>200 Response</p>
  3822. </blockquote>
  3823. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3824. </code></pre>
  3825. <h3 id="add_board_label-responses">Responses</h3>
  3826. <table>
  3827. <thead>
  3828. <tr>
  3829. <th>Status</th>
  3830. <th>Meaning</th>
  3831. <th>Description</th>
  3832. <th>Schema</th>
  3833. </tr>
  3834. </thead>
  3835. <tbody>
  3836. <tr>
  3837. <td>200</td>
  3838. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3839. <td>200 response</td>
  3840. <td>string</td>
  3841. </tr>
  3842. </tbody>
  3843. </table>
  3844. <aside class="warning">
  3845. To perform this operation, you must be authenticated by means of one of the following methods:
  3846. UserSecurity
  3847. </aside>
  3848. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3849. <p><a id="opIdset_board_member_permission"></a></p>
  3850. <blockquote>
  3851. <p>Code samples</p>
  3852. </blockquote>
  3853. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3854. curl -X POST /api/boards/{board}/members/{member} \
  3855. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3856. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3857. </code></pre>
  3858. <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>
  3859. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3860. </span></code></pre>
  3861. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3862. &quot;isAdmin&quot;: true,
  3863. &quot;isNoComments&quot;: true,
  3864. &quot;isCommentOnly&quot;: true,
  3865. &quot;isWorker&quot;: true
  3866. }&#x27;</span>;
  3867. <span class="hljs-keyword">const</span> headers = {
  3868. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3869. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3870. };
  3871. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3872. {
  3873. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3874. <span class="hljs-attr">body</span>: inputBody,
  3875. <span class="hljs-attr">headers</span>: headers
  3876. })
  3877. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3878. <span class="hljs-keyword">return</span> res.json();
  3879. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3880. <span class="hljs-built_in">console</span>.log(body);
  3881. });
  3882. </code></pre>
  3883. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3884. <span class="hljs-keyword">const</span> inputBody = {
  3885. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3886. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3887. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3888. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3889. };
  3890. <span class="hljs-keyword">const</span> headers = {
  3891. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3892. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3893. };
  3894. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3895. {
  3896. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3897. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3898. <span class="hljs-attr">headers</span>: headers
  3899. })
  3900. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3901. <span class="hljs-keyword">return</span> res.json();
  3902. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3903. <span class="hljs-built_in">console</span>.log(body);
  3904. });
  3905. </code></pre>
  3906. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3907. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3908. headers = {
  3909. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3910. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3911. }
  3912. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3913. <span class="hljs-symbol">params:</span> {
  3914. }, <span class="hljs-symbol">headers:</span> headers
  3915. p JSON.parse(result)
  3916. </code></pre>
  3917. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3918. headers = {
  3919. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3920. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3921. }
  3922. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3923. <span class="hljs-built_in">print</span>(r.json())
  3924. </code></pre>
  3925. <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>);
  3926. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3927. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3928. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3929. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3930. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3931. String inputLine;
  3932. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3933. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3934. response.append(inputLine);
  3935. }
  3936. in.close();
  3937. System.out.println(response.toString());
  3938. </code></pre>
  3939. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3940. <span class="hljs-keyword">import</span> (
  3941. <span class="hljs-string">&quot;bytes&quot;</span>
  3942. <span class="hljs-string">&quot;net/http&quot;</span>
  3943. )
  3944. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3945. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3946. <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>},
  3947. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3948. }
  3949. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3950. 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)
  3951. req.Header = headers
  3952. client := &amp;http.Client{}
  3953. resp, err := client.Do(req)
  3954. <span class="hljs-comment">// ...</span>
  3955. }
  3956. </code></pre>
  3957. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3958. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3959. );
  3960. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3961. <span class="hljs-comment">// Define array of request body.</span>
  3962. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3963. <span class="hljs-keyword">try</span> {
  3964. <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>(
  3965. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3966. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3967. )
  3968. );
  3969. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3970. }
  3971. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3972. <span class="hljs-comment">// handle exception or api errors.</span>
  3973. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3974. }
  3975. <span class="hljs-comment">// ...</span>
  3976. </code></pre>
  3977. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3978. <p><em>Change the permission of a member of a board</em></p>
  3979. <blockquote>
  3980. <p>Body parameter</p>
  3981. </blockquote>
  3982. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3983. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3984. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3985. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3986. </code></pre>
  3987. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3988. <table>
  3989. <thead>
  3990. <tr>
  3991. <th>Name</th>
  3992. <th>In</th>
  3993. <th>Type</th>
  3994. <th>Required</th>
  3995. <th>Description</th>
  3996. </tr>
  3997. </thead>
  3998. <tbody>
  3999. <tr>
  4000. <td>board</td>
  4001. <td>path</td>
  4002. <td>string</td>
  4003. <td>true</td>
  4004. <td>the ID of the board that we are changing</td>
  4005. </tr>
  4006. <tr>
  4007. <td>member</td>
  4008. <td>path</td>
  4009. <td>string</td>
  4010. <td>true</td>
  4011. <td>the ID of the user to change permissions</td>
  4012. </tr>
  4013. <tr>
  4014. <td>body</td>
  4015. <td>body</td>
  4016. <td>object</td>
  4017. <td>true</td>
  4018. <td>none</td>
  4019. </tr>
  4020. <tr>
  4021. <td>» isAdmin</td>
  4022. <td>body</td>
  4023. <td>boolean</td>
  4024. <td>true</td>
  4025. <td>admin capability</td>
  4026. </tr>
  4027. <tr>
  4028. <td>» isNoComments</td>
  4029. <td>body</td>
  4030. <td>boolean</td>
  4031. <td>true</td>
  4032. <td>NoComments capability</td>
  4033. </tr>
  4034. <tr>
  4035. <td>» isCommentOnly</td>
  4036. <td>body</td>
  4037. <td>boolean</td>
  4038. <td>true</td>
  4039. <td>CommentsOnly capability</td>
  4040. </tr>
  4041. <tr>
  4042. <td>» isWorker</td>
  4043. <td>body</td>
  4044. <td>boolean</td>
  4045. <td>true</td>
  4046. <td>Worker capability</td>
  4047. </tr>
  4048. </tbody>
  4049. </table>
  4050. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4051. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4052. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4053. <h3 id="set_board_member_permission-responses">Responses</h3>
  4054. <table>
  4055. <thead>
  4056. <tr>
  4057. <th>Status</th>
  4058. <th>Meaning</th>
  4059. <th>Description</th>
  4060. <th>Schema</th>
  4061. </tr>
  4062. </thead>
  4063. <tbody>
  4064. <tr>
  4065. <td>200</td>
  4066. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4067. <td>200 response</td>
  4068. <td>None</td>
  4069. </tr>
  4070. </tbody>
  4071. </table>
  4072. <aside class="warning">
  4073. To perform this operation, you must be authenticated by means of one of the following methods:
  4074. UserSecurity
  4075. </aside>
  4076. <h2 id="get_boards_count">get_boards_count</h2>
  4077. <p><a id="opIdget_boards_count"></a></p>
  4078. <blockquote>
  4079. <p>Code samples</p>
  4080. </blockquote>
  4081. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4082. curl -X GET /api/boards_count \
  4083. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4084. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4085. </code></pre>
  4086. <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>
  4087. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4088. </span></code></pre>
  4089. <pre class="highlight tab tab-javascript"><code>
  4090. <span class="hljs-keyword">const</span> headers = {
  4091. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4092. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4093. };
  4094. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4095. {
  4096. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4097. <span class="hljs-attr">headers</span>: headers
  4098. })
  4099. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4100. <span class="hljs-keyword">return</span> res.json();
  4101. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4102. <span class="hljs-built_in">console</span>.log(body);
  4103. });
  4104. </code></pre>
  4105. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4106. <span class="hljs-keyword">const</span> headers = {
  4107. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4108. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4109. };
  4110. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4111. {
  4112. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4113. <span class="hljs-attr">headers</span>: headers
  4114. })
  4115. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4116. <span class="hljs-keyword">return</span> res.json();
  4117. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4118. <span class="hljs-built_in">console</span>.log(body);
  4119. });
  4120. </code></pre>
  4121. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4122. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4123. headers = {
  4124. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4125. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4126. }
  4127. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4128. <span class="hljs-symbol">params:</span> {
  4129. }, <span class="hljs-symbol">headers:</span> headers
  4130. p JSON.parse(result)
  4131. </code></pre>
  4132. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4133. headers = {
  4134. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4135. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4136. }
  4137. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4138. <span class="hljs-built_in">print</span>(r.json())
  4139. </code></pre>
  4140. <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>);
  4141. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4142. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4143. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4144. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4145. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4146. String inputLine;
  4147. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4148. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4149. response.append(inputLine);
  4150. }
  4151. in.close();
  4152. System.out.println(response.toString());
  4153. </code></pre>
  4154. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4155. <span class="hljs-keyword">import</span> (
  4156. <span class="hljs-string">&quot;bytes&quot;</span>
  4157. <span class="hljs-string">&quot;net/http&quot;</span>
  4158. )
  4159. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4160. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4161. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4162. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4163. }
  4164. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4165. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4166. req.Header = headers
  4167. client := &amp;http.Client{}
  4168. resp, err := client.Do(req)
  4169. <span class="hljs-comment">// ...</span>
  4170. }
  4171. </code></pre>
  4172. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4173. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4174. );
  4175. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4176. <span class="hljs-comment">// Define array of request body.</span>
  4177. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4178. <span class="hljs-keyword">try</span> {
  4179. <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>(
  4180. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4181. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4182. )
  4183. );
  4184. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4185. }
  4186. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4187. <span class="hljs-comment">// handle exception or api errors.</span>
  4188. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4189. }
  4190. <span class="hljs-comment">// ...</span>
  4191. </code></pre>
  4192. <p><code>GET /api/boards_count</code></p>
  4193. <p><em>Get public and private boards count</em></p>
  4194. <blockquote>
  4195. <p>Example responses</p>
  4196. </blockquote>
  4197. <blockquote>
  4198. <p>200 Response</p>
  4199. </blockquote>
  4200. <pre class="highlight tab tab-json"><code>{
  4201. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4202. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4203. }
  4204. </code></pre>
  4205. <h3 id="get_boards_count-responses">Responses</h3>
  4206. <table>
  4207. <thead>
  4208. <tr>
  4209. <th>Status</th>
  4210. <th>Meaning</th>
  4211. <th>Description</th>
  4212. <th>Schema</th>
  4213. </tr>
  4214. </thead>
  4215. <tbody>
  4216. <tr>
  4217. <td>200</td>
  4218. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4219. <td>200 response</td>
  4220. <td>Inline</td>
  4221. </tr>
  4222. </tbody>
  4223. </table>
  4224. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4225. <p>Status Code <strong>200</strong></p>
  4226. <table>
  4227. <thead>
  4228. <tr>
  4229. <th>Name</th>
  4230. <th>Type</th>
  4231. <th>Required</th>
  4232. <th>Restrictions</th>
  4233. <th>Description</th>
  4234. </tr>
  4235. </thead>
  4236. <tbody>
  4237. <tr>
  4238. <td>» private</td>
  4239. <td>integer</td>
  4240. <td>false</td>
  4241. <td>none</td>
  4242. <td>none</td>
  4243. </tr>
  4244. <tr>
  4245. <td>» public</td>
  4246. <td>integer</td>
  4247. <td>false</td>
  4248. <td>none</td>
  4249. <td>none</td>
  4250. </tr>
  4251. </tbody>
  4252. </table>
  4253. <aside class="warning">
  4254. To perform this operation, you must be authenticated by means of one of the following methods:
  4255. UserSecurity
  4256. </aside>
  4257. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4258. <p><a id="opIdget_boards_from_user"></a></p>
  4259. <blockquote>
  4260. <p>Code samples</p>
  4261. </blockquote>
  4262. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4263. curl -X GET /api/users/{user}/boards \
  4264. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4265. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4266. </code></pre>
  4267. <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>
  4268. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4269. </span></code></pre>
  4270. <pre class="highlight tab tab-javascript"><code>
  4271. <span class="hljs-keyword">const</span> headers = {
  4272. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4273. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4274. };
  4275. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4276. {
  4277. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4278. <span class="hljs-attr">headers</span>: headers
  4279. })
  4280. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4281. <span class="hljs-keyword">return</span> res.json();
  4282. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4283. <span class="hljs-built_in">console</span>.log(body);
  4284. });
  4285. </code></pre>
  4286. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4287. <span class="hljs-keyword">const</span> headers = {
  4288. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4289. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4290. };
  4291. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4292. {
  4293. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4294. <span class="hljs-attr">headers</span>: headers
  4295. })
  4296. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4297. <span class="hljs-keyword">return</span> res.json();
  4298. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4299. <span class="hljs-built_in">console</span>.log(body);
  4300. });
  4301. </code></pre>
  4302. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4303. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4304. headers = {
  4305. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4306. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4307. }
  4308. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4309. <span class="hljs-symbol">params:</span> {
  4310. }, <span class="hljs-symbol">headers:</span> headers
  4311. p JSON.parse(result)
  4312. </code></pre>
  4313. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4314. headers = {
  4315. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4316. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4317. }
  4318. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4319. <span class="hljs-built_in">print</span>(r.json())
  4320. </code></pre>
  4321. <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>);
  4322. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4323. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4324. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4325. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4326. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4327. String inputLine;
  4328. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4329. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4330. response.append(inputLine);
  4331. }
  4332. in.close();
  4333. System.out.println(response.toString());
  4334. </code></pre>
  4335. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4336. <span class="hljs-keyword">import</span> (
  4337. <span class="hljs-string">&quot;bytes&quot;</span>
  4338. <span class="hljs-string">&quot;net/http&quot;</span>
  4339. )
  4340. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4341. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4342. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4343. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4344. }
  4345. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4346. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4347. req.Header = headers
  4348. client := &amp;http.Client{}
  4349. resp, err := client.Do(req)
  4350. <span class="hljs-comment">// ...</span>
  4351. }
  4352. </code></pre>
  4353. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4354. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4355. );
  4356. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4357. <span class="hljs-comment">// Define array of request body.</span>
  4358. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4359. <span class="hljs-keyword">try</span> {
  4360. <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>(
  4361. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4362. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4363. )
  4364. );
  4365. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4366. }
  4367. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4368. <span class="hljs-comment">// handle exception or api errors.</span>
  4369. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4370. }
  4371. <span class="hljs-comment">// ...</span>
  4372. </code></pre>
  4373. <p><code>GET /api/users/{user}/boards</code></p>
  4374. <p><em>Get all boards attached to a user</em></p>
  4375. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4376. <table>
  4377. <thead>
  4378. <tr>
  4379. <th>Name</th>
  4380. <th>In</th>
  4381. <th>Type</th>
  4382. <th>Required</th>
  4383. <th>Description</th>
  4384. </tr>
  4385. </thead>
  4386. <tbody>
  4387. <tr>
  4388. <td>user</td>
  4389. <td>path</td>
  4390. <td>string</td>
  4391. <td>true</td>
  4392. <td>the ID of the user to retrieve the data</td>
  4393. </tr>
  4394. </tbody>
  4395. </table>
  4396. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4397. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4398. <blockquote>
  4399. <p>Example responses</p>
  4400. </blockquote>
  4401. <blockquote>
  4402. <p>200 Response</p>
  4403. </blockquote>
  4404. <pre class="highlight tab tab-json"><code>[
  4405. {
  4406. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4407. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4408. }
  4409. ]
  4410. </code></pre>
  4411. <h3 id="get_boards_from_user-responses">Responses</h3>
  4412. <table>
  4413. <thead>
  4414. <tr>
  4415. <th>Status</th>
  4416. <th>Meaning</th>
  4417. <th>Description</th>
  4418. <th>Schema</th>
  4419. </tr>
  4420. </thead>
  4421. <tbody>
  4422. <tr>
  4423. <td>200</td>
  4424. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4425. <td>200 response</td>
  4426. <td>Inline</td>
  4427. </tr>
  4428. </tbody>
  4429. </table>
  4430. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4431. <p>Status Code <strong>200</strong></p>
  4432. <table>
  4433. <thead>
  4434. <tr>
  4435. <th>Name</th>
  4436. <th>Type</th>
  4437. <th>Required</th>
  4438. <th>Restrictions</th>
  4439. <th>Description</th>
  4440. </tr>
  4441. </thead>
  4442. <tbody>
  4443. <tr>
  4444. <td>» _id</td>
  4445. <td>string</td>
  4446. <td>false</td>
  4447. <td>none</td>
  4448. <td>none</td>
  4449. </tr>
  4450. <tr>
  4451. <td>» title</td>
  4452. <td>string</td>
  4453. <td>false</td>
  4454. <td>none</td>
  4455. <td>none</td>
  4456. </tr>
  4457. </tbody>
  4458. </table>
  4459. <aside class="warning">
  4460. To perform this operation, you must be authenticated by means of one of the following methods:
  4461. UserSecurity
  4462. </aside>
  4463. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4464. <h2 id="get_all_checklists">get_all_checklists</h2>
  4465. <p><a id="opIdget_all_checklists"></a></p>
  4466. <blockquote>
  4467. <p>Code samples</p>
  4468. </blockquote>
  4469. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4470. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4471. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4472. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4473. </code></pre>
  4474. <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>
  4475. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4476. </span></code></pre>
  4477. <pre class="highlight tab tab-javascript"><code>
  4478. <span class="hljs-keyword">const</span> headers = {
  4479. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4480. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4481. };
  4482. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4483. {
  4484. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4485. <span class="hljs-attr">headers</span>: headers
  4486. })
  4487. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4488. <span class="hljs-keyword">return</span> res.json();
  4489. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4490. <span class="hljs-built_in">console</span>.log(body);
  4491. });
  4492. </code></pre>
  4493. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4494. <span class="hljs-keyword">const</span> headers = {
  4495. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4496. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4497. };
  4498. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4499. {
  4500. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4501. <span class="hljs-attr">headers</span>: headers
  4502. })
  4503. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4504. <span class="hljs-keyword">return</span> res.json();
  4505. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4506. <span class="hljs-built_in">console</span>.log(body);
  4507. });
  4508. </code></pre>
  4509. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4510. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4511. headers = {
  4512. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4513. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4514. }
  4515. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4516. <span class="hljs-symbol">params:</span> {
  4517. }, <span class="hljs-symbol">headers:</span> headers
  4518. p JSON.parse(result)
  4519. </code></pre>
  4520. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4521. headers = {
  4522. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4523. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4524. }
  4525. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4526. <span class="hljs-built_in">print</span>(r.json())
  4527. </code></pre>
  4528. <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>);
  4529. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4530. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4531. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4532. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4533. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4534. String inputLine;
  4535. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4536. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4537. response.append(inputLine);
  4538. }
  4539. in.close();
  4540. System.out.println(response.toString());
  4541. </code></pre>
  4542. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4543. <span class="hljs-keyword">import</span> (
  4544. <span class="hljs-string">&quot;bytes&quot;</span>
  4545. <span class="hljs-string">&quot;net/http&quot;</span>
  4546. )
  4547. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4548. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4549. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4550. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4551. }
  4552. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4553. 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)
  4554. req.Header = headers
  4555. client := &amp;http.Client{}
  4556. resp, err := client.Do(req)
  4557. <span class="hljs-comment">// ...</span>
  4558. }
  4559. </code></pre>
  4560. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4561. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4562. );
  4563. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4564. <span class="hljs-comment">// Define array of request body.</span>
  4565. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4566. <span class="hljs-keyword">try</span> {
  4567. <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>(
  4568. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4569. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4570. )
  4571. );
  4572. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4573. }
  4574. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4575. <span class="hljs-comment">// handle exception or api errors.</span>
  4576. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4577. }
  4578. <span class="hljs-comment">// ...</span>
  4579. </code></pre>
  4580. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4581. <p><em>Get the list of checklists attached to a card</em></p>
  4582. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4583. <table>
  4584. <thead>
  4585. <tr>
  4586. <th>Name</th>
  4587. <th>In</th>
  4588. <th>Type</th>
  4589. <th>Required</th>
  4590. <th>Description</th>
  4591. </tr>
  4592. </thead>
  4593. <tbody>
  4594. <tr>
  4595. <td>board</td>
  4596. <td>path</td>
  4597. <td>string</td>
  4598. <td>true</td>
  4599. <td>the board ID</td>
  4600. </tr>
  4601. <tr>
  4602. <td>card</td>
  4603. <td>path</td>
  4604. <td>string</td>
  4605. <td>true</td>
  4606. <td>the card ID</td>
  4607. </tr>
  4608. </tbody>
  4609. </table>
  4610. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4611. <p><strong>board</strong>: the board ID</p>
  4612. <p><strong>card</strong>: the card ID</p>
  4613. <blockquote>
  4614. <p>Example responses</p>
  4615. </blockquote>
  4616. <blockquote>
  4617. <p>200 Response</p>
  4618. </blockquote>
  4619. <pre class="highlight tab tab-json"><code>[
  4620. {
  4621. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4622. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4623. }
  4624. ]
  4625. </code></pre>
  4626. <h3 id="get_all_checklists-responses">Responses</h3>
  4627. <table>
  4628. <thead>
  4629. <tr>
  4630. <th>Status</th>
  4631. <th>Meaning</th>
  4632. <th>Description</th>
  4633. <th>Schema</th>
  4634. </tr>
  4635. </thead>
  4636. <tbody>
  4637. <tr>
  4638. <td>200</td>
  4639. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4640. <td>200 response</td>
  4641. <td>Inline</td>
  4642. </tr>
  4643. </tbody>
  4644. </table>
  4645. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4646. <p>Status Code <strong>200</strong></p>
  4647. <table>
  4648. <thead>
  4649. <tr>
  4650. <th>Name</th>
  4651. <th>Type</th>
  4652. <th>Required</th>
  4653. <th>Restrictions</th>
  4654. <th>Description</th>
  4655. </tr>
  4656. </thead>
  4657. <tbody>
  4658. <tr>
  4659. <td>» _id</td>
  4660. <td>string</td>
  4661. <td>false</td>
  4662. <td>none</td>
  4663. <td>none</td>
  4664. </tr>
  4665. <tr>
  4666. <td>» title</td>
  4667. <td>string</td>
  4668. <td>false</td>
  4669. <td>none</td>
  4670. <td>none</td>
  4671. </tr>
  4672. </tbody>
  4673. </table>
  4674. <aside class="warning">
  4675. To perform this operation, you must be authenticated by means of one of the following methods:
  4676. UserSecurity
  4677. </aside>
  4678. <h2 id="new_checklist">new_checklist</h2>
  4679. <p><a id="opIdnew_checklist"></a></p>
  4680. <blockquote>
  4681. <p>Code samples</p>
  4682. </blockquote>
  4683. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4684. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4685. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4686. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4687. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4688. </code></pre>
  4689. <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>
  4690. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4691. Accept: application/json
  4692. </span></code></pre>
  4693. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4694. &quot;title&quot;: &quot;string&quot;,
  4695. &quot;items&quot;: &quot;string&quot;
  4696. }&#x27;</span>;
  4697. <span class="hljs-keyword">const</span> headers = {
  4698. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4699. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4700. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4701. };
  4702. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4703. {
  4704. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4705. <span class="hljs-attr">body</span>: inputBody,
  4706. <span class="hljs-attr">headers</span>: headers
  4707. })
  4708. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4709. <span class="hljs-keyword">return</span> res.json();
  4710. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4711. <span class="hljs-built_in">console</span>.log(body);
  4712. });
  4713. </code></pre>
  4714. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4715. <span class="hljs-keyword">const</span> inputBody = {
  4716. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4717. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4718. };
  4719. <span class="hljs-keyword">const</span> headers = {
  4720. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4721. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4722. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4723. };
  4724. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4725. {
  4726. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4727. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4728. <span class="hljs-attr">headers</span>: headers
  4729. })
  4730. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4731. <span class="hljs-keyword">return</span> res.json();
  4732. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4733. <span class="hljs-built_in">console</span>.log(body);
  4734. });
  4735. </code></pre>
  4736. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4737. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4738. headers = {
  4739. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4740. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4741. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4742. }
  4743. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4744. <span class="hljs-symbol">params:</span> {
  4745. }, <span class="hljs-symbol">headers:</span> headers
  4746. p JSON.parse(result)
  4747. </code></pre>
  4748. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4749. headers = {
  4750. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4751. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4752. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4753. }
  4754. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4755. <span class="hljs-built_in">print</span>(r.json())
  4756. </code></pre>
  4757. <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>);
  4758. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4759. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4760. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4761. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4762. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4763. String inputLine;
  4764. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4765. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4766. response.append(inputLine);
  4767. }
  4768. in.close();
  4769. System.out.println(response.toString());
  4770. </code></pre>
  4771. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4772. <span class="hljs-keyword">import</span> (
  4773. <span class="hljs-string">&quot;bytes&quot;</span>
  4774. <span class="hljs-string">&quot;net/http&quot;</span>
  4775. )
  4776. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4777. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4778. <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>},
  4779. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4780. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4781. }
  4782. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4783. 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)
  4784. req.Header = headers
  4785. client := &amp;http.Client{}
  4786. resp, err := client.Do(req)
  4787. <span class="hljs-comment">// ...</span>
  4788. }
  4789. </code></pre>
  4790. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4791. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4792. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4793. );
  4794. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4795. <span class="hljs-comment">// Define array of request body.</span>
  4796. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4797. <span class="hljs-keyword">try</span> {
  4798. <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>(
  4799. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4800. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4801. )
  4802. );
  4803. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4804. }
  4805. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4806. <span class="hljs-comment">// handle exception or api errors.</span>
  4807. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4808. }
  4809. <span class="hljs-comment">// ...</span>
  4810. </code></pre>
  4811. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4812. <p><em>create a new checklist</em></p>
  4813. <blockquote>
  4814. <p>Body parameter</p>
  4815. </blockquote>
  4816. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4817. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4818. </code></pre>
  4819. <h3 id="new_checklist-parameters">Parameters</h3>
  4820. <table>
  4821. <thead>
  4822. <tr>
  4823. <th>Name</th>
  4824. <th>In</th>
  4825. <th>Type</th>
  4826. <th>Required</th>
  4827. <th>Description</th>
  4828. </tr>
  4829. </thead>
  4830. <tbody>
  4831. <tr>
  4832. <td>board</td>
  4833. <td>path</td>
  4834. <td>string</td>
  4835. <td>true</td>
  4836. <td>the board ID</td>
  4837. </tr>
  4838. <tr>
  4839. <td>card</td>
  4840. <td>path</td>
  4841. <td>string</td>
  4842. <td>true</td>
  4843. <td>the card ID</td>
  4844. </tr>
  4845. <tr>
  4846. <td>body</td>
  4847. <td>body</td>
  4848. <td>object</td>
  4849. <td>true</td>
  4850. <td>none</td>
  4851. </tr>
  4852. <tr>
  4853. <td>» title</td>
  4854. <td>body</td>
  4855. <td>string</td>
  4856. <td>true</td>
  4857. <td>the title of the new checklist</td>
  4858. </tr>
  4859. <tr>
  4860. <td>» items</td>
  4861. <td>body</td>
  4862. <td>string</td>
  4863. <td>false</td>
  4864. <td>the list of items on the new checklist</td>
  4865. </tr>
  4866. </tbody>
  4867. </table>
  4868. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4869. <p><strong>board</strong>: the board ID</p>
  4870. <p><strong>card</strong>: the card ID</p>
  4871. <blockquote>
  4872. <p>Example responses</p>
  4873. </blockquote>
  4874. <blockquote>
  4875. <p>200 Response</p>
  4876. </blockquote>
  4877. <pre class="highlight tab tab-json"><code>{
  4878. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4879. }
  4880. </code></pre>
  4881. <h3 id="new_checklist-responses">Responses</h3>
  4882. <table>
  4883. <thead>
  4884. <tr>
  4885. <th>Status</th>
  4886. <th>Meaning</th>
  4887. <th>Description</th>
  4888. <th>Schema</th>
  4889. </tr>
  4890. </thead>
  4891. <tbody>
  4892. <tr>
  4893. <td>200</td>
  4894. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4895. <td>200 response</td>
  4896. <td>Inline</td>
  4897. </tr>
  4898. </tbody>
  4899. </table>
  4900. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4901. <p>Status Code <strong>200</strong></p>
  4902. <table>
  4903. <thead>
  4904. <tr>
  4905. <th>Name</th>
  4906. <th>Type</th>
  4907. <th>Required</th>
  4908. <th>Restrictions</th>
  4909. <th>Description</th>
  4910. </tr>
  4911. </thead>
  4912. <tbody>
  4913. <tr>
  4914. <td>» _id</td>
  4915. <td>string</td>
  4916. <td>false</td>
  4917. <td>none</td>
  4918. <td>none</td>
  4919. </tr>
  4920. </tbody>
  4921. </table>
  4922. <aside class="warning">
  4923. To perform this operation, you must be authenticated by means of one of the following methods:
  4924. UserSecurity
  4925. </aside>
  4926. <h2 id="get_checklist">get_checklist</h2>
  4927. <p><a id="opIdget_checklist"></a></p>
  4928. <blockquote>
  4929. <p>Code samples</p>
  4930. </blockquote>
  4931. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4932. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4933. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4934. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4935. </code></pre>
  4936. <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>
  4937. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4938. </span></code></pre>
  4939. <pre class="highlight tab tab-javascript"><code>
  4940. <span class="hljs-keyword">const</span> headers = {
  4941. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4942. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4943. };
  4944. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4945. {
  4946. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4947. <span class="hljs-attr">headers</span>: headers
  4948. })
  4949. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4950. <span class="hljs-keyword">return</span> res.json();
  4951. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4952. <span class="hljs-built_in">console</span>.log(body);
  4953. });
  4954. </code></pre>
  4955. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4956. <span class="hljs-keyword">const</span> headers = {
  4957. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4958. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4959. };
  4960. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4961. {
  4962. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4963. <span class="hljs-attr">headers</span>: headers
  4964. })
  4965. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4966. <span class="hljs-keyword">return</span> res.json();
  4967. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4968. <span class="hljs-built_in">console</span>.log(body);
  4969. });
  4970. </code></pre>
  4971. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4972. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4973. headers = {
  4974. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4975. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4976. }
  4977. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4978. <span class="hljs-symbol">params:</span> {
  4979. }, <span class="hljs-symbol">headers:</span> headers
  4980. p JSON.parse(result)
  4981. </code></pre>
  4982. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4983. headers = {
  4984. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4985. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4986. }
  4987. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4988. <span class="hljs-built_in">print</span>(r.json())
  4989. </code></pre>
  4990. <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>);
  4991. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4992. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4993. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4994. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4995. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4996. String inputLine;
  4997. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4998. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4999. response.append(inputLine);
  5000. }
  5001. in.close();
  5002. System.out.println(response.toString());
  5003. </code></pre>
  5004. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5005. <span class="hljs-keyword">import</span> (
  5006. <span class="hljs-string">&quot;bytes&quot;</span>
  5007. <span class="hljs-string">&quot;net/http&quot;</span>
  5008. )
  5009. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5010. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5011. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5012. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5013. }
  5014. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5015. 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)
  5016. req.Header = headers
  5017. client := &amp;http.Client{}
  5018. resp, err := client.Do(req)
  5019. <span class="hljs-comment">// ...</span>
  5020. }
  5021. </code></pre>
  5022. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5023. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5024. );
  5025. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5026. <span class="hljs-comment">// Define array of request body.</span>
  5027. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5028. <span class="hljs-keyword">try</span> {
  5029. <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>(
  5030. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5031. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5032. )
  5033. );
  5034. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5035. }
  5036. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5037. <span class="hljs-comment">// handle exception or api errors.</span>
  5038. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5039. }
  5040. <span class="hljs-comment">// ...</span>
  5041. </code></pre>
  5042. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5043. <p><em>Get a checklist</em></p>
  5044. <h3 id="get_checklist-parameters">Parameters</h3>
  5045. <table>
  5046. <thead>
  5047. <tr>
  5048. <th>Name</th>
  5049. <th>In</th>
  5050. <th>Type</th>
  5051. <th>Required</th>
  5052. <th>Description</th>
  5053. </tr>
  5054. </thead>
  5055. <tbody>
  5056. <tr>
  5057. <td>board</td>
  5058. <td>path</td>
  5059. <td>string</td>
  5060. <td>true</td>
  5061. <td>the board ID</td>
  5062. </tr>
  5063. <tr>
  5064. <td>card</td>
  5065. <td>path</td>
  5066. <td>string</td>
  5067. <td>true</td>
  5068. <td>the card ID</td>
  5069. </tr>
  5070. <tr>
  5071. <td>checklist</td>
  5072. <td>path</td>
  5073. <td>string</td>
  5074. <td>true</td>
  5075. <td>the ID of the checklist</td>
  5076. </tr>
  5077. </tbody>
  5078. </table>
  5079. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5080. <p><strong>board</strong>: the board ID</p>
  5081. <p><strong>card</strong>: the card ID</p>
  5082. <p><strong>checklist</strong>: the ID of the checklist</p>
  5083. <blockquote>
  5084. <p>Example responses</p>
  5085. </blockquote>
  5086. <blockquote>
  5087. <p>200 Response</p>
  5088. </blockquote>
  5089. <pre class="highlight tab tab-json"><code>{
  5090. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5091. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5092. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5093. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5094. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5095. <span class="hljs-attr">&quot;items&quot;</span>: [
  5096. {
  5097. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5098. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5099. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5100. }
  5101. ]
  5102. }
  5103. </code></pre>
  5104. <h3 id="get_checklist-responses">Responses</h3>
  5105. <table>
  5106. <thead>
  5107. <tr>
  5108. <th>Status</th>
  5109. <th>Meaning</th>
  5110. <th>Description</th>
  5111. <th>Schema</th>
  5112. </tr>
  5113. </thead>
  5114. <tbody>
  5115. <tr>
  5116. <td>200</td>
  5117. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5118. <td>200 response</td>
  5119. <td>Inline</td>
  5120. </tr>
  5121. </tbody>
  5122. </table>
  5123. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5124. <p>Status Code <strong>200</strong></p>
  5125. <table>
  5126. <thead>
  5127. <tr>
  5128. <th>Name</th>
  5129. <th>Type</th>
  5130. <th>Required</th>
  5131. <th>Restrictions</th>
  5132. <th>Description</th>
  5133. </tr>
  5134. </thead>
  5135. <tbody>
  5136. <tr>
  5137. <td>» cardId</td>
  5138. <td>string</td>
  5139. <td>false</td>
  5140. <td>none</td>
  5141. <td>none</td>
  5142. </tr>
  5143. <tr>
  5144. <td>» title</td>
  5145. <td>string</td>
  5146. <td>false</td>
  5147. <td>none</td>
  5148. <td>none</td>
  5149. </tr>
  5150. <tr>
  5151. <td>» finishedAt</td>
  5152. <td>string</td>
  5153. <td>false</td>
  5154. <td>none</td>
  5155. <td>none</td>
  5156. </tr>
  5157. <tr>
  5158. <td>» createdAt</td>
  5159. <td>string</td>
  5160. <td>false</td>
  5161. <td>none</td>
  5162. <td>none</td>
  5163. </tr>
  5164. <tr>
  5165. <td>» sort</td>
  5166. <td>number</td>
  5167. <td>false</td>
  5168. <td>none</td>
  5169. <td>none</td>
  5170. </tr>
  5171. <tr>
  5172. <td>» items</td>
  5173. <td>[object]</td>
  5174. <td>false</td>
  5175. <td>none</td>
  5176. <td>none</td>
  5177. </tr>
  5178. <tr>
  5179. <td>»» _id</td>
  5180. <td>string</td>
  5181. <td>false</td>
  5182. <td>none</td>
  5183. <td>none</td>
  5184. </tr>
  5185. <tr>
  5186. <td>»» title</td>
  5187. <td>string</td>
  5188. <td>false</td>
  5189. <td>none</td>
  5190. <td>none</td>
  5191. </tr>
  5192. <tr>
  5193. <td>»» isFinished</td>
  5194. <td>boolean</td>
  5195. <td>false</td>
  5196. <td>none</td>
  5197. <td>none</td>
  5198. </tr>
  5199. </tbody>
  5200. </table>
  5201. <aside class="warning">
  5202. To perform this operation, you must be authenticated by means of one of the following methods:
  5203. UserSecurity
  5204. </aside>
  5205. <h2 id="delete_checklist">delete_checklist</h2>
  5206. <p><a id="opIddelete_checklist"></a></p>
  5207. <blockquote>
  5208. <p>Code samples</p>
  5209. </blockquote>
  5210. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5211. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5212. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5213. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5214. </code></pre>
  5215. <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>
  5216. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5217. </span></code></pre>
  5218. <pre class="highlight tab tab-javascript"><code>
  5219. <span class="hljs-keyword">const</span> headers = {
  5220. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5221. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5222. };
  5223. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5224. {
  5225. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5226. <span class="hljs-attr">headers</span>: headers
  5227. })
  5228. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5229. <span class="hljs-keyword">return</span> res.json();
  5230. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5231. <span class="hljs-built_in">console</span>.log(body);
  5232. });
  5233. </code></pre>
  5234. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5235. <span class="hljs-keyword">const</span> headers = {
  5236. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5237. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5238. };
  5239. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5240. {
  5241. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5242. <span class="hljs-attr">headers</span>: headers
  5243. })
  5244. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5245. <span class="hljs-keyword">return</span> res.json();
  5246. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5247. <span class="hljs-built_in">console</span>.log(body);
  5248. });
  5249. </code></pre>
  5250. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5251. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5252. headers = {
  5253. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5254. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5255. }
  5256. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5257. <span class="hljs-symbol">params:</span> {
  5258. }, <span class="hljs-symbol">headers:</span> headers
  5259. p JSON.parse(result)
  5260. </code></pre>
  5261. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5262. headers = {
  5263. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5264. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5265. }
  5266. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5267. <span class="hljs-built_in">print</span>(r.json())
  5268. </code></pre>
  5269. <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>);
  5270. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5271. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5272. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5273. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5274. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5275. String inputLine;
  5276. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5277. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5278. response.append(inputLine);
  5279. }
  5280. in.close();
  5281. System.out.println(response.toString());
  5282. </code></pre>
  5283. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5284. <span class="hljs-keyword">import</span> (
  5285. <span class="hljs-string">&quot;bytes&quot;</span>
  5286. <span class="hljs-string">&quot;net/http&quot;</span>
  5287. )
  5288. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5289. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5290. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5291. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5292. }
  5293. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5294. 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)
  5295. req.Header = headers
  5296. client := &amp;http.Client{}
  5297. resp, err := client.Do(req)
  5298. <span class="hljs-comment">// ...</span>
  5299. }
  5300. </code></pre>
  5301. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5302. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5303. );
  5304. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5305. <span class="hljs-comment">// Define array of request body.</span>
  5306. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5307. <span class="hljs-keyword">try</span> {
  5308. <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>(
  5309. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5310. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5311. )
  5312. );
  5313. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5314. }
  5315. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5316. <span class="hljs-comment">// handle exception or api errors.</span>
  5317. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5318. }
  5319. <span class="hljs-comment">// ...</span>
  5320. </code></pre>
  5321. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5322. <p><em>Delete a checklist</em></p>
  5323. <p>The checklist will be removed, not put in the recycle bin.</p>
  5324. <h3 id="delete_checklist-parameters">Parameters</h3>
  5325. <table>
  5326. <thead>
  5327. <tr>
  5328. <th>Name</th>
  5329. <th>In</th>
  5330. <th>Type</th>
  5331. <th>Required</th>
  5332. <th>Description</th>
  5333. </tr>
  5334. </thead>
  5335. <tbody>
  5336. <tr>
  5337. <td>board</td>
  5338. <td>path</td>
  5339. <td>string</td>
  5340. <td>true</td>
  5341. <td>the board ID</td>
  5342. </tr>
  5343. <tr>
  5344. <td>card</td>
  5345. <td>path</td>
  5346. <td>string</td>
  5347. <td>true</td>
  5348. <td>the card ID</td>
  5349. </tr>
  5350. <tr>
  5351. <td>checklist</td>
  5352. <td>path</td>
  5353. <td>string</td>
  5354. <td>true</td>
  5355. <td>the ID of the checklist to remove</td>
  5356. </tr>
  5357. </tbody>
  5358. </table>
  5359. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5360. <p><strong>board</strong>: the board ID</p>
  5361. <p><strong>card</strong>: the card ID</p>
  5362. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5363. <blockquote>
  5364. <p>Example responses</p>
  5365. </blockquote>
  5366. <blockquote>
  5367. <p>200 Response</p>
  5368. </blockquote>
  5369. <pre class="highlight tab tab-json"><code>{
  5370. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5371. }
  5372. </code></pre>
  5373. <h3 id="delete_checklist-responses">Responses</h3>
  5374. <table>
  5375. <thead>
  5376. <tr>
  5377. <th>Status</th>
  5378. <th>Meaning</th>
  5379. <th>Description</th>
  5380. <th>Schema</th>
  5381. </tr>
  5382. </thead>
  5383. <tbody>
  5384. <tr>
  5385. <td>200</td>
  5386. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5387. <td>200 response</td>
  5388. <td>Inline</td>
  5389. </tr>
  5390. </tbody>
  5391. </table>
  5392. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5393. <p>Status Code <strong>200</strong></p>
  5394. <table>
  5395. <thead>
  5396. <tr>
  5397. <th>Name</th>
  5398. <th>Type</th>
  5399. <th>Required</th>
  5400. <th>Restrictions</th>
  5401. <th>Description</th>
  5402. </tr>
  5403. </thead>
  5404. <tbody>
  5405. <tr>
  5406. <td>» _id</td>
  5407. <td>string</td>
  5408. <td>false</td>
  5409. <td>none</td>
  5410. <td>none</td>
  5411. </tr>
  5412. </tbody>
  5413. </table>
  5414. <aside class="warning">
  5415. To perform this operation, you must be authenticated by means of one of the following methods:
  5416. UserSecurity
  5417. </aside>
  5418. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5419. <h2 id="new_checklist_item">new_checklist_item</h2>
  5420. <p><a id="opIdnew_checklist_item"></a></p>
  5421. <blockquote>
  5422. <p>Code samples</p>
  5423. </blockquote>
  5424. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5425. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  5426. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5427. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5428. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5429. </code></pre>
  5430. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items</span> <span class="hljs-meta">HTTP/1.1</span>
  5431. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5432. Accept: application/json
  5433. </span></code></pre>
  5434. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5435. &quot;title&quot;: &quot;string&quot;
  5436. }&#x27;</span>;
  5437. <span class="hljs-keyword">const</span> headers = {
  5438. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5439. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5440. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5441. };
  5442. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5443. {
  5444. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5445. <span class="hljs-attr">body</span>: inputBody,
  5446. <span class="hljs-attr">headers</span>: headers
  5447. })
  5448. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5449. <span class="hljs-keyword">return</span> res.json();
  5450. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5451. <span class="hljs-built_in">console</span>.log(body);
  5452. });
  5453. </code></pre>
  5454. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5455. <span class="hljs-keyword">const</span> inputBody = {
  5456. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5457. };
  5458. <span class="hljs-keyword">const</span> headers = {
  5459. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5460. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5461. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5462. };
  5463. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5464. {
  5465. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5466. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5467. <span class="hljs-attr">headers</span>: headers
  5468. })
  5469. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5470. <span class="hljs-keyword">return</span> res.json();
  5471. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5472. <span class="hljs-built_in">console</span>.log(body);
  5473. });
  5474. </code></pre>
  5475. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5476. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5477. headers = {
  5478. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5479. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5480. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5481. }
  5482. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5483. <span class="hljs-symbol">params:</span> {
  5484. }, <span class="hljs-symbol">headers:</span> headers
  5485. p JSON.parse(result)
  5486. </code></pre>
  5487. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5488. headers = {
  5489. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5490. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5491. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5492. }
  5493. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>, headers = headers)
  5494. <span class="hljs-built_in">print</span>(r.json())
  5495. </code></pre>
  5496. <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&quot;</span>);
  5497. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5498. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  5499. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5500. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5501. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5502. String inputLine;
  5503. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5504. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5505. response.append(inputLine);
  5506. }
  5507. in.close();
  5508. System.out.println(response.toString());
  5509. </code></pre>
  5510. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5511. <span class="hljs-keyword">import</span> (
  5512. <span class="hljs-string">&quot;bytes&quot;</span>
  5513. <span class="hljs-string">&quot;net/http&quot;</span>
  5514. )
  5515. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5516. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5517. <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>},
  5518. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5519. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5520. }
  5521. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5522. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&quot;</span>, data)
  5523. req.Header = headers
  5524. client := &amp;http.Client{}
  5525. resp, err := client.Do(req)
  5526. <span class="hljs-comment">// ...</span>
  5527. }
  5528. </code></pre>
  5529. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5530. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5531. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5532. );
  5533. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5534. <span class="hljs-comment">// Define array of request body.</span>
  5535. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5536. <span class="hljs-keyword">try</span> {
  5537. <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/{checklist}/items&#x27;</span>, <span class="hljs-keyword">array</span>(
  5538. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5539. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5540. )
  5541. );
  5542. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5543. }
  5544. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5545. <span class="hljs-comment">// handle exception or api errors.</span>
  5546. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5547. }
  5548. <span class="hljs-comment">// ...</span>
  5549. </code></pre>
  5550. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  5551. <p><em>add a new item to a checklist</em></p>
  5552. <blockquote>
  5553. <p>Body parameter</p>
  5554. </blockquote>
  5555. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5556. </code></pre>
  5557. <h3 id="new_checklist_item-parameters">Parameters</h3>
  5558. <table>
  5559. <thead>
  5560. <tr>
  5561. <th>Name</th>
  5562. <th>In</th>
  5563. <th>Type</th>
  5564. <th>Required</th>
  5565. <th>Description</th>
  5566. </tr>
  5567. </thead>
  5568. <tbody>
  5569. <tr>
  5570. <td>board</td>
  5571. <td>path</td>
  5572. <td>string</td>
  5573. <td>true</td>
  5574. <td>the board ID</td>
  5575. </tr>
  5576. <tr>
  5577. <td>card</td>
  5578. <td>path</td>
  5579. <td>string</td>
  5580. <td>true</td>
  5581. <td>the card ID</td>
  5582. </tr>
  5583. <tr>
  5584. <td>checklist</td>
  5585. <td>path</td>
  5586. <td>string</td>
  5587. <td>true</td>
  5588. <td>the ID of the checklist</td>
  5589. </tr>
  5590. <tr>
  5591. <td>body</td>
  5592. <td>body</td>
  5593. <td>object</td>
  5594. <td>true</td>
  5595. <td>none</td>
  5596. </tr>
  5597. <tr>
  5598. <td>» title</td>
  5599. <td>body</td>
  5600. <td>string</td>
  5601. <td>true</td>
  5602. <td>the title of the new item</td>
  5603. </tr>
  5604. </tbody>
  5605. </table>
  5606. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5607. <p><strong>board</strong>: the board ID</p>
  5608. <p><strong>card</strong>: the card ID</p>
  5609. <p><strong>checklist</strong>: the ID of the checklist</p>
  5610. <blockquote>
  5611. <p>Example responses</p>
  5612. </blockquote>
  5613. <blockquote>
  5614. <p>200 Response</p>
  5615. </blockquote>
  5616. <pre class="highlight tab tab-json"><code>{
  5617. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5618. }
  5619. </code></pre>
  5620. <h3 id="new_checklist_item-responses">Responses</h3>
  5621. <table>
  5622. <thead>
  5623. <tr>
  5624. <th>Status</th>
  5625. <th>Meaning</th>
  5626. <th>Description</th>
  5627. <th>Schema</th>
  5628. </tr>
  5629. </thead>
  5630. <tbody>
  5631. <tr>
  5632. <td>200</td>
  5633. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5634. <td>200 response</td>
  5635. <td>Inline</td>
  5636. </tr>
  5637. </tbody>
  5638. </table>
  5639. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  5640. <p>Status Code <strong>200</strong></p>
  5641. <table>
  5642. <thead>
  5643. <tr>
  5644. <th>Name</th>
  5645. <th>Type</th>
  5646. <th>Required</th>
  5647. <th>Restrictions</th>
  5648. <th>Description</th>
  5649. </tr>
  5650. </thead>
  5651. <tbody>
  5652. <tr>
  5653. <td>» _id</td>
  5654. <td>string</td>
  5655. <td>false</td>
  5656. <td>none</td>
  5657. <td>none</td>
  5658. </tr>
  5659. </tbody>
  5660. </table>
  5661. <aside class="warning">
  5662. To perform this operation, you must be authenticated by means of one of the following methods:
  5663. UserSecurity
  5664. </aside>
  5665. <h2 id="get_checklist_item">get_checklist_item</h2>
  5666. <p><a id="opIdget_checklist_item"></a></p>
  5667. <blockquote>
  5668. <p>Code samples</p>
  5669. </blockquote>
  5670. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5671. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5672. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5673. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5674. </code></pre>
  5675. <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>
  5676. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5677. </span></code></pre>
  5678. <pre class="highlight tab tab-javascript"><code>
  5679. <span class="hljs-keyword">const</span> headers = {
  5680. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5681. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5682. };
  5683. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5684. {
  5685. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5686. <span class="hljs-attr">headers</span>: headers
  5687. })
  5688. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5689. <span class="hljs-keyword">return</span> res.json();
  5690. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5691. <span class="hljs-built_in">console</span>.log(body);
  5692. });
  5693. </code></pre>
  5694. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5695. <span class="hljs-keyword">const</span> headers = {
  5696. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5697. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5698. };
  5699. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5700. {
  5701. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5702. <span class="hljs-attr">headers</span>: headers
  5703. })
  5704. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5705. <span class="hljs-keyword">return</span> res.json();
  5706. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5707. <span class="hljs-built_in">console</span>.log(body);
  5708. });
  5709. </code></pre>
  5710. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5711. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5712. headers = {
  5713. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5714. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5715. }
  5716. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5717. <span class="hljs-symbol">params:</span> {
  5718. }, <span class="hljs-symbol">headers:</span> headers
  5719. p JSON.parse(result)
  5720. </code></pre>
  5721. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5722. headers = {
  5723. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5724. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5725. }
  5726. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5727. <span class="hljs-built_in">print</span>(r.json())
  5728. </code></pre>
  5729. <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>);
  5730. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5731. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5732. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5733. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5734. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5735. String inputLine;
  5736. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5737. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5738. response.append(inputLine);
  5739. }
  5740. in.close();
  5741. System.out.println(response.toString());
  5742. </code></pre>
  5743. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5744. <span class="hljs-keyword">import</span> (
  5745. <span class="hljs-string">&quot;bytes&quot;</span>
  5746. <span class="hljs-string">&quot;net/http&quot;</span>
  5747. )
  5748. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5749. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5750. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5751. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5752. }
  5753. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5754. 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)
  5755. req.Header = headers
  5756. client := &amp;http.Client{}
  5757. resp, err := client.Do(req)
  5758. <span class="hljs-comment">// ...</span>
  5759. }
  5760. </code></pre>
  5761. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5762. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5763. );
  5764. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5765. <span class="hljs-comment">// Define array of request body.</span>
  5766. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5767. <span class="hljs-keyword">try</span> {
  5768. <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>(
  5769. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5770. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5771. )
  5772. );
  5773. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5774. }
  5775. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5776. <span class="hljs-comment">// handle exception or api errors.</span>
  5777. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5778. }
  5779. <span class="hljs-comment">// ...</span>
  5780. </code></pre>
  5781. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5782. <p><em>Get a checklist item</em></p>
  5783. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5784. <table>
  5785. <thead>
  5786. <tr>
  5787. <th>Name</th>
  5788. <th>In</th>
  5789. <th>Type</th>
  5790. <th>Required</th>
  5791. <th>Description</th>
  5792. </tr>
  5793. </thead>
  5794. <tbody>
  5795. <tr>
  5796. <td>board</td>
  5797. <td>path</td>
  5798. <td>string</td>
  5799. <td>true</td>
  5800. <td>the board ID</td>
  5801. </tr>
  5802. <tr>
  5803. <td>card</td>
  5804. <td>path</td>
  5805. <td>string</td>
  5806. <td>true</td>
  5807. <td>the card ID</td>
  5808. </tr>
  5809. <tr>
  5810. <td>checklist</td>
  5811. <td>path</td>
  5812. <td>string</td>
  5813. <td>true</td>
  5814. <td>the checklist ID</td>
  5815. </tr>
  5816. <tr>
  5817. <td>item</td>
  5818. <td>path</td>
  5819. <td>string</td>
  5820. <td>true</td>
  5821. <td>the ID of the item</td>
  5822. </tr>
  5823. </tbody>
  5824. </table>
  5825. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5826. <p><strong>board</strong>: the board ID</p>
  5827. <p><strong>card</strong>: the card ID</p>
  5828. <p><strong>checklist</strong>: the checklist ID</p>
  5829. <p><strong>item</strong>: the ID of the item</p>
  5830. <blockquote>
  5831. <p>Example responses</p>
  5832. </blockquote>
  5833. <blockquote>
  5834. <p>200 Response</p>
  5835. </blockquote>
  5836. <pre class="highlight tab tab-json"><code>{
  5837. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5838. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5839. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5840. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5841. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5842. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5843. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5844. }
  5845. </code></pre>
  5846. <h3 id="get_checklist_item-responses">Responses</h3>
  5847. <table>
  5848. <thead>
  5849. <tr>
  5850. <th>Status</th>
  5851. <th>Meaning</th>
  5852. <th>Description</th>
  5853. <th>Schema</th>
  5854. </tr>
  5855. </thead>
  5856. <tbody>
  5857. <tr>
  5858. <td>200</td>
  5859. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5860. <td>200 response</td>
  5861. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5862. </tr>
  5863. </tbody>
  5864. </table>
  5865. <aside class="warning">
  5866. To perform this operation, you must be authenticated by means of one of the following methods:
  5867. UserSecurity
  5868. </aside>
  5869. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5870. <p><a id="opIdedit_checklist_item"></a></p>
  5871. <blockquote>
  5872. <p>Code samples</p>
  5873. </blockquote>
  5874. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5875. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5876. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5877. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5878. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5879. </code></pre>
  5880. <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>
  5881. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5882. Accept: application/json
  5883. </span></code></pre>
  5884. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5885. &quot;isFinished&quot;: &quot;string&quot;,
  5886. &quot;title&quot;: &quot;string&quot;
  5887. }&#x27;</span>;
  5888. <span class="hljs-keyword">const</span> headers = {
  5889. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5890. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5891. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5892. };
  5893. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5894. {
  5895. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5896. <span class="hljs-attr">body</span>: inputBody,
  5897. <span class="hljs-attr">headers</span>: headers
  5898. })
  5899. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5900. <span class="hljs-keyword">return</span> res.json();
  5901. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5902. <span class="hljs-built_in">console</span>.log(body);
  5903. });
  5904. </code></pre>
  5905. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5906. <span class="hljs-keyword">const</span> inputBody = {
  5907. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5908. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5909. };
  5910. <span class="hljs-keyword">const</span> headers = {
  5911. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5912. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5913. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5914. };
  5915. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5916. {
  5917. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5918. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5919. <span class="hljs-attr">headers</span>: headers
  5920. })
  5921. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5922. <span class="hljs-keyword">return</span> res.json();
  5923. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5924. <span class="hljs-built_in">console</span>.log(body);
  5925. });
  5926. </code></pre>
  5927. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5928. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5929. headers = {
  5930. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5931. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5932. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5933. }
  5934. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5935. <span class="hljs-symbol">params:</span> {
  5936. }, <span class="hljs-symbol">headers:</span> headers
  5937. p JSON.parse(result)
  5938. </code></pre>
  5939. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5940. headers = {
  5941. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5942. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5943. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5944. }
  5945. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5946. <span class="hljs-built_in">print</span>(r.json())
  5947. </code></pre>
  5948. <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>);
  5949. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5950. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5951. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5952. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5953. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5954. String inputLine;
  5955. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5956. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5957. response.append(inputLine);
  5958. }
  5959. in.close();
  5960. System.out.println(response.toString());
  5961. </code></pre>
  5962. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5963. <span class="hljs-keyword">import</span> (
  5964. <span class="hljs-string">&quot;bytes&quot;</span>
  5965. <span class="hljs-string">&quot;net/http&quot;</span>
  5966. )
  5967. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5968. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5969. <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>},
  5970. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5971. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5972. }
  5973. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5974. 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)
  5975. req.Header = headers
  5976. client := &amp;http.Client{}
  5977. resp, err := client.Do(req)
  5978. <span class="hljs-comment">// ...</span>
  5979. }
  5980. </code></pre>
  5981. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5982. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5983. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5984. );
  5985. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5986. <span class="hljs-comment">// Define array of request body.</span>
  5987. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5988. <span class="hljs-keyword">try</span> {
  5989. <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>(
  5990. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5991. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5992. )
  5993. );
  5994. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5995. }
  5996. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5997. <span class="hljs-comment">// handle exception or api errors.</span>
  5998. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5999. }
  6000. <span class="hljs-comment">// ...</span>
  6001. </code></pre>
  6002. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6003. <p><em>Edit a checklist item</em></p>
  6004. <blockquote>
  6005. <p>Body parameter</p>
  6006. </blockquote>
  6007. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  6008. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6009. </code></pre>
  6010. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  6011. <table>
  6012. <thead>
  6013. <tr>
  6014. <th>Name</th>
  6015. <th>In</th>
  6016. <th>Type</th>
  6017. <th>Required</th>
  6018. <th>Description</th>
  6019. </tr>
  6020. </thead>
  6021. <tbody>
  6022. <tr>
  6023. <td>board</td>
  6024. <td>path</td>
  6025. <td>string</td>
  6026. <td>true</td>
  6027. <td>the board ID</td>
  6028. </tr>
  6029. <tr>
  6030. <td>card</td>
  6031. <td>path</td>
  6032. <td>string</td>
  6033. <td>true</td>
  6034. <td>the card ID</td>
  6035. </tr>
  6036. <tr>
  6037. <td>checklist</td>
  6038. <td>path</td>
  6039. <td>string</td>
  6040. <td>true</td>
  6041. <td>the checklist ID</td>
  6042. </tr>
  6043. <tr>
  6044. <td>item</td>
  6045. <td>path</td>
  6046. <td>string</td>
  6047. <td>true</td>
  6048. <td>the ID of the item</td>
  6049. </tr>
  6050. <tr>
  6051. <td>body</td>
  6052. <td>body</td>
  6053. <td>object</td>
  6054. <td>false</td>
  6055. <td>none</td>
  6056. </tr>
  6057. <tr>
  6058. <td>» isFinished</td>
  6059. <td>body</td>
  6060. <td>string</td>
  6061. <td>false</td>
  6062. <td>is the item checked?</td>
  6063. </tr>
  6064. <tr>
  6065. <td>» title</td>
  6066. <td>body</td>
  6067. <td>string</td>
  6068. <td>false</td>
  6069. <td>the new text of the item</td>
  6070. </tr>
  6071. </tbody>
  6072. </table>
  6073. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6074. <p><strong>board</strong>: the board ID</p>
  6075. <p><strong>card</strong>: the card ID</p>
  6076. <p><strong>checklist</strong>: the checklist ID</p>
  6077. <p><strong>item</strong>: the ID of the item</p>
  6078. <blockquote>
  6079. <p>Example responses</p>
  6080. </blockquote>
  6081. <blockquote>
  6082. <p>200 Response</p>
  6083. </blockquote>
  6084. <pre class="highlight tab tab-json"><code>{
  6085. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6086. }
  6087. </code></pre>
  6088. <h3 id="edit_checklist_item-responses">Responses</h3>
  6089. <table>
  6090. <thead>
  6091. <tr>
  6092. <th>Status</th>
  6093. <th>Meaning</th>
  6094. <th>Description</th>
  6095. <th>Schema</th>
  6096. </tr>
  6097. </thead>
  6098. <tbody>
  6099. <tr>
  6100. <td>200</td>
  6101. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6102. <td>200 response</td>
  6103. <td>Inline</td>
  6104. </tr>
  6105. </tbody>
  6106. </table>
  6107. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  6108. <p>Status Code <strong>200</strong></p>
  6109. <table>
  6110. <thead>
  6111. <tr>
  6112. <th>Name</th>
  6113. <th>Type</th>
  6114. <th>Required</th>
  6115. <th>Restrictions</th>
  6116. <th>Description</th>
  6117. </tr>
  6118. </thead>
  6119. <tbody>
  6120. <tr>
  6121. <td>» _id</td>
  6122. <td>string</td>
  6123. <td>false</td>
  6124. <td>none</td>
  6125. <td>none</td>
  6126. </tr>
  6127. </tbody>
  6128. </table>
  6129. <aside class="warning">
  6130. To perform this operation, you must be authenticated by means of one of the following methods:
  6131. UserSecurity
  6132. </aside>
  6133. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  6134. <p><a id="opIddelete_checklist_item"></a></p>
  6135. <blockquote>
  6136. <p>Code samples</p>
  6137. </blockquote>
  6138. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6139. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  6140. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6141. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6142. </code></pre>
  6143. <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>
  6144. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6145. </span></code></pre>
  6146. <pre class="highlight tab tab-javascript"><code>
  6147. <span class="hljs-keyword">const</span> headers = {
  6148. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6149. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6150. };
  6151. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6152. {
  6153. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6154. <span class="hljs-attr">headers</span>: headers
  6155. })
  6156. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6157. <span class="hljs-keyword">return</span> res.json();
  6158. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6159. <span class="hljs-built_in">console</span>.log(body);
  6160. });
  6161. </code></pre>
  6162. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6163. <span class="hljs-keyword">const</span> headers = {
  6164. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6165. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6166. };
  6167. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6168. {
  6169. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6170. <span class="hljs-attr">headers</span>: headers
  6171. })
  6172. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6173. <span class="hljs-keyword">return</span> res.json();
  6174. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6175. <span class="hljs-built_in">console</span>.log(body);
  6176. });
  6177. </code></pre>
  6178. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6179. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6180. headers = {
  6181. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6182. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6183. }
  6184. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6185. <span class="hljs-symbol">params:</span> {
  6186. }, <span class="hljs-symbol">headers:</span> headers
  6187. p JSON.parse(result)
  6188. </code></pre>
  6189. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6190. headers = {
  6191. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6192. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6193. }
  6194. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  6195. <span class="hljs-built_in">print</span>(r.json())
  6196. </code></pre>
  6197. <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>);
  6198. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6199. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6200. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6201. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6202. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6203. String inputLine;
  6204. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6205. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6206. response.append(inputLine);
  6207. }
  6208. in.close();
  6209. System.out.println(response.toString());
  6210. </code></pre>
  6211. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6212. <span class="hljs-keyword">import</span> (
  6213. <span class="hljs-string">&quot;bytes&quot;</span>
  6214. <span class="hljs-string">&quot;net/http&quot;</span>
  6215. )
  6216. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6217. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6218. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6219. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6220. }
  6221. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6222. 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)
  6223. req.Header = headers
  6224. client := &amp;http.Client{}
  6225. resp, err := client.Do(req)
  6226. <span class="hljs-comment">// ...</span>
  6227. }
  6228. </code></pre>
  6229. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6230. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6231. );
  6232. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6233. <span class="hljs-comment">// Define array of request body.</span>
  6234. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6235. <span class="hljs-keyword">try</span> {
  6236. <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>(
  6237. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6238. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6239. )
  6240. );
  6241. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6242. }
  6243. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6244. <span class="hljs-comment">// handle exception or api errors.</span>
  6245. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6246. }
  6247. <span class="hljs-comment">// ...</span>
  6248. </code></pre>
  6249. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6250. <p><em>Delete a checklist item</em></p>
  6251. <p>Note: this operation can't be reverted.</p>
  6252. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  6253. <table>
  6254. <thead>
  6255. <tr>
  6256. <th>Name</th>
  6257. <th>In</th>
  6258. <th>Type</th>
  6259. <th>Required</th>
  6260. <th>Description</th>
  6261. </tr>
  6262. </thead>
  6263. <tbody>
  6264. <tr>
  6265. <td>board</td>
  6266. <td>path</td>
  6267. <td>string</td>
  6268. <td>true</td>
  6269. <td>the board ID</td>
  6270. </tr>
  6271. <tr>
  6272. <td>card</td>
  6273. <td>path</td>
  6274. <td>string</td>
  6275. <td>true</td>
  6276. <td>the card ID</td>
  6277. </tr>
  6278. <tr>
  6279. <td>checklist</td>
  6280. <td>path</td>
  6281. <td>string</td>
  6282. <td>true</td>
  6283. <td>the checklist ID</td>
  6284. </tr>
  6285. <tr>
  6286. <td>item</td>
  6287. <td>path</td>
  6288. <td>string</td>
  6289. <td>true</td>
  6290. <td>the ID of the item to be removed</td>
  6291. </tr>
  6292. </tbody>
  6293. </table>
  6294. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6295. <p><strong>board</strong>: the board ID</p>
  6296. <p><strong>card</strong>: the card ID</p>
  6297. <p><strong>checklist</strong>: the checklist ID</p>
  6298. <p><strong>item</strong>: the ID of the item to be removed</p>
  6299. <blockquote>
  6300. <p>Example responses</p>
  6301. </blockquote>
  6302. <blockquote>
  6303. <p>200 Response</p>
  6304. </blockquote>
  6305. <pre class="highlight tab tab-json"><code>{
  6306. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6307. }
  6308. </code></pre>
  6309. <h3 id="delete_checklist_item-responses">Responses</h3>
  6310. <table>
  6311. <thead>
  6312. <tr>
  6313. <th>Status</th>
  6314. <th>Meaning</th>
  6315. <th>Description</th>
  6316. <th>Schema</th>
  6317. </tr>
  6318. </thead>
  6319. <tbody>
  6320. <tr>
  6321. <td>200</td>
  6322. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6323. <td>200 response</td>
  6324. <td>Inline</td>
  6325. </tr>
  6326. </tbody>
  6327. </table>
  6328. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6329. <p>Status Code <strong>200</strong></p>
  6330. <table>
  6331. <thead>
  6332. <tr>
  6333. <th>Name</th>
  6334. <th>Type</th>
  6335. <th>Required</th>
  6336. <th>Restrictions</th>
  6337. <th>Description</th>
  6338. </tr>
  6339. </thead>
  6340. <tbody>
  6341. <tr>
  6342. <td>» _id</td>
  6343. <td>string</td>
  6344. <td>false</td>
  6345. <td>none</td>
  6346. <td>none</td>
  6347. </tr>
  6348. </tbody>
  6349. </table>
  6350. <aside class="warning">
  6351. To perform this operation, you must be authenticated by means of one of the following methods:
  6352. UserSecurity
  6353. </aside>
  6354. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6355. <h2 id="get_all_comments">get_all_comments</h2>
  6356. <p><a id="opIdget_all_comments"></a></p>
  6357. <blockquote>
  6358. <p>Code samples</p>
  6359. </blockquote>
  6360. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6361. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6362. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6363. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6364. </code></pre>
  6365. <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>
  6366. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6367. </span></code></pre>
  6368. <pre class="highlight tab tab-javascript"><code>
  6369. <span class="hljs-keyword">const</span> headers = {
  6370. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6371. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6372. };
  6373. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6374. {
  6375. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6376. <span class="hljs-attr">headers</span>: headers
  6377. })
  6378. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6379. <span class="hljs-keyword">return</span> res.json();
  6380. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6381. <span class="hljs-built_in">console</span>.log(body);
  6382. });
  6383. </code></pre>
  6384. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6385. <span class="hljs-keyword">const</span> headers = {
  6386. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6387. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6388. };
  6389. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6390. {
  6391. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6392. <span class="hljs-attr">headers</span>: headers
  6393. })
  6394. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6395. <span class="hljs-keyword">return</span> res.json();
  6396. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6397. <span class="hljs-built_in">console</span>.log(body);
  6398. });
  6399. </code></pre>
  6400. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6401. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6402. headers = {
  6403. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6404. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6405. }
  6406. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6407. <span class="hljs-symbol">params:</span> {
  6408. }, <span class="hljs-symbol">headers:</span> headers
  6409. p JSON.parse(result)
  6410. </code></pre>
  6411. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6412. headers = {
  6413. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6414. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6415. }
  6416. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6417. <span class="hljs-built_in">print</span>(r.json())
  6418. </code></pre>
  6419. <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>);
  6420. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6421. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6422. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6423. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6424. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6425. String inputLine;
  6426. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6427. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6428. response.append(inputLine);
  6429. }
  6430. in.close();
  6431. System.out.println(response.toString());
  6432. </code></pre>
  6433. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6434. <span class="hljs-keyword">import</span> (
  6435. <span class="hljs-string">&quot;bytes&quot;</span>
  6436. <span class="hljs-string">&quot;net/http&quot;</span>
  6437. )
  6438. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6439. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6440. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6441. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6442. }
  6443. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6444. 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)
  6445. req.Header = headers
  6446. client := &amp;http.Client{}
  6447. resp, err := client.Do(req)
  6448. <span class="hljs-comment">// ...</span>
  6449. }
  6450. </code></pre>
  6451. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6452. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6453. );
  6454. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6455. <span class="hljs-comment">// Define array of request body.</span>
  6456. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6457. <span class="hljs-keyword">try</span> {
  6458. <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>(
  6459. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6460. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6461. )
  6462. );
  6463. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6464. }
  6465. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6466. <span class="hljs-comment">// handle exception or api errors.</span>
  6467. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6468. }
  6469. <span class="hljs-comment">// ...</span>
  6470. </code></pre>
  6471. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6472. <p><em>Get all comments attached to a card</em></p>
  6473. <h3 id="get_all_comments-parameters">Parameters</h3>
  6474. <table>
  6475. <thead>
  6476. <tr>
  6477. <th>Name</th>
  6478. <th>In</th>
  6479. <th>Type</th>
  6480. <th>Required</th>
  6481. <th>Description</th>
  6482. </tr>
  6483. </thead>
  6484. <tbody>
  6485. <tr>
  6486. <td>board</td>
  6487. <td>path</td>
  6488. <td>string</td>
  6489. <td>true</td>
  6490. <td>the board ID of the card</td>
  6491. </tr>
  6492. <tr>
  6493. <td>card</td>
  6494. <td>path</td>
  6495. <td>string</td>
  6496. <td>true</td>
  6497. <td>the ID of the card</td>
  6498. </tr>
  6499. </tbody>
  6500. </table>
  6501. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6502. <p><strong>board</strong>: the board ID of the card</p>
  6503. <p><strong>card</strong>: the ID of the card</p>
  6504. <blockquote>
  6505. <p>Example responses</p>
  6506. </blockquote>
  6507. <blockquote>
  6508. <p>200 Response</p>
  6509. </blockquote>
  6510. <pre class="highlight tab tab-json"><code>[
  6511. {
  6512. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6513. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6514. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6515. }
  6516. ]
  6517. </code></pre>
  6518. <h3 id="get_all_comments-responses">Responses</h3>
  6519. <table>
  6520. <thead>
  6521. <tr>
  6522. <th>Status</th>
  6523. <th>Meaning</th>
  6524. <th>Description</th>
  6525. <th>Schema</th>
  6526. </tr>
  6527. </thead>
  6528. <tbody>
  6529. <tr>
  6530. <td>200</td>
  6531. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6532. <td>200 response</td>
  6533. <td>Inline</td>
  6534. </tr>
  6535. </tbody>
  6536. </table>
  6537. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6538. <p>Status Code <strong>200</strong></p>
  6539. <table>
  6540. <thead>
  6541. <tr>
  6542. <th>Name</th>
  6543. <th>Type</th>
  6544. <th>Required</th>
  6545. <th>Restrictions</th>
  6546. <th>Description</th>
  6547. </tr>
  6548. </thead>
  6549. <tbody>
  6550. <tr>
  6551. <td>» _id</td>
  6552. <td>string</td>
  6553. <td>false</td>
  6554. <td>none</td>
  6555. <td>none</td>
  6556. </tr>
  6557. <tr>
  6558. <td>» comment</td>
  6559. <td>string</td>
  6560. <td>false</td>
  6561. <td>none</td>
  6562. <td>none</td>
  6563. </tr>
  6564. <tr>
  6565. <td>» authorId</td>
  6566. <td>string</td>
  6567. <td>false</td>
  6568. <td>none</td>
  6569. <td>none</td>
  6570. </tr>
  6571. </tbody>
  6572. </table>
  6573. <aside class="warning">
  6574. To perform this operation, you must be authenticated by means of one of the following methods:
  6575. UserSecurity
  6576. </aside>
  6577. <h2 id="new_comment">new_comment</h2>
  6578. <p><a id="opIdnew_comment"></a></p>
  6579. <blockquote>
  6580. <p>Code samples</p>
  6581. </blockquote>
  6582. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6583. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6584. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6585. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6586. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6587. </code></pre>
  6588. <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>
  6589. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6590. Accept: application/json
  6591. </span></code></pre>
  6592. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6593. &quot;authorId&quot;: &quot;string&quot;,
  6594. &quot;comment&quot;: &quot;string&quot;
  6595. }&#x27;</span>;
  6596. <span class="hljs-keyword">const</span> headers = {
  6597. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6598. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6599. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6600. };
  6601. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6602. {
  6603. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6604. <span class="hljs-attr">body</span>: inputBody,
  6605. <span class="hljs-attr">headers</span>: headers
  6606. })
  6607. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6608. <span class="hljs-keyword">return</span> res.json();
  6609. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6610. <span class="hljs-built_in">console</span>.log(body);
  6611. });
  6612. </code></pre>
  6613. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6614. <span class="hljs-keyword">const</span> inputBody = {
  6615. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6616. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6617. };
  6618. <span class="hljs-keyword">const</span> headers = {
  6619. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6620. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6621. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6622. };
  6623. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6624. {
  6625. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6626. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6627. <span class="hljs-attr">headers</span>: headers
  6628. })
  6629. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6630. <span class="hljs-keyword">return</span> res.json();
  6631. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6632. <span class="hljs-built_in">console</span>.log(body);
  6633. });
  6634. </code></pre>
  6635. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6636. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6637. headers = {
  6638. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6639. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6640. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6641. }
  6642. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6643. <span class="hljs-symbol">params:</span> {
  6644. }, <span class="hljs-symbol">headers:</span> headers
  6645. p JSON.parse(result)
  6646. </code></pre>
  6647. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6648. headers = {
  6649. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6650. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6651. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6652. }
  6653. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6654. <span class="hljs-built_in">print</span>(r.json())
  6655. </code></pre>
  6656. <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>);
  6657. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6658. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6659. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6660. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6661. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6662. String inputLine;
  6663. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6664. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6665. response.append(inputLine);
  6666. }
  6667. in.close();
  6668. System.out.println(response.toString());
  6669. </code></pre>
  6670. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6671. <span class="hljs-keyword">import</span> (
  6672. <span class="hljs-string">&quot;bytes&quot;</span>
  6673. <span class="hljs-string">&quot;net/http&quot;</span>
  6674. )
  6675. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6676. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6677. <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>},
  6678. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6679. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6680. }
  6681. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6682. 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)
  6683. req.Header = headers
  6684. client := &amp;http.Client{}
  6685. resp, err := client.Do(req)
  6686. <span class="hljs-comment">// ...</span>
  6687. }
  6688. </code></pre>
  6689. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6690. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6691. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6692. );
  6693. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6694. <span class="hljs-comment">// Define array of request body.</span>
  6695. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6696. <span class="hljs-keyword">try</span> {
  6697. <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>(
  6698. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6699. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6700. )
  6701. );
  6702. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6703. }
  6704. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6705. <span class="hljs-comment">// handle exception or api errors.</span>
  6706. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6707. }
  6708. <span class="hljs-comment">// ...</span>
  6709. </code></pre>
  6710. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6711. <p><em>Add a comment on a card</em></p>
  6712. <blockquote>
  6713. <p>Body parameter</p>
  6714. </blockquote>
  6715. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6716. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6717. </code></pre>
  6718. <h3 id="new_comment-parameters">Parameters</h3>
  6719. <table>
  6720. <thead>
  6721. <tr>
  6722. <th>Name</th>
  6723. <th>In</th>
  6724. <th>Type</th>
  6725. <th>Required</th>
  6726. <th>Description</th>
  6727. </tr>
  6728. </thead>
  6729. <tbody>
  6730. <tr>
  6731. <td>board</td>
  6732. <td>path</td>
  6733. <td>string</td>
  6734. <td>true</td>
  6735. <td>the board ID of the card</td>
  6736. </tr>
  6737. <tr>
  6738. <td>card</td>
  6739. <td>path</td>
  6740. <td>string</td>
  6741. <td>true</td>
  6742. <td>the ID of the card</td>
  6743. </tr>
  6744. <tr>
  6745. <td>body</td>
  6746. <td>body</td>
  6747. <td>object</td>
  6748. <td>true</td>
  6749. <td>none</td>
  6750. </tr>
  6751. <tr>
  6752. <td>» authorId</td>
  6753. <td>body</td>
  6754. <td>string</td>
  6755. <td>true</td>
  6756. <td>the user who 'posted' the comment</td>
  6757. </tr>
  6758. <tr>
  6759. <td>» comment</td>
  6760. <td>body</td>
  6761. <td>string</td>
  6762. <td>true</td>
  6763. <td>the comment value</td>
  6764. </tr>
  6765. </tbody>
  6766. </table>
  6767. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6768. <p><strong>board</strong>: the board ID of the card</p>
  6769. <p><strong>card</strong>: the ID of the card</p>
  6770. <blockquote>
  6771. <p>Example responses</p>
  6772. </blockquote>
  6773. <blockquote>
  6774. <p>200 Response</p>
  6775. </blockquote>
  6776. <pre class="highlight tab tab-json"><code>{
  6777. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6778. }
  6779. </code></pre>
  6780. <h3 id="new_comment-responses">Responses</h3>
  6781. <table>
  6782. <thead>
  6783. <tr>
  6784. <th>Status</th>
  6785. <th>Meaning</th>
  6786. <th>Description</th>
  6787. <th>Schema</th>
  6788. </tr>
  6789. </thead>
  6790. <tbody>
  6791. <tr>
  6792. <td>200</td>
  6793. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6794. <td>200 response</td>
  6795. <td>Inline</td>
  6796. </tr>
  6797. </tbody>
  6798. </table>
  6799. <h3 id="new_comment-responseschema">Response Schema</h3>
  6800. <p>Status Code <strong>200</strong></p>
  6801. <table>
  6802. <thead>
  6803. <tr>
  6804. <th>Name</th>
  6805. <th>Type</th>
  6806. <th>Required</th>
  6807. <th>Restrictions</th>
  6808. <th>Description</th>
  6809. </tr>
  6810. </thead>
  6811. <tbody>
  6812. <tr>
  6813. <td>» _id</td>
  6814. <td>string</td>
  6815. <td>false</td>
  6816. <td>none</td>
  6817. <td>none</td>
  6818. </tr>
  6819. </tbody>
  6820. </table>
  6821. <aside class="warning">
  6822. To perform this operation, you must be authenticated by means of one of the following methods:
  6823. UserSecurity
  6824. </aside>
  6825. <h2 id="get_comment">get_comment</h2>
  6826. <p><a id="opIdget_comment"></a></p>
  6827. <blockquote>
  6828. <p>Code samples</p>
  6829. </blockquote>
  6830. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6831. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6832. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6833. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6834. </code></pre>
  6835. <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>
  6836. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6837. </span></code></pre>
  6838. <pre class="highlight tab tab-javascript"><code>
  6839. <span class="hljs-keyword">const</span> headers = {
  6840. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6841. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6842. };
  6843. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6844. {
  6845. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6846. <span class="hljs-attr">headers</span>: headers
  6847. })
  6848. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6849. <span class="hljs-keyword">return</span> res.json();
  6850. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6851. <span class="hljs-built_in">console</span>.log(body);
  6852. });
  6853. </code></pre>
  6854. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6855. <span class="hljs-keyword">const</span> headers = {
  6856. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6857. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6858. };
  6859. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6860. {
  6861. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6862. <span class="hljs-attr">headers</span>: headers
  6863. })
  6864. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6865. <span class="hljs-keyword">return</span> res.json();
  6866. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6867. <span class="hljs-built_in">console</span>.log(body);
  6868. });
  6869. </code></pre>
  6870. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6871. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6872. headers = {
  6873. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6874. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6875. }
  6876. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6877. <span class="hljs-symbol">params:</span> {
  6878. }, <span class="hljs-symbol">headers:</span> headers
  6879. p JSON.parse(result)
  6880. </code></pre>
  6881. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6882. headers = {
  6883. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6884. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6885. }
  6886. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6887. <span class="hljs-built_in">print</span>(r.json())
  6888. </code></pre>
  6889. <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>);
  6890. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6891. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6892. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6893. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6894. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6895. String inputLine;
  6896. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6897. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6898. response.append(inputLine);
  6899. }
  6900. in.close();
  6901. System.out.println(response.toString());
  6902. </code></pre>
  6903. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6904. <span class="hljs-keyword">import</span> (
  6905. <span class="hljs-string">&quot;bytes&quot;</span>
  6906. <span class="hljs-string">&quot;net/http&quot;</span>
  6907. )
  6908. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6909. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6910. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6911. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6912. }
  6913. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6914. 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)
  6915. req.Header = headers
  6916. client := &amp;http.Client{}
  6917. resp, err := client.Do(req)
  6918. <span class="hljs-comment">// ...</span>
  6919. }
  6920. </code></pre>
  6921. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6922. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6923. );
  6924. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6925. <span class="hljs-comment">// Define array of request body.</span>
  6926. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6927. <span class="hljs-keyword">try</span> {
  6928. <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>(
  6929. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6930. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6931. )
  6932. );
  6933. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6934. }
  6935. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6936. <span class="hljs-comment">// handle exception or api errors.</span>
  6937. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6938. }
  6939. <span class="hljs-comment">// ...</span>
  6940. </code></pre>
  6941. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6942. <p><em>Get a comment on a card</em></p>
  6943. <h3 id="get_comment-parameters">Parameters</h3>
  6944. <table>
  6945. <thead>
  6946. <tr>
  6947. <th>Name</th>
  6948. <th>In</th>
  6949. <th>Type</th>
  6950. <th>Required</th>
  6951. <th>Description</th>
  6952. </tr>
  6953. </thead>
  6954. <tbody>
  6955. <tr>
  6956. <td>board</td>
  6957. <td>path</td>
  6958. <td>string</td>
  6959. <td>true</td>
  6960. <td>the board ID of the card</td>
  6961. </tr>
  6962. <tr>
  6963. <td>card</td>
  6964. <td>path</td>
  6965. <td>string</td>
  6966. <td>true</td>
  6967. <td>the ID of the card</td>
  6968. </tr>
  6969. <tr>
  6970. <td>comment</td>
  6971. <td>path</td>
  6972. <td>string</td>
  6973. <td>true</td>
  6974. <td>the ID of the comment to retrieve</td>
  6975. </tr>
  6976. </tbody>
  6977. </table>
  6978. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6979. <p><strong>board</strong>: the board ID of the card</p>
  6980. <p><strong>card</strong>: the ID of the card</p>
  6981. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6982. <blockquote>
  6983. <p>Example responses</p>
  6984. </blockquote>
  6985. <blockquote>
  6986. <p>200 Response</p>
  6987. </blockquote>
  6988. <pre class="highlight tab tab-json"><code>{
  6989. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6990. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6991. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6992. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6993. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6994. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6995. }
  6996. </code></pre>
  6997. <h3 id="get_comment-responses">Responses</h3>
  6998. <table>
  6999. <thead>
  7000. <tr>
  7001. <th>Status</th>
  7002. <th>Meaning</th>
  7003. <th>Description</th>
  7004. <th>Schema</th>
  7005. </tr>
  7006. </thead>
  7007. <tbody>
  7008. <tr>
  7009. <td>200</td>
  7010. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7011. <td>200 response</td>
  7012. <td><a href="#schemacardcomments">CardComments</a></td>
  7013. </tr>
  7014. </tbody>
  7015. </table>
  7016. <aside class="warning">
  7017. To perform this operation, you must be authenticated by means of one of the following methods:
  7018. UserSecurity
  7019. </aside>
  7020. <h2 id="delete_comment">delete_comment</h2>
  7021. <p><a id="opIddelete_comment"></a></p>
  7022. <blockquote>
  7023. <p>Code samples</p>
  7024. </blockquote>
  7025. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7026. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  7027. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7028. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7029. </code></pre>
  7030. <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>
  7031. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7032. </span></code></pre>
  7033. <pre class="highlight tab tab-javascript"><code>
  7034. <span class="hljs-keyword">const</span> headers = {
  7035. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7036. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7037. };
  7038. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7039. {
  7040. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  7041. <span class="hljs-attr">headers</span>: headers
  7042. })
  7043. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7044. <span class="hljs-keyword">return</span> res.json();
  7045. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7046. <span class="hljs-built_in">console</span>.log(body);
  7047. });
  7048. </code></pre>
  7049. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7050. <span class="hljs-keyword">const</span> headers = {
  7051. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7052. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7053. };
  7054. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7055. {
  7056. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  7057. <span class="hljs-attr">headers</span>: headers
  7058. })
  7059. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7060. <span class="hljs-keyword">return</span> res.json();
  7061. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7062. <span class="hljs-built_in">console</span>.log(body);
  7063. });
  7064. </code></pre>
  7065. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7066. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7067. headers = {
  7068. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7069. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7070. }
  7071. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7072. <span class="hljs-symbol">params:</span> {
  7073. }, <span class="hljs-symbol">headers:</span> headers
  7074. p JSON.parse(result)
  7075. </code></pre>
  7076. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7077. headers = {
  7078. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7079. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7080. }
  7081. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  7082. <span class="hljs-built_in">print</span>(r.json())
  7083. </code></pre>
  7084. <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>);
  7085. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7086. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  7087. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7088. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7089. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7090. String inputLine;
  7091. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7092. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7093. response.append(inputLine);
  7094. }
  7095. in.close();
  7096. System.out.println(response.toString());
  7097. </code></pre>
  7098. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7099. <span class="hljs-keyword">import</span> (
  7100. <span class="hljs-string">&quot;bytes&quot;</span>
  7101. <span class="hljs-string">&quot;net/http&quot;</span>
  7102. )
  7103. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7104. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7105. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7106. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7107. }
  7108. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7109. 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)
  7110. req.Header = headers
  7111. client := &amp;http.Client{}
  7112. resp, err := client.Do(req)
  7113. <span class="hljs-comment">// ...</span>
  7114. }
  7115. </code></pre>
  7116. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7117. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7118. );
  7119. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7120. <span class="hljs-comment">// Define array of request body.</span>
  7121. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7122. <span class="hljs-keyword">try</span> {
  7123. <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>(
  7124. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7125. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7126. )
  7127. );
  7128. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7129. }
  7130. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7131. <span class="hljs-comment">// handle exception or api errors.</span>
  7132. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7133. }
  7134. <span class="hljs-comment">// ...</span>
  7135. </code></pre>
  7136. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  7137. <p><em>Delete a comment on a card</em></p>
  7138. <h3 id="delete_comment-parameters">Parameters</h3>
  7139. <table>
  7140. <thead>
  7141. <tr>
  7142. <th>Name</th>
  7143. <th>In</th>
  7144. <th>Type</th>
  7145. <th>Required</th>
  7146. <th>Description</th>
  7147. </tr>
  7148. </thead>
  7149. <tbody>
  7150. <tr>
  7151. <td>board</td>
  7152. <td>path</td>
  7153. <td>string</td>
  7154. <td>true</td>
  7155. <td>the board ID of the card</td>
  7156. </tr>
  7157. <tr>
  7158. <td>card</td>
  7159. <td>path</td>
  7160. <td>string</td>
  7161. <td>true</td>
  7162. <td>the ID of the card</td>
  7163. </tr>
  7164. <tr>
  7165. <td>comment</td>
  7166. <td>path</td>
  7167. <td>string</td>
  7168. <td>true</td>
  7169. <td>the ID of the comment to delete</td>
  7170. </tr>
  7171. </tbody>
  7172. </table>
  7173. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7174. <p><strong>board</strong>: the board ID of the card</p>
  7175. <p><strong>card</strong>: the ID of the card</p>
  7176. <p><strong>comment</strong>: the ID of the comment to delete</p>
  7177. <blockquote>
  7178. <p>Example responses</p>
  7179. </blockquote>
  7180. <blockquote>
  7181. <p>200 Response</p>
  7182. </blockquote>
  7183. <pre class="highlight tab tab-json"><code>{
  7184. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7185. }
  7186. </code></pre>
  7187. <h3 id="delete_comment-responses">Responses</h3>
  7188. <table>
  7189. <thead>
  7190. <tr>
  7191. <th>Status</th>
  7192. <th>Meaning</th>
  7193. <th>Description</th>
  7194. <th>Schema</th>
  7195. </tr>
  7196. </thead>
  7197. <tbody>
  7198. <tr>
  7199. <td>200</td>
  7200. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7201. <td>200 response</td>
  7202. <td>Inline</td>
  7203. </tr>
  7204. </tbody>
  7205. </table>
  7206. <h3 id="delete_comment-responseschema">Response Schema</h3>
  7207. <p>Status Code <strong>200</strong></p>
  7208. <table>
  7209. <thead>
  7210. <tr>
  7211. <th>Name</th>
  7212. <th>Type</th>
  7213. <th>Required</th>
  7214. <th>Restrictions</th>
  7215. <th>Description</th>
  7216. </tr>
  7217. </thead>
  7218. <tbody>
  7219. <tr>
  7220. <td>» _id</td>
  7221. <td>string</td>
  7222. <td>false</td>
  7223. <td>none</td>
  7224. <td>none</td>
  7225. </tr>
  7226. </tbody>
  7227. </table>
  7228. <aside class="warning">
  7229. To perform this operation, you must be authenticated by means of one of the following methods:
  7230. UserSecurity
  7231. </aside>
  7232. <h1 id="wekan-rest-api-cards">Cards</h1>
  7233. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  7234. <p><a id="opIdget_cards_by_custom_field"></a></p>
  7235. <blockquote>
  7236. <p>Code samples</p>
  7237. </blockquote>
  7238. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7239. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  7240. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7241. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7242. </code></pre>
  7243. <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>
  7244. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7245. </span></code></pre>
  7246. <pre class="highlight tab tab-javascript"><code>
  7247. <span class="hljs-keyword">const</span> headers = {
  7248. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7249. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7250. };
  7251. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7252. {
  7253. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7254. <span class="hljs-attr">headers</span>: headers
  7255. })
  7256. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7257. <span class="hljs-keyword">return</span> res.json();
  7258. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7259. <span class="hljs-built_in">console</span>.log(body);
  7260. });
  7261. </code></pre>
  7262. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7263. <span class="hljs-keyword">const</span> headers = {
  7264. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7265. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7266. };
  7267. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7268. {
  7269. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7270. <span class="hljs-attr">headers</span>: headers
  7271. })
  7272. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7273. <span class="hljs-keyword">return</span> res.json();
  7274. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7275. <span class="hljs-built_in">console</span>.log(body);
  7276. });
  7277. </code></pre>
  7278. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7279. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7280. headers = {
  7281. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7282. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7283. }
  7284. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7285. <span class="hljs-symbol">params:</span> {
  7286. }, <span class="hljs-symbol">headers:</span> headers
  7287. p JSON.parse(result)
  7288. </code></pre>
  7289. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7290. headers = {
  7291. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7292. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7293. }
  7294. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7295. <span class="hljs-built_in">print</span>(r.json())
  7296. </code></pre>
  7297. <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>);
  7298. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7299. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7300. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7301. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7302. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7303. String inputLine;
  7304. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7305. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7306. response.append(inputLine);
  7307. }
  7308. in.close();
  7309. System.out.println(response.toString());
  7310. </code></pre>
  7311. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7312. <span class="hljs-keyword">import</span> (
  7313. <span class="hljs-string">&quot;bytes&quot;</span>
  7314. <span class="hljs-string">&quot;net/http&quot;</span>
  7315. )
  7316. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7317. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7318. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7319. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7320. }
  7321. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7322. 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)
  7323. req.Header = headers
  7324. client := &amp;http.Client{}
  7325. resp, err := client.Do(req)
  7326. <span class="hljs-comment">// ...</span>
  7327. }
  7328. </code></pre>
  7329. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7330. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7331. );
  7332. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7333. <span class="hljs-comment">// Define array of request body.</span>
  7334. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7335. <span class="hljs-keyword">try</span> {
  7336. <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>(
  7337. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7338. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7339. )
  7340. );
  7341. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7342. }
  7343. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7344. <span class="hljs-comment">// handle exception or api errors.</span>
  7345. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7346. }
  7347. <span class="hljs-comment">// ...</span>
  7348. </code></pre>
  7349. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7350. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7351. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7352. <table>
  7353. <thead>
  7354. <tr>
  7355. <th>Name</th>
  7356. <th>In</th>
  7357. <th>Type</th>
  7358. <th>Required</th>
  7359. <th>Description</th>
  7360. </tr>
  7361. </thead>
  7362. <tbody>
  7363. <tr>
  7364. <td>board</td>
  7365. <td>path</td>
  7366. <td>string</td>
  7367. <td>true</td>
  7368. <td>the board ID</td>
  7369. </tr>
  7370. <tr>
  7371. <td>customField</td>
  7372. <td>path</td>
  7373. <td>string</td>
  7374. <td>true</td>
  7375. <td>the list ID</td>
  7376. </tr>
  7377. <tr>
  7378. <td>customFieldValue</td>
  7379. <td>path</td>
  7380. <td>string</td>
  7381. <td>true</td>
  7382. <td>the value to look for</td>
  7383. </tr>
  7384. </tbody>
  7385. </table>
  7386. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7387. <p><strong>board</strong>: the board ID</p>
  7388. <p><strong>customField</strong>: the list ID</p>
  7389. <p><strong>customFieldValue</strong>: the value to look for</p>
  7390. <blockquote>
  7391. <p>Example responses</p>
  7392. </blockquote>
  7393. <blockquote>
  7394. <p>200 Response</p>
  7395. </blockquote>
  7396. <pre class="highlight tab tab-json"><code>[
  7397. {
  7398. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7399. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7400. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7401. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7402. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7403. }
  7404. ]
  7405. </code></pre>
  7406. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7407. <table>
  7408. <thead>
  7409. <tr>
  7410. <th>Status</th>
  7411. <th>Meaning</th>
  7412. <th>Description</th>
  7413. <th>Schema</th>
  7414. </tr>
  7415. </thead>
  7416. <tbody>
  7417. <tr>
  7418. <td>200</td>
  7419. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7420. <td>200 response</td>
  7421. <td>Inline</td>
  7422. </tr>
  7423. </tbody>
  7424. </table>
  7425. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7426. <p>Status Code <strong>200</strong></p>
  7427. <table>
  7428. <thead>
  7429. <tr>
  7430. <th>Name</th>
  7431. <th>Type</th>
  7432. <th>Required</th>
  7433. <th>Restrictions</th>
  7434. <th>Description</th>
  7435. </tr>
  7436. </thead>
  7437. <tbody>
  7438. <tr>
  7439. <td>» _id</td>
  7440. <td>string</td>
  7441. <td>false</td>
  7442. <td>none</td>
  7443. <td>none</td>
  7444. </tr>
  7445. <tr>
  7446. <td>» title</td>
  7447. <td>string</td>
  7448. <td>false</td>
  7449. <td>none</td>
  7450. <td>none</td>
  7451. </tr>
  7452. <tr>
  7453. <td>» description</td>
  7454. <td>string</td>
  7455. <td>false</td>
  7456. <td>none</td>
  7457. <td>none</td>
  7458. </tr>
  7459. <tr>
  7460. <td>» listId</td>
  7461. <td>string</td>
  7462. <td>false</td>
  7463. <td>none</td>
  7464. <td>none</td>
  7465. </tr>
  7466. <tr>
  7467. <td>» swinlaneId</td>
  7468. <td>string</td>
  7469. <td>false</td>
  7470. <td>none</td>
  7471. <td>none</td>
  7472. </tr>
  7473. </tbody>
  7474. </table>
  7475. <aside class="warning">
  7476. To perform this operation, you must be authenticated by means of one of the following methods:
  7477. UserSecurity
  7478. </aside>
  7479. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7480. <p><a id="opIdget_board_cards_count"></a></p>
  7481. <blockquote>
  7482. <p>Code samples</p>
  7483. </blockquote>
  7484. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7485. curl -X GET /api/boards/{board}/cards_count \
  7486. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7487. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7488. </code></pre>
  7489. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  7490. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7491. </span></code></pre>
  7492. <pre class="highlight tab tab-javascript"><code>
  7493. <span class="hljs-keyword">const</span> headers = {
  7494. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7495. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7496. };
  7497. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7498. {
  7499. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7500. <span class="hljs-attr">headers</span>: headers
  7501. })
  7502. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7503. <span class="hljs-keyword">return</span> res.json();
  7504. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7505. <span class="hljs-built_in">console</span>.log(body);
  7506. });
  7507. </code></pre>
  7508. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7509. <span class="hljs-keyword">const</span> headers = {
  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. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7514. {
  7515. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7516. <span class="hljs-attr">headers</span>: headers
  7517. })
  7518. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7519. <span class="hljs-keyword">return</span> res.json();
  7520. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7521. <span class="hljs-built_in">console</span>.log(body);
  7522. });
  7523. </code></pre>
  7524. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7525. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7526. headers = {
  7527. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7528. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7529. }
  7530. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7531. <span class="hljs-symbol">params:</span> {
  7532. }, <span class="hljs-symbol">headers:</span> headers
  7533. p JSON.parse(result)
  7534. </code></pre>
  7535. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7536. headers = {
  7537. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7538. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7539. }
  7540. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, headers = headers)
  7541. <span class="hljs-built_in">print</span>(r.json())
  7542. </code></pre>
  7543. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>);
  7544. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7545. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7546. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7547. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7548. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7549. String inputLine;
  7550. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7551. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7552. response.append(inputLine);
  7553. }
  7554. in.close();
  7555. System.out.println(response.toString());
  7556. </code></pre>
  7557. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7558. <span class="hljs-keyword">import</span> (
  7559. <span class="hljs-string">&quot;bytes&quot;</span>
  7560. <span class="hljs-string">&quot;net/http&quot;</span>
  7561. )
  7562. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7563. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7564. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7565. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7566. }
  7567. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7568. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>, data)
  7569. req.Header = headers
  7570. client := &amp;http.Client{}
  7571. resp, err := client.Do(req)
  7572. <span class="hljs-comment">// ...</span>
  7573. }
  7574. </code></pre>
  7575. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7576. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7577. );
  7578. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7579. <span class="hljs-comment">// Define array of request body.</span>
  7580. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7581. <span class="hljs-keyword">try</span> {
  7582. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  7583. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7584. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7585. )
  7586. );
  7587. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7588. }
  7589. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7590. <span class="hljs-comment">// handle exception or api errors.</span>
  7591. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7592. }
  7593. <span class="hljs-comment">// ...</span>
  7594. </code></pre>
  7595. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7596. <p><em>Get a cards count to a board</em></p>
  7597. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7598. <table>
  7599. <thead>
  7600. <tr>
  7601. <th>Name</th>
  7602. <th>In</th>
  7603. <th>Type</th>
  7604. <th>Required</th>
  7605. <th>Description</th>
  7606. </tr>
  7607. </thead>
  7608. <tbody>
  7609. <tr>
  7610. <td>board</td>
  7611. <td>path</td>
  7612. <td>string</td>
  7613. <td>true</td>
  7614. <td>the board ID</td>
  7615. </tr>
  7616. </tbody>
  7617. </table>
  7618. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7619. <p><strong>board</strong>: the board ID</p>
  7620. <blockquote>
  7621. <p>Example responses</p>
  7622. </blockquote>
  7623. <blockquote>
  7624. <p>200 Response</p>
  7625. </blockquote>
  7626. <pre class="highlight tab tab-json"><code>{
  7627. <span class="hljs-attr">&quot;board_cards_count&quot;</span>: <span class="hljs-number">0</span>
  7628. }
  7629. </code></pre>
  7630. <h3 id="get_board_cards_count-responses">Responses</h3>
  7631. <table>
  7632. <thead>
  7633. <tr>
  7634. <th>Status</th>
  7635. <th>Meaning</th>
  7636. <th>Description</th>
  7637. <th>Schema</th>
  7638. </tr>
  7639. </thead>
  7640. <tbody>
  7641. <tr>
  7642. <td>200</td>
  7643. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7644. <td>200 response</td>
  7645. <td>Inline</td>
  7646. </tr>
  7647. </tbody>
  7648. </table>
  7649. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7650. <p>Status Code <strong>200</strong></p>
  7651. <table>
  7652. <thead>
  7653. <tr>
  7654. <th>Name</th>
  7655. <th>Type</th>
  7656. <th>Required</th>
  7657. <th>Restrictions</th>
  7658. <th>Description</th>
  7659. </tr>
  7660. </thead>
  7661. <tbody>
  7662. <tr>
  7663. <td>» board_cards_count</td>
  7664. <td>integer</td>
  7665. <td>false</td>
  7666. <td>none</td>
  7667. <td>none</td>
  7668. </tr>
  7669. </tbody>
  7670. </table>
  7671. <aside class="warning">
  7672. To perform this operation, you must be authenticated by means of one of the following methods:
  7673. UserSecurity
  7674. </aside>
  7675. <h2 id="get_all_cards">get_all_cards</h2>
  7676. <p><a id="opIdget_all_cards"></a></p>
  7677. <blockquote>
  7678. <p>Code samples</p>
  7679. </blockquote>
  7680. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7681. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7682. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7683. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7684. </code></pre>
  7685. <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>
  7686. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7687. </span></code></pre>
  7688. <pre class="highlight tab tab-javascript"><code>
  7689. <span class="hljs-keyword">const</span> headers = {
  7690. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7691. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7692. };
  7693. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7694. {
  7695. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7696. <span class="hljs-attr">headers</span>: headers
  7697. })
  7698. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7699. <span class="hljs-keyword">return</span> res.json();
  7700. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7701. <span class="hljs-built_in">console</span>.log(body);
  7702. });
  7703. </code></pre>
  7704. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7705. <span class="hljs-keyword">const</span> headers = {
  7706. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7707. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7708. };
  7709. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7710. {
  7711. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7712. <span class="hljs-attr">headers</span>: headers
  7713. })
  7714. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7715. <span class="hljs-keyword">return</span> res.json();
  7716. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7717. <span class="hljs-built_in">console</span>.log(body);
  7718. });
  7719. </code></pre>
  7720. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7721. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7722. headers = {
  7723. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7724. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7725. }
  7726. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7727. <span class="hljs-symbol">params:</span> {
  7728. }, <span class="hljs-symbol">headers:</span> headers
  7729. p JSON.parse(result)
  7730. </code></pre>
  7731. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7732. headers = {
  7733. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7734. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7735. }
  7736. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7737. <span class="hljs-built_in">print</span>(r.json())
  7738. </code></pre>
  7739. <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>);
  7740. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7741. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7742. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7743. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7744. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7745. String inputLine;
  7746. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7747. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7748. response.append(inputLine);
  7749. }
  7750. in.close();
  7751. System.out.println(response.toString());
  7752. </code></pre>
  7753. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7754. <span class="hljs-keyword">import</span> (
  7755. <span class="hljs-string">&quot;bytes&quot;</span>
  7756. <span class="hljs-string">&quot;net/http&quot;</span>
  7757. )
  7758. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7759. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7760. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7761. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7762. }
  7763. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7764. 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)
  7765. req.Header = headers
  7766. client := &amp;http.Client{}
  7767. resp, err := client.Do(req)
  7768. <span class="hljs-comment">// ...</span>
  7769. }
  7770. </code></pre>
  7771. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7772. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7773. );
  7774. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7775. <span class="hljs-comment">// Define array of request body.</span>
  7776. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7777. <span class="hljs-keyword">try</span> {
  7778. <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>(
  7779. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7780. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7781. )
  7782. );
  7783. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7784. }
  7785. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7786. <span class="hljs-comment">// handle exception or api errors.</span>
  7787. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7788. }
  7789. <span class="hljs-comment">// ...</span>
  7790. </code></pre>
  7791. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7792. <p><em>Get all Cards attached to a List</em></p>
  7793. <h3 id="get_all_cards-parameters">Parameters</h3>
  7794. <table>
  7795. <thead>
  7796. <tr>
  7797. <th>Name</th>
  7798. <th>In</th>
  7799. <th>Type</th>
  7800. <th>Required</th>
  7801. <th>Description</th>
  7802. </tr>
  7803. </thead>
  7804. <tbody>
  7805. <tr>
  7806. <td>board</td>
  7807. <td>path</td>
  7808. <td>string</td>
  7809. <td>true</td>
  7810. <td>the board ID</td>
  7811. </tr>
  7812. <tr>
  7813. <td>list</td>
  7814. <td>path</td>
  7815. <td>string</td>
  7816. <td>true</td>
  7817. <td>the list ID</td>
  7818. </tr>
  7819. </tbody>
  7820. </table>
  7821. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7822. <p><strong>board</strong>: the board ID</p>
  7823. <p><strong>list</strong>: the list ID</p>
  7824. <blockquote>
  7825. <p>Example responses</p>
  7826. </blockquote>
  7827. <blockquote>
  7828. <p>200 Response</p>
  7829. </blockquote>
  7830. <pre class="highlight tab tab-json"><code>[
  7831. {
  7832. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7833. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7834. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7835. }
  7836. ]
  7837. </code></pre>
  7838. <h3 id="get_all_cards-responses">Responses</h3>
  7839. <table>
  7840. <thead>
  7841. <tr>
  7842. <th>Status</th>
  7843. <th>Meaning</th>
  7844. <th>Description</th>
  7845. <th>Schema</th>
  7846. </tr>
  7847. </thead>
  7848. <tbody>
  7849. <tr>
  7850. <td>200</td>
  7851. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7852. <td>200 response</td>
  7853. <td>Inline</td>
  7854. </tr>
  7855. </tbody>
  7856. </table>
  7857. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7858. <p>Status Code <strong>200</strong></p>
  7859. <table>
  7860. <thead>
  7861. <tr>
  7862. <th>Name</th>
  7863. <th>Type</th>
  7864. <th>Required</th>
  7865. <th>Restrictions</th>
  7866. <th>Description</th>
  7867. </tr>
  7868. </thead>
  7869. <tbody>
  7870. <tr>
  7871. <td>» _id</td>
  7872. <td>string</td>
  7873. <td>false</td>
  7874. <td>none</td>
  7875. <td>none</td>
  7876. </tr>
  7877. <tr>
  7878. <td>» title</td>
  7879. <td>string</td>
  7880. <td>false</td>
  7881. <td>none</td>
  7882. <td>none</td>
  7883. </tr>
  7884. <tr>
  7885. <td>» description</td>
  7886. <td>string</td>
  7887. <td>false</td>
  7888. <td>none</td>
  7889. <td>none</td>
  7890. </tr>
  7891. </tbody>
  7892. </table>
  7893. <aside class="warning">
  7894. To perform this operation, you must be authenticated by means of one of the following methods:
  7895. UserSecurity
  7896. </aside>
  7897. <h2 id="new_card">new_card</h2>
  7898. <p><a id="opIdnew_card"></a></p>
  7899. <blockquote>
  7900. <p>Code samples</p>
  7901. </blockquote>
  7902. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7903. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7904. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7905. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7906. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7907. </code></pre>
  7908. <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>
  7909. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7910. Accept: application/json
  7911. </span></code></pre>
  7912. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7913. &quot;authorId&quot;: &quot;string&quot;,
  7914. &quot;members&quot;: &quot;string&quot;,
  7915. &quot;assignees&quot;: &quot;string&quot;,
  7916. &quot;title&quot;: &quot;string&quot;,
  7917. &quot;description&quot;: &quot;string&quot;,
  7918. &quot;swimlaneId&quot;: &quot;string&quot;
  7919. }&#x27;</span>;
  7920. <span class="hljs-keyword">const</span> headers = {
  7921. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7922. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7923. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7924. };
  7925. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7926. {
  7927. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7928. <span class="hljs-attr">body</span>: inputBody,
  7929. <span class="hljs-attr">headers</span>: headers
  7930. })
  7931. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7932. <span class="hljs-keyword">return</span> res.json();
  7933. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7934. <span class="hljs-built_in">console</span>.log(body);
  7935. });
  7936. </code></pre>
  7937. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7938. <span class="hljs-keyword">const</span> inputBody = {
  7939. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7940. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7941. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7942. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7943. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7944. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7945. };
  7946. <span class="hljs-keyword">const</span> headers = {
  7947. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7948. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7949. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7950. };
  7951. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7952. {
  7953. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7954. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7955. <span class="hljs-attr">headers</span>: headers
  7956. })
  7957. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7958. <span class="hljs-keyword">return</span> res.json();
  7959. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7960. <span class="hljs-built_in">console</span>.log(body);
  7961. });
  7962. </code></pre>
  7963. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7964. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7965. headers = {
  7966. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7967. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7968. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7969. }
  7970. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7971. <span class="hljs-symbol">params:</span> {
  7972. }, <span class="hljs-symbol">headers:</span> headers
  7973. p JSON.parse(result)
  7974. </code></pre>
  7975. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7976. headers = {
  7977. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7978. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7979. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7980. }
  7981. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7982. <span class="hljs-built_in">print</span>(r.json())
  7983. </code></pre>
  7984. <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>);
  7985. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7986. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7987. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7988. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7989. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7990. String inputLine;
  7991. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7992. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7993. response.append(inputLine);
  7994. }
  7995. in.close();
  7996. System.out.println(response.toString());
  7997. </code></pre>
  7998. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7999. <span class="hljs-keyword">import</span> (
  8000. <span class="hljs-string">&quot;bytes&quot;</span>
  8001. <span class="hljs-string">&quot;net/http&quot;</span>
  8002. )
  8003. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8004. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8005. <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>},
  8006. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8007. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8008. }
  8009. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8010. 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)
  8011. req.Header = headers
  8012. client := &amp;http.Client{}
  8013. resp, err := client.Do(req)
  8014. <span class="hljs-comment">// ...</span>
  8015. }
  8016. </code></pre>
  8017. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8018. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8019. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8020. );
  8021. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8022. <span class="hljs-comment">// Define array of request body.</span>
  8023. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8024. <span class="hljs-keyword">try</span> {
  8025. <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>(
  8026. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8027. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8028. )
  8029. );
  8030. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8031. }
  8032. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8033. <span class="hljs-comment">// handle exception or api errors.</span>
  8034. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8035. }
  8036. <span class="hljs-comment">// ...</span>
  8037. </code></pre>
  8038. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  8039. <p><em>Create a new Card</em></p>
  8040. <blockquote>
  8041. <p>Body parameter</p>
  8042. </blockquote>
  8043. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8044. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8045. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8046. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8047. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8048. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8049. </code></pre>
  8050. <h3 id="new_card-parameters">Parameters</h3>
  8051. <table>
  8052. <thead>
  8053. <tr>
  8054. <th>Name</th>
  8055. <th>In</th>
  8056. <th>Type</th>
  8057. <th>Required</th>
  8058. <th>Description</th>
  8059. </tr>
  8060. </thead>
  8061. <tbody>
  8062. <tr>
  8063. <td>board</td>
  8064. <td>path</td>
  8065. <td>string</td>
  8066. <td>true</td>
  8067. <td>the board ID of the new card</td>
  8068. </tr>
  8069. <tr>
  8070. <td>list</td>
  8071. <td>path</td>
  8072. <td>string</td>
  8073. <td>true</td>
  8074. <td>the list ID of the new card</td>
  8075. </tr>
  8076. <tr>
  8077. <td>body</td>
  8078. <td>body</td>
  8079. <td>object</td>
  8080. <td>true</td>
  8081. <td>none</td>
  8082. </tr>
  8083. <tr>
  8084. <td>» authorId</td>
  8085. <td>body</td>
  8086. <td>string</td>
  8087. <td>true</td>
  8088. <td>the authorId value</td>
  8089. </tr>
  8090. <tr>
  8091. <td>» members</td>
  8092. <td>body</td>
  8093. <td>string</td>
  8094. <td>false</td>
  8095. <td>the member IDs list of the new card</td>
  8096. </tr>
  8097. <tr>
  8098. <td>» assignees</td>
  8099. <td>body</td>
  8100. <td>string</td>
  8101. <td>false</td>
  8102. <td>the array of maximum one ID of assignee of the new card</td>
  8103. </tr>
  8104. <tr>
  8105. <td>» title</td>
  8106. <td>body</td>
  8107. <td>string</td>
  8108. <td>true</td>
  8109. <td>the title of the new card</td>
  8110. </tr>
  8111. <tr>
  8112. <td>» description</td>
  8113. <td>body</td>
  8114. <td>string</td>
  8115. <td>true</td>
  8116. <td>the description of the new card</td>
  8117. </tr>
  8118. <tr>
  8119. <td>» swimlaneId</td>
  8120. <td>body</td>
  8121. <td>string</td>
  8122. <td>true</td>
  8123. <td>the swimlane ID of the new card</td>
  8124. </tr>
  8125. </tbody>
  8126. </table>
  8127. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8128. <p><strong>board</strong>: the board ID of the new card</p>
  8129. <p><strong>list</strong>: the list ID of the new card</p>
  8130. <blockquote>
  8131. <p>Example responses</p>
  8132. </blockquote>
  8133. <blockquote>
  8134. <p>200 Response</p>
  8135. </blockquote>
  8136. <pre class="highlight tab tab-json"><code>{
  8137. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8138. }
  8139. </code></pre>
  8140. <h3 id="new_card-responses">Responses</h3>
  8141. <table>
  8142. <thead>
  8143. <tr>
  8144. <th>Status</th>
  8145. <th>Meaning</th>
  8146. <th>Description</th>
  8147. <th>Schema</th>
  8148. </tr>
  8149. </thead>
  8150. <tbody>
  8151. <tr>
  8152. <td>200</td>
  8153. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8154. <td>200 response</td>
  8155. <td>Inline</td>
  8156. </tr>
  8157. </tbody>
  8158. </table>
  8159. <h3 id="new_card-responseschema">Response Schema</h3>
  8160. <p>Status Code <strong>200</strong></p>
  8161. <table>
  8162. <thead>
  8163. <tr>
  8164. <th>Name</th>
  8165. <th>Type</th>
  8166. <th>Required</th>
  8167. <th>Restrictions</th>
  8168. <th>Description</th>
  8169. </tr>
  8170. </thead>
  8171. <tbody>
  8172. <tr>
  8173. <td>» _id</td>
  8174. <td>string</td>
  8175. <td>false</td>
  8176. <td>none</td>
  8177. <td>none</td>
  8178. </tr>
  8179. </tbody>
  8180. </table>
  8181. <aside class="warning">
  8182. To perform this operation, you must be authenticated by means of one of the following methods:
  8183. UserSecurity
  8184. </aside>
  8185. <h2 id="get_card">get_card</h2>
  8186. <p><a id="opIdget_card"></a></p>
  8187. <blockquote>
  8188. <p>Code samples</p>
  8189. </blockquote>
  8190. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8191. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  8192. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8193. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8194. </code></pre>
  8195. <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>
  8196. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8197. </span></code></pre>
  8198. <pre class="highlight tab tab-javascript"><code>
  8199. <span class="hljs-keyword">const</span> headers = {
  8200. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8201. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8202. };
  8203. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8204. {
  8205. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8206. <span class="hljs-attr">headers</span>: headers
  8207. })
  8208. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8209. <span class="hljs-keyword">return</span> res.json();
  8210. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8211. <span class="hljs-built_in">console</span>.log(body);
  8212. });
  8213. </code></pre>
  8214. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8215. <span class="hljs-keyword">const</span> headers = {
  8216. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8217. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8218. };
  8219. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8220. {
  8221. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8222. <span class="hljs-attr">headers</span>: headers
  8223. })
  8224. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8225. <span class="hljs-keyword">return</span> res.json();
  8226. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8227. <span class="hljs-built_in">console</span>.log(body);
  8228. });
  8229. </code></pre>
  8230. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8231. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8232. headers = {
  8233. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8234. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8235. }
  8236. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8237. <span class="hljs-symbol">params:</span> {
  8238. }, <span class="hljs-symbol">headers:</span> headers
  8239. p JSON.parse(result)
  8240. </code></pre>
  8241. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8242. headers = {
  8243. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8244. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8245. }
  8246. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8247. <span class="hljs-built_in">print</span>(r.json())
  8248. </code></pre>
  8249. <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>);
  8250. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8251. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8252. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8253. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8254. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8255. String inputLine;
  8256. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8257. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8258. response.append(inputLine);
  8259. }
  8260. in.close();
  8261. System.out.println(response.toString());
  8262. </code></pre>
  8263. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8264. <span class="hljs-keyword">import</span> (
  8265. <span class="hljs-string">&quot;bytes&quot;</span>
  8266. <span class="hljs-string">&quot;net/http&quot;</span>
  8267. )
  8268. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8269. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8270. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8271. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8272. }
  8273. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8274. 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)
  8275. req.Header = headers
  8276. client := &amp;http.Client{}
  8277. resp, err := client.Do(req)
  8278. <span class="hljs-comment">// ...</span>
  8279. }
  8280. </code></pre>
  8281. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8282. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8283. );
  8284. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8285. <span class="hljs-comment">// Define array of request body.</span>
  8286. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8287. <span class="hljs-keyword">try</span> {
  8288. <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>(
  8289. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8290. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8291. )
  8292. );
  8293. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8294. }
  8295. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8296. <span class="hljs-comment">// handle exception or api errors.</span>
  8297. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8298. }
  8299. <span class="hljs-comment">// ...</span>
  8300. </code></pre>
  8301. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8302. <p><em>Get a Card</em></p>
  8303. <h3 id="get_card-parameters">Parameters</h3>
  8304. <table>
  8305. <thead>
  8306. <tr>
  8307. <th>Name</th>
  8308. <th>In</th>
  8309. <th>Type</th>
  8310. <th>Required</th>
  8311. <th>Description</th>
  8312. </tr>
  8313. </thead>
  8314. <tbody>
  8315. <tr>
  8316. <td>board</td>
  8317. <td>path</td>
  8318. <td>string</td>
  8319. <td>true</td>
  8320. <td>the board ID</td>
  8321. </tr>
  8322. <tr>
  8323. <td>list</td>
  8324. <td>path</td>
  8325. <td>string</td>
  8326. <td>true</td>
  8327. <td>the list ID of the card</td>
  8328. </tr>
  8329. <tr>
  8330. <td>card</td>
  8331. <td>path</td>
  8332. <td>string</td>
  8333. <td>true</td>
  8334. <td>the card ID</td>
  8335. </tr>
  8336. </tbody>
  8337. </table>
  8338. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8339. <p><strong>board</strong>: the board ID</p>
  8340. <p><strong>list</strong>: the list ID of the card</p>
  8341. <p><strong>card</strong>: the card ID</p>
  8342. <blockquote>
  8343. <p>Example responses</p>
  8344. </blockquote>
  8345. <blockquote>
  8346. <p>200 Response</p>
  8347. </blockquote>
  8348. <pre class="highlight tab tab-json"><code>{
  8349. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8350. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  8351. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8352. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8353. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8354. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8355. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8356. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8357. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  8358. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8359. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8360. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  8361. {}
  8362. ],
  8363. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8364. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8365. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8366. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8367. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  8368. <span class="hljs-string">&quot;string&quot;</span>
  8369. ],
  8370. <span class="hljs-attr">&quot;members&quot;</span>: [
  8371. <span class="hljs-string">&quot;string&quot;</span>
  8372. ],
  8373. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  8374. <span class="hljs-string">&quot;string&quot;</span>
  8375. ],
  8376. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8377. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8378. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8379. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8380. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  8381. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  8382. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8383. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  8384. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  8385. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8386. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8387. <span class="hljs-attr">&quot;vote&quot;</span>: {
  8388. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8389. <span class="hljs-attr">&quot;positive&quot;</span>: [
  8390. <span class="hljs-string">&quot;string&quot;</span>
  8391. ],
  8392. <span class="hljs-attr">&quot;negative&quot;</span>: [
  8393. <span class="hljs-string">&quot;string&quot;</span>
  8394. ],
  8395. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8396. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  8397. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  8398. },
  8399. <span class="hljs-attr">&quot;poker&quot;</span>: {
  8400. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  8401. <span class="hljs-attr">&quot;one&quot;</span>: [
  8402. <span class="hljs-string">&quot;string&quot;</span>
  8403. ],
  8404. <span class="hljs-attr">&quot;two&quot;</span>: [
  8405. <span class="hljs-string">&quot;string&quot;</span>
  8406. ],
  8407. <span class="hljs-attr">&quot;three&quot;</span>: [
  8408. <span class="hljs-string">&quot;string&quot;</span>
  8409. ],
  8410. <span class="hljs-attr">&quot;five&quot;</span>: [
  8411. <span class="hljs-string">&quot;string&quot;</span>
  8412. ],
  8413. <span class="hljs-attr">&quot;eight&quot;</span>: [
  8414. <span class="hljs-string">&quot;string&quot;</span>
  8415. ],
  8416. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  8417. <span class="hljs-string">&quot;string&quot;</span>
  8418. ],
  8419. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  8420. <span class="hljs-string">&quot;string&quot;</span>
  8421. ],
  8422. <span class="hljs-attr">&quot;forty&quot;</span>: [
  8423. <span class="hljs-string">&quot;string&quot;</span>
  8424. ],
  8425. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  8426. <span class="hljs-string">&quot;string&quot;</span>
  8427. ],
  8428. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  8429. <span class="hljs-string">&quot;string&quot;</span>
  8430. ],
  8431. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8432. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  8433. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  8434. },
  8435. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  8436. <span class="hljs-string">&quot;string&quot;</span>
  8437. ],
  8438. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  8439. <span class="hljs-number">0</span>
  8440. ],
  8441. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  8442. <span class="hljs-string">&quot;string&quot;</span>
  8443. ],
  8444. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  8445. }
  8446. </code></pre>
  8447. <h3 id="get_card-responses">Responses</h3>
  8448. <table>
  8449. <thead>
  8450. <tr>
  8451. <th>Status</th>
  8452. <th>Meaning</th>
  8453. <th>Description</th>
  8454. <th>Schema</th>
  8455. </tr>
  8456. </thead>
  8457. <tbody>
  8458. <tr>
  8459. <td>200</td>
  8460. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8461. <td>200 response</td>
  8462. <td><a href="#schemacards">Cards</a></td>
  8463. </tr>
  8464. </tbody>
  8465. </table>
  8466. <aside class="warning">
  8467. To perform this operation, you must be authenticated by means of one of the following methods:
  8468. UserSecurity
  8469. </aside>
  8470. <h2 id="edit_card">edit_card</h2>
  8471. <p><a id="opIdedit_card"></a></p>
  8472. <blockquote>
  8473. <p>Code samples</p>
  8474. </blockquote>
  8475. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8476. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8477. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8478. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8479. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8480. </code></pre>
  8481. <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>
  8482. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8483. Accept: application/json
  8484. </span></code></pre>
  8485. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8486. &quot;title&quot;: &quot;string&quot;,
  8487. &quot;sort&quot;: &quot;string&quot;,
  8488. &quot;parentId&quot;: &quot;string&quot;,
  8489. &quot;description&quot;: &quot;string&quot;,
  8490. &quot;color&quot;: &quot;string&quot;,
  8491. &quot;vote&quot;: {},
  8492. &quot;poker&quot;: {},
  8493. &quot;labelIds&quot;: &quot;string&quot;,
  8494. &quot;requestedBy&quot;: &quot;string&quot;,
  8495. &quot;assignedBy&quot;: &quot;string&quot;,
  8496. &quot;receivedAt&quot;: &quot;string&quot;,
  8497. &quot;startAt&quot;: &quot;string&quot;,
  8498. &quot;dueAt&quot;: &quot;string&quot;,
  8499. &quot;endAt&quot;: &quot;string&quot;,
  8500. &quot;spentTime&quot;: &quot;string&quot;,
  8501. &quot;isOverTime&quot;: true,
  8502. &quot;customFields&quot;: &quot;string&quot;,
  8503. &quot;members&quot;: &quot;string&quot;,
  8504. &quot;assignees&quot;: &quot;string&quot;,
  8505. &quot;swimlaneId&quot;: &quot;string&quot;,
  8506. &quot;listId&quot;: &quot;string&quot;,
  8507. &quot;authorId&quot;: &quot;string&quot;
  8508. }&#x27;</span>;
  8509. <span class="hljs-keyword">const</span> headers = {
  8510. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8511. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8512. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8513. };
  8514. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8515. {
  8516. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8517. <span class="hljs-attr">body</span>: inputBody,
  8518. <span class="hljs-attr">headers</span>: headers
  8519. })
  8520. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8521. <span class="hljs-keyword">return</span> res.json();
  8522. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8523. <span class="hljs-built_in">console</span>.log(body);
  8524. });
  8525. </code></pre>
  8526. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8527. <span class="hljs-keyword">const</span> inputBody = {
  8528. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8529. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8530. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8531. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8532. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8533. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8534. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8535. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8536. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8537. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8538. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8539. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8540. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8541. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8542. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8543. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8544. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8545. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8546. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8547. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8548. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8549. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8550. };
  8551. <span class="hljs-keyword">const</span> headers = {
  8552. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8553. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8554. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8555. };
  8556. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8557. {
  8558. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8559. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8560. <span class="hljs-attr">headers</span>: headers
  8561. })
  8562. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8563. <span class="hljs-keyword">return</span> res.json();
  8564. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8565. <span class="hljs-built_in">console</span>.log(body);
  8566. });
  8567. </code></pre>
  8568. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8569. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8570. headers = {
  8571. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8572. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8573. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8574. }
  8575. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8576. <span class="hljs-symbol">params:</span> {
  8577. }, <span class="hljs-symbol">headers:</span> headers
  8578. p JSON.parse(result)
  8579. </code></pre>
  8580. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8581. headers = {
  8582. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8583. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8584. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8585. }
  8586. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8587. <span class="hljs-built_in">print</span>(r.json())
  8588. </code></pre>
  8589. <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>);
  8590. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8591. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8592. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8593. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8594. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8595. String inputLine;
  8596. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8597. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8598. response.append(inputLine);
  8599. }
  8600. in.close();
  8601. System.out.println(response.toString());
  8602. </code></pre>
  8603. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8604. <span class="hljs-keyword">import</span> (
  8605. <span class="hljs-string">&quot;bytes&quot;</span>
  8606. <span class="hljs-string">&quot;net/http&quot;</span>
  8607. )
  8608. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8609. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8610. <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>},
  8611. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8612. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8613. }
  8614. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8615. 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)
  8616. req.Header = headers
  8617. client := &amp;http.Client{}
  8618. resp, err := client.Do(req)
  8619. <span class="hljs-comment">// ...</span>
  8620. }
  8621. </code></pre>
  8622. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8623. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8624. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8625. );
  8626. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8627. <span class="hljs-comment">// Define array of request body.</span>
  8628. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8629. <span class="hljs-keyword">try</span> {
  8630. <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>(
  8631. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8632. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8633. )
  8634. );
  8635. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8636. }
  8637. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8638. <span class="hljs-comment">// handle exception or api errors.</span>
  8639. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8640. }
  8641. <span class="hljs-comment">// ...</span>
  8642. </code></pre>
  8643. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8644. <p><em>Edit Fields in a Card</em></p>
  8645. <p>Edit a card</p>
  8646. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8647. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8648. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8649. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8650. <code>indigo</code>:</p>
  8651. <img src="/card-colors.png" alt="Wekan card colors" />
  8652. <p>Note: setting the color to white has the same effect than removing it.</p>
  8653. <blockquote>
  8654. <p>Body parameter</p>
  8655. </blockquote>
  8656. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8657. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8658. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8659. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8660. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8661. <span class="hljs-attr">vote:</span> {}
  8662. <span class="hljs-attr">poker:</span> {}
  8663. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8664. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8665. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8666. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8667. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8668. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8669. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8670. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8671. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8672. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8673. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8674. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8675. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8676. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8677. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8678. </code></pre>
  8679. <h3 id="edit_card-parameters">Parameters</h3>
  8680. <table>
  8681. <thead>
  8682. <tr>
  8683. <th>Name</th>
  8684. <th>In</th>
  8685. <th>Type</th>
  8686. <th>Required</th>
  8687. <th>Description</th>
  8688. </tr>
  8689. </thead>
  8690. <tbody>
  8691. <tr>
  8692. <td>board</td>
  8693. <td>path</td>
  8694. <td>string</td>
  8695. <td>true</td>
  8696. <td>the board ID of the card</td>
  8697. </tr>
  8698. <tr>
  8699. <td>list</td>
  8700. <td>path</td>
  8701. <td>string</td>
  8702. <td>true</td>
  8703. <td>the list ID of the card</td>
  8704. </tr>
  8705. <tr>
  8706. <td>card</td>
  8707. <td>path</td>
  8708. <td>string</td>
  8709. <td>true</td>
  8710. <td>the ID of the card</td>
  8711. </tr>
  8712. <tr>
  8713. <td>body</td>
  8714. <td>body</td>
  8715. <td>object</td>
  8716. <td>false</td>
  8717. <td>none</td>
  8718. </tr>
  8719. <tr>
  8720. <td>» title</td>
  8721. <td>body</td>
  8722. <td>string</td>
  8723. <td>false</td>
  8724. <td>the new title of the card</td>
  8725. </tr>
  8726. <tr>
  8727. <td>» sort</td>
  8728. <td>body</td>
  8729. <td>string</td>
  8730. <td>false</td>
  8731. <td>the new sort value of the card</td>
  8732. </tr>
  8733. <tr>
  8734. <td>» parentId</td>
  8735. <td>body</td>
  8736. <td>string</td>
  8737. <td>false</td>
  8738. <td>change the parent of the card</td>
  8739. </tr>
  8740. <tr>
  8741. <td>» description</td>
  8742. <td>body</td>
  8743. <td>string</td>
  8744. <td>false</td>
  8745. <td>the new description of the card</td>
  8746. </tr>
  8747. <tr>
  8748. <td>» color</td>
  8749. <td>body</td>
  8750. <td>string</td>
  8751. <td>false</td>
  8752. <td>the new color of the card</td>
  8753. </tr>
  8754. <tr>
  8755. <td>» vote</td>
  8756. <td>body</td>
  8757. <td>object</td>
  8758. <td>false</td>
  8759. <td>the vote object</td>
  8760. </tr>
  8761. <tr>
  8762. <td>» poker</td>
  8763. <td>body</td>
  8764. <td>object</td>
  8765. <td>false</td>
  8766. <td>the poker object</td>
  8767. </tr>
  8768. <tr>
  8769. <td>» labelIds</td>
  8770. <td>body</td>
  8771. <td>string</td>
  8772. <td>false</td>
  8773. <td>the new list of label IDs attached to the card</td>
  8774. </tr>
  8775. <tr>
  8776. <td>» requestedBy</td>
  8777. <td>body</td>
  8778. <td>string</td>
  8779. <td>false</td>
  8780. <td>the new requestedBy field of the card</td>
  8781. </tr>
  8782. <tr>
  8783. <td>» assignedBy</td>
  8784. <td>body</td>
  8785. <td>string</td>
  8786. <td>false</td>
  8787. <td>the new assignedBy field of the card</td>
  8788. </tr>
  8789. <tr>
  8790. <td>» receivedAt</td>
  8791. <td>body</td>
  8792. <td>string</td>
  8793. <td>false</td>
  8794. <td>the new receivedAt field of the card</td>
  8795. </tr>
  8796. <tr>
  8797. <td>» startAt</td>
  8798. <td>body</td>
  8799. <td>string</td>
  8800. <td>false</td>
  8801. <td>the new startAt field of the card</td>
  8802. </tr>
  8803. <tr>
  8804. <td>» dueAt</td>
  8805. <td>body</td>
  8806. <td>string</td>
  8807. <td>false</td>
  8808. <td>the new dueAt field of the card</td>
  8809. </tr>
  8810. <tr>
  8811. <td>» endAt</td>
  8812. <td>body</td>
  8813. <td>string</td>
  8814. <td>false</td>
  8815. <td>the new endAt field of the card</td>
  8816. </tr>
  8817. <tr>
  8818. <td>» spentTime</td>
  8819. <td>body</td>
  8820. <td>string</td>
  8821. <td>false</td>
  8822. <td>the new spentTime field of the card</td>
  8823. </tr>
  8824. <tr>
  8825. <td>» isOverTime</td>
  8826. <td>body</td>
  8827. <td>boolean</td>
  8828. <td>false</td>
  8829. <td>the new isOverTime field of the card</td>
  8830. </tr>
  8831. <tr>
  8832. <td>» customFields</td>
  8833. <td>body</td>
  8834. <td>string</td>
  8835. <td>false</td>
  8836. <td>the new customFields value of the card</td>
  8837. </tr>
  8838. <tr>
  8839. <td>» members</td>
  8840. <td>body</td>
  8841. <td>string</td>
  8842. <td>false</td>
  8843. <td>the new list of member IDs attached to the card</td>
  8844. </tr>
  8845. <tr>
  8846. <td>» assignees</td>
  8847. <td>body</td>
  8848. <td>string</td>
  8849. <td>false</td>
  8850. <td>the array of maximum one ID of assignee attached to the card</td>
  8851. </tr>
  8852. <tr>
  8853. <td>» swimlaneId</td>
  8854. <td>body</td>
  8855. <td>string</td>
  8856. <td>false</td>
  8857. <td>the new swimlane ID of the card</td>
  8858. </tr>
  8859. <tr>
  8860. <td>» listId</td>
  8861. <td>body</td>
  8862. <td>string</td>
  8863. <td>false</td>
  8864. <td>the new list ID of the card (move operation)</td>
  8865. </tr>
  8866. <tr>
  8867. <td>» authorId</td>
  8868. <td>body</td>
  8869. <td>string</td>
  8870. <td>false</td>
  8871. <td>change the owner of the card</td>
  8872. </tr>
  8873. </tbody>
  8874. </table>
  8875. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8876. <p><strong>board</strong>: the board ID of the card</p>
  8877. <p><strong>list</strong>: the list ID of the card</p>
  8878. <p><strong>card</strong>: the ID of the card</p>
  8879. <blockquote>
  8880. <p>Example responses</p>
  8881. </blockquote>
  8882. <blockquote>
  8883. <p>200 Response</p>
  8884. </blockquote>
  8885. <pre class="highlight tab tab-json"><code>{
  8886. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8887. }
  8888. </code></pre>
  8889. <h3 id="edit_card-responses">Responses</h3>
  8890. <table>
  8891. <thead>
  8892. <tr>
  8893. <th>Status</th>
  8894. <th>Meaning</th>
  8895. <th>Description</th>
  8896. <th>Schema</th>
  8897. </tr>
  8898. </thead>
  8899. <tbody>
  8900. <tr>
  8901. <td>200</td>
  8902. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8903. <td>200 response</td>
  8904. <td>Inline</td>
  8905. </tr>
  8906. </tbody>
  8907. </table>
  8908. <h3 id="edit_card-responseschema">Response Schema</h3>
  8909. <p>Status Code <strong>200</strong></p>
  8910. <table>
  8911. <thead>
  8912. <tr>
  8913. <th>Name</th>
  8914. <th>Type</th>
  8915. <th>Required</th>
  8916. <th>Restrictions</th>
  8917. <th>Description</th>
  8918. </tr>
  8919. </thead>
  8920. <tbody>
  8921. <tr>
  8922. <td>» _id</td>
  8923. <td>string</td>
  8924. <td>false</td>
  8925. <td>none</td>
  8926. <td>none</td>
  8927. </tr>
  8928. </tbody>
  8929. </table>
  8930. <aside class="warning">
  8931. To perform this operation, you must be authenticated by means of one of the following methods:
  8932. UserSecurity
  8933. </aside>
  8934. <h2 id="delete_card">delete_card</h2>
  8935. <p><a id="opIddelete_card"></a></p>
  8936. <blockquote>
  8937. <p>Code samples</p>
  8938. </blockquote>
  8939. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8940. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8941. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8942. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8943. </code></pre>
  8944. <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>
  8945. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8946. </span></code></pre>
  8947. <pre class="highlight tab tab-javascript"><code>
  8948. <span class="hljs-keyword">const</span> headers = {
  8949. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8950. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8951. };
  8952. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8953. {
  8954. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8955. <span class="hljs-attr">headers</span>: headers
  8956. })
  8957. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8958. <span class="hljs-keyword">return</span> res.json();
  8959. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8960. <span class="hljs-built_in">console</span>.log(body);
  8961. });
  8962. </code></pre>
  8963. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8964. <span class="hljs-keyword">const</span> headers = {
  8965. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8966. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8967. };
  8968. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8969. {
  8970. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8971. <span class="hljs-attr">headers</span>: headers
  8972. })
  8973. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8974. <span class="hljs-keyword">return</span> res.json();
  8975. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8976. <span class="hljs-built_in">console</span>.log(body);
  8977. });
  8978. </code></pre>
  8979. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8980. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8981. headers = {
  8982. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8983. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8984. }
  8985. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8986. <span class="hljs-symbol">params:</span> {
  8987. }, <span class="hljs-symbol">headers:</span> headers
  8988. p JSON.parse(result)
  8989. </code></pre>
  8990. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8991. headers = {
  8992. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8993. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8994. }
  8995. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8996. <span class="hljs-built_in">print</span>(r.json())
  8997. </code></pre>
  8998. <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>);
  8999. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9000. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  9001. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9002. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9003. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9004. String inputLine;
  9005. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9006. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9007. response.append(inputLine);
  9008. }
  9009. in.close();
  9010. System.out.println(response.toString());
  9011. </code></pre>
  9012. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9013. <span class="hljs-keyword">import</span> (
  9014. <span class="hljs-string">&quot;bytes&quot;</span>
  9015. <span class="hljs-string">&quot;net/http&quot;</span>
  9016. )
  9017. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9018. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9019. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9020. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9021. }
  9022. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9023. 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)
  9024. req.Header = headers
  9025. client := &amp;http.Client{}
  9026. resp, err := client.Do(req)
  9027. <span class="hljs-comment">// ...</span>
  9028. }
  9029. </code></pre>
  9030. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9031. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9032. );
  9033. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9034. <span class="hljs-comment">// Define array of request body.</span>
  9035. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9036. <span class="hljs-keyword">try</span> {
  9037. <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>(
  9038. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9039. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9040. )
  9041. );
  9042. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9043. }
  9044. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9045. <span class="hljs-comment">// handle exception or api errors.</span>
  9046. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9047. }
  9048. <span class="hljs-comment">// ...</span>
  9049. </code></pre>
  9050. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  9051. <p><em>Delete a card from a board</em></p>
  9052. <p>This operation <strong>deletes</strong> a card, and therefore the card
  9053. is not put in the recycle bin.</p>
  9054. <h3 id="delete_card-parameters">Parameters</h3>
  9055. <table>
  9056. <thead>
  9057. <tr>
  9058. <th>Name</th>
  9059. <th>In</th>
  9060. <th>Type</th>
  9061. <th>Required</th>
  9062. <th>Description</th>
  9063. </tr>
  9064. </thead>
  9065. <tbody>
  9066. <tr>
  9067. <td>board</td>
  9068. <td>path</td>
  9069. <td>string</td>
  9070. <td>true</td>
  9071. <td>the board ID of the card</td>
  9072. </tr>
  9073. <tr>
  9074. <td>list</td>
  9075. <td>path</td>
  9076. <td>string</td>
  9077. <td>true</td>
  9078. <td>the list ID of the card</td>
  9079. </tr>
  9080. <tr>
  9081. <td>card</td>
  9082. <td>path</td>
  9083. <td>string</td>
  9084. <td>true</td>
  9085. <td>the ID of the card</td>
  9086. </tr>
  9087. </tbody>
  9088. </table>
  9089. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9090. <p><strong>board</strong>: the board ID of the card</p>
  9091. <p><strong>list</strong>: the list ID of the card</p>
  9092. <p><strong>card</strong>: the ID of the card</p>
  9093. <blockquote>
  9094. <p>Example responses</p>
  9095. </blockquote>
  9096. <blockquote>
  9097. <p>200 Response</p>
  9098. </blockquote>
  9099. <pre class="highlight tab tab-json"><code>{
  9100. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9101. }
  9102. </code></pre>
  9103. <h3 id="delete_card-responses">Responses</h3>
  9104. <table>
  9105. <thead>
  9106. <tr>
  9107. <th>Status</th>
  9108. <th>Meaning</th>
  9109. <th>Description</th>
  9110. <th>Schema</th>
  9111. </tr>
  9112. </thead>
  9113. <tbody>
  9114. <tr>
  9115. <td>200</td>
  9116. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9117. <td>200 response</td>
  9118. <td>Inline</td>
  9119. </tr>
  9120. </tbody>
  9121. </table>
  9122. <h3 id="delete_card-responseschema">Response Schema</h3>
  9123. <p>Status Code <strong>200</strong></p>
  9124. <table>
  9125. <thead>
  9126. <tr>
  9127. <th>Name</th>
  9128. <th>Type</th>
  9129. <th>Required</th>
  9130. <th>Restrictions</th>
  9131. <th>Description</th>
  9132. </tr>
  9133. </thead>
  9134. <tbody>
  9135. <tr>
  9136. <td>» _id</td>
  9137. <td>string</td>
  9138. <td>false</td>
  9139. <td>none</td>
  9140. <td>none</td>
  9141. </tr>
  9142. </tbody>
  9143. </table>
  9144. <aside class="warning">
  9145. To perform this operation, you must be authenticated by means of one of the following methods:
  9146. UserSecurity
  9147. </aside>
  9148. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  9149. <p><a id="opIdedit_card_custom_field"></a></p>
  9150. <blockquote>
  9151. <p>Code samples</p>
  9152. </blockquote>
  9153. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9154. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  9155. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9156. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9157. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9158. </code></pre>
  9159. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  9160. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9161. Accept: application/json
  9162. </span></code></pre>
  9163. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9164. &quot;value&quot;: &quot;string&quot;
  9165. }&#x27;</span>;
  9166. <span class="hljs-keyword">const</span> headers = {
  9167. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9168. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9169. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9170. };
  9171. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9172. {
  9173. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9174. <span class="hljs-attr">body</span>: inputBody,
  9175. <span class="hljs-attr">headers</span>: headers
  9176. })
  9177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9178. <span class="hljs-keyword">return</span> res.json();
  9179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9180. <span class="hljs-built_in">console</span>.log(body);
  9181. });
  9182. </code></pre>
  9183. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9184. <span class="hljs-keyword">const</span> inputBody = {
  9185. <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9186. };
  9187. <span class="hljs-keyword">const</span> headers = {
  9188. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9189. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9190. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9191. };
  9192. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9193. {
  9194. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9195. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9196. <span class="hljs-attr">headers</span>: headers
  9197. })
  9198. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9199. <span class="hljs-keyword">return</span> res.json();
  9200. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9201. <span class="hljs-built_in">console</span>.log(body);
  9202. });
  9203. </code></pre>
  9204. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9205. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9206. headers = {
  9207. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9208. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9209. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9210. }
  9211. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9212. <span class="hljs-symbol">params:</span> {
  9213. }, <span class="hljs-symbol">headers:</span> headers
  9214. p JSON.parse(result)
  9215. </code></pre>
  9216. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9217. headers = {
  9218. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9219. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9220. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9221. }
  9222. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>, headers = headers)
  9223. <span class="hljs-built_in">print</span>(r.json())
  9224. </code></pre>
  9225. <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}/customFields/{customField}&quot;</span>);
  9226. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9227. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9228. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9229. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9230. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9231. String inputLine;
  9232. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9233. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9234. response.append(inputLine);
  9235. }
  9236. in.close();
  9237. System.out.println(response.toString());
  9238. </code></pre>
  9239. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9240. <span class="hljs-keyword">import</span> (
  9241. <span class="hljs-string">&quot;bytes&quot;</span>
  9242. <span class="hljs-string">&quot;net/http&quot;</span>
  9243. )
  9244. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9245. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9246. <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>},
  9247. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9248. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9249. }
  9250. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9251. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&quot;</span>, data)
  9252. req.Header = headers
  9253. client := &amp;http.Client{}
  9254. resp, err := client.Do(req)
  9255. <span class="hljs-comment">// ...</span>
  9256. }
  9257. </code></pre>
  9258. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9259. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9260. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9261. );
  9262. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9263. <span class="hljs-comment">// Define array of request body.</span>
  9264. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9265. <span class="hljs-keyword">try</span> {
  9266. <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/{card}/customFields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9267. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9268. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9269. )
  9270. );
  9271. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9272. }
  9273. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9274. <span class="hljs-comment">// handle exception or api errors.</span>
  9275. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9276. }
  9277. <span class="hljs-comment">// ...</span>
  9278. </code></pre>
  9279. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  9280. <p><em>Edit Custom Field in a Card</em></p>
  9281. <p>Edit a custom field value in a card</p>
  9282. <blockquote>
  9283. <p>Body parameter</p>
  9284. </blockquote>
  9285. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  9286. </code></pre>
  9287. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  9288. <table>
  9289. <thead>
  9290. <tr>
  9291. <th>Name</th>
  9292. <th>In</th>
  9293. <th>Type</th>
  9294. <th>Required</th>
  9295. <th>Description</th>
  9296. </tr>
  9297. </thead>
  9298. <tbody>
  9299. <tr>
  9300. <td>board</td>
  9301. <td>path</td>
  9302. <td>string</td>
  9303. <td>true</td>
  9304. <td>the board ID of the card</td>
  9305. </tr>
  9306. <tr>
  9307. <td>list</td>
  9308. <td>path</td>
  9309. <td>string</td>
  9310. <td>true</td>
  9311. <td>the list ID of the card</td>
  9312. </tr>
  9313. <tr>
  9314. <td>card</td>
  9315. <td>path</td>
  9316. <td>string</td>
  9317. <td>true</td>
  9318. <td>the ID of the card</td>
  9319. </tr>
  9320. <tr>
  9321. <td>customField</td>
  9322. <td>path</td>
  9323. <td>string</td>
  9324. <td>true</td>
  9325. <td>the ID of the custom field</td>
  9326. </tr>
  9327. <tr>
  9328. <td>body</td>
  9329. <td>body</td>
  9330. <td>object</td>
  9331. <td>true</td>
  9332. <td>none</td>
  9333. </tr>
  9334. <tr>
  9335. <td>» value</td>
  9336. <td>body</td>
  9337. <td>string</td>
  9338. <td>true</td>
  9339. <td>the new custom field value</td>
  9340. </tr>
  9341. </tbody>
  9342. </table>
  9343. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9344. <p><strong>board</strong>: the board ID of the card</p>
  9345. <p><strong>list</strong>: the list ID of the card</p>
  9346. <p><strong>card</strong>: the ID of the card</p>
  9347. <p><strong>customField</strong>: the ID of the custom field</p>
  9348. <blockquote>
  9349. <p>Example responses</p>
  9350. </blockquote>
  9351. <blockquote>
  9352. <p>200 Response</p>
  9353. </blockquote>
  9354. <pre class="highlight tab tab-json"><code>{
  9355. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9356. <span class="hljs-attr">&quot;customFields&quot;</span>: {}
  9357. }
  9358. </code></pre>
  9359. <h3 id="edit_card_custom_field-responses">Responses</h3>
  9360. <table>
  9361. <thead>
  9362. <tr>
  9363. <th>Status</th>
  9364. <th>Meaning</th>
  9365. <th>Description</th>
  9366. <th>Schema</th>
  9367. </tr>
  9368. </thead>
  9369. <tbody>
  9370. <tr>
  9371. <td>200</td>
  9372. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9373. <td>200 response</td>
  9374. <td>Inline</td>
  9375. </tr>
  9376. </tbody>
  9377. </table>
  9378. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  9379. <p>Status Code <strong>200</strong></p>
  9380. <table>
  9381. <thead>
  9382. <tr>
  9383. <th>Name</th>
  9384. <th>Type</th>
  9385. <th>Required</th>
  9386. <th>Restrictions</th>
  9387. <th>Description</th>
  9388. </tr>
  9389. </thead>
  9390. <tbody>
  9391. <tr>
  9392. <td>» _id</td>
  9393. <td>string</td>
  9394. <td>false</td>
  9395. <td>none</td>
  9396. <td>none</td>
  9397. </tr>
  9398. <tr>
  9399. <td>» customFields</td>
  9400. <td>object</td>
  9401. <td>false</td>
  9402. <td>none</td>
  9403. <td>none</td>
  9404. </tr>
  9405. </tbody>
  9406. </table>
  9407. <aside class="warning">
  9408. To perform this operation, you must be authenticated by means of one of the following methods:
  9409. UserSecurity
  9410. </aside>
  9411. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  9412. <p><a id="opIdget_list_cards_count"></a></p>
  9413. <blockquote>
  9414. <p>Code samples</p>
  9415. </blockquote>
  9416. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9417. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  9418. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9419. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9420. </code></pre>
  9421. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  9422. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9423. </span></code></pre>
  9424. <pre class="highlight tab tab-javascript"><code>
  9425. <span class="hljs-keyword">const</span> headers = {
  9426. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9427. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9428. };
  9429. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9430. {
  9431. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9432. <span class="hljs-attr">headers</span>: headers
  9433. })
  9434. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9435. <span class="hljs-keyword">return</span> res.json();
  9436. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9437. <span class="hljs-built_in">console</span>.log(body);
  9438. });
  9439. </code></pre>
  9440. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9441. <span class="hljs-keyword">const</span> headers = {
  9442. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9443. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9444. };
  9445. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9446. {
  9447. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9448. <span class="hljs-attr">headers</span>: headers
  9449. })
  9450. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9451. <span class="hljs-keyword">return</span> res.json();
  9452. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9453. <span class="hljs-built_in">console</span>.log(body);
  9454. });
  9455. </code></pre>
  9456. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9457. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9458. headers = {
  9459. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9460. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9461. }
  9462. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9463. <span class="hljs-symbol">params:</span> {
  9464. }, <span class="hljs-symbol">headers:</span> headers
  9465. p JSON.parse(result)
  9466. </code></pre>
  9467. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9468. headers = {
  9469. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9470. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9471. }
  9472. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, headers = headers)
  9473. <span class="hljs-built_in">print</span>(r.json())
  9474. </code></pre>
  9475. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>);
  9476. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9477. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9478. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9479. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9480. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9481. String inputLine;
  9482. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9483. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9484. response.append(inputLine);
  9485. }
  9486. in.close();
  9487. System.out.println(response.toString());
  9488. </code></pre>
  9489. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9490. <span class="hljs-keyword">import</span> (
  9491. <span class="hljs-string">&quot;bytes&quot;</span>
  9492. <span class="hljs-string">&quot;net/http&quot;</span>
  9493. )
  9494. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9495. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9496. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9497. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9498. }
  9499. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9500. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>, data)
  9501. req.Header = headers
  9502. client := &amp;http.Client{}
  9503. resp, err := client.Do(req)
  9504. <span class="hljs-comment">// ...</span>
  9505. }
  9506. </code></pre>
  9507. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9508. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9509. );
  9510. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9511. <span class="hljs-comment">// Define array of request body.</span>
  9512. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9513. <span class="hljs-keyword">try</span> {
  9514. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  9515. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9516. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9517. )
  9518. );
  9519. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9520. }
  9521. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9522. <span class="hljs-comment">// handle exception or api errors.</span>
  9523. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9524. }
  9525. <span class="hljs-comment">// ...</span>
  9526. </code></pre>
  9527. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9528. <p><em>Get a cards count to a list</em></p>
  9529. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9530. <table>
  9531. <thead>
  9532. <tr>
  9533. <th>Name</th>
  9534. <th>In</th>
  9535. <th>Type</th>
  9536. <th>Required</th>
  9537. <th>Description</th>
  9538. </tr>
  9539. </thead>
  9540. <tbody>
  9541. <tr>
  9542. <td>board</td>
  9543. <td>path</td>
  9544. <td>string</td>
  9545. <td>true</td>
  9546. <td>the board ID</td>
  9547. </tr>
  9548. <tr>
  9549. <td>list</td>
  9550. <td>path</td>
  9551. <td>string</td>
  9552. <td>true</td>
  9553. <td>the List ID</td>
  9554. </tr>
  9555. </tbody>
  9556. </table>
  9557. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  9558. <p><strong>board</strong>: the board ID</p>
  9559. <p><strong>list</strong>: the List ID</p>
  9560. <blockquote>
  9561. <p>Example responses</p>
  9562. </blockquote>
  9563. <blockquote>
  9564. <p>200 Response</p>
  9565. </blockquote>
  9566. <pre class="highlight tab tab-json"><code>{
  9567. <span class="hljs-attr">&quot;list_cards_count&quot;</span>: <span class="hljs-number">0</span>
  9568. }
  9569. </code></pre>
  9570. <h3 id="get_list_cards_count-responses">Responses</h3>
  9571. <table>
  9572. <thead>
  9573. <tr>
  9574. <th>Status</th>
  9575. <th>Meaning</th>
  9576. <th>Description</th>
  9577. <th>Schema</th>
  9578. </tr>
  9579. </thead>
  9580. <tbody>
  9581. <tr>
  9582. <td>200</td>
  9583. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9584. <td>200 response</td>
  9585. <td>Inline</td>
  9586. </tr>
  9587. </tbody>
  9588. </table>
  9589. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9590. <p>Status Code <strong>200</strong></p>
  9591. <table>
  9592. <thead>
  9593. <tr>
  9594. <th>Name</th>
  9595. <th>Type</th>
  9596. <th>Required</th>
  9597. <th>Restrictions</th>
  9598. <th>Description</th>
  9599. </tr>
  9600. </thead>
  9601. <tbody>
  9602. <tr>
  9603. <td>» list_cards_count</td>
  9604. <td>integer</td>
  9605. <td>false</td>
  9606. <td>none</td>
  9607. <td>none</td>
  9608. </tr>
  9609. </tbody>
  9610. </table>
  9611. <aside class="warning">
  9612. To perform this operation, you must be authenticated by means of one of the following methods:
  9613. UserSecurity
  9614. </aside>
  9615. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9616. <p><a id="opIdget_swimlane_cards"></a></p>
  9617. <blockquote>
  9618. <p>Code samples</p>
  9619. </blockquote>
  9620. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9621. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9622. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9623. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9624. </code></pre>
  9625. <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>
  9626. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9627. </span></code></pre>
  9628. <pre class="highlight tab tab-javascript"><code>
  9629. <span class="hljs-keyword">const</span> headers = {
  9630. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9631. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9632. };
  9633. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9634. {
  9635. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9636. <span class="hljs-attr">headers</span>: headers
  9637. })
  9638. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9639. <span class="hljs-keyword">return</span> res.json();
  9640. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9641. <span class="hljs-built_in">console</span>.log(body);
  9642. });
  9643. </code></pre>
  9644. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9645. <span class="hljs-keyword">const</span> headers = {
  9646. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9647. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9648. };
  9649. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9650. {
  9651. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9652. <span class="hljs-attr">headers</span>: headers
  9653. })
  9654. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9655. <span class="hljs-keyword">return</span> res.json();
  9656. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9657. <span class="hljs-built_in">console</span>.log(body);
  9658. });
  9659. </code></pre>
  9660. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9661. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9662. headers = {
  9663. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9664. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9665. }
  9666. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9667. <span class="hljs-symbol">params:</span> {
  9668. }, <span class="hljs-symbol">headers:</span> headers
  9669. p JSON.parse(result)
  9670. </code></pre>
  9671. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9672. headers = {
  9673. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9674. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9675. }
  9676. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  9677. <span class="hljs-built_in">print</span>(r.json())
  9678. </code></pre>
  9679. <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>);
  9680. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9681. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9682. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9683. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9684. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9685. String inputLine;
  9686. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9687. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9688. response.append(inputLine);
  9689. }
  9690. in.close();
  9691. System.out.println(response.toString());
  9692. </code></pre>
  9693. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9694. <span class="hljs-keyword">import</span> (
  9695. <span class="hljs-string">&quot;bytes&quot;</span>
  9696. <span class="hljs-string">&quot;net/http&quot;</span>
  9697. )
  9698. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9699. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9700. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9701. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9702. }
  9703. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9704. 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)
  9705. req.Header = headers
  9706. client := &amp;http.Client{}
  9707. resp, err := client.Do(req)
  9708. <span class="hljs-comment">// ...</span>
  9709. }
  9710. </code></pre>
  9711. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9712. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9713. );
  9714. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9715. <span class="hljs-comment">// Define array of request body.</span>
  9716. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9717. <span class="hljs-keyword">try</span> {
  9718. <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>(
  9719. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9720. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9721. )
  9722. );
  9723. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9724. }
  9725. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9726. <span class="hljs-comment">// handle exception or api errors.</span>
  9727. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9728. }
  9729. <span class="hljs-comment">// ...</span>
  9730. </code></pre>
  9731. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9732. <p><em>get all cards attached to a swimlane</em></p>
  9733. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9734. <table>
  9735. <thead>
  9736. <tr>
  9737. <th>Name</th>
  9738. <th>In</th>
  9739. <th>Type</th>
  9740. <th>Required</th>
  9741. <th>Description</th>
  9742. </tr>
  9743. </thead>
  9744. <tbody>
  9745. <tr>
  9746. <td>board</td>
  9747. <td>path</td>
  9748. <td>string</td>
  9749. <td>true</td>
  9750. <td>the board ID</td>
  9751. </tr>
  9752. <tr>
  9753. <td>swimlane</td>
  9754. <td>path</td>
  9755. <td>string</td>
  9756. <td>true</td>
  9757. <td>the swimlane ID</td>
  9758. </tr>
  9759. </tbody>
  9760. </table>
  9761. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  9762. <p><strong>board</strong>: the board ID</p>
  9763. <p><strong>swimlane</strong>: the swimlane ID</p>
  9764. <blockquote>
  9765. <p>Example responses</p>
  9766. </blockquote>
  9767. <blockquote>
  9768. <p>200 Response</p>
  9769. </blockquote>
  9770. <pre class="highlight tab tab-json"><code>[
  9771. {
  9772. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9773. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9774. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9775. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9776. }
  9777. ]
  9778. </code></pre>
  9779. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9780. <table>
  9781. <thead>
  9782. <tr>
  9783. <th>Status</th>
  9784. <th>Meaning</th>
  9785. <th>Description</th>
  9786. <th>Schema</th>
  9787. </tr>
  9788. </thead>
  9789. <tbody>
  9790. <tr>
  9791. <td>200</td>
  9792. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9793. <td>200 response</td>
  9794. <td>Inline</td>
  9795. </tr>
  9796. </tbody>
  9797. </table>
  9798. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9799. <p>Status Code <strong>200</strong></p>
  9800. <table>
  9801. <thead>
  9802. <tr>
  9803. <th>Name</th>
  9804. <th>Type</th>
  9805. <th>Required</th>
  9806. <th>Restrictions</th>
  9807. <th>Description</th>
  9808. </tr>
  9809. </thead>
  9810. <tbody>
  9811. <tr>
  9812. <td>» _id</td>
  9813. <td>string</td>
  9814. <td>false</td>
  9815. <td>none</td>
  9816. <td>none</td>
  9817. </tr>
  9818. <tr>
  9819. <td>» title</td>
  9820. <td>string</td>
  9821. <td>false</td>
  9822. <td>none</td>
  9823. <td>none</td>
  9824. </tr>
  9825. <tr>
  9826. <td>» description</td>
  9827. <td>string</td>
  9828. <td>false</td>
  9829. <td>none</td>
  9830. <td>none</td>
  9831. </tr>
  9832. <tr>
  9833. <td>» listId</td>
  9834. <td>string</td>
  9835. <td>false</td>
  9836. <td>none</td>
  9837. <td>none</td>
  9838. </tr>
  9839. </tbody>
  9840. </table>
  9841. <aside class="warning">
  9842. To perform this operation, you must be authenticated by means of one of the following methods:
  9843. UserSecurity
  9844. </aside>
  9845. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9846. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9847. <p><a id="opIdget_all_custom_fields"></a></p>
  9848. <blockquote>
  9849. <p>Code samples</p>
  9850. </blockquote>
  9851. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9852. curl -X GET /api/boards/{board}/custom-fields \
  9853. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9854. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9855. </code></pre>
  9856. <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>
  9857. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9858. </span></code></pre>
  9859. <pre class="highlight tab tab-javascript"><code>
  9860. <span class="hljs-keyword">const</span> headers = {
  9861. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9862. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9863. };
  9864. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9865. {
  9866. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9867. <span class="hljs-attr">headers</span>: headers
  9868. })
  9869. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9870. <span class="hljs-keyword">return</span> res.json();
  9871. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9872. <span class="hljs-built_in">console</span>.log(body);
  9873. });
  9874. </code></pre>
  9875. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9876. <span class="hljs-keyword">const</span> headers = {
  9877. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9878. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9879. };
  9880. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9881. {
  9882. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9883. <span class="hljs-attr">headers</span>: headers
  9884. })
  9885. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9886. <span class="hljs-keyword">return</span> res.json();
  9887. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9888. <span class="hljs-built_in">console</span>.log(body);
  9889. });
  9890. </code></pre>
  9891. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9892. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9893. headers = {
  9894. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9895. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9896. }
  9897. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9898. <span class="hljs-symbol">params:</span> {
  9899. }, <span class="hljs-symbol">headers:</span> headers
  9900. p JSON.parse(result)
  9901. </code></pre>
  9902. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9903. headers = {
  9904. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9905. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9906. }
  9907. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9908. <span class="hljs-built_in">print</span>(r.json())
  9909. </code></pre>
  9910. <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>);
  9911. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9912. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9913. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9914. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9915. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9916. String inputLine;
  9917. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9918. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9919. response.append(inputLine);
  9920. }
  9921. in.close();
  9922. System.out.println(response.toString());
  9923. </code></pre>
  9924. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9925. <span class="hljs-keyword">import</span> (
  9926. <span class="hljs-string">&quot;bytes&quot;</span>
  9927. <span class="hljs-string">&quot;net/http&quot;</span>
  9928. )
  9929. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9930. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9931. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9932. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9933. }
  9934. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9935. 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)
  9936. req.Header = headers
  9937. client := &amp;http.Client{}
  9938. resp, err := client.Do(req)
  9939. <span class="hljs-comment">// ...</span>
  9940. }
  9941. </code></pre>
  9942. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9943. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9944. );
  9945. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9946. <span class="hljs-comment">// Define array of request body.</span>
  9947. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9948. <span class="hljs-keyword">try</span> {
  9949. <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>(
  9950. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9951. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9952. )
  9953. );
  9954. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9955. }
  9956. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9957. <span class="hljs-comment">// handle exception or api errors.</span>
  9958. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9959. }
  9960. <span class="hljs-comment">// ...</span>
  9961. </code></pre>
  9962. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9963. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9964. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9965. <table>
  9966. <thead>
  9967. <tr>
  9968. <th>Name</th>
  9969. <th>In</th>
  9970. <th>Type</th>
  9971. <th>Required</th>
  9972. <th>Description</th>
  9973. </tr>
  9974. </thead>
  9975. <tbody>
  9976. <tr>
  9977. <td>board</td>
  9978. <td>path</td>
  9979. <td>string</td>
  9980. <td>true</td>
  9981. <td>the board value</td>
  9982. </tr>
  9983. </tbody>
  9984. </table>
  9985. <blockquote>
  9986. <p>Example responses</p>
  9987. </blockquote>
  9988. <blockquote>
  9989. <p>200 Response</p>
  9990. </blockquote>
  9991. <pre class="highlight tab tab-json"><code>[
  9992. {
  9993. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9994. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9995. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9996. }
  9997. ]
  9998. </code></pre>
  9999. <h3 id="get_all_custom_fields-responses">Responses</h3>
  10000. <table>
  10001. <thead>
  10002. <tr>
  10003. <th>Status</th>
  10004. <th>Meaning</th>
  10005. <th>Description</th>
  10006. <th>Schema</th>
  10007. </tr>
  10008. </thead>
  10009. <tbody>
  10010. <tr>
  10011. <td>200</td>
  10012. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10013. <td>200 response</td>
  10014. <td>Inline</td>
  10015. </tr>
  10016. </tbody>
  10017. </table>
  10018. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  10019. <p>Status Code <strong>200</strong></p>
  10020. <table>
  10021. <thead>
  10022. <tr>
  10023. <th>Name</th>
  10024. <th>Type</th>
  10025. <th>Required</th>
  10026. <th>Restrictions</th>
  10027. <th>Description</th>
  10028. </tr>
  10029. </thead>
  10030. <tbody>
  10031. <tr>
  10032. <td>» _id</td>
  10033. <td>string</td>
  10034. <td>false</td>
  10035. <td>none</td>
  10036. <td>none</td>
  10037. </tr>
  10038. <tr>
  10039. <td>» name</td>
  10040. <td>string</td>
  10041. <td>false</td>
  10042. <td>none</td>
  10043. <td>none</td>
  10044. </tr>
  10045. <tr>
  10046. <td>» type</td>
  10047. <td>string</td>
  10048. <td>false</td>
  10049. <td>none</td>
  10050. <td>none</td>
  10051. </tr>
  10052. </tbody>
  10053. </table>
  10054. <aside class="warning">
  10055. To perform this operation, you must be authenticated by means of one of the following methods:
  10056. UserSecurity
  10057. </aside>
  10058. <h2 id="new_custom_field">new_custom_field</h2>
  10059. <p><a id="opIdnew_custom_field"></a></p>
  10060. <blockquote>
  10061. <p>Code samples</p>
  10062. </blockquote>
  10063. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10064. curl -X POST /api/boards/{board}/custom-fields \
  10065. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10066. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10067. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10068. </code></pre>
  10069. <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>
  10070. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10071. Accept: application/json
  10072. </span></code></pre>
  10073. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10074. &quot;name&quot;: &quot;string&quot;,
  10075. &quot;type&quot;: &quot;string&quot;,
  10076. &quot;settings&quot;: &quot;string&quot;,
  10077. &quot;showOnCard&quot;: true,
  10078. &quot;automaticallyOnCard&quot;: true,
  10079. &quot;showLabelOnMiniCard&quot;: true,
  10080. &quot;showSumAtTopOfList&quot;: true,
  10081. &quot;authorId&quot;: &quot;string&quot;
  10082. }&#x27;</span>;
  10083. <span class="hljs-keyword">const</span> headers = {
  10084. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10085. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10086. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10087. };
  10088. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10089. {
  10090. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10091. <span class="hljs-attr">body</span>: inputBody,
  10092. <span class="hljs-attr">headers</span>: headers
  10093. })
  10094. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10095. <span class="hljs-keyword">return</span> res.json();
  10096. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10097. <span class="hljs-built_in">console</span>.log(body);
  10098. });
  10099. </code></pre>
  10100. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10101. <span class="hljs-keyword">const</span> inputBody = {
  10102. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10103. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10104. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10105. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10106. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10107. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10108. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  10109. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10110. };
  10111. <span class="hljs-keyword">const</span> headers = {
  10112. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10113. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10114. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10115. };
  10116. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10117. {
  10118. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10119. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10120. <span class="hljs-attr">headers</span>: headers
  10121. })
  10122. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10123. <span class="hljs-keyword">return</span> res.json();
  10124. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10125. <span class="hljs-built_in">console</span>.log(body);
  10126. });
  10127. </code></pre>
  10128. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10129. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10130. headers = {
  10131. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10132. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10133. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10134. }
  10135. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10136. <span class="hljs-symbol">params:</span> {
  10137. }, <span class="hljs-symbol">headers:</span> headers
  10138. p JSON.parse(result)
  10139. </code></pre>
  10140. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10141. headers = {
  10142. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10143. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10144. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10145. }
  10146. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  10147. <span class="hljs-built_in">print</span>(r.json())
  10148. </code></pre>
  10149. <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>);
  10150. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10151. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10152. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10153. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10154. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10155. String inputLine;
  10156. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10157. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10158. response.append(inputLine);
  10159. }
  10160. in.close();
  10161. System.out.println(response.toString());
  10162. </code></pre>
  10163. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10164. <span class="hljs-keyword">import</span> (
  10165. <span class="hljs-string">&quot;bytes&quot;</span>
  10166. <span class="hljs-string">&quot;net/http&quot;</span>
  10167. )
  10168. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10169. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10170. <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>},
  10171. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10172. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10173. }
  10174. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10175. 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)
  10176. req.Header = headers
  10177. client := &amp;http.Client{}
  10178. resp, err := client.Do(req)
  10179. <span class="hljs-comment">// ...</span>
  10180. }
  10181. </code></pre>
  10182. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10183. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10184. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10185. );
  10186. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10187. <span class="hljs-comment">// Define array of request body.</span>
  10188. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10189. <span class="hljs-keyword">try</span> {
  10190. <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>(
  10191. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10192. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10193. )
  10194. );
  10195. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10196. }
  10197. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10198. <span class="hljs-comment">// handle exception or api errors.</span>
  10199. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10200. }
  10201. <span class="hljs-comment">// ...</span>
  10202. </code></pre>
  10203. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  10204. <p><em>Create a Custom Field</em></p>
  10205. <blockquote>
  10206. <p>Body parameter</p>
  10207. </blockquote>
  10208. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10209. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10210. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10211. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10212. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10213. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10214. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10215. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  10216. </code></pre>
  10217. <h3 id="new_custom_field-parameters">Parameters</h3>
  10218. <table>
  10219. <thead>
  10220. <tr>
  10221. <th>Name</th>
  10222. <th>In</th>
  10223. <th>Type</th>
  10224. <th>Required</th>
  10225. <th>Description</th>
  10226. </tr>
  10227. </thead>
  10228. <tbody>
  10229. <tr>
  10230. <td>board</td>
  10231. <td>path</td>
  10232. <td>string</td>
  10233. <td>true</td>
  10234. <td>the board value</td>
  10235. </tr>
  10236. <tr>
  10237. <td>body</td>
  10238. <td>body</td>
  10239. <td>object</td>
  10240. <td>true</td>
  10241. <td>none</td>
  10242. </tr>
  10243. <tr>
  10244. <td>» name</td>
  10245. <td>body</td>
  10246. <td>string</td>
  10247. <td>true</td>
  10248. <td>the name of the custom field</td>
  10249. </tr>
  10250. <tr>
  10251. <td>» type</td>
  10252. <td>body</td>
  10253. <td>string</td>
  10254. <td>true</td>
  10255. <td>the type of the custom field</td>
  10256. </tr>
  10257. <tr>
  10258. <td>» settings</td>
  10259. <td>body</td>
  10260. <td>string</td>
  10261. <td>true</td>
  10262. <td>the settings object of the custom field</td>
  10263. </tr>
  10264. <tr>
  10265. <td>» showOnCard</td>
  10266. <td>body</td>
  10267. <td>boolean</td>
  10268. <td>true</td>
  10269. <td>should we show the custom field on cards?</td>
  10270. </tr>
  10271. <tr>
  10272. <td>» automaticallyOnCard</td>
  10273. <td>body</td>
  10274. <td>boolean</td>
  10275. <td>true</td>
  10276. <td>should the custom fields automatically be added on cards?</td>
  10277. </tr>
  10278. <tr>
  10279. <td>» showLabelOnMiniCard</td>
  10280. <td>body</td>
  10281. <td>boolean</td>
  10282. <td>true</td>
  10283. <td>should the label of the custom field be shown on minicards?</td>
  10284. </tr>
  10285. <tr>
  10286. <td>» showSumAtTopOfList</td>
  10287. <td>body</td>
  10288. <td>boolean</td>
  10289. <td>true</td>
  10290. <td>should the sum of the custom fields be shown at top of list?</td>
  10291. </tr>
  10292. <tr>
  10293. <td>» authorId</td>
  10294. <td>body</td>
  10295. <td>string</td>
  10296. <td>true</td>
  10297. <td>the authorId value</td>
  10298. </tr>
  10299. </tbody>
  10300. </table>
  10301. <blockquote>
  10302. <p>Example responses</p>
  10303. </blockquote>
  10304. <blockquote>
  10305. <p>200 Response</p>
  10306. </blockquote>
  10307. <pre class="highlight tab tab-json"><code>{
  10308. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10309. }
  10310. </code></pre>
  10311. <h3 id="new_custom_field-responses">Responses</h3>
  10312. <table>
  10313. <thead>
  10314. <tr>
  10315. <th>Status</th>
  10316. <th>Meaning</th>
  10317. <th>Description</th>
  10318. <th>Schema</th>
  10319. </tr>
  10320. </thead>
  10321. <tbody>
  10322. <tr>
  10323. <td>200</td>
  10324. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10325. <td>200 response</td>
  10326. <td>Inline</td>
  10327. </tr>
  10328. </tbody>
  10329. </table>
  10330. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  10331. <p>Status Code <strong>200</strong></p>
  10332. <table>
  10333. <thead>
  10334. <tr>
  10335. <th>Name</th>
  10336. <th>Type</th>
  10337. <th>Required</th>
  10338. <th>Restrictions</th>
  10339. <th>Description</th>
  10340. </tr>
  10341. </thead>
  10342. <tbody>
  10343. <tr>
  10344. <td>» _id</td>
  10345. <td>string</td>
  10346. <td>false</td>
  10347. <td>none</td>
  10348. <td>none</td>
  10349. </tr>
  10350. </tbody>
  10351. </table>
  10352. <aside class="warning">
  10353. To perform this operation, you must be authenticated by means of one of the following methods:
  10354. UserSecurity
  10355. </aside>
  10356. <h2 id="get_custom_field">get_custom_field</h2>
  10357. <p><a id="opIdget_custom_field"></a></p>
  10358. <blockquote>
  10359. <p>Code samples</p>
  10360. </blockquote>
  10361. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10362. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  10363. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10364. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10365. </code></pre>
  10366. <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>
  10367. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10368. </span></code></pre>
  10369. <pre class="highlight tab tab-javascript"><code>
  10370. <span class="hljs-keyword">const</span> headers = {
  10371. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10372. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10373. };
  10374. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10375. {
  10376. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10377. <span class="hljs-attr">headers</span>: headers
  10378. })
  10379. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10380. <span class="hljs-keyword">return</span> res.json();
  10381. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10382. <span class="hljs-built_in">console</span>.log(body);
  10383. });
  10384. </code></pre>
  10385. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10386. <span class="hljs-keyword">const</span> headers = {
  10387. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10388. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10389. };
  10390. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10391. {
  10392. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10393. <span class="hljs-attr">headers</span>: headers
  10394. })
  10395. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10396. <span class="hljs-keyword">return</span> res.json();
  10397. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10398. <span class="hljs-built_in">console</span>.log(body);
  10399. });
  10400. </code></pre>
  10401. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10402. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10403. headers = {
  10404. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10405. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10406. }
  10407. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10408. <span class="hljs-symbol">params:</span> {
  10409. }, <span class="hljs-symbol">headers:</span> headers
  10410. p JSON.parse(result)
  10411. </code></pre>
  10412. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10413. headers = {
  10414. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10415. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10416. }
  10417. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10418. <span class="hljs-built_in">print</span>(r.json())
  10419. </code></pre>
  10420. <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>);
  10421. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10422. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10423. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10424. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10425. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10426. String inputLine;
  10427. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10428. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10429. response.append(inputLine);
  10430. }
  10431. in.close();
  10432. System.out.println(response.toString());
  10433. </code></pre>
  10434. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10435. <span class="hljs-keyword">import</span> (
  10436. <span class="hljs-string">&quot;bytes&quot;</span>
  10437. <span class="hljs-string">&quot;net/http&quot;</span>
  10438. )
  10439. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10440. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10441. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10442. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10443. }
  10444. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10445. 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)
  10446. req.Header = headers
  10447. client := &amp;http.Client{}
  10448. resp, err := client.Do(req)
  10449. <span class="hljs-comment">// ...</span>
  10450. }
  10451. </code></pre>
  10452. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10453. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10454. );
  10455. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10456. <span class="hljs-comment">// Define array of request body.</span>
  10457. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10458. <span class="hljs-keyword">try</span> {
  10459. <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>(
  10460. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10461. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10462. )
  10463. );
  10464. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10465. }
  10466. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10467. <span class="hljs-comment">// handle exception or api errors.</span>
  10468. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10469. }
  10470. <span class="hljs-comment">// ...</span>
  10471. </code></pre>
  10472. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  10473. <p><em>Get a Custom Fields attached to a board</em></p>
  10474. <h3 id="get_custom_field-parameters">Parameters</h3>
  10475. <table>
  10476. <thead>
  10477. <tr>
  10478. <th>Name</th>
  10479. <th>In</th>
  10480. <th>Type</th>
  10481. <th>Required</th>
  10482. <th>Description</th>
  10483. </tr>
  10484. </thead>
  10485. <tbody>
  10486. <tr>
  10487. <td>board</td>
  10488. <td>path</td>
  10489. <td>string</td>
  10490. <td>true</td>
  10491. <td>the board value</td>
  10492. </tr>
  10493. <tr>
  10494. <td>customField</td>
  10495. <td>path</td>
  10496. <td>string</td>
  10497. <td>true</td>
  10498. <td>the ID of the custom field</td>
  10499. </tr>
  10500. </tbody>
  10501. </table>
  10502. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  10503. <p><strong>customField</strong>: the ID of the custom field</p>
  10504. <blockquote>
  10505. <p>Example responses</p>
  10506. </blockquote>
  10507. <blockquote>
  10508. <p>200 Response</p>
  10509. </blockquote>
  10510. <pre class="highlight tab tab-json"><code>[
  10511. {
  10512. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10513. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10514. }
  10515. ]
  10516. </code></pre>
  10517. <h3 id="get_custom_field-responses">Responses</h3>
  10518. <table>
  10519. <thead>
  10520. <tr>
  10521. <th>Status</th>
  10522. <th>Meaning</th>
  10523. <th>Description</th>
  10524. <th>Schema</th>
  10525. </tr>
  10526. </thead>
  10527. <tbody>
  10528. <tr>
  10529. <td>200</td>
  10530. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10531. <td>200 response</td>
  10532. <td>Inline</td>
  10533. </tr>
  10534. </tbody>
  10535. </table>
  10536. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10537. <p>Status Code <strong>200</strong></p>
  10538. <table>
  10539. <thead>
  10540. <tr>
  10541. <th>Name</th>
  10542. <th>Type</th>
  10543. <th>Required</th>
  10544. <th>Restrictions</th>
  10545. <th>Description</th>
  10546. </tr>
  10547. </thead>
  10548. <tbody>
  10549. <tr>
  10550. <td>» _id</td>
  10551. <td>string</td>
  10552. <td>false</td>
  10553. <td>none</td>
  10554. <td>none</td>
  10555. </tr>
  10556. <tr>
  10557. <td>» boardIds</td>
  10558. <td>string</td>
  10559. <td>false</td>
  10560. <td>none</td>
  10561. <td>none</td>
  10562. </tr>
  10563. </tbody>
  10564. </table>
  10565. <aside class="warning">
  10566. To perform this operation, you must be authenticated by means of one of the following methods:
  10567. UserSecurity
  10568. </aside>
  10569. <h2 id="edit_custom_field">edit_custom_field</h2>
  10570. <p><a id="opIdedit_custom_field"></a></p>
  10571. <blockquote>
  10572. <p>Code samples</p>
  10573. </blockquote>
  10574. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10575. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10576. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10577. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10578. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10579. </code></pre>
  10580. <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>
  10581. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10582. Accept: application/json
  10583. </span></code></pre>
  10584. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10585. &quot;name&quot;: &quot;string&quot;,
  10586. &quot;type&quot;: &quot;string&quot;,
  10587. &quot;settings&quot;: &quot;string&quot;,
  10588. &quot;showOnCard&quot;: true,
  10589. &quot;automaticallyOnCard&quot;: true,
  10590. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  10591. &quot;showLabelOnMiniCard&quot;: true,
  10592. &quot;showSumAtTopOfList&quot;: true
  10593. }&#x27;</span>;
  10594. <span class="hljs-keyword">const</span> headers = {
  10595. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10596. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10597. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10598. };
  10599. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10600. {
  10601. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10602. <span class="hljs-attr">body</span>: inputBody,
  10603. <span class="hljs-attr">headers</span>: headers
  10604. })
  10605. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10606. <span class="hljs-keyword">return</span> res.json();
  10607. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10608. <span class="hljs-built_in">console</span>.log(body);
  10609. });
  10610. </code></pre>
  10611. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10612. <span class="hljs-keyword">const</span> inputBody = {
  10613. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10614. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10615. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10616. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10617. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10618. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10619. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10620. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  10621. };
  10622. <span class="hljs-keyword">const</span> headers = {
  10623. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10624. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10625. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10626. };
  10627. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10628. {
  10629. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10630. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10631. <span class="hljs-attr">headers</span>: headers
  10632. })
  10633. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10634. <span class="hljs-keyword">return</span> res.json();
  10635. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10636. <span class="hljs-built_in">console</span>.log(body);
  10637. });
  10638. </code></pre>
  10639. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10640. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10641. headers = {
  10642. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10643. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10644. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10645. }
  10646. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10647. <span class="hljs-symbol">params:</span> {
  10648. }, <span class="hljs-symbol">headers:</span> headers
  10649. p JSON.parse(result)
  10650. </code></pre>
  10651. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10652. headers = {
  10653. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10654. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10655. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10656. }
  10657. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10658. <span class="hljs-built_in">print</span>(r.json())
  10659. </code></pre>
  10660. <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>);
  10661. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10662. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10663. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10664. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10665. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10666. String inputLine;
  10667. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10668. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10669. response.append(inputLine);
  10670. }
  10671. in.close();
  10672. System.out.println(response.toString());
  10673. </code></pre>
  10674. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10675. <span class="hljs-keyword">import</span> (
  10676. <span class="hljs-string">&quot;bytes&quot;</span>
  10677. <span class="hljs-string">&quot;net/http&quot;</span>
  10678. )
  10679. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10680. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10681. <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>},
  10682. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10683. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10684. }
  10685. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10686. 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)
  10687. req.Header = headers
  10688. client := &amp;http.Client{}
  10689. resp, err := client.Do(req)
  10690. <span class="hljs-comment">// ...</span>
  10691. }
  10692. </code></pre>
  10693. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10694. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10695. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10696. );
  10697. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10698. <span class="hljs-comment">// Define array of request body.</span>
  10699. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10700. <span class="hljs-keyword">try</span> {
  10701. <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>(
  10702. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10703. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10704. )
  10705. );
  10706. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10707. }
  10708. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10709. <span class="hljs-comment">// handle exception or api errors.</span>
  10710. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10711. }
  10712. <span class="hljs-comment">// ...</span>
  10713. </code></pre>
  10714. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10715. <p><em>Update a Custom Field</em></p>
  10716. <blockquote>
  10717. <p>Body parameter</p>
  10718. </blockquote>
  10719. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10720. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10721. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10722. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10723. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10724. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10725. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10726. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10727. </code></pre>
  10728. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10729. <table>
  10730. <thead>
  10731. <tr>
  10732. <th>Name</th>
  10733. <th>In</th>
  10734. <th>Type</th>
  10735. <th>Required</th>
  10736. <th>Description</th>
  10737. </tr>
  10738. </thead>
  10739. <tbody>
  10740. <tr>
  10741. <td>board</td>
  10742. <td>path</td>
  10743. <td>string</td>
  10744. <td>true</td>
  10745. <td>the board value</td>
  10746. </tr>
  10747. <tr>
  10748. <td>customField</td>
  10749. <td>path</td>
  10750. <td>string</td>
  10751. <td>true</td>
  10752. <td>the customField value</td>
  10753. </tr>
  10754. <tr>
  10755. <td>body</td>
  10756. <td>body</td>
  10757. <td>object</td>
  10758. <td>true</td>
  10759. <td>none</td>
  10760. </tr>
  10761. <tr>
  10762. <td>» name</td>
  10763. <td>body</td>
  10764. <td>string</td>
  10765. <td>true</td>
  10766. <td>the name of the custom field</td>
  10767. </tr>
  10768. <tr>
  10769. <td>» type</td>
  10770. <td>body</td>
  10771. <td>string</td>
  10772. <td>true</td>
  10773. <td>the type of the custom field</td>
  10774. </tr>
  10775. <tr>
  10776. <td>» settings</td>
  10777. <td>body</td>
  10778. <td>string</td>
  10779. <td>true</td>
  10780. <td>the settings object of the custom field</td>
  10781. </tr>
  10782. <tr>
  10783. <td>» showOnCard</td>
  10784. <td>body</td>
  10785. <td>boolean</td>
  10786. <td>true</td>
  10787. <td>should we show the custom field on cards</td>
  10788. </tr>
  10789. <tr>
  10790. <td>» automaticallyOnCard</td>
  10791. <td>body</td>
  10792. <td>boolean</td>
  10793. <td>true</td>
  10794. <td>should the custom fields automatically be added on cards</td>
  10795. </tr>
  10796. <tr>
  10797. <td>» alwaysOnCard</td>
  10798. <td>body</td>
  10799. <td>string</td>
  10800. <td>true</td>
  10801. <td>the alwaysOnCard value</td>
  10802. </tr>
  10803. <tr>
  10804. <td>» showLabelOnMiniCard</td>
  10805. <td>body</td>
  10806. <td>boolean</td>
  10807. <td>true</td>
  10808. <td>should the label of the custom field be shown on minicards</td>
  10809. </tr>
  10810. <tr>
  10811. <td>» showSumAtTopOfList</td>
  10812. <td>body</td>
  10813. <td>boolean</td>
  10814. <td>true</td>
  10815. <td>should the sum of the custom fields be shown at top of list</td>
  10816. </tr>
  10817. </tbody>
  10818. </table>
  10819. <blockquote>
  10820. <p>Example responses</p>
  10821. </blockquote>
  10822. <blockquote>
  10823. <p>200 Response</p>
  10824. </blockquote>
  10825. <pre class="highlight tab tab-json"><code>{
  10826. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10827. }
  10828. </code></pre>
  10829. <h3 id="edit_custom_field-responses">Responses</h3>
  10830. <table>
  10831. <thead>
  10832. <tr>
  10833. <th>Status</th>
  10834. <th>Meaning</th>
  10835. <th>Description</th>
  10836. <th>Schema</th>
  10837. </tr>
  10838. </thead>
  10839. <tbody>
  10840. <tr>
  10841. <td>200</td>
  10842. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10843. <td>200 response</td>
  10844. <td>Inline</td>
  10845. </tr>
  10846. </tbody>
  10847. </table>
  10848. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10849. <p>Status Code <strong>200</strong></p>
  10850. <table>
  10851. <thead>
  10852. <tr>
  10853. <th>Name</th>
  10854. <th>Type</th>
  10855. <th>Required</th>
  10856. <th>Restrictions</th>
  10857. <th>Description</th>
  10858. </tr>
  10859. </thead>
  10860. <tbody>
  10861. <tr>
  10862. <td>» _id</td>
  10863. <td>string</td>
  10864. <td>false</td>
  10865. <td>none</td>
  10866. <td>none</td>
  10867. </tr>
  10868. </tbody>
  10869. </table>
  10870. <aside class="warning">
  10871. To perform this operation, you must be authenticated by means of one of the following methods:
  10872. UserSecurity
  10873. </aside>
  10874. <h2 id="delete_custom_field">delete_custom_field</h2>
  10875. <p><a id="opIddelete_custom_field"></a></p>
  10876. <blockquote>
  10877. <p>Code samples</p>
  10878. </blockquote>
  10879. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10880. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10881. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10882. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10883. </code></pre>
  10884. <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>
  10885. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10886. </span></code></pre>
  10887. <pre class="highlight tab tab-javascript"><code>
  10888. <span class="hljs-keyword">const</span> headers = {
  10889. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10890. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10891. };
  10892. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10893. {
  10894. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10895. <span class="hljs-attr">headers</span>: headers
  10896. })
  10897. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10898. <span class="hljs-keyword">return</span> res.json();
  10899. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10900. <span class="hljs-built_in">console</span>.log(body);
  10901. });
  10902. </code></pre>
  10903. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10904. <span class="hljs-keyword">const</span> headers = {
  10905. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10906. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10907. };
  10908. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10909. {
  10910. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10911. <span class="hljs-attr">headers</span>: headers
  10912. })
  10913. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10914. <span class="hljs-keyword">return</span> res.json();
  10915. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10916. <span class="hljs-built_in">console</span>.log(body);
  10917. });
  10918. </code></pre>
  10919. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10920. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10921. headers = {
  10922. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10923. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10924. }
  10925. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10926. <span class="hljs-symbol">params:</span> {
  10927. }, <span class="hljs-symbol">headers:</span> headers
  10928. p JSON.parse(result)
  10929. </code></pre>
  10930. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10931. headers = {
  10932. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10933. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10934. }
  10935. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10936. <span class="hljs-built_in">print</span>(r.json())
  10937. </code></pre>
  10938. <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>);
  10939. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10940. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10941. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10942. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10943. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10944. String inputLine;
  10945. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10946. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10947. response.append(inputLine);
  10948. }
  10949. in.close();
  10950. System.out.println(response.toString());
  10951. </code></pre>
  10952. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10953. <span class="hljs-keyword">import</span> (
  10954. <span class="hljs-string">&quot;bytes&quot;</span>
  10955. <span class="hljs-string">&quot;net/http&quot;</span>
  10956. )
  10957. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10958. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10959. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10960. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10961. }
  10962. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10963. 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)
  10964. req.Header = headers
  10965. client := &amp;http.Client{}
  10966. resp, err := client.Do(req)
  10967. <span class="hljs-comment">// ...</span>
  10968. }
  10969. </code></pre>
  10970. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10971. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10972. );
  10973. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10974. <span class="hljs-comment">// Define array of request body.</span>
  10975. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10976. <span class="hljs-keyword">try</span> {
  10977. <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>(
  10978. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10979. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10980. )
  10981. );
  10982. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10983. }
  10984. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10985. <span class="hljs-comment">// handle exception or api errors.</span>
  10986. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10987. }
  10988. <span class="hljs-comment">// ...</span>
  10989. </code></pre>
  10990. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10991. <p><em>Delete a Custom Fields attached to a board</em></p>
  10992. <p>The Custom Field can't be retrieved after this operation</p>
  10993. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10994. <table>
  10995. <thead>
  10996. <tr>
  10997. <th>Name</th>
  10998. <th>In</th>
  10999. <th>Type</th>
  11000. <th>Required</th>
  11001. <th>Description</th>
  11002. </tr>
  11003. </thead>
  11004. <tbody>
  11005. <tr>
  11006. <td>board</td>
  11007. <td>path</td>
  11008. <td>string</td>
  11009. <td>true</td>
  11010. <td>the board value</td>
  11011. </tr>
  11012. <tr>
  11013. <td>customField</td>
  11014. <td>path</td>
  11015. <td>string</td>
  11016. <td>true</td>
  11017. <td>the ID of the custom field</td>
  11018. </tr>
  11019. </tbody>
  11020. </table>
  11021. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11022. <p><strong>customField</strong>: the ID of the custom field</p>
  11023. <blockquote>
  11024. <p>Example responses</p>
  11025. </blockquote>
  11026. <blockquote>
  11027. <p>200 Response</p>
  11028. </blockquote>
  11029. <pre class="highlight tab tab-json"><code>{
  11030. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11031. }
  11032. </code></pre>
  11033. <h3 id="delete_custom_field-responses">Responses</h3>
  11034. <table>
  11035. <thead>
  11036. <tr>
  11037. <th>Status</th>
  11038. <th>Meaning</th>
  11039. <th>Description</th>
  11040. <th>Schema</th>
  11041. </tr>
  11042. </thead>
  11043. <tbody>
  11044. <tr>
  11045. <td>200</td>
  11046. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11047. <td>200 response</td>
  11048. <td>Inline</td>
  11049. </tr>
  11050. </tbody>
  11051. </table>
  11052. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  11053. <p>Status Code <strong>200</strong></p>
  11054. <table>
  11055. <thead>
  11056. <tr>
  11057. <th>Name</th>
  11058. <th>Type</th>
  11059. <th>Required</th>
  11060. <th>Restrictions</th>
  11061. <th>Description</th>
  11062. </tr>
  11063. </thead>
  11064. <tbody>
  11065. <tr>
  11066. <td>» _id</td>
  11067. <td>string</td>
  11068. <td>false</td>
  11069. <td>none</td>
  11070. <td>none</td>
  11071. </tr>
  11072. </tbody>
  11073. </table>
  11074. <aside class="warning">
  11075. To perform this operation, you must be authenticated by means of one of the following methods:
  11076. UserSecurity
  11077. </aside>
  11078. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  11079. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  11080. <blockquote>
  11081. <p>Code samples</p>
  11082. </blockquote>
  11083. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11084. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  11085. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11086. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11087. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11088. </code></pre>
  11089. <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>
  11090. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11091. Accept: application/json
  11092. </span></code></pre>
  11093. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11094. &quot;items&quot;: &quot;string&quot;
  11095. }&#x27;</span>;
  11096. <span class="hljs-keyword">const</span> headers = {
  11097. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11098. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11099. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11100. };
  11101. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11102. {
  11103. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11104. <span class="hljs-attr">body</span>: inputBody,
  11105. <span class="hljs-attr">headers</span>: headers
  11106. })
  11107. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11108. <span class="hljs-keyword">return</span> res.json();
  11109. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11110. <span class="hljs-built_in">console</span>.log(body);
  11111. });
  11112. </code></pre>
  11113. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11114. <span class="hljs-keyword">const</span> inputBody = {
  11115. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11116. };
  11117. <span class="hljs-keyword">const</span> headers = {
  11118. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11119. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11120. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11121. };
  11122. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11123. {
  11124. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11125. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11126. <span class="hljs-attr">headers</span>: headers
  11127. })
  11128. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11129. <span class="hljs-keyword">return</span> res.json();
  11130. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11131. <span class="hljs-built_in">console</span>.log(body);
  11132. });
  11133. </code></pre>
  11134. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11135. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11136. headers = {
  11137. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11138. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11139. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11140. }
  11141. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11142. <span class="hljs-symbol">params:</span> {
  11143. }, <span class="hljs-symbol">headers:</span> headers
  11144. p JSON.parse(result)
  11145. </code></pre>
  11146. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11147. 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. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  11153. <span class="hljs-built_in">print</span>(r.json())
  11154. </code></pre>
  11155. <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>);
  11156. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11157. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11158. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11159. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11160. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11161. String inputLine;
  11162. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11163. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11164. response.append(inputLine);
  11165. }
  11166. in.close();
  11167. System.out.println(response.toString());
  11168. </code></pre>
  11169. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11170. <span class="hljs-keyword">import</span> (
  11171. <span class="hljs-string">&quot;bytes&quot;</span>
  11172. <span class="hljs-string">&quot;net/http&quot;</span>
  11173. )
  11174. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11175. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11176. <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>},
  11177. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11178. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11179. }
  11180. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11181. 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)
  11182. req.Header = headers
  11183. client := &amp;http.Client{}
  11184. resp, err := client.Do(req)
  11185. <span class="hljs-comment">// ...</span>
  11186. }
  11187. </code></pre>
  11188. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11189. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11190. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11191. );
  11192. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11193. <span class="hljs-comment">// Define array of request body.</span>
  11194. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11195. <span class="hljs-keyword">try</span> {
  11196. <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>(
  11197. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11198. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11199. )
  11200. );
  11201. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11202. }
  11203. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11204. <span class="hljs-comment">// handle exception or api errors.</span>
  11205. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11206. }
  11207. <span class="hljs-comment">// ...</span>
  11208. </code></pre>
  11209. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  11210. <p><em>Update a Custom Field's dropdown items</em></p>
  11211. <blockquote>
  11212. <p>Body parameter</p>
  11213. </blockquote>
  11214. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  11215. </code></pre>
  11216. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  11217. <table>
  11218. <thead>
  11219. <tr>
  11220. <th>Name</th>
  11221. <th>In</th>
  11222. <th>Type</th>
  11223. <th>Required</th>
  11224. <th>Description</th>
  11225. </tr>
  11226. </thead>
  11227. <tbody>
  11228. <tr>
  11229. <td>board</td>
  11230. <td>path</td>
  11231. <td>string</td>
  11232. <td>true</td>
  11233. <td>the board value</td>
  11234. </tr>
  11235. <tr>
  11236. <td>customField</td>
  11237. <td>path</td>
  11238. <td>string</td>
  11239. <td>true</td>
  11240. <td>the customField value</td>
  11241. </tr>
  11242. <tr>
  11243. <td>body</td>
  11244. <td>body</td>
  11245. <td>object</td>
  11246. <td>false</td>
  11247. <td>none</td>
  11248. </tr>
  11249. <tr>
  11250. <td>» items</td>
  11251. <td>body</td>
  11252. <td>string</td>
  11253. <td>false</td>
  11254. <td>names of the custom field</td>
  11255. </tr>
  11256. </tbody>
  11257. </table>
  11258. <blockquote>
  11259. <p>Example responses</p>
  11260. </blockquote>
  11261. <blockquote>
  11262. <p>200 Response</p>
  11263. </blockquote>
  11264. <pre class="highlight tab tab-json"><code>{
  11265. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11266. }
  11267. </code></pre>
  11268. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  11269. <table>
  11270. <thead>
  11271. <tr>
  11272. <th>Status</th>
  11273. <th>Meaning</th>
  11274. <th>Description</th>
  11275. <th>Schema</th>
  11276. </tr>
  11277. </thead>
  11278. <tbody>
  11279. <tr>
  11280. <td>200</td>
  11281. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11282. <td>200 response</td>
  11283. <td>Inline</td>
  11284. </tr>
  11285. </tbody>
  11286. </table>
  11287. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  11288. <p>Status Code <strong>200</strong></p>
  11289. <table>
  11290. <thead>
  11291. <tr>
  11292. <th>Name</th>
  11293. <th>Type</th>
  11294. <th>Required</th>
  11295. <th>Restrictions</th>
  11296. <th>Description</th>
  11297. </tr>
  11298. </thead>
  11299. <tbody>
  11300. <tr>
  11301. <td>» _id</td>
  11302. <td>string</td>
  11303. <td>false</td>
  11304. <td>none</td>
  11305. <td>none</td>
  11306. </tr>
  11307. </tbody>
  11308. </table>
  11309. <aside class="warning">
  11310. To perform this operation, you must be authenticated by means of one of the following methods:
  11311. UserSecurity
  11312. </aside>
  11313. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  11314. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  11315. <blockquote>
  11316. <p>Code samples</p>
  11317. </blockquote>
  11318. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11319. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11320. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11321. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11322. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11323. </code></pre>
  11324. <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>
  11325. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11326. Accept: application/json
  11327. </span></code></pre>
  11328. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11329. &quot;name&quot;: &quot;string&quot;
  11330. }&#x27;</span>;
  11331. <span class="hljs-keyword">const</span> headers = {
  11332. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11333. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11334. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11335. };
  11336. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11337. {
  11338. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11339. <span class="hljs-attr">body</span>: inputBody,
  11340. <span class="hljs-attr">headers</span>: headers
  11341. })
  11342. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11343. <span class="hljs-keyword">return</span> res.json();
  11344. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11345. <span class="hljs-built_in">console</span>.log(body);
  11346. });
  11347. </code></pre>
  11348. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11349. <span class="hljs-keyword">const</span> inputBody = {
  11350. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11351. };
  11352. <span class="hljs-keyword">const</span> headers = {
  11353. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11354. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11355. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11356. };
  11357. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11358. {
  11359. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11360. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11361. <span class="hljs-attr">headers</span>: headers
  11362. })
  11363. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11364. <span class="hljs-keyword">return</span> res.json();
  11365. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11366. <span class="hljs-built_in">console</span>.log(body);
  11367. });
  11368. </code></pre>
  11369. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11370. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11371. headers = {
  11372. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11373. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11374. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11375. }
  11376. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11377. <span class="hljs-symbol">params:</span> {
  11378. }, <span class="hljs-symbol">headers:</span> headers
  11379. p JSON.parse(result)
  11380. </code></pre>
  11381. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11382. headers = {
  11383. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11384. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11385. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11386. }
  11387. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11388. <span class="hljs-built_in">print</span>(r.json())
  11389. </code></pre>
  11390. <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>);
  11391. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11392. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11393. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11394. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11395. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11396. String inputLine;
  11397. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11398. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11399. response.append(inputLine);
  11400. }
  11401. in.close();
  11402. System.out.println(response.toString());
  11403. </code></pre>
  11404. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11405. <span class="hljs-keyword">import</span> (
  11406. <span class="hljs-string">&quot;bytes&quot;</span>
  11407. <span class="hljs-string">&quot;net/http&quot;</span>
  11408. )
  11409. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11410. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11411. <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>},
  11412. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11413. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11414. }
  11415. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11416. 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)
  11417. req.Header = headers
  11418. client := &amp;http.Client{}
  11419. resp, err := client.Do(req)
  11420. <span class="hljs-comment">// ...</span>
  11421. }
  11422. </code></pre>
  11423. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11424. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11425. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11426. );
  11427. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11428. <span class="hljs-comment">// Define array of request body.</span>
  11429. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11430. <span class="hljs-keyword">try</span> {
  11431. <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>(
  11432. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11433. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11434. )
  11435. );
  11436. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11437. }
  11438. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11439. <span class="hljs-comment">// handle exception or api errors.</span>
  11440. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11441. }
  11442. <span class="hljs-comment">// ...</span>
  11443. </code></pre>
  11444. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11445. <p><em>Update a Custom Field's dropdown item</em></p>
  11446. <blockquote>
  11447. <p>Body parameter</p>
  11448. </blockquote>
  11449. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11450. </code></pre>
  11451. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  11452. <table>
  11453. <thead>
  11454. <tr>
  11455. <th>Name</th>
  11456. <th>In</th>
  11457. <th>Type</th>
  11458. <th>Required</th>
  11459. <th>Description</th>
  11460. </tr>
  11461. </thead>
  11462. <tbody>
  11463. <tr>
  11464. <td>board</td>
  11465. <td>path</td>
  11466. <td>string</td>
  11467. <td>true</td>
  11468. <td>the board value</td>
  11469. </tr>
  11470. <tr>
  11471. <td>customField</td>
  11472. <td>path</td>
  11473. <td>string</td>
  11474. <td>true</td>
  11475. <td>the customField value</td>
  11476. </tr>
  11477. <tr>
  11478. <td>dropdownItem</td>
  11479. <td>path</td>
  11480. <td>string</td>
  11481. <td>true</td>
  11482. <td>the dropdownItem value</td>
  11483. </tr>
  11484. <tr>
  11485. <td>body</td>
  11486. <td>body</td>
  11487. <td>object</td>
  11488. <td>true</td>
  11489. <td>none</td>
  11490. </tr>
  11491. <tr>
  11492. <td>» name</td>
  11493. <td>body</td>
  11494. <td>string</td>
  11495. <td>true</td>
  11496. <td>names of the custom field</td>
  11497. </tr>
  11498. </tbody>
  11499. </table>
  11500. <blockquote>
  11501. <p>Example responses</p>
  11502. </blockquote>
  11503. <blockquote>
  11504. <p>200 Response</p>
  11505. </blockquote>
  11506. <pre class="highlight tab tab-json"><code>{
  11507. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11508. }
  11509. </code></pre>
  11510. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  11511. <table>
  11512. <thead>
  11513. <tr>
  11514. <th>Status</th>
  11515. <th>Meaning</th>
  11516. <th>Description</th>
  11517. <th>Schema</th>
  11518. </tr>
  11519. </thead>
  11520. <tbody>
  11521. <tr>
  11522. <td>200</td>
  11523. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11524. <td>200 response</td>
  11525. <td>Inline</td>
  11526. </tr>
  11527. </tbody>
  11528. </table>
  11529. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11530. <p>Status Code <strong>200</strong></p>
  11531. <table>
  11532. <thead>
  11533. <tr>
  11534. <th>Name</th>
  11535. <th>Type</th>
  11536. <th>Required</th>
  11537. <th>Restrictions</th>
  11538. <th>Description</th>
  11539. </tr>
  11540. </thead>
  11541. <tbody>
  11542. <tr>
  11543. <td>» _id</td>
  11544. <td>string</td>
  11545. <td>false</td>
  11546. <td>none</td>
  11547. <td>none</td>
  11548. </tr>
  11549. </tbody>
  11550. </table>
  11551. <aside class="warning">
  11552. To perform this operation, you must be authenticated by means of one of the following methods:
  11553. UserSecurity
  11554. </aside>
  11555. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11556. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11557. <blockquote>
  11558. <p>Code samples</p>
  11559. </blockquote>
  11560. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11561. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11562. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11563. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11564. </code></pre>
  11565. <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>
  11566. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11567. </span></code></pre>
  11568. <pre class="highlight tab tab-javascript"><code>
  11569. <span class="hljs-keyword">const</span> headers = {
  11570. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11571. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11572. };
  11573. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11574. {
  11575. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11576. <span class="hljs-attr">headers</span>: headers
  11577. })
  11578. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11579. <span class="hljs-keyword">return</span> res.json();
  11580. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11581. <span class="hljs-built_in">console</span>.log(body);
  11582. });
  11583. </code></pre>
  11584. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11585. <span class="hljs-keyword">const</span> headers = {
  11586. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11587. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11588. };
  11589. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11590. {
  11591. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11592. <span class="hljs-attr">headers</span>: headers
  11593. })
  11594. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11595. <span class="hljs-keyword">return</span> res.json();
  11596. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11597. <span class="hljs-built_in">console</span>.log(body);
  11598. });
  11599. </code></pre>
  11600. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11601. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11602. headers = {
  11603. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11604. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11605. }
  11606. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11607. <span class="hljs-symbol">params:</span> {
  11608. }, <span class="hljs-symbol">headers:</span> headers
  11609. p JSON.parse(result)
  11610. </code></pre>
  11611. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11612. headers = {
  11613. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11614. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11615. }
  11616. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11617. <span class="hljs-built_in">print</span>(r.json())
  11618. </code></pre>
  11619. <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>);
  11620. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11621. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11622. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11623. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11624. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11625. String inputLine;
  11626. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11627. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11628. response.append(inputLine);
  11629. }
  11630. in.close();
  11631. System.out.println(response.toString());
  11632. </code></pre>
  11633. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11634. <span class="hljs-keyword">import</span> (
  11635. <span class="hljs-string">&quot;bytes&quot;</span>
  11636. <span class="hljs-string">&quot;net/http&quot;</span>
  11637. )
  11638. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11639. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11640. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11641. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11642. }
  11643. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11644. 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)
  11645. req.Header = headers
  11646. client := &amp;http.Client{}
  11647. resp, err := client.Do(req)
  11648. <span class="hljs-comment">// ...</span>
  11649. }
  11650. </code></pre>
  11651. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11652. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11653. );
  11654. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11655. <span class="hljs-comment">// Define array of request body.</span>
  11656. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11657. <span class="hljs-keyword">try</span> {
  11658. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;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>(
  11659. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11660. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11661. )
  11662. );
  11663. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11664. }
  11665. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11666. <span class="hljs-comment">// handle exception or api errors.</span>
  11667. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11668. }
  11669. <span class="hljs-comment">// ...</span>
  11670. </code></pre>
  11671. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11672. <p><em>Update a Custom Field's dropdown items</em></p>
  11673. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11674. <table>
  11675. <thead>
  11676. <tr>
  11677. <th>Name</th>
  11678. <th>In</th>
  11679. <th>Type</th>
  11680. <th>Required</th>
  11681. <th>Description</th>
  11682. </tr>
  11683. </thead>
  11684. <tbody>
  11685. <tr>
  11686. <td>board</td>
  11687. <td>path</td>
  11688. <td>string</td>
  11689. <td>true</td>
  11690. <td>the board value</td>
  11691. </tr>
  11692. <tr>
  11693. <td>customField</td>
  11694. <td>path</td>
  11695. <td>string</td>
  11696. <td>true</td>
  11697. <td>the customField value</td>
  11698. </tr>
  11699. <tr>
  11700. <td>dropdownItem</td>
  11701. <td>path</td>
  11702. <td>string</td>
  11703. <td>true</td>
  11704. <td>the dropdownItem value</td>
  11705. </tr>
  11706. </tbody>
  11707. </table>
  11708. <blockquote>
  11709. <p>Example responses</p>
  11710. </blockquote>
  11711. <blockquote>
  11712. <p>200 Response</p>
  11713. </blockquote>
  11714. <pre class="highlight tab tab-json"><code>{
  11715. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11716. }
  11717. </code></pre>
  11718. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11719. <table>
  11720. <thead>
  11721. <tr>
  11722. <th>Status</th>
  11723. <th>Meaning</th>
  11724. <th>Description</th>
  11725. <th>Schema</th>
  11726. </tr>
  11727. </thead>
  11728. <tbody>
  11729. <tr>
  11730. <td>200</td>
  11731. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11732. <td>200 response</td>
  11733. <td>Inline</td>
  11734. </tr>
  11735. </tbody>
  11736. </table>
  11737. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11738. <p>Status Code <strong>200</strong></p>
  11739. <table>
  11740. <thead>
  11741. <tr>
  11742. <th>Name</th>
  11743. <th>Type</th>
  11744. <th>Required</th>
  11745. <th>Restrictions</th>
  11746. <th>Description</th>
  11747. </tr>
  11748. </thead>
  11749. <tbody>
  11750. <tr>
  11751. <td>» _id</td>
  11752. <td>string</td>
  11753. <td>false</td>
  11754. <td>none</td>
  11755. <td>none</td>
  11756. </tr>
  11757. </tbody>
  11758. </table>
  11759. <aside class="warning">
  11760. To perform this operation, you must be authenticated by means of one of the following methods:
  11761. UserSecurity
  11762. </aside>
  11763. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11764. <h2 id="get_all_integrations">get_all_integrations</h2>
  11765. <p><a id="opIdget_all_integrations"></a></p>
  11766. <blockquote>
  11767. <p>Code samples</p>
  11768. </blockquote>
  11769. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11770. curl -X GET /api/boards/{board}/integrations \
  11771. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11772. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11773. </code></pre>
  11774. <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>
  11775. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11776. </span></code></pre>
  11777. <pre class="highlight tab tab-javascript"><code>
  11778. <span class="hljs-keyword">const</span> headers = {
  11779. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11780. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11781. };
  11782. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11783. {
  11784. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11785. <span class="hljs-attr">headers</span>: headers
  11786. })
  11787. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11788. <span class="hljs-keyword">return</span> res.json();
  11789. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11790. <span class="hljs-built_in">console</span>.log(body);
  11791. });
  11792. </code></pre>
  11793. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11794. <span class="hljs-keyword">const</span> headers = {
  11795. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11796. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11797. };
  11798. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11799. {
  11800. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11801. <span class="hljs-attr">headers</span>: headers
  11802. })
  11803. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11804. <span class="hljs-keyword">return</span> res.json();
  11805. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11806. <span class="hljs-built_in">console</span>.log(body);
  11807. });
  11808. </code></pre>
  11809. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11810. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11811. headers = {
  11812. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11813. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11814. }
  11815. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11816. <span class="hljs-symbol">params:</span> {
  11817. }, <span class="hljs-symbol">headers:</span> headers
  11818. p JSON.parse(result)
  11819. </code></pre>
  11820. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11821. headers = {
  11822. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11823. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11824. }
  11825. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11826. <span class="hljs-built_in">print</span>(r.json())
  11827. </code></pre>
  11828. <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>);
  11829. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11830. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11831. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11832. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11833. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11834. String inputLine;
  11835. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11836. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11837. response.append(inputLine);
  11838. }
  11839. in.close();
  11840. System.out.println(response.toString());
  11841. </code></pre>
  11842. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11843. <span class="hljs-keyword">import</span> (
  11844. <span class="hljs-string">&quot;bytes&quot;</span>
  11845. <span class="hljs-string">&quot;net/http&quot;</span>
  11846. )
  11847. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11848. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11849. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11850. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11851. }
  11852. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11853. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11854. req.Header = headers
  11855. client := &amp;http.Client{}
  11856. resp, err := client.Do(req)
  11857. <span class="hljs-comment">// ...</span>
  11858. }
  11859. </code></pre>
  11860. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11861. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11862. );
  11863. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11864. <span class="hljs-comment">// Define array of request body.</span>
  11865. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11866. <span class="hljs-keyword">try</span> {
  11867. <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>(
  11868. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11869. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11870. )
  11871. );
  11872. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11873. }
  11874. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11875. <span class="hljs-comment">// handle exception or api errors.</span>
  11876. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11877. }
  11878. <span class="hljs-comment">// ...</span>
  11879. </code></pre>
  11880. <p><code>GET /api/boards/{board}/integrations</code></p>
  11881. <p><em>Get all integrations in board</em></p>
  11882. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11883. <table>
  11884. <thead>
  11885. <tr>
  11886. <th>Name</th>
  11887. <th>In</th>
  11888. <th>Type</th>
  11889. <th>Required</th>
  11890. <th>Description</th>
  11891. </tr>
  11892. </thead>
  11893. <tbody>
  11894. <tr>
  11895. <td>board</td>
  11896. <td>path</td>
  11897. <td>string</td>
  11898. <td>true</td>
  11899. <td>the board ID</td>
  11900. </tr>
  11901. </tbody>
  11902. </table>
  11903. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11904. <p><strong>board</strong>: the board ID</p>
  11905. <blockquote>
  11906. <p>Example responses</p>
  11907. </blockquote>
  11908. <blockquote>
  11909. <p>200 Response</p>
  11910. </blockquote>
  11911. <pre class="highlight tab tab-json"><code>[
  11912. {
  11913. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11914. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11915. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11916. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11917. <span class="hljs-string">&quot;string&quot;</span>
  11918. ],
  11919. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11920. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11921. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11922. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11923. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11924. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11925. }
  11926. ]
  11927. </code></pre>
  11928. <h3 id="get_all_integrations-responses">Responses</h3>
  11929. <table>
  11930. <thead>
  11931. <tr>
  11932. <th>Status</th>
  11933. <th>Meaning</th>
  11934. <th>Description</th>
  11935. <th>Schema</th>
  11936. </tr>
  11937. </thead>
  11938. <tbody>
  11939. <tr>
  11940. <td>200</td>
  11941. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11942. <td>200 response</td>
  11943. <td>Inline</td>
  11944. </tr>
  11945. </tbody>
  11946. </table>
  11947. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11948. <p>Status Code <strong>200</strong></p>
  11949. <table>
  11950. <thead>
  11951. <tr>
  11952. <th>Name</th>
  11953. <th>Type</th>
  11954. <th>Required</th>
  11955. <th>Restrictions</th>
  11956. <th>Description</th>
  11957. </tr>
  11958. </thead>
  11959. <tbody>
  11960. <tr>
  11961. <td><em>anonymous</em></td>
  11962. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11963. <td>false</td>
  11964. <td>none</td>
  11965. <td>[Integration with third-party applications]</td>
  11966. </tr>
  11967. <tr>
  11968. <td>» enabled</td>
  11969. <td>boolean</td>
  11970. <td>true</td>
  11971. <td>none</td>
  11972. <td>is the integration enabled?</td>
  11973. </tr>
  11974. <tr>
  11975. <td>» title</td>
  11976. <td>string¦null</td>
  11977. <td>false</td>
  11978. <td>none</td>
  11979. <td>name of the integration</td>
  11980. </tr>
  11981. <tr>
  11982. <td>» type</td>
  11983. <td>string</td>
  11984. <td>true</td>
  11985. <td>none</td>
  11986. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11987. </tr>
  11988. <tr>
  11989. <td>» activities</td>
  11990. <td>[string]</td>
  11991. <td>true</td>
  11992. <td>none</td>
  11993. <td>activities the integration gets triggered (list)</td>
  11994. </tr>
  11995. <tr>
  11996. <td>» url</td>
  11997. <td>string</td>
  11998. <td>true</td>
  11999. <td>none</td>
  12000. <td>none</td>
  12001. </tr>
  12002. <tr>
  12003. <td>» token</td>
  12004. <td>string¦null</td>
  12005. <td>false</td>
  12006. <td>none</td>
  12007. <td>token of the integration</td>
  12008. </tr>
  12009. <tr>
  12010. <td>» boardId</td>
  12011. <td>string</td>
  12012. <td>true</td>
  12013. <td>none</td>
  12014. <td>Board ID of the integration</td>
  12015. </tr>
  12016. <tr>
  12017. <td>» createdAt</td>
  12018. <td>string</td>
  12019. <td>true</td>
  12020. <td>none</td>
  12021. <td>Creation date of the integration</td>
  12022. </tr>
  12023. <tr>
  12024. <td>» modifiedAt</td>
  12025. <td>string</td>
  12026. <td>true</td>
  12027. <td>none</td>
  12028. <td>none</td>
  12029. </tr>
  12030. <tr>
  12031. <td>» userId</td>
  12032. <td>string</td>
  12033. <td>true</td>
  12034. <td>none</td>
  12035. <td>user ID who created the interation</td>
  12036. </tr>
  12037. </tbody>
  12038. </table>
  12039. <aside class="warning">
  12040. To perform this operation, you must be authenticated by means of one of the following methods:
  12041. UserSecurity
  12042. </aside>
  12043. <h2 id="new_integration">new_integration</h2>
  12044. <p><a id="opIdnew_integration"></a></p>
  12045. <blockquote>
  12046. <p>Code samples</p>
  12047. </blockquote>
  12048. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12049. curl -X POST /api/boards/{board}/integrations \
  12050. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12051. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12052. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12053. </code></pre>
  12054. <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>
  12055. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12056. Accept: application/json
  12057. </span></code></pre>
  12058. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12059. &quot;url&quot;: &quot;string&quot;
  12060. }&#x27;</span>;
  12061. <span class="hljs-keyword">const</span> headers = {
  12062. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12063. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12064. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12065. };
  12066. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12067. {
  12068. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12069. <span class="hljs-attr">body</span>: inputBody,
  12070. <span class="hljs-attr">headers</span>: headers
  12071. })
  12072. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12073. <span class="hljs-keyword">return</span> res.json();
  12074. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12075. <span class="hljs-built_in">console</span>.log(body);
  12076. });
  12077. </code></pre>
  12078. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12079. <span class="hljs-keyword">const</span> inputBody = {
  12080. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12081. };
  12082. <span class="hljs-keyword">const</span> headers = {
  12083. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12084. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12085. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12086. };
  12087. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12088. {
  12089. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12090. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12091. <span class="hljs-attr">headers</span>: headers
  12092. })
  12093. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12094. <span class="hljs-keyword">return</span> res.json();
  12095. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12096. <span class="hljs-built_in">console</span>.log(body);
  12097. });
  12098. </code></pre>
  12099. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12100. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12101. headers = {
  12102. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12103. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12104. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12105. }
  12106. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12107. <span class="hljs-symbol">params:</span> {
  12108. }, <span class="hljs-symbol">headers:</span> headers
  12109. p JSON.parse(result)
  12110. </code></pre>
  12111. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12112. headers = {
  12113. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12114. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12115. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12116. }
  12117. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  12118. <span class="hljs-built_in">print</span>(r.json())
  12119. </code></pre>
  12120. <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>);
  12121. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12122. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12123. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12124. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12125. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12126. String inputLine;
  12127. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12128. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12129. response.append(inputLine);
  12130. }
  12131. in.close();
  12132. System.out.println(response.toString());
  12133. </code></pre>
  12134. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12135. <span class="hljs-keyword">import</span> (
  12136. <span class="hljs-string">&quot;bytes&quot;</span>
  12137. <span class="hljs-string">&quot;net/http&quot;</span>
  12138. )
  12139. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12140. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12141. <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>},
  12142. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12143. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12144. }
  12145. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12146. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  12147. req.Header = headers
  12148. client := &amp;http.Client{}
  12149. resp, err := client.Do(req)
  12150. <span class="hljs-comment">// ...</span>
  12151. }
  12152. </code></pre>
  12153. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12154. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12155. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12156. );
  12157. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12158. <span class="hljs-comment">// Define array of request body.</span>
  12159. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12160. <span class="hljs-keyword">try</span> {
  12161. <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>(
  12162. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12163. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12164. )
  12165. );
  12166. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12167. }
  12168. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12169. <span class="hljs-comment">// handle exception or api errors.</span>
  12170. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12171. }
  12172. <span class="hljs-comment">// ...</span>
  12173. </code></pre>
  12174. <p><code>POST /api/boards/{board}/integrations</code></p>
  12175. <p><em>Create a new integration</em></p>
  12176. <blockquote>
  12177. <p>Body parameter</p>
  12178. </blockquote>
  12179. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12180. </code></pre>
  12181. <h3 id="new_integration-parameters">Parameters</h3>
  12182. <table>
  12183. <thead>
  12184. <tr>
  12185. <th>Name</th>
  12186. <th>In</th>
  12187. <th>Type</th>
  12188. <th>Required</th>
  12189. <th>Description</th>
  12190. </tr>
  12191. </thead>
  12192. <tbody>
  12193. <tr>
  12194. <td>board</td>
  12195. <td>path</td>
  12196. <td>string</td>
  12197. <td>true</td>
  12198. <td>the board ID</td>
  12199. </tr>
  12200. <tr>
  12201. <td>body</td>
  12202. <td>body</td>
  12203. <td>object</td>
  12204. <td>true</td>
  12205. <td>none</td>
  12206. </tr>
  12207. <tr>
  12208. <td>» url</td>
  12209. <td>body</td>
  12210. <td>string</td>
  12211. <td>true</td>
  12212. <td>the URL of the integration</td>
  12213. </tr>
  12214. </tbody>
  12215. </table>
  12216. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12217. <p><strong>board</strong>: the board ID</p>
  12218. <blockquote>
  12219. <p>Example responses</p>
  12220. </blockquote>
  12221. <blockquote>
  12222. <p>200 Response</p>
  12223. </blockquote>
  12224. <pre class="highlight tab tab-json"><code>{
  12225. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12226. }
  12227. </code></pre>
  12228. <h3 id="new_integration-responses">Responses</h3>
  12229. <table>
  12230. <thead>
  12231. <tr>
  12232. <th>Status</th>
  12233. <th>Meaning</th>
  12234. <th>Description</th>
  12235. <th>Schema</th>
  12236. </tr>
  12237. </thead>
  12238. <tbody>
  12239. <tr>
  12240. <td>200</td>
  12241. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12242. <td>200 response</td>
  12243. <td>Inline</td>
  12244. </tr>
  12245. </tbody>
  12246. </table>
  12247. <h3 id="new_integration-responseschema">Response Schema</h3>
  12248. <p>Status Code <strong>200</strong></p>
  12249. <table>
  12250. <thead>
  12251. <tr>
  12252. <th>Name</th>
  12253. <th>Type</th>
  12254. <th>Required</th>
  12255. <th>Restrictions</th>
  12256. <th>Description</th>
  12257. </tr>
  12258. </thead>
  12259. <tbody>
  12260. <tr>
  12261. <td>» _id</td>
  12262. <td>string</td>
  12263. <td>false</td>
  12264. <td>none</td>
  12265. <td>none</td>
  12266. </tr>
  12267. </tbody>
  12268. </table>
  12269. <aside class="warning">
  12270. To perform this operation, you must be authenticated by means of one of the following methods:
  12271. UserSecurity
  12272. </aside>
  12273. <h2 id="get_integration">get_integration</h2>
  12274. <p><a id="opIdget_integration"></a></p>
  12275. <blockquote>
  12276. <p>Code samples</p>
  12277. </blockquote>
  12278. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12279. curl -X GET /api/boards/{board}/integrations/{int} \
  12280. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12281. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12282. </code></pre>
  12283. <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>
  12284. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12285. </span></code></pre>
  12286. <pre class="highlight tab tab-javascript"><code>
  12287. <span class="hljs-keyword">const</span> headers = {
  12288. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12289. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12290. };
  12291. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12292. {
  12293. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12294. <span class="hljs-attr">headers</span>: headers
  12295. })
  12296. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12297. <span class="hljs-keyword">return</span> res.json();
  12298. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12299. <span class="hljs-built_in">console</span>.log(body);
  12300. });
  12301. </code></pre>
  12302. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12303. <span class="hljs-keyword">const</span> headers = {
  12304. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12305. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12306. };
  12307. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12308. {
  12309. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12310. <span class="hljs-attr">headers</span>: headers
  12311. })
  12312. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12313. <span class="hljs-keyword">return</span> res.json();
  12314. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12315. <span class="hljs-built_in">console</span>.log(body);
  12316. });
  12317. </code></pre>
  12318. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12319. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12320. headers = {
  12321. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12322. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12323. }
  12324. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12325. <span class="hljs-symbol">params:</span> {
  12326. }, <span class="hljs-symbol">headers:</span> headers
  12327. p JSON.parse(result)
  12328. </code></pre>
  12329. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12330. headers = {
  12331. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12332. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12333. }
  12334. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12335. <span class="hljs-built_in">print</span>(r.json())
  12336. </code></pre>
  12337. <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>);
  12338. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12339. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12340. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12341. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12342. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12343. String inputLine;
  12344. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12345. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12346. response.append(inputLine);
  12347. }
  12348. in.close();
  12349. System.out.println(response.toString());
  12350. </code></pre>
  12351. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12352. <span class="hljs-keyword">import</span> (
  12353. <span class="hljs-string">&quot;bytes&quot;</span>
  12354. <span class="hljs-string">&quot;net/http&quot;</span>
  12355. )
  12356. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12357. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12358. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12359. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12360. }
  12361. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12362. 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)
  12363. req.Header = headers
  12364. client := &amp;http.Client{}
  12365. resp, err := client.Do(req)
  12366. <span class="hljs-comment">// ...</span>
  12367. }
  12368. </code></pre>
  12369. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12370. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12371. );
  12372. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12373. <span class="hljs-comment">// Define array of request body.</span>
  12374. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12375. <span class="hljs-keyword">try</span> {
  12376. <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>(
  12377. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12378. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12379. )
  12380. );
  12381. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12382. }
  12383. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12384. <span class="hljs-comment">// handle exception or api errors.</span>
  12385. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12386. }
  12387. <span class="hljs-comment">// ...</span>
  12388. </code></pre>
  12389. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  12390. <p><em>Get a single integration in board</em></p>
  12391. <h3 id="get_integration-parameters">Parameters</h3>
  12392. <table>
  12393. <thead>
  12394. <tr>
  12395. <th>Name</th>
  12396. <th>In</th>
  12397. <th>Type</th>
  12398. <th>Required</th>
  12399. <th>Description</th>
  12400. </tr>
  12401. </thead>
  12402. <tbody>
  12403. <tr>
  12404. <td>board</td>
  12405. <td>path</td>
  12406. <td>string</td>
  12407. <td>true</td>
  12408. <td>the board ID</td>
  12409. </tr>
  12410. <tr>
  12411. <td>int</td>
  12412. <td>path</td>
  12413. <td>string</td>
  12414. <td>true</td>
  12415. <td>the integration ID</td>
  12416. </tr>
  12417. </tbody>
  12418. </table>
  12419. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12420. <p><strong>board</strong>: the board ID</p>
  12421. <p><strong>int</strong>: the integration ID</p>
  12422. <blockquote>
  12423. <p>Example responses</p>
  12424. </blockquote>
  12425. <blockquote>
  12426. <p>200 Response</p>
  12427. </blockquote>
  12428. <pre class="highlight tab tab-json"><code>{
  12429. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12430. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12431. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12432. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12433. <span class="hljs-string">&quot;string&quot;</span>
  12434. ],
  12435. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12436. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12437. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12438. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12439. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12440. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12441. }
  12442. </code></pre>
  12443. <h3 id="get_integration-responses">Responses</h3>
  12444. <table>
  12445. <thead>
  12446. <tr>
  12447. <th>Status</th>
  12448. <th>Meaning</th>
  12449. <th>Description</th>
  12450. <th>Schema</th>
  12451. </tr>
  12452. </thead>
  12453. <tbody>
  12454. <tr>
  12455. <td>200</td>
  12456. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12457. <td>200 response</td>
  12458. <td><a href="#schemaintegrations">Integrations</a></td>
  12459. </tr>
  12460. </tbody>
  12461. </table>
  12462. <aside class="warning">
  12463. To perform this operation, you must be authenticated by means of one of the following methods:
  12464. UserSecurity
  12465. </aside>
  12466. <h2 id="edit_integration">edit_integration</h2>
  12467. <p><a id="opIdedit_integration"></a></p>
  12468. <blockquote>
  12469. <p>Code samples</p>
  12470. </blockquote>
  12471. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12472. curl -X PUT /api/boards/{board}/integrations/{int} \
  12473. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12474. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12475. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12476. </code></pre>
  12477. <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>
  12478. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12479. Accept: application/json
  12480. </span></code></pre>
  12481. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12482. &quot;enabled&quot;: &quot;string&quot;,
  12483. &quot;title&quot;: &quot;string&quot;,
  12484. &quot;url&quot;: &quot;string&quot;,
  12485. &quot;token&quot;: &quot;string&quot;,
  12486. &quot;activities&quot;: &quot;string&quot;
  12487. }&#x27;</span>;
  12488. <span class="hljs-keyword">const</span> headers = {
  12489. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12490. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12491. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12492. };
  12493. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12494. {
  12495. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12496. <span class="hljs-attr">body</span>: inputBody,
  12497. <span class="hljs-attr">headers</span>: headers
  12498. })
  12499. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12500. <span class="hljs-keyword">return</span> res.json();
  12501. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12502. <span class="hljs-built_in">console</span>.log(body);
  12503. });
  12504. </code></pre>
  12505. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12506. <span class="hljs-keyword">const</span> inputBody = {
  12507. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12508. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12509. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12510. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12511. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12512. };
  12513. <span class="hljs-keyword">const</span> headers = {
  12514. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12515. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12516. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12517. };
  12518. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12519. {
  12520. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12521. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12522. <span class="hljs-attr">headers</span>: headers
  12523. })
  12524. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12525. <span class="hljs-keyword">return</span> res.json();
  12526. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12527. <span class="hljs-built_in">console</span>.log(body);
  12528. });
  12529. </code></pre>
  12530. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12531. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12532. headers = {
  12533. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12534. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12535. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12536. }
  12537. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12538. <span class="hljs-symbol">params:</span> {
  12539. }, <span class="hljs-symbol">headers:</span> headers
  12540. p JSON.parse(result)
  12541. </code></pre>
  12542. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12543. headers = {
  12544. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12545. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12546. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12547. }
  12548. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12549. <span class="hljs-built_in">print</span>(r.json())
  12550. </code></pre>
  12551. <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>);
  12552. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12553. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  12554. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12555. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12556. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12557. String inputLine;
  12558. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12559. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12560. response.append(inputLine);
  12561. }
  12562. in.close();
  12563. System.out.println(response.toString());
  12564. </code></pre>
  12565. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12566. <span class="hljs-keyword">import</span> (
  12567. <span class="hljs-string">&quot;bytes&quot;</span>
  12568. <span class="hljs-string">&quot;net/http&quot;</span>
  12569. )
  12570. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12571. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12572. <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>},
  12573. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12574. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12575. }
  12576. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12577. 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)
  12578. req.Header = headers
  12579. client := &amp;http.Client{}
  12580. resp, err := client.Do(req)
  12581. <span class="hljs-comment">// ...</span>
  12582. }
  12583. </code></pre>
  12584. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12585. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12586. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12587. );
  12588. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12589. <span class="hljs-comment">// Define array of request body.</span>
  12590. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12591. <span class="hljs-keyword">try</span> {
  12592. <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>(
  12593. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12594. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12595. )
  12596. );
  12597. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12598. }
  12599. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12600. <span class="hljs-comment">// handle exception or api errors.</span>
  12601. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12602. }
  12603. <span class="hljs-comment">// ...</span>
  12604. </code></pre>
  12605. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12606. <p><em>Edit integration data</em></p>
  12607. <blockquote>
  12608. <p>Body parameter</p>
  12609. </blockquote>
  12610. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12611. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12612. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12613. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12614. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12615. </code></pre>
  12616. <h3 id="edit_integration-parameters">Parameters</h3>
  12617. <table>
  12618. <thead>
  12619. <tr>
  12620. <th>Name</th>
  12621. <th>In</th>
  12622. <th>Type</th>
  12623. <th>Required</th>
  12624. <th>Description</th>
  12625. </tr>
  12626. </thead>
  12627. <tbody>
  12628. <tr>
  12629. <td>board</td>
  12630. <td>path</td>
  12631. <td>string</td>
  12632. <td>true</td>
  12633. <td>the board ID</td>
  12634. </tr>
  12635. <tr>
  12636. <td>int</td>
  12637. <td>path</td>
  12638. <td>string</td>
  12639. <td>true</td>
  12640. <td>the integration ID</td>
  12641. </tr>
  12642. <tr>
  12643. <td>body</td>
  12644. <td>body</td>
  12645. <td>object</td>
  12646. <td>false</td>
  12647. <td>none</td>
  12648. </tr>
  12649. <tr>
  12650. <td>» enabled</td>
  12651. <td>body</td>
  12652. <td>string</td>
  12653. <td>false</td>
  12654. <td>is the integration enabled?</td>
  12655. </tr>
  12656. <tr>
  12657. <td>» title</td>
  12658. <td>body</td>
  12659. <td>string</td>
  12660. <td>false</td>
  12661. <td>new name of the integration</td>
  12662. </tr>
  12663. <tr>
  12664. <td>» url</td>
  12665. <td>body</td>
  12666. <td>string</td>
  12667. <td>false</td>
  12668. <td>new URL of the integration</td>
  12669. </tr>
  12670. <tr>
  12671. <td>» token</td>
  12672. <td>body</td>
  12673. <td>string</td>
  12674. <td>false</td>
  12675. <td>new token of the integration</td>
  12676. </tr>
  12677. <tr>
  12678. <td>» activities</td>
  12679. <td>body</td>
  12680. <td>string</td>
  12681. <td>false</td>
  12682. <td>new list of activities of the integration</td>
  12683. </tr>
  12684. </tbody>
  12685. </table>
  12686. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12687. <p><strong>board</strong>: the board ID</p>
  12688. <p><strong>int</strong>: the integration ID</p>
  12689. <blockquote>
  12690. <p>Example responses</p>
  12691. </blockquote>
  12692. <blockquote>
  12693. <p>200 Response</p>
  12694. </blockquote>
  12695. <pre class="highlight tab tab-json"><code>{
  12696. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12697. }
  12698. </code></pre>
  12699. <h3 id="edit_integration-responses">Responses</h3>
  12700. <table>
  12701. <thead>
  12702. <tr>
  12703. <th>Status</th>
  12704. <th>Meaning</th>
  12705. <th>Description</th>
  12706. <th>Schema</th>
  12707. </tr>
  12708. </thead>
  12709. <tbody>
  12710. <tr>
  12711. <td>200</td>
  12712. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12713. <td>200 response</td>
  12714. <td>Inline</td>
  12715. </tr>
  12716. </tbody>
  12717. </table>
  12718. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12719. <p>Status Code <strong>200</strong></p>
  12720. <table>
  12721. <thead>
  12722. <tr>
  12723. <th>Name</th>
  12724. <th>Type</th>
  12725. <th>Required</th>
  12726. <th>Restrictions</th>
  12727. <th>Description</th>
  12728. </tr>
  12729. </thead>
  12730. <tbody>
  12731. <tr>
  12732. <td>» _id</td>
  12733. <td>string</td>
  12734. <td>false</td>
  12735. <td>none</td>
  12736. <td>none</td>
  12737. </tr>
  12738. </tbody>
  12739. </table>
  12740. <aside class="warning">
  12741. To perform this operation, you must be authenticated by means of one of the following methods:
  12742. UserSecurity
  12743. </aside>
  12744. <h2 id="delete_integration">delete_integration</h2>
  12745. <p><a id="opIddelete_integration"></a></p>
  12746. <blockquote>
  12747. <p>Code samples</p>
  12748. </blockquote>
  12749. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12750. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12751. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12752. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12753. </code></pre>
  12754. <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>
  12755. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12756. </span></code></pre>
  12757. <pre class="highlight tab tab-javascript"><code>
  12758. <span class="hljs-keyword">const</span> headers = {
  12759. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12760. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12761. };
  12762. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12763. {
  12764. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12765. <span class="hljs-attr">headers</span>: headers
  12766. })
  12767. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12768. <span class="hljs-keyword">return</span> res.json();
  12769. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12770. <span class="hljs-built_in">console</span>.log(body);
  12771. });
  12772. </code></pre>
  12773. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12774. <span class="hljs-keyword">const</span> headers = {
  12775. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12776. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12777. };
  12778. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12779. {
  12780. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12781. <span class="hljs-attr">headers</span>: headers
  12782. })
  12783. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12784. <span class="hljs-keyword">return</span> res.json();
  12785. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12786. <span class="hljs-built_in">console</span>.log(body);
  12787. });
  12788. </code></pre>
  12789. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12790. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12791. headers = {
  12792. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12793. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12794. }
  12795. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12796. <span class="hljs-symbol">params:</span> {
  12797. }, <span class="hljs-symbol">headers:</span> headers
  12798. p JSON.parse(result)
  12799. </code></pre>
  12800. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12801. headers = {
  12802. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12803. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12804. }
  12805. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12806. <span class="hljs-built_in">print</span>(r.json())
  12807. </code></pre>
  12808. <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>);
  12809. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12810. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12811. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12812. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12813. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12814. String inputLine;
  12815. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12816. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12817. response.append(inputLine);
  12818. }
  12819. in.close();
  12820. System.out.println(response.toString());
  12821. </code></pre>
  12822. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12823. <span class="hljs-keyword">import</span> (
  12824. <span class="hljs-string">&quot;bytes&quot;</span>
  12825. <span class="hljs-string">&quot;net/http&quot;</span>
  12826. )
  12827. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12828. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12829. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12830. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12831. }
  12832. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12833. 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)
  12834. req.Header = headers
  12835. client := &amp;http.Client{}
  12836. resp, err := client.Do(req)
  12837. <span class="hljs-comment">// ...</span>
  12838. }
  12839. </code></pre>
  12840. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12841. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12842. );
  12843. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12844. <span class="hljs-comment">// Define array of request body.</span>
  12845. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12846. <span class="hljs-keyword">try</span> {
  12847. <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>(
  12848. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12849. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12850. )
  12851. );
  12852. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12853. }
  12854. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12855. <span class="hljs-comment">// handle exception or api errors.</span>
  12856. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12857. }
  12858. <span class="hljs-comment">// ...</span>
  12859. </code></pre>
  12860. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12861. <p><em>Delete integration</em></p>
  12862. <h3 id="delete_integration-parameters">Parameters</h3>
  12863. <table>
  12864. <thead>
  12865. <tr>
  12866. <th>Name</th>
  12867. <th>In</th>
  12868. <th>Type</th>
  12869. <th>Required</th>
  12870. <th>Description</th>
  12871. </tr>
  12872. </thead>
  12873. <tbody>
  12874. <tr>
  12875. <td>board</td>
  12876. <td>path</td>
  12877. <td>string</td>
  12878. <td>true</td>
  12879. <td>the board ID</td>
  12880. </tr>
  12881. <tr>
  12882. <td>int</td>
  12883. <td>path</td>
  12884. <td>string</td>
  12885. <td>true</td>
  12886. <td>the integration ID</td>
  12887. </tr>
  12888. </tbody>
  12889. </table>
  12890. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12891. <p><strong>board</strong>: the board ID</p>
  12892. <p><strong>int</strong>: the integration ID</p>
  12893. <blockquote>
  12894. <p>Example responses</p>
  12895. </blockquote>
  12896. <blockquote>
  12897. <p>200 Response</p>
  12898. </blockquote>
  12899. <pre class="highlight tab tab-json"><code>{
  12900. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12901. }
  12902. </code></pre>
  12903. <h3 id="delete_integration-responses">Responses</h3>
  12904. <table>
  12905. <thead>
  12906. <tr>
  12907. <th>Status</th>
  12908. <th>Meaning</th>
  12909. <th>Description</th>
  12910. <th>Schema</th>
  12911. </tr>
  12912. </thead>
  12913. <tbody>
  12914. <tr>
  12915. <td>200</td>
  12916. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12917. <td>200 response</td>
  12918. <td>Inline</td>
  12919. </tr>
  12920. </tbody>
  12921. </table>
  12922. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12923. <p>Status Code <strong>200</strong></p>
  12924. <table>
  12925. <thead>
  12926. <tr>
  12927. <th>Name</th>
  12928. <th>Type</th>
  12929. <th>Required</th>
  12930. <th>Restrictions</th>
  12931. <th>Description</th>
  12932. </tr>
  12933. </thead>
  12934. <tbody>
  12935. <tr>
  12936. <td>» _id</td>
  12937. <td>string</td>
  12938. <td>false</td>
  12939. <td>none</td>
  12940. <td>none</td>
  12941. </tr>
  12942. </tbody>
  12943. </table>
  12944. <aside class="warning">
  12945. To perform this operation, you must be authenticated by means of one of the following methods:
  12946. UserSecurity
  12947. </aside>
  12948. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12949. <p><a id="opIddelete_integration_activities"></a></p>
  12950. <blockquote>
  12951. <p>Code samples</p>
  12952. </blockquote>
  12953. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12954. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12955. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12956. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12957. </code></pre>
  12958. <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>
  12959. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12960. </span></code></pre>
  12961. <pre class="highlight tab tab-javascript"><code>
  12962. <span class="hljs-keyword">const</span> headers = {
  12963. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12964. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12965. };
  12966. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12967. {
  12968. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12969. <span class="hljs-attr">headers</span>: headers
  12970. })
  12971. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12972. <span class="hljs-keyword">return</span> res.json();
  12973. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12974. <span class="hljs-built_in">console</span>.log(body);
  12975. });
  12976. </code></pre>
  12977. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12978. <span class="hljs-keyword">const</span> headers = {
  12979. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12980. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12981. };
  12982. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12983. {
  12984. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12985. <span class="hljs-attr">headers</span>: headers
  12986. })
  12987. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12988. <span class="hljs-keyword">return</span> res.json();
  12989. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12990. <span class="hljs-built_in">console</span>.log(body);
  12991. });
  12992. </code></pre>
  12993. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12994. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12995. headers = {
  12996. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12997. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12998. }
  12999. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13000. <span class="hljs-symbol">params:</span> {
  13001. }, <span class="hljs-symbol">headers:</span> headers
  13002. p JSON.parse(result)
  13003. </code></pre>
  13004. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13005. headers = {
  13006. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13007. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13008. }
  13009. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  13010. <span class="hljs-built_in">print</span>(r.json())
  13011. </code></pre>
  13012. <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>);
  13013. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13014. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13015. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13016. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13017. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13018. String inputLine;
  13019. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13020. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13021. response.append(inputLine);
  13022. }
  13023. in.close();
  13024. System.out.println(response.toString());
  13025. </code></pre>
  13026. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13027. <span class="hljs-keyword">import</span> (
  13028. <span class="hljs-string">&quot;bytes&quot;</span>
  13029. <span class="hljs-string">&quot;net/http&quot;</span>
  13030. )
  13031. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13032. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13033. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13034. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13035. }
  13036. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13037. 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)
  13038. req.Header = headers
  13039. client := &amp;http.Client{}
  13040. resp, err := client.Do(req)
  13041. <span class="hljs-comment">// ...</span>
  13042. }
  13043. </code></pre>
  13044. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13045. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13046. );
  13047. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13048. <span class="hljs-comment">// Define array of request body.</span>
  13049. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13050. <span class="hljs-keyword">try</span> {
  13051. <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>(
  13052. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13053. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13054. )
  13055. );
  13056. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13057. }
  13058. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13059. <span class="hljs-comment">// handle exception or api errors.</span>
  13060. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13061. }
  13062. <span class="hljs-comment">// ...</span>
  13063. </code></pre>
  13064. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  13065. <p><em>Delete subscribed activities</em></p>
  13066. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  13067. <table>
  13068. <thead>
  13069. <tr>
  13070. <th>Name</th>
  13071. <th>In</th>
  13072. <th>Type</th>
  13073. <th>Required</th>
  13074. <th>Description</th>
  13075. </tr>
  13076. </thead>
  13077. <tbody>
  13078. <tr>
  13079. <td>board</td>
  13080. <td>path</td>
  13081. <td>string</td>
  13082. <td>true</td>
  13083. <td>the board ID</td>
  13084. </tr>
  13085. <tr>
  13086. <td>int</td>
  13087. <td>path</td>
  13088. <td>string</td>
  13089. <td>true</td>
  13090. <td>the integration ID</td>
  13091. </tr>
  13092. </tbody>
  13093. </table>
  13094. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13095. <p><strong>board</strong>: the board ID</p>
  13096. <p><strong>int</strong>: the integration ID</p>
  13097. <blockquote>
  13098. <p>Example responses</p>
  13099. </blockquote>
  13100. <blockquote>
  13101. <p>200 Response</p>
  13102. </blockquote>
  13103. <pre class="highlight tab tab-json"><code>{
  13104. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13105. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13106. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13107. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13108. <span class="hljs-string">&quot;string&quot;</span>
  13109. ],
  13110. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13111. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13112. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13113. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13114. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13115. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13116. }
  13117. </code></pre>
  13118. <h3 id="delete_integration_activities-responses">Responses</h3>
  13119. <table>
  13120. <thead>
  13121. <tr>
  13122. <th>Status</th>
  13123. <th>Meaning</th>
  13124. <th>Description</th>
  13125. <th>Schema</th>
  13126. </tr>
  13127. </thead>
  13128. <tbody>
  13129. <tr>
  13130. <td>200</td>
  13131. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13132. <td>200 response</td>
  13133. <td><a href="#schemaintegrations">Integrations</a></td>
  13134. </tr>
  13135. </tbody>
  13136. </table>
  13137. <aside class="warning">
  13138. To perform this operation, you must be authenticated by means of one of the following methods:
  13139. UserSecurity
  13140. </aside>
  13141. <h2 id="new_integration_activities">new_integration_activities</h2>
  13142. <p><a id="opIdnew_integration_activities"></a></p>
  13143. <blockquote>
  13144. <p>Code samples</p>
  13145. </blockquote>
  13146. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13147. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  13148. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13149. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13150. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13151. </code></pre>
  13152. <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>
  13153. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13154. Accept: application/json
  13155. </span></code></pre>
  13156. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13157. &quot;activities&quot;: &quot;string&quot;
  13158. }&#x27;</span>;
  13159. <span class="hljs-keyword">const</span> headers = {
  13160. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13161. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13162. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13163. };
  13164. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13165. {
  13166. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13167. <span class="hljs-attr">body</span>: inputBody,
  13168. <span class="hljs-attr">headers</span>: headers
  13169. })
  13170. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13171. <span class="hljs-keyword">return</span> res.json();
  13172. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13173. <span class="hljs-built_in">console</span>.log(body);
  13174. });
  13175. </code></pre>
  13176. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13177. <span class="hljs-keyword">const</span> inputBody = {
  13178. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13179. };
  13180. <span class="hljs-keyword">const</span> headers = {
  13181. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13182. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13183. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13184. };
  13185. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13186. {
  13187. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13188. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13189. <span class="hljs-attr">headers</span>: headers
  13190. })
  13191. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13192. <span class="hljs-keyword">return</span> res.json();
  13193. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13194. <span class="hljs-built_in">console</span>.log(body);
  13195. });
  13196. </code></pre>
  13197. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13198. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13199. headers = {
  13200. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13201. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13202. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13203. }
  13204. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13205. <span class="hljs-symbol">params:</span> {
  13206. }, <span class="hljs-symbol">headers:</span> headers
  13207. p JSON.parse(result)
  13208. </code></pre>
  13209. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13210. headers = {
  13211. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13212. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13213. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13214. }
  13215. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  13216. <span class="hljs-built_in">print</span>(r.json())
  13217. </code></pre>
  13218. <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>);
  13219. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13220. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13221. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13222. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13223. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13224. String inputLine;
  13225. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13226. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13227. response.append(inputLine);
  13228. }
  13229. in.close();
  13230. System.out.println(response.toString());
  13231. </code></pre>
  13232. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13233. <span class="hljs-keyword">import</span> (
  13234. <span class="hljs-string">&quot;bytes&quot;</span>
  13235. <span class="hljs-string">&quot;net/http&quot;</span>
  13236. )
  13237. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13238. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13239. <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>},
  13240. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13241. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13242. }
  13243. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13244. 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)
  13245. req.Header = headers
  13246. client := &amp;http.Client{}
  13247. resp, err := client.Do(req)
  13248. <span class="hljs-comment">// ...</span>
  13249. }
  13250. </code></pre>
  13251. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13252. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13253. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13254. );
  13255. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13256. <span class="hljs-comment">// Define array of request body.</span>
  13257. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13258. <span class="hljs-keyword">try</span> {
  13259. <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>(
  13260. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13261. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13262. )
  13263. );
  13264. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13265. }
  13266. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13267. <span class="hljs-comment">// handle exception or api errors.</span>
  13268. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13269. }
  13270. <span class="hljs-comment">// ...</span>
  13271. </code></pre>
  13272. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  13273. <p><em>Add subscribed activities</em></p>
  13274. <blockquote>
  13275. <p>Body parameter</p>
  13276. </blockquote>
  13277. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  13278. </code></pre>
  13279. <h3 id="new_integration_activities-parameters">Parameters</h3>
  13280. <table>
  13281. <thead>
  13282. <tr>
  13283. <th>Name</th>
  13284. <th>In</th>
  13285. <th>Type</th>
  13286. <th>Required</th>
  13287. <th>Description</th>
  13288. </tr>
  13289. </thead>
  13290. <tbody>
  13291. <tr>
  13292. <td>board</td>
  13293. <td>path</td>
  13294. <td>string</td>
  13295. <td>true</td>
  13296. <td>the board ID</td>
  13297. </tr>
  13298. <tr>
  13299. <td>int</td>
  13300. <td>path</td>
  13301. <td>string</td>
  13302. <td>true</td>
  13303. <td>the integration ID</td>
  13304. </tr>
  13305. <tr>
  13306. <td>body</td>
  13307. <td>body</td>
  13308. <td>object</td>
  13309. <td>true</td>
  13310. <td>none</td>
  13311. </tr>
  13312. <tr>
  13313. <td>» activities</td>
  13314. <td>body</td>
  13315. <td>string</td>
  13316. <td>true</td>
  13317. <td>the activities value</td>
  13318. </tr>
  13319. </tbody>
  13320. </table>
  13321. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13322. <p><strong>board</strong>: the board ID</p>
  13323. <p><strong>int</strong>: the integration ID</p>
  13324. <blockquote>
  13325. <p>Example responses</p>
  13326. </blockquote>
  13327. <blockquote>
  13328. <p>200 Response</p>
  13329. </blockquote>
  13330. <pre class="highlight tab tab-json"><code>{
  13331. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13332. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13333. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13334. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13335. <span class="hljs-string">&quot;string&quot;</span>
  13336. ],
  13337. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13338. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13339. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13340. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13341. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13342. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13343. }
  13344. </code></pre>
  13345. <h3 id="new_integration_activities-responses">Responses</h3>
  13346. <table>
  13347. <thead>
  13348. <tr>
  13349. <th>Status</th>
  13350. <th>Meaning</th>
  13351. <th>Description</th>
  13352. <th>Schema</th>
  13353. </tr>
  13354. </thead>
  13355. <tbody>
  13356. <tr>
  13357. <td>200</td>
  13358. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13359. <td>200 response</td>
  13360. <td><a href="#schemaintegrations">Integrations</a></td>
  13361. </tr>
  13362. </tbody>
  13363. </table>
  13364. <aside class="warning">
  13365. To perform this operation, you must be authenticated by means of one of the following methods:
  13366. UserSecurity
  13367. </aside>
  13368. <h1 id="wekan-rest-api-lists">Lists</h1>
  13369. <h2 id="get_all_lists">get_all_lists</h2>
  13370. <p><a id="opIdget_all_lists"></a></p>
  13371. <blockquote>
  13372. <p>Code samples</p>
  13373. </blockquote>
  13374. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13375. curl -X GET /api/boards/{board}/lists \
  13376. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13377. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13378. </code></pre>
  13379. <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>
  13380. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13381. </span></code></pre>
  13382. <pre class="highlight tab tab-javascript"><code>
  13383. <span class="hljs-keyword">const</span> headers = {
  13384. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13385. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13386. };
  13387. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13388. {
  13389. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13390. <span class="hljs-attr">headers</span>: headers
  13391. })
  13392. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13393. <span class="hljs-keyword">return</span> res.json();
  13394. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13395. <span class="hljs-built_in">console</span>.log(body);
  13396. });
  13397. </code></pre>
  13398. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13399. <span class="hljs-keyword">const</span> headers = {
  13400. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13401. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13402. };
  13403. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13404. {
  13405. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13406. <span class="hljs-attr">headers</span>: headers
  13407. })
  13408. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13409. <span class="hljs-keyword">return</span> res.json();
  13410. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13411. <span class="hljs-built_in">console</span>.log(body);
  13412. });
  13413. </code></pre>
  13414. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13415. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13416. headers = {
  13417. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13418. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13419. }
  13420. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13421. <span class="hljs-symbol">params:</span> {
  13422. }, <span class="hljs-symbol">headers:</span> headers
  13423. p JSON.parse(result)
  13424. </code></pre>
  13425. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13426. headers = {
  13427. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13428. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13429. }
  13430. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13431. <span class="hljs-built_in">print</span>(r.json())
  13432. </code></pre>
  13433. <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>);
  13434. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13435. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13436. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13437. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13438. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13439. String inputLine;
  13440. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13441. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13442. response.append(inputLine);
  13443. }
  13444. in.close();
  13445. System.out.println(response.toString());
  13446. </code></pre>
  13447. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13448. <span class="hljs-keyword">import</span> (
  13449. <span class="hljs-string">&quot;bytes&quot;</span>
  13450. <span class="hljs-string">&quot;net/http&quot;</span>
  13451. )
  13452. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13453. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13454. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13455. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13456. }
  13457. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13458. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13459. req.Header = headers
  13460. client := &amp;http.Client{}
  13461. resp, err := client.Do(req)
  13462. <span class="hljs-comment">// ...</span>
  13463. }
  13464. </code></pre>
  13465. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13466. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13467. );
  13468. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13469. <span class="hljs-comment">// Define array of request body.</span>
  13470. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13471. <span class="hljs-keyword">try</span> {
  13472. <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>(
  13473. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13474. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13475. )
  13476. );
  13477. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13478. }
  13479. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13480. <span class="hljs-comment">// handle exception or api errors.</span>
  13481. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13482. }
  13483. <span class="hljs-comment">// ...</span>
  13484. </code></pre>
  13485. <p><code>GET /api/boards/{board}/lists</code></p>
  13486. <p><em>Get the list of Lists attached to a board</em></p>
  13487. <h3 id="get_all_lists-parameters">Parameters</h3>
  13488. <table>
  13489. <thead>
  13490. <tr>
  13491. <th>Name</th>
  13492. <th>In</th>
  13493. <th>Type</th>
  13494. <th>Required</th>
  13495. <th>Description</th>
  13496. </tr>
  13497. </thead>
  13498. <tbody>
  13499. <tr>
  13500. <td>board</td>
  13501. <td>path</td>
  13502. <td>string</td>
  13503. <td>true</td>
  13504. <td>the board ID</td>
  13505. </tr>
  13506. </tbody>
  13507. </table>
  13508. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13509. <p><strong>board</strong>: the board ID</p>
  13510. <blockquote>
  13511. <p>Example responses</p>
  13512. </blockquote>
  13513. <blockquote>
  13514. <p>200 Response</p>
  13515. </blockquote>
  13516. <pre class="highlight tab tab-json"><code>[
  13517. {
  13518. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13519. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13520. }
  13521. ]
  13522. </code></pre>
  13523. <h3 id="get_all_lists-responses">Responses</h3>
  13524. <table>
  13525. <thead>
  13526. <tr>
  13527. <th>Status</th>
  13528. <th>Meaning</th>
  13529. <th>Description</th>
  13530. <th>Schema</th>
  13531. </tr>
  13532. </thead>
  13533. <tbody>
  13534. <tr>
  13535. <td>200</td>
  13536. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13537. <td>200 response</td>
  13538. <td>Inline</td>
  13539. </tr>
  13540. </tbody>
  13541. </table>
  13542. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  13543. <p>Status Code <strong>200</strong></p>
  13544. <table>
  13545. <thead>
  13546. <tr>
  13547. <th>Name</th>
  13548. <th>Type</th>
  13549. <th>Required</th>
  13550. <th>Restrictions</th>
  13551. <th>Description</th>
  13552. </tr>
  13553. </thead>
  13554. <tbody>
  13555. <tr>
  13556. <td>» _id</td>
  13557. <td>string</td>
  13558. <td>false</td>
  13559. <td>none</td>
  13560. <td>none</td>
  13561. </tr>
  13562. <tr>
  13563. <td>» title</td>
  13564. <td>string</td>
  13565. <td>false</td>
  13566. <td>none</td>
  13567. <td>none</td>
  13568. </tr>
  13569. </tbody>
  13570. </table>
  13571. <aside class="warning">
  13572. To perform this operation, you must be authenticated by means of one of the following methods:
  13573. UserSecurity
  13574. </aside>
  13575. <h2 id="new_list">new_list</h2>
  13576. <p><a id="opIdnew_list"></a></p>
  13577. <blockquote>
  13578. <p>Code samples</p>
  13579. </blockquote>
  13580. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13581. curl -X POST /api/boards/{board}/lists \
  13582. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13583. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13584. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13585. </code></pre>
  13586. <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>
  13587. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13588. Accept: application/json
  13589. </span></code></pre>
  13590. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13591. &quot;title&quot;: &quot;string&quot;
  13592. }&#x27;</span>;
  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}/lists&#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>: 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-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13611. <span class="hljs-keyword">const</span> inputBody = {
  13612. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13613. };
  13614. <span class="hljs-keyword">const</span> headers = {
  13615. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13616. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13617. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13618. };
  13619. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13620. {
  13621. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13622. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13623. <span class="hljs-attr">headers</span>: headers
  13624. })
  13625. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13626. <span class="hljs-keyword">return</span> res.json();
  13627. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13628. <span class="hljs-built_in">console</span>.log(body);
  13629. });
  13630. </code></pre>
  13631. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13632. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13633. headers = {
  13634. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13635. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13636. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13637. }
  13638. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13639. <span class="hljs-symbol">params:</span> {
  13640. }, <span class="hljs-symbol">headers:</span> headers
  13641. p JSON.parse(result)
  13642. </code></pre>
  13643. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13644. headers = {
  13645. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13646. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13647. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13648. }
  13649. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13650. <span class="hljs-built_in">print</span>(r.json())
  13651. </code></pre>
  13652. <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>);
  13653. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13654. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13655. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13656. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13657. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13658. String inputLine;
  13659. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13660. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13661. response.append(inputLine);
  13662. }
  13663. in.close();
  13664. System.out.println(response.toString());
  13665. </code></pre>
  13666. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13667. <span class="hljs-keyword">import</span> (
  13668. <span class="hljs-string">&quot;bytes&quot;</span>
  13669. <span class="hljs-string">&quot;net/http&quot;</span>
  13670. )
  13671. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13672. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13673. <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>},
  13674. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13675. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13676. }
  13677. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13678. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13679. req.Header = headers
  13680. client := &amp;http.Client{}
  13681. resp, err := client.Do(req)
  13682. <span class="hljs-comment">// ...</span>
  13683. }
  13684. </code></pre>
  13685. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13686. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13687. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13688. );
  13689. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13690. <span class="hljs-comment">// Define array of request body.</span>
  13691. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13692. <span class="hljs-keyword">try</span> {
  13693. <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>(
  13694. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13695. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13696. )
  13697. );
  13698. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13699. }
  13700. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13701. <span class="hljs-comment">// handle exception or api errors.</span>
  13702. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13703. }
  13704. <span class="hljs-comment">// ...</span>
  13705. </code></pre>
  13706. <p><code>POST /api/boards/{board}/lists</code></p>
  13707. <p><em>Add a List to a board</em></p>
  13708. <blockquote>
  13709. <p>Body parameter</p>
  13710. </blockquote>
  13711. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13712. </code></pre>
  13713. <h3 id="new_list-parameters">Parameters</h3>
  13714. <table>
  13715. <thead>
  13716. <tr>
  13717. <th>Name</th>
  13718. <th>In</th>
  13719. <th>Type</th>
  13720. <th>Required</th>
  13721. <th>Description</th>
  13722. </tr>
  13723. </thead>
  13724. <tbody>
  13725. <tr>
  13726. <td>board</td>
  13727. <td>path</td>
  13728. <td>string</td>
  13729. <td>true</td>
  13730. <td>the board ID</td>
  13731. </tr>
  13732. <tr>
  13733. <td>body</td>
  13734. <td>body</td>
  13735. <td>object</td>
  13736. <td>true</td>
  13737. <td>none</td>
  13738. </tr>
  13739. <tr>
  13740. <td>» title</td>
  13741. <td>body</td>
  13742. <td>string</td>
  13743. <td>true</td>
  13744. <td>the title of the List</td>
  13745. </tr>
  13746. </tbody>
  13747. </table>
  13748. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13749. <p><strong>board</strong>: the board ID</p>
  13750. <blockquote>
  13751. <p>Example responses</p>
  13752. </blockquote>
  13753. <blockquote>
  13754. <p>200 Response</p>
  13755. </blockquote>
  13756. <pre class="highlight tab tab-json"><code>{
  13757. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13758. }
  13759. </code></pre>
  13760. <h3 id="new_list-responses">Responses</h3>
  13761. <table>
  13762. <thead>
  13763. <tr>
  13764. <th>Status</th>
  13765. <th>Meaning</th>
  13766. <th>Description</th>
  13767. <th>Schema</th>
  13768. </tr>
  13769. </thead>
  13770. <tbody>
  13771. <tr>
  13772. <td>200</td>
  13773. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13774. <td>200 response</td>
  13775. <td>Inline</td>
  13776. </tr>
  13777. </tbody>
  13778. </table>
  13779. <h3 id="new_list-responseschema">Response Schema</h3>
  13780. <p>Status Code <strong>200</strong></p>
  13781. <table>
  13782. <thead>
  13783. <tr>
  13784. <th>Name</th>
  13785. <th>Type</th>
  13786. <th>Required</th>
  13787. <th>Restrictions</th>
  13788. <th>Description</th>
  13789. </tr>
  13790. </thead>
  13791. <tbody>
  13792. <tr>
  13793. <td>» _id</td>
  13794. <td>string</td>
  13795. <td>false</td>
  13796. <td>none</td>
  13797. <td>none</td>
  13798. </tr>
  13799. </tbody>
  13800. </table>
  13801. <aside class="warning">
  13802. To perform this operation, you must be authenticated by means of one of the following methods:
  13803. UserSecurity
  13804. </aside>
  13805. <h2 id="get_list">get_list</h2>
  13806. <p><a id="opIdget_list"></a></p>
  13807. <blockquote>
  13808. <p>Code samples</p>
  13809. </blockquote>
  13810. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13811. curl -X GET /api/boards/{board}/lists/{list} \
  13812. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13813. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13814. </code></pre>
  13815. <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>
  13816. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13817. </span></code></pre>
  13818. <pre class="highlight tab tab-javascript"><code>
  13819. <span class="hljs-keyword">const</span> headers = {
  13820. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13821. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13822. };
  13823. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13824. {
  13825. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13826. <span class="hljs-attr">headers</span>: headers
  13827. })
  13828. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13829. <span class="hljs-keyword">return</span> res.json();
  13830. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13831. <span class="hljs-built_in">console</span>.log(body);
  13832. });
  13833. </code></pre>
  13834. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13835. <span class="hljs-keyword">const</span> headers = {
  13836. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13837. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13838. };
  13839. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13840. {
  13841. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13842. <span class="hljs-attr">headers</span>: headers
  13843. })
  13844. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13845. <span class="hljs-keyword">return</span> res.json();
  13846. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13847. <span class="hljs-built_in">console</span>.log(body);
  13848. });
  13849. </code></pre>
  13850. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13851. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13852. headers = {
  13853. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13854. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13855. }
  13856. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13857. <span class="hljs-symbol">params:</span> {
  13858. }, <span class="hljs-symbol">headers:</span> headers
  13859. p JSON.parse(result)
  13860. </code></pre>
  13861. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13862. headers = {
  13863. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13864. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13865. }
  13866. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13867. <span class="hljs-built_in">print</span>(r.json())
  13868. </code></pre>
  13869. <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>);
  13870. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13871. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13872. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13873. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13874. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13875. String inputLine;
  13876. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13877. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13878. response.append(inputLine);
  13879. }
  13880. in.close();
  13881. System.out.println(response.toString());
  13882. </code></pre>
  13883. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13884. <span class="hljs-keyword">import</span> (
  13885. <span class="hljs-string">&quot;bytes&quot;</span>
  13886. <span class="hljs-string">&quot;net/http&quot;</span>
  13887. )
  13888. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13889. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13890. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13891. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13892. }
  13893. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13894. 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)
  13895. req.Header = headers
  13896. client := &amp;http.Client{}
  13897. resp, err := client.Do(req)
  13898. <span class="hljs-comment">// ...</span>
  13899. }
  13900. </code></pre>
  13901. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13902. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13903. );
  13904. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13905. <span class="hljs-comment">// Define array of request body.</span>
  13906. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13907. <span class="hljs-keyword">try</span> {
  13908. <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>(
  13909. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13910. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13911. )
  13912. );
  13913. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13914. }
  13915. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13916. <span class="hljs-comment">// handle exception or api errors.</span>
  13917. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13918. }
  13919. <span class="hljs-comment">// ...</span>
  13920. </code></pre>
  13921. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13922. <p><em>Get a List attached to a board</em></p>
  13923. <h3 id="get_list-parameters">Parameters</h3>
  13924. <table>
  13925. <thead>
  13926. <tr>
  13927. <th>Name</th>
  13928. <th>In</th>
  13929. <th>Type</th>
  13930. <th>Required</th>
  13931. <th>Description</th>
  13932. </tr>
  13933. </thead>
  13934. <tbody>
  13935. <tr>
  13936. <td>board</td>
  13937. <td>path</td>
  13938. <td>string</td>
  13939. <td>true</td>
  13940. <td>the board ID</td>
  13941. </tr>
  13942. <tr>
  13943. <td>list</td>
  13944. <td>path</td>
  13945. <td>string</td>
  13946. <td>true</td>
  13947. <td>the List ID</td>
  13948. </tr>
  13949. </tbody>
  13950. </table>
  13951. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13952. <p><strong>board</strong>: the board ID</p>
  13953. <p><strong>list</strong>: the List ID</p>
  13954. <blockquote>
  13955. <p>Example responses</p>
  13956. </blockquote>
  13957. <blockquote>
  13958. <p>200 Response</p>
  13959. </blockquote>
  13960. <pre class="highlight tab tab-json"><code>{
  13961. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13962. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13963. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13964. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13965. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13966. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13967. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13968. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13969. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13970. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13971. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13972. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13973. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13974. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13975. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13976. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13977. },
  13978. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13979. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13980. }
  13981. </code></pre>
  13982. <h3 id="get_list-responses">Responses</h3>
  13983. <table>
  13984. <thead>
  13985. <tr>
  13986. <th>Status</th>
  13987. <th>Meaning</th>
  13988. <th>Description</th>
  13989. <th>Schema</th>
  13990. </tr>
  13991. </thead>
  13992. <tbody>
  13993. <tr>
  13994. <td>200</td>
  13995. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13996. <td>200 response</td>
  13997. <td><a href="#schemalists">Lists</a></td>
  13998. </tr>
  13999. </tbody>
  14000. </table>
  14001. <aside class="warning">
  14002. To perform this operation, you must be authenticated by means of one of the following methods:
  14003. UserSecurity
  14004. </aside>
  14005. <h2 id="delete_list">delete_list</h2>
  14006. <p><a id="opIddelete_list"></a></p>
  14007. <blockquote>
  14008. <p>Code samples</p>
  14009. </blockquote>
  14010. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14011. curl -X DELETE /api/boards/{board}/lists/{list} \
  14012. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14013. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14014. </code></pre>
  14015. <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>
  14016. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14017. </span></code></pre>
  14018. <pre class="highlight tab tab-javascript"><code>
  14019. <span class="hljs-keyword">const</span> headers = {
  14020. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14021. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14022. };
  14023. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14024. {
  14025. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  14026. <span class="hljs-attr">headers</span>: headers
  14027. })
  14028. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14029. <span class="hljs-keyword">return</span> res.json();
  14030. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14031. <span class="hljs-built_in">console</span>.log(body);
  14032. });
  14033. </code></pre>
  14034. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14035. <span class="hljs-keyword">const</span> headers = {
  14036. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14037. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14038. };
  14039. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14040. {
  14041. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  14042. <span class="hljs-attr">headers</span>: headers
  14043. })
  14044. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14045. <span class="hljs-keyword">return</span> res.json();
  14046. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14047. <span class="hljs-built_in">console</span>.log(body);
  14048. });
  14049. </code></pre>
  14050. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14051. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14052. headers = {
  14053. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14054. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14055. }
  14056. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14057. <span class="hljs-symbol">params:</span> {
  14058. }, <span class="hljs-symbol">headers:</span> headers
  14059. p JSON.parse(result)
  14060. </code></pre>
  14061. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14062. headers = {
  14063. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14064. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14065. }
  14066. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  14067. <span class="hljs-built_in">print</span>(r.json())
  14068. </code></pre>
  14069. <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>);
  14070. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14071. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  14072. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14073. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14074. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14075. String inputLine;
  14076. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14077. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14078. response.append(inputLine);
  14079. }
  14080. in.close();
  14081. System.out.println(response.toString());
  14082. </code></pre>
  14083. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14084. <span class="hljs-keyword">import</span> (
  14085. <span class="hljs-string">&quot;bytes&quot;</span>
  14086. <span class="hljs-string">&quot;net/http&quot;</span>
  14087. )
  14088. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14089. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14090. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14091. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14092. }
  14093. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14094. 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)
  14095. req.Header = headers
  14096. client := &amp;http.Client{}
  14097. resp, err := client.Do(req)
  14098. <span class="hljs-comment">// ...</span>
  14099. }
  14100. </code></pre>
  14101. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14102. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14103. );
  14104. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14105. <span class="hljs-comment">// Define array of request body.</span>
  14106. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14107. <span class="hljs-keyword">try</span> {
  14108. <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>(
  14109. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14110. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14111. )
  14112. );
  14113. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14114. }
  14115. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14116. <span class="hljs-comment">// handle exception or api errors.</span>
  14117. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14118. }
  14119. <span class="hljs-comment">// ...</span>
  14120. </code></pre>
  14121. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  14122. <p><em>Delete a List</em></p>
  14123. <p>This <strong>deletes</strong> a list from a board.
  14124. The list is not put in the recycle bin.</p>
  14125. <h3 id="delete_list-parameters">Parameters</h3>
  14126. <table>
  14127. <thead>
  14128. <tr>
  14129. <th>Name</th>
  14130. <th>In</th>
  14131. <th>Type</th>
  14132. <th>Required</th>
  14133. <th>Description</th>
  14134. </tr>
  14135. </thead>
  14136. <tbody>
  14137. <tr>
  14138. <td>board</td>
  14139. <td>path</td>
  14140. <td>string</td>
  14141. <td>true</td>
  14142. <td>the board ID</td>
  14143. </tr>
  14144. <tr>
  14145. <td>list</td>
  14146. <td>path</td>
  14147. <td>string</td>
  14148. <td>true</td>
  14149. <td>the ID of the list to remove</td>
  14150. </tr>
  14151. </tbody>
  14152. </table>
  14153. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14154. <p><strong>board</strong>: the board ID</p>
  14155. <p><strong>list</strong>: the ID of the list to remove</p>
  14156. <blockquote>
  14157. <p>Example responses</p>
  14158. </blockquote>
  14159. <blockquote>
  14160. <p>200 Response</p>
  14161. </blockquote>
  14162. <pre class="highlight tab tab-json"><code>{
  14163. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14164. }
  14165. </code></pre>
  14166. <h3 id="delete_list-responses">Responses</h3>
  14167. <table>
  14168. <thead>
  14169. <tr>
  14170. <th>Status</th>
  14171. <th>Meaning</th>
  14172. <th>Description</th>
  14173. <th>Schema</th>
  14174. </tr>
  14175. </thead>
  14176. <tbody>
  14177. <tr>
  14178. <td>200</td>
  14179. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14180. <td>200 response</td>
  14181. <td>Inline</td>
  14182. </tr>
  14183. </tbody>
  14184. </table>
  14185. <h3 id="delete_list-responseschema">Response Schema</h3>
  14186. <p>Status Code <strong>200</strong></p>
  14187. <table>
  14188. <thead>
  14189. <tr>
  14190. <th>Name</th>
  14191. <th>Type</th>
  14192. <th>Required</th>
  14193. <th>Restrictions</th>
  14194. <th>Description</th>
  14195. </tr>
  14196. </thead>
  14197. <tbody>
  14198. <tr>
  14199. <td>» _id</td>
  14200. <td>string</td>
  14201. <td>false</td>
  14202. <td>none</td>
  14203. <td>none</td>
  14204. </tr>
  14205. </tbody>
  14206. </table>
  14207. <aside class="warning">
  14208. To perform this operation, you must be authenticated by means of one of the following methods:
  14209. UserSecurity
  14210. </aside>
  14211. <h1 id="wekan-rest-api-users">Users</h1>
  14212. <h2 id="add_board_member">add_board_member</h2>
  14213. <p><a id="opIdadd_board_member"></a></p>
  14214. <blockquote>
  14215. <p>Code samples</p>
  14216. </blockquote>
  14217. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14218. curl -X POST /api/boards/{board}/members/{user}/add \
  14219. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14220. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14221. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14222. </code></pre>
  14223. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/add</span> <span class="hljs-meta">HTTP/1.1</span>
  14224. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14225. Accept: application/json
  14226. </span></code></pre>
  14227. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14228. &quot;action&quot;: &quot;string&quot;,
  14229. &quot;isAdmin&quot;: true,
  14230. &quot;isNoComments&quot;: true,
  14231. &quot;isCommentOnly&quot;: true,
  14232. &quot;isWorker&quot;: true
  14233. }&#x27;</span>;
  14234. <span class="hljs-keyword">const</span> headers = {
  14235. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14236. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14237. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14238. };
  14239. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  14240. {
  14241. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14242. <span class="hljs-attr">body</span>: inputBody,
  14243. <span class="hljs-attr">headers</span>: headers
  14244. })
  14245. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14246. <span class="hljs-keyword">return</span> res.json();
  14247. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14248. <span class="hljs-built_in">console</span>.log(body);
  14249. });
  14250. </code></pre>
  14251. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14252. <span class="hljs-keyword">const</span> inputBody = {
  14253. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14254. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14255. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  14256. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  14257. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  14258. };
  14259. <span class="hljs-keyword">const</span> headers = {
  14260. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14261. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14262. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14263. };
  14264. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  14265. {
  14266. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14267. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14268. <span class="hljs-attr">headers</span>: headers
  14269. })
  14270. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14271. <span class="hljs-keyword">return</span> res.json();
  14272. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14273. <span class="hljs-built_in">console</span>.log(body);
  14274. });
  14275. </code></pre>
  14276. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14277. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14278. headers = {
  14279. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14280. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14281. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14282. }
  14283. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  14284. <span class="hljs-symbol">params:</span> {
  14285. }, <span class="hljs-symbol">headers:</span> headers
  14286. p JSON.parse(result)
  14287. </code></pre>
  14288. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14289. headers = {
  14290. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14291. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14292. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14293. }
  14294. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  14295. <span class="hljs-built_in">print</span>(r.json())
  14296. </code></pre>
  14297. <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>);
  14298. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14299. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14300. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14301. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14302. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14303. String inputLine;
  14304. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14305. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14306. response.append(inputLine);
  14307. }
  14308. in.close();
  14309. System.out.println(response.toString());
  14310. </code></pre>
  14311. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14312. <span class="hljs-keyword">import</span> (
  14313. <span class="hljs-string">&quot;bytes&quot;</span>
  14314. <span class="hljs-string">&quot;net/http&quot;</span>
  14315. )
  14316. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14317. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14318. <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>},
  14319. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14320. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14321. }
  14322. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14323. 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)
  14324. req.Header = headers
  14325. client := &amp;http.Client{}
  14326. resp, err := client.Do(req)
  14327. <span class="hljs-comment">// ...</span>
  14328. }
  14329. </code></pre>
  14330. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14331. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14332. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14333. );
  14334. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14335. <span class="hljs-comment">// Define array of request body.</span>
  14336. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14337. <span class="hljs-keyword">try</span> {
  14338. <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>(
  14339. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14340. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14341. )
  14342. );
  14343. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14344. }
  14345. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14346. <span class="hljs-comment">// handle exception or api errors.</span>
  14347. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14348. }
  14349. <span class="hljs-comment">// ...</span>
  14350. </code></pre>
  14351. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  14352. <p><em>Add New Board Member with Role</em></p>
  14353. <p>Only the admin user (the first user) can call the REST API.</p>
  14354. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  14355. to later change the permissions.</p>
  14356. <blockquote>
  14357. <p>Body parameter</p>
  14358. </blockquote>
  14359. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14360. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  14361. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  14362. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  14363. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  14364. </code></pre>
  14365. <h3 id="add_board_member-parameters">Parameters</h3>
  14366. <table>
  14367. <thead>
  14368. <tr>
  14369. <th>Name</th>
  14370. <th>In</th>
  14371. <th>Type</th>
  14372. <th>Required</th>
  14373. <th>Description</th>
  14374. </tr>
  14375. </thead>
  14376. <tbody>
  14377. <tr>
  14378. <td>board</td>
  14379. <td>path</td>
  14380. <td>string</td>
  14381. <td>true</td>
  14382. <td>the board ID</td>
  14383. </tr>
  14384. <tr>
  14385. <td>user</td>
  14386. <td>path</td>
  14387. <td>string</td>
  14388. <td>true</td>
  14389. <td>the user ID</td>
  14390. </tr>
  14391. <tr>
  14392. <td>body</td>
  14393. <td>body</td>
  14394. <td>object</td>
  14395. <td>true</td>
  14396. <td>none</td>
  14397. </tr>
  14398. <tr>
  14399. <td>» action</td>
  14400. <td>body</td>
  14401. <td>string</td>
  14402. <td>true</td>
  14403. <td>the action (needs to be <code>add</code>)</td>
  14404. </tr>
  14405. <tr>
  14406. <td>» isAdmin</td>
  14407. <td>body</td>
  14408. <td>boolean</td>
  14409. <td>true</td>
  14410. <td>is the user an admin of the board</td>
  14411. </tr>
  14412. <tr>
  14413. <td>» isNoComments</td>
  14414. <td>body</td>
  14415. <td>boolean</td>
  14416. <td>true</td>
  14417. <td>disable comments</td>
  14418. </tr>
  14419. <tr>
  14420. <td>» isCommentOnly</td>
  14421. <td>body</td>
  14422. <td>boolean</td>
  14423. <td>true</td>
  14424. <td>only enable comments</td>
  14425. </tr>
  14426. <tr>
  14427. <td>» isWorker</td>
  14428. <td>body</td>
  14429. <td>boolean</td>
  14430. <td>true</td>
  14431. <td>is the user a board worker</td>
  14432. </tr>
  14433. </tbody>
  14434. </table>
  14435. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14436. <p><strong>board</strong>: the board ID</p>
  14437. <p><strong>user</strong>: the user ID</p>
  14438. <blockquote>
  14439. <p>Example responses</p>
  14440. </blockquote>
  14441. <blockquote>
  14442. <p>200 Response</p>
  14443. </blockquote>
  14444. <pre class="highlight tab tab-json"><code>{
  14445. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14446. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14447. }
  14448. </code></pre>
  14449. <h3 id="add_board_member-responses">Responses</h3>
  14450. <table>
  14451. <thead>
  14452. <tr>
  14453. <th>Status</th>
  14454. <th>Meaning</th>
  14455. <th>Description</th>
  14456. <th>Schema</th>
  14457. </tr>
  14458. </thead>
  14459. <tbody>
  14460. <tr>
  14461. <td>200</td>
  14462. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14463. <td>200 response</td>
  14464. <td>Inline</td>
  14465. </tr>
  14466. </tbody>
  14467. </table>
  14468. <h3 id="add_board_member-responseschema">Response Schema</h3>
  14469. <p>Status Code <strong>200</strong></p>
  14470. <table>
  14471. <thead>
  14472. <tr>
  14473. <th>Name</th>
  14474. <th>Type</th>
  14475. <th>Required</th>
  14476. <th>Restrictions</th>
  14477. <th>Description</th>
  14478. </tr>
  14479. </thead>
  14480. <tbody>
  14481. <tr>
  14482. <td>» _id</td>
  14483. <td>string</td>
  14484. <td>false</td>
  14485. <td>none</td>
  14486. <td>none</td>
  14487. </tr>
  14488. <tr>
  14489. <td>» title</td>
  14490. <td>string</td>
  14491. <td>false</td>
  14492. <td>none</td>
  14493. <td>none</td>
  14494. </tr>
  14495. </tbody>
  14496. </table>
  14497. <aside class="warning">
  14498. To perform this operation, you must be authenticated by means of one of the following methods:
  14499. UserSecurity
  14500. </aside>
  14501. <h2 id="remove_board_member">remove_board_member</h2>
  14502. <p><a id="opIdremove_board_member"></a></p>
  14503. <blockquote>
  14504. <p>Code samples</p>
  14505. </blockquote>
  14506. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14507. curl -X POST /api/boards/{board}/members/{user}/remove \
  14508. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14509. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14510. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14511. </code></pre>
  14512. <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>
  14513. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14514. Accept: application/json
  14515. </span></code></pre>
  14516. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14517. &quot;action&quot;: &quot;string&quot;
  14518. }&#x27;</span>;
  14519. <span class="hljs-keyword">const</span> headers = {
  14520. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14521. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14522. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14523. };
  14524. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14525. {
  14526. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14527. <span class="hljs-attr">body</span>: inputBody,
  14528. <span class="hljs-attr">headers</span>: headers
  14529. })
  14530. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14531. <span class="hljs-keyword">return</span> res.json();
  14532. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14533. <span class="hljs-built_in">console</span>.log(body);
  14534. });
  14535. </code></pre>
  14536. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14537. <span class="hljs-keyword">const</span> inputBody = {
  14538. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14539. };
  14540. <span class="hljs-keyword">const</span> headers = {
  14541. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14542. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14543. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14544. };
  14545. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14546. {
  14547. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14548. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14549. <span class="hljs-attr">headers</span>: headers
  14550. })
  14551. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14552. <span class="hljs-keyword">return</span> res.json();
  14553. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14554. <span class="hljs-built_in">console</span>.log(body);
  14555. });
  14556. </code></pre>
  14557. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14558. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14559. headers = {
  14560. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14561. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14562. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14563. }
  14564. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14565. <span class="hljs-symbol">params:</span> {
  14566. }, <span class="hljs-symbol">headers:</span> headers
  14567. p JSON.parse(result)
  14568. </code></pre>
  14569. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14570. headers = {
  14571. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14572. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14573. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14574. }
  14575. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  14576. <span class="hljs-built_in">print</span>(r.json())
  14577. </code></pre>
  14578. <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>);
  14579. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14580. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14581. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14582. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14583. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14584. String inputLine;
  14585. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14586. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14587. response.append(inputLine);
  14588. }
  14589. in.close();
  14590. System.out.println(response.toString());
  14591. </code></pre>
  14592. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14593. <span class="hljs-keyword">import</span> (
  14594. <span class="hljs-string">&quot;bytes&quot;</span>
  14595. <span class="hljs-string">&quot;net/http&quot;</span>
  14596. )
  14597. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14598. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14599. <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>},
  14600. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14601. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14602. }
  14603. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14604. 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)
  14605. req.Header = headers
  14606. client := &amp;http.Client{}
  14607. resp, err := client.Do(req)
  14608. <span class="hljs-comment">// ...</span>
  14609. }
  14610. </code></pre>
  14611. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14612. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14613. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14614. );
  14615. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14616. <span class="hljs-comment">// Define array of request body.</span>
  14617. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14618. <span class="hljs-keyword">try</span> {
  14619. <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>(
  14620. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14621. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14622. )
  14623. );
  14624. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14625. }
  14626. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14627. <span class="hljs-comment">// handle exception or api errors.</span>
  14628. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14629. }
  14630. <span class="hljs-comment">// ...</span>
  14631. </code></pre>
  14632. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  14633. <p><em>Remove Member from Board</em></p>
  14634. <p>Only the admin user (the first user) can call the REST API.</p>
  14635. <blockquote>
  14636. <p>Body parameter</p>
  14637. </blockquote>
  14638. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14639. </code></pre>
  14640. <h3 id="remove_board_member-parameters">Parameters</h3>
  14641. <table>
  14642. <thead>
  14643. <tr>
  14644. <th>Name</th>
  14645. <th>In</th>
  14646. <th>Type</th>
  14647. <th>Required</th>
  14648. <th>Description</th>
  14649. </tr>
  14650. </thead>
  14651. <tbody>
  14652. <tr>
  14653. <td>board</td>
  14654. <td>path</td>
  14655. <td>string</td>
  14656. <td>true</td>
  14657. <td>the board ID</td>
  14658. </tr>
  14659. <tr>
  14660. <td>user</td>
  14661. <td>path</td>
  14662. <td>string</td>
  14663. <td>true</td>
  14664. <td>the user ID</td>
  14665. </tr>
  14666. <tr>
  14667. <td>body</td>
  14668. <td>body</td>
  14669. <td>object</td>
  14670. <td>true</td>
  14671. <td>none</td>
  14672. </tr>
  14673. <tr>
  14674. <td>» action</td>
  14675. <td>body</td>
  14676. <td>string</td>
  14677. <td>true</td>
  14678. <td>the action (needs to be <code>remove</code>)</td>
  14679. </tr>
  14680. </tbody>
  14681. </table>
  14682. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  14683. <p><strong>board</strong>: the board ID</p>
  14684. <p><strong>user</strong>: the user ID</p>
  14685. <blockquote>
  14686. <p>Example responses</p>
  14687. </blockquote>
  14688. <blockquote>
  14689. <p>200 Response</p>
  14690. </blockquote>
  14691. <pre class="highlight tab tab-json"><code>{
  14692. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14693. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14694. }
  14695. </code></pre>
  14696. <h3 id="remove_board_member-responses">Responses</h3>
  14697. <table>
  14698. <thead>
  14699. <tr>
  14700. <th>Status</th>
  14701. <th>Meaning</th>
  14702. <th>Description</th>
  14703. <th>Schema</th>
  14704. </tr>
  14705. </thead>
  14706. <tbody>
  14707. <tr>
  14708. <td>200</td>
  14709. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14710. <td>200 response</td>
  14711. <td>Inline</td>
  14712. </tr>
  14713. </tbody>
  14714. </table>
  14715. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  14716. <p>Status Code <strong>200</strong></p>
  14717. <table>
  14718. <thead>
  14719. <tr>
  14720. <th>Name</th>
  14721. <th>Type</th>
  14722. <th>Required</th>
  14723. <th>Restrictions</th>
  14724. <th>Description</th>
  14725. </tr>
  14726. </thead>
  14727. <tbody>
  14728. <tr>
  14729. <td>» _id</td>
  14730. <td>string</td>
  14731. <td>false</td>
  14732. <td>none</td>
  14733. <td>none</td>
  14734. </tr>
  14735. <tr>
  14736. <td>» title</td>
  14737. <td>string</td>
  14738. <td>false</td>
  14739. <td>none</td>
  14740. <td>none</td>
  14741. </tr>
  14742. </tbody>
  14743. </table>
  14744. <aside class="warning">
  14745. To perform this operation, you must be authenticated by means of one of the following methods:
  14746. UserSecurity
  14747. </aside>
  14748. <h2 id="create_user_token">create_user_token</h2>
  14749. <p><a id="opIdcreate_user_token"></a></p>
  14750. <blockquote>
  14751. <p>Code samples</p>
  14752. </blockquote>
  14753. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14754. curl -X POST /api/createtoken/{user} \
  14755. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14756. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14757. </code></pre>
  14758. <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>
  14759. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14760. </span></code></pre>
  14761. <pre class="highlight tab tab-javascript"><code>
  14762. <span class="hljs-keyword">const</span> headers = {
  14763. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14764. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14765. };
  14766. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14767. {
  14768. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14769. <span class="hljs-attr">headers</span>: headers
  14770. })
  14771. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14772. <span class="hljs-keyword">return</span> res.json();
  14773. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14774. <span class="hljs-built_in">console</span>.log(body);
  14775. });
  14776. </code></pre>
  14777. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14778. <span class="hljs-keyword">const</span> headers = {
  14779. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14780. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14781. };
  14782. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14783. {
  14784. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14785. <span class="hljs-attr">headers</span>: headers
  14786. })
  14787. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14788. <span class="hljs-keyword">return</span> res.json();
  14789. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14790. <span class="hljs-built_in">console</span>.log(body);
  14791. });
  14792. </code></pre>
  14793. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14794. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14795. headers = {
  14796. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14797. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14798. }
  14799. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14800. <span class="hljs-symbol">params:</span> {
  14801. }, <span class="hljs-symbol">headers:</span> headers
  14802. p JSON.parse(result)
  14803. </code></pre>
  14804. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14805. headers = {
  14806. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14807. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14808. }
  14809. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  14810. <span class="hljs-built_in">print</span>(r.json())
  14811. </code></pre>
  14812. <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>);
  14813. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14814. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14815. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14816. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14817. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14818. String inputLine;
  14819. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14820. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14821. response.append(inputLine);
  14822. }
  14823. in.close();
  14824. System.out.println(response.toString());
  14825. </code></pre>
  14826. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14827. <span class="hljs-keyword">import</span> (
  14828. <span class="hljs-string">&quot;bytes&quot;</span>
  14829. <span class="hljs-string">&quot;net/http&quot;</span>
  14830. )
  14831. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14832. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14833. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14834. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14835. }
  14836. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14837. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  14838. req.Header = headers
  14839. client := &amp;http.Client{}
  14840. resp, err := client.Do(req)
  14841. <span class="hljs-comment">// ...</span>
  14842. }
  14843. </code></pre>
  14844. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14845. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14846. );
  14847. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14848. <span class="hljs-comment">// Define array of request body.</span>
  14849. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14850. <span class="hljs-keyword">try</span> {
  14851. <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>(
  14852. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14853. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14854. )
  14855. );
  14856. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14857. }
  14858. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14859. <span class="hljs-comment">// handle exception or api errors.</span>
  14860. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14861. }
  14862. <span class="hljs-comment">// ...</span>
  14863. </code></pre>
  14864. <p><code>POST /api/createtoken/{user}</code></p>
  14865. <p><em>Create a user token</em></p>
  14866. <p>Only the admin user (the first user) can call the REST API.</p>
  14867. <h3 id="create_user_token-parameters">Parameters</h3>
  14868. <table>
  14869. <thead>
  14870. <tr>
  14871. <th>Name</th>
  14872. <th>In</th>
  14873. <th>Type</th>
  14874. <th>Required</th>
  14875. <th>Description</th>
  14876. </tr>
  14877. </thead>
  14878. <tbody>
  14879. <tr>
  14880. <td>user</td>
  14881. <td>path</td>
  14882. <td>string</td>
  14883. <td>true</td>
  14884. <td>the ID of the user to create token for.</td>
  14885. </tr>
  14886. </tbody>
  14887. </table>
  14888. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  14889. <p><strong>user</strong>: the ID of the user to create token for.</p>
  14890. <blockquote>
  14891. <p>Example responses</p>
  14892. </blockquote>
  14893. <blockquote>
  14894. <p>200 Response</p>
  14895. </blockquote>
  14896. <pre class="highlight tab tab-json"><code>{
  14897. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14898. }
  14899. </code></pre>
  14900. <h3 id="create_user_token-responses">Responses</h3>
  14901. <table>
  14902. <thead>
  14903. <tr>
  14904. <th>Status</th>
  14905. <th>Meaning</th>
  14906. <th>Description</th>
  14907. <th>Schema</th>
  14908. </tr>
  14909. </thead>
  14910. <tbody>
  14911. <tr>
  14912. <td>200</td>
  14913. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14914. <td>200 response</td>
  14915. <td>Inline</td>
  14916. </tr>
  14917. </tbody>
  14918. </table>
  14919. <h3 id="create_user_token-responseschema">Response Schema</h3>
  14920. <p>Status Code <strong>200</strong></p>
  14921. <table>
  14922. <thead>
  14923. <tr>
  14924. <th>Name</th>
  14925. <th>Type</th>
  14926. <th>Required</th>
  14927. <th>Restrictions</th>
  14928. <th>Description</th>
  14929. </tr>
  14930. </thead>
  14931. <tbody>
  14932. <tr>
  14933. <td>» _id</td>
  14934. <td>string</td>
  14935. <td>false</td>
  14936. <td>none</td>
  14937. <td>none</td>
  14938. </tr>
  14939. </tbody>
  14940. </table>
  14941. <aside class="warning">
  14942. To perform this operation, you must be authenticated by means of one of the following methods:
  14943. UserSecurity
  14944. </aside>
  14945. <h2 id="delete_user_token">delete_user_token</h2>
  14946. <p><a id="opIddelete_user_token"></a></p>
  14947. <blockquote>
  14948. <p>Code samples</p>
  14949. </blockquote>
  14950. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14951. curl -X POST /api/deletetoken \
  14952. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14953. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14954. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14955. </code></pre>
  14956. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/deletetoken</span> <span class="hljs-meta">HTTP/1.1</span>
  14957. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14958. Accept: application/json
  14959. </span></code></pre>
  14960. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14961. &quot;userId&quot;: &quot;string&quot;,
  14962. &quot;token&quot;: &quot;string&quot;
  14963. }&#x27;</span>;
  14964. <span class="hljs-keyword">const</span> headers = {
  14965. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14966. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14967. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14968. };
  14969. fetch(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  14970. {
  14971. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14972. <span class="hljs-attr">body</span>: inputBody,
  14973. <span class="hljs-attr">headers</span>: headers
  14974. })
  14975. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14976. <span class="hljs-keyword">return</span> res.json();
  14977. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14978. <span class="hljs-built_in">console</span>.log(body);
  14979. });
  14980. </code></pre>
  14981. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14982. <span class="hljs-keyword">const</span> inputBody = {
  14983. <span class="hljs-string">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14984. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14985. };
  14986. <span class="hljs-keyword">const</span> headers = {
  14987. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14988. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14989. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14990. };
  14991. fetch(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  14992. {
  14993. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14994. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14995. <span class="hljs-attr">headers</span>: headers
  14996. })
  14997. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14998. <span class="hljs-keyword">return</span> res.json();
  14999. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15000. <span class="hljs-built_in">console</span>.log(body);
  15001. });
  15002. </code></pre>
  15003. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15004. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15005. headers = {
  15006. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15007. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15008. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15009. }
  15010. result = RestClient.post <span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  15011. <span class="hljs-symbol">params:</span> {
  15012. }, <span class="hljs-symbol">headers:</span> headers
  15013. p JSON.parse(result)
  15014. </code></pre>
  15015. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15016. headers = {
  15017. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15018. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15019. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15020. }
  15021. r = requests.post(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>, headers = headers)
  15022. <span class="hljs-built_in">print</span>(r.json())
  15023. </code></pre>
  15024. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/deletetoken&quot;</span>);
  15025. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15026. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15027. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15028. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15029. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15030. String inputLine;
  15031. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15032. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15033. response.append(inputLine);
  15034. }
  15035. in.close();
  15036. System.out.println(response.toString());
  15037. </code></pre>
  15038. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15039. <span class="hljs-keyword">import</span> (
  15040. <span class="hljs-string">&quot;bytes&quot;</span>
  15041. <span class="hljs-string">&quot;net/http&quot;</span>
  15042. )
  15043. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15044. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15045. <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>},
  15046. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15047. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15048. }
  15049. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15050. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/deletetoken&quot;</span>, data)
  15051. req.Header = headers
  15052. client := &amp;http.Client{}
  15053. resp, err := client.Do(req)
  15054. <span class="hljs-comment">// ...</span>
  15055. }
  15056. </code></pre>
  15057. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15058. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15059. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15060. );
  15061. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15062. <span class="hljs-comment">// Define array of request body.</span>
  15063. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15064. <span class="hljs-keyword">try</span> {
  15065. <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/deletetoken&#x27;</span>, <span class="hljs-keyword">array</span>(
  15066. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15067. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15068. )
  15069. );
  15070. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15071. }
  15072. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15073. <span class="hljs-comment">// handle exception or api errors.</span>
  15074. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15075. }
  15076. <span class="hljs-comment">// ...</span>
  15077. </code></pre>
  15078. <p><code>POST /api/deletetoken</code></p>
  15079. <p><em>Delete one or all user token.</em></p>
  15080. <p>Only the admin user (the first user) can call the REST API.</p>
  15081. <blockquote>
  15082. <p>Body parameter</p>
  15083. </blockquote>
  15084. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">userId:</span> <span class="hljs-string">string</span>
  15085. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  15086. </code></pre>
  15087. <h3 id="delete_user_token-parameters">Parameters</h3>
  15088. <table>
  15089. <thead>
  15090. <tr>
  15091. <th>Name</th>
  15092. <th>In</th>
  15093. <th>Type</th>
  15094. <th>Required</th>
  15095. <th>Description</th>
  15096. </tr>
  15097. </thead>
  15098. <tbody>
  15099. <tr>
  15100. <td>body</td>
  15101. <td>body</td>
  15102. <td>object</td>
  15103. <td>true</td>
  15104. <td>none</td>
  15105. </tr>
  15106. <tr>
  15107. <td>» userId</td>
  15108. <td>body</td>
  15109. <td>string</td>
  15110. <td>true</td>
  15111. <td>the user ID</td>
  15112. </tr>
  15113. <tr>
  15114. <td>» token</td>
  15115. <td>body</td>
  15116. <td>string</td>
  15117. <td>true</td>
  15118. <td>the user hashedToken</td>
  15119. </tr>
  15120. </tbody>
  15121. </table>
  15122. <blockquote>
  15123. <p>Example responses</p>
  15124. </blockquote>
  15125. <blockquote>
  15126. <p>200 Response</p>
  15127. </blockquote>
  15128. <pre class="highlight tab tab-json"><code>{
  15129. <span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15130. }
  15131. </code></pre>
  15132. <h3 id="delete_user_token-responses">Responses</h3>
  15133. <table>
  15134. <thead>
  15135. <tr>
  15136. <th>Status</th>
  15137. <th>Meaning</th>
  15138. <th>Description</th>
  15139. <th>Schema</th>
  15140. </tr>
  15141. </thead>
  15142. <tbody>
  15143. <tr>
  15144. <td>200</td>
  15145. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15146. <td>200 response</td>
  15147. <td>Inline</td>
  15148. </tr>
  15149. </tbody>
  15150. </table>
  15151. <h3 id="delete_user_token-responseschema">Response Schema</h3>
  15152. <p>Status Code <strong>200</strong></p>
  15153. <table>
  15154. <thead>
  15155. <tr>
  15156. <th>Name</th>
  15157. <th>Type</th>
  15158. <th>Required</th>
  15159. <th>Restrictions</th>
  15160. <th>Description</th>
  15161. </tr>
  15162. </thead>
  15163. <tbody>
  15164. <tr>
  15165. <td>» message</td>
  15166. <td>string</td>
  15167. <td>false</td>
  15168. <td>none</td>
  15169. <td>none</td>
  15170. </tr>
  15171. </tbody>
  15172. </table>
  15173. <aside class="warning">
  15174. To perform this operation, you must be authenticated by means of one of the following methods:
  15175. UserSecurity
  15176. </aside>
  15177. <h2 id="get_current_user">get_current_user</h2>
  15178. <p><a id="opIdget_current_user"></a></p>
  15179. <blockquote>
  15180. <p>Code samples</p>
  15181. </blockquote>
  15182. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15183. curl -X GET /api/user \
  15184. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15185. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15186. </code></pre>
  15187. <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>
  15188. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15189. </span></code></pre>
  15190. <pre class="highlight tab tab-javascript"><code>
  15191. <span class="hljs-keyword">const</span> headers = {
  15192. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15193. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15194. };
  15195. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  15196. {
  15197. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15198. <span class="hljs-attr">headers</span>: headers
  15199. })
  15200. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15201. <span class="hljs-keyword">return</span> res.json();
  15202. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15203. <span class="hljs-built_in">console</span>.log(body);
  15204. });
  15205. </code></pre>
  15206. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15207. <span class="hljs-keyword">const</span> headers = {
  15208. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15209. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15210. };
  15211. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  15212. {
  15213. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15214. <span class="hljs-attr">headers</span>: headers
  15215. })
  15216. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15217. <span class="hljs-keyword">return</span> res.json();
  15218. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15219. <span class="hljs-built_in">console</span>.log(body);
  15220. });
  15221. </code></pre>
  15222. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15223. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15224. headers = {
  15225. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15226. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15227. }
  15228. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  15229. <span class="hljs-symbol">params:</span> {
  15230. }, <span class="hljs-symbol">headers:</span> headers
  15231. p JSON.parse(result)
  15232. </code></pre>
  15233. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15234. headers = {
  15235. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15236. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15237. }
  15238. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  15239. <span class="hljs-built_in">print</span>(r.json())
  15240. </code></pre>
  15241. <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>);
  15242. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15243. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15244. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15245. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15246. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15247. String inputLine;
  15248. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15249. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15250. response.append(inputLine);
  15251. }
  15252. in.close();
  15253. System.out.println(response.toString());
  15254. </code></pre>
  15255. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15256. <span class="hljs-keyword">import</span> (
  15257. <span class="hljs-string">&quot;bytes&quot;</span>
  15258. <span class="hljs-string">&quot;net/http&quot;</span>
  15259. )
  15260. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15261. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15262. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15263. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15264. }
  15265. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15266. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  15267. req.Header = headers
  15268. client := &amp;http.Client{}
  15269. resp, err := client.Do(req)
  15270. <span class="hljs-comment">// ...</span>
  15271. }
  15272. </code></pre>
  15273. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15274. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15275. );
  15276. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15277. <span class="hljs-comment">// Define array of request body.</span>
  15278. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15279. <span class="hljs-keyword">try</span> {
  15280. <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>(
  15281. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15282. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15283. )
  15284. );
  15285. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15286. }
  15287. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15288. <span class="hljs-comment">// handle exception or api errors.</span>
  15289. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15290. }
  15291. <span class="hljs-comment">// ...</span>
  15292. </code></pre>
  15293. <p><code>GET /api/user</code></p>
  15294. <p><em>returns the current user</em></p>
  15295. <blockquote>
  15296. <p>Example responses</p>
  15297. </blockquote>
  15298. <blockquote>
  15299. <p>200 Response</p>
  15300. </blockquote>
  15301. <pre class="highlight tab tab-json"><code>{
  15302. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15303. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15304. {
  15305. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15306. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15307. }
  15308. ],
  15309. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15310. {
  15311. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15312. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15313. }
  15314. ],
  15315. <span class="hljs-attr">&quot;emails&quot;</span>: [
  15316. {
  15317. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15318. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  15319. }
  15320. ],
  15321. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15322. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15323. <span class="hljs-attr">&quot;profile&quot;</span>: {
  15324. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15325. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  15326. <span class="hljs-string">&quot;string&quot;</span>
  15327. ],
  15328. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15329. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  15330. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  15331. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  15332. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  15333. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  15334. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  15335. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15336. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  15337. <span class="hljs-string">&quot;string&quot;</span>
  15338. ],
  15339. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15340. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  15341. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  15342. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  15343. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  15344. {
  15345. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15346. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15347. }
  15348. ],
  15349. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  15350. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  15351. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  15352. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  15353. <span class="hljs-string">&quot;string&quot;</span>
  15354. ],
  15355. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15356. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  15357. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  15358. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15359. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15360. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15361. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15362. },
  15363. <span class="hljs-attr">&quot;services&quot;</span>: {},
  15364. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15365. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15366. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  15367. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  15368. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15369. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  15370. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  15371. },
  15372. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  15373. <span class="hljs-string">&quot;string&quot;</span>
  15374. ],
  15375. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15376. }
  15377. </code></pre>
  15378. <h3 id="get_current_user-responses">Responses</h3>
  15379. <table>
  15380. <thead>
  15381. <tr>
  15382. <th>Status</th>
  15383. <th>Meaning</th>
  15384. <th>Description</th>
  15385. <th>Schema</th>
  15386. </tr>
  15387. </thead>
  15388. <tbody>
  15389. <tr>
  15390. <td>200</td>
  15391. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15392. <td>200 response</td>
  15393. <td><a href="#schemausers">Users</a></td>
  15394. </tr>
  15395. </tbody>
  15396. </table>
  15397. <aside class="warning">
  15398. To perform this operation, you must be authenticated by means of one of the following methods:
  15399. UserSecurity
  15400. </aside>
  15401. <h2 id="get_all_users">get_all_users</h2>
  15402. <p><a id="opIdget_all_users"></a></p>
  15403. <blockquote>
  15404. <p>Code samples</p>
  15405. </blockquote>
  15406. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15407. curl -X GET /api/users \
  15408. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15409. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15410. </code></pre>
  15411. <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>
  15412. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15413. </span></code></pre>
  15414. <pre class="highlight tab tab-javascript"><code>
  15415. <span class="hljs-keyword">const</span> headers = {
  15416. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15417. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15418. };
  15419. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15420. {
  15421. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15422. <span class="hljs-attr">headers</span>: headers
  15423. })
  15424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15425. <span class="hljs-keyword">return</span> res.json();
  15426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15427. <span class="hljs-built_in">console</span>.log(body);
  15428. });
  15429. </code></pre>
  15430. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15431. <span class="hljs-keyword">const</span> headers = {
  15432. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15433. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15434. };
  15435. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15436. {
  15437. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15438. <span class="hljs-attr">headers</span>: headers
  15439. })
  15440. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15441. <span class="hljs-keyword">return</span> res.json();
  15442. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15443. <span class="hljs-built_in">console</span>.log(body);
  15444. });
  15445. </code></pre>
  15446. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15447. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15448. headers = {
  15449. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15450. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15451. }
  15452. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15453. <span class="hljs-symbol">params:</span> {
  15454. }, <span class="hljs-symbol">headers:</span> headers
  15455. p JSON.parse(result)
  15456. </code></pre>
  15457. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15458. headers = {
  15459. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15460. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15461. }
  15462. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  15463. <span class="hljs-built_in">print</span>(r.json())
  15464. </code></pre>
  15465. <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>);
  15466. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15467. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15468. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15469. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15470. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15471. String inputLine;
  15472. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15473. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15474. response.append(inputLine);
  15475. }
  15476. in.close();
  15477. System.out.println(response.toString());
  15478. </code></pre>
  15479. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15480. <span class="hljs-keyword">import</span> (
  15481. <span class="hljs-string">&quot;bytes&quot;</span>
  15482. <span class="hljs-string">&quot;net/http&quot;</span>
  15483. )
  15484. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15485. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15486. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15487. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15488. }
  15489. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15490. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  15491. req.Header = headers
  15492. client := &amp;http.Client{}
  15493. resp, err := client.Do(req)
  15494. <span class="hljs-comment">// ...</span>
  15495. }
  15496. </code></pre>
  15497. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15498. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15499. );
  15500. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15501. <span class="hljs-comment">// Define array of request body.</span>
  15502. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15503. <span class="hljs-keyword">try</span> {
  15504. <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>(
  15505. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15506. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15507. )
  15508. );
  15509. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15510. }
  15511. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15512. <span class="hljs-comment">// handle exception or api errors.</span>
  15513. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15514. }
  15515. <span class="hljs-comment">// ...</span>
  15516. </code></pre>
  15517. <p><code>GET /api/users</code></p>
  15518. <p><em>return all the users</em></p>
  15519. <p>Only the admin user (the first user) can call the REST API.</p>
  15520. <blockquote>
  15521. <p>Example responses</p>
  15522. </blockquote>
  15523. <blockquote>
  15524. <p>200 Response</p>
  15525. </blockquote>
  15526. <pre class="highlight tab tab-json"><code>[
  15527. {
  15528. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15529. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15530. }
  15531. ]
  15532. </code></pre>
  15533. <h3 id="get_all_users-responses">Responses</h3>
  15534. <table>
  15535. <thead>
  15536. <tr>
  15537. <th>Status</th>
  15538. <th>Meaning</th>
  15539. <th>Description</th>
  15540. <th>Schema</th>
  15541. </tr>
  15542. </thead>
  15543. <tbody>
  15544. <tr>
  15545. <td>200</td>
  15546. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15547. <td>200 response</td>
  15548. <td>Inline</td>
  15549. </tr>
  15550. </tbody>
  15551. </table>
  15552. <h3 id="get_all_users-responseschema">Response Schema</h3>
  15553. <p>Status Code <strong>200</strong></p>
  15554. <table>
  15555. <thead>
  15556. <tr>
  15557. <th>Name</th>
  15558. <th>Type</th>
  15559. <th>Required</th>
  15560. <th>Restrictions</th>
  15561. <th>Description</th>
  15562. </tr>
  15563. </thead>
  15564. <tbody>
  15565. <tr>
  15566. <td>» _id</td>
  15567. <td>string</td>
  15568. <td>false</td>
  15569. <td>none</td>
  15570. <td>none</td>
  15571. </tr>
  15572. <tr>
  15573. <td>» username</td>
  15574. <td>string</td>
  15575. <td>false</td>
  15576. <td>none</td>
  15577. <td>none</td>
  15578. </tr>
  15579. </tbody>
  15580. </table>
  15581. <aside class="warning">
  15582. To perform this operation, you must be authenticated by means of one of the following methods:
  15583. UserSecurity
  15584. </aside>
  15585. <h2 id="new_user">new_user</h2>
  15586. <p><a id="opIdnew_user"></a></p>
  15587. <blockquote>
  15588. <p>Code samples</p>
  15589. </blockquote>
  15590. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15591. curl -X POST /api/users \
  15592. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15593. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15594. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15595. </code></pre>
  15596. <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>
  15597. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15598. Accept: application/json
  15599. </span></code></pre>
  15600. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15601. &quot;username&quot;: &quot;string&quot;,
  15602. &quot;email&quot;: &quot;string&quot;,
  15603. &quot;password&quot;: &quot;string&quot;
  15604. }&#x27;</span>;
  15605. <span class="hljs-keyword">const</span> headers = {
  15606. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15607. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15608. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15609. };
  15610. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15611. {
  15612. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15613. <span class="hljs-attr">body</span>: inputBody,
  15614. <span class="hljs-attr">headers</span>: headers
  15615. })
  15616. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15617. <span class="hljs-keyword">return</span> res.json();
  15618. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15619. <span class="hljs-built_in">console</span>.log(body);
  15620. });
  15621. </code></pre>
  15622. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15623. <span class="hljs-keyword">const</span> inputBody = {
  15624. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15625. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15626. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15627. };
  15628. <span class="hljs-keyword">const</span> headers = {
  15629. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15630. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15631. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15632. };
  15633. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15634. {
  15635. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15636. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15637. <span class="hljs-attr">headers</span>: headers
  15638. })
  15639. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15640. <span class="hljs-keyword">return</span> res.json();
  15641. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15642. <span class="hljs-built_in">console</span>.log(body);
  15643. });
  15644. </code></pre>
  15645. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15646. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15647. headers = {
  15648. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15649. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15650. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15651. }
  15652. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15653. <span class="hljs-symbol">params:</span> {
  15654. }, <span class="hljs-symbol">headers:</span> headers
  15655. p JSON.parse(result)
  15656. </code></pre>
  15657. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15658. headers = {
  15659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15660. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15661. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15662. }
  15663. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  15664. <span class="hljs-built_in">print</span>(r.json())
  15665. </code></pre>
  15666. <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>);
  15667. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15668. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15669. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15670. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15671. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15672. String inputLine;
  15673. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15674. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15675. response.append(inputLine);
  15676. }
  15677. in.close();
  15678. System.out.println(response.toString());
  15679. </code></pre>
  15680. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15681. <span class="hljs-keyword">import</span> (
  15682. <span class="hljs-string">&quot;bytes&quot;</span>
  15683. <span class="hljs-string">&quot;net/http&quot;</span>
  15684. )
  15685. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15686. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15687. <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>},
  15688. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15689. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15690. }
  15691. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15692. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  15693. req.Header = headers
  15694. client := &amp;http.Client{}
  15695. resp, err := client.Do(req)
  15696. <span class="hljs-comment">// ...</span>
  15697. }
  15698. </code></pre>
  15699. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15700. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15701. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15702. );
  15703. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15704. <span class="hljs-comment">// Define array of request body.</span>
  15705. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15706. <span class="hljs-keyword">try</span> {
  15707. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/users&#x27;</span>, <span class="hljs-keyword">array</span>(
  15708. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15709. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15710. )
  15711. );
  15712. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15713. }
  15714. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15715. <span class="hljs-comment">// handle exception or api errors.</span>
  15716. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15717. }
  15718. <span class="hljs-comment">// ...</span>
  15719. </code></pre>
  15720. <p><code>POST /api/users</code></p>
  15721. <p><em>Create a new user</em></p>
  15722. <p>Only the admin user (the first user) can call the REST API.</p>
  15723. <blockquote>
  15724. <p>Body parameter</p>
  15725. </blockquote>
  15726. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  15727. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  15728. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  15729. </code></pre>
  15730. <h3 id="new_user-parameters">Parameters</h3>
  15731. <table>
  15732. <thead>
  15733. <tr>
  15734. <th>Name</th>
  15735. <th>In</th>
  15736. <th>Type</th>
  15737. <th>Required</th>
  15738. <th>Description</th>
  15739. </tr>
  15740. </thead>
  15741. <tbody>
  15742. <tr>
  15743. <td>body</td>
  15744. <td>body</td>
  15745. <td>object</td>
  15746. <td>true</td>
  15747. <td>none</td>
  15748. </tr>
  15749. <tr>
  15750. <td>» username</td>
  15751. <td>body</td>
  15752. <td>string</td>
  15753. <td>true</td>
  15754. <td>the new username</td>
  15755. </tr>
  15756. <tr>
  15757. <td>» email</td>
  15758. <td>body</td>
  15759. <td>string</td>
  15760. <td>true</td>
  15761. <td>the email of the new user</td>
  15762. </tr>
  15763. <tr>
  15764. <td>» password</td>
  15765. <td>body</td>
  15766. <td>string</td>
  15767. <td>true</td>
  15768. <td>the password of the new user</td>
  15769. </tr>
  15770. </tbody>
  15771. </table>
  15772. <blockquote>
  15773. <p>Example responses</p>
  15774. </blockquote>
  15775. <blockquote>
  15776. <p>200 Response</p>
  15777. </blockquote>
  15778. <pre class="highlight tab tab-json"><code>{
  15779. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15780. }
  15781. </code></pre>
  15782. <h3 id="new_user-responses">Responses</h3>
  15783. <table>
  15784. <thead>
  15785. <tr>
  15786. <th>Status</th>
  15787. <th>Meaning</th>
  15788. <th>Description</th>
  15789. <th>Schema</th>
  15790. </tr>
  15791. </thead>
  15792. <tbody>
  15793. <tr>
  15794. <td>200</td>
  15795. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15796. <td>200 response</td>
  15797. <td>Inline</td>
  15798. </tr>
  15799. </tbody>
  15800. </table>
  15801. <h3 id="new_user-responseschema">Response Schema</h3>
  15802. <p>Status Code <strong>200</strong></p>
  15803. <table>
  15804. <thead>
  15805. <tr>
  15806. <th>Name</th>
  15807. <th>Type</th>
  15808. <th>Required</th>
  15809. <th>Restrictions</th>
  15810. <th>Description</th>
  15811. </tr>
  15812. </thead>
  15813. <tbody>
  15814. <tr>
  15815. <td>» _id</td>
  15816. <td>string</td>
  15817. <td>false</td>
  15818. <td>none</td>
  15819. <td>none</td>
  15820. </tr>
  15821. </tbody>
  15822. </table>
  15823. <aside class="warning">
  15824. To perform this operation, you must be authenticated by means of one of the following methods:
  15825. UserSecurity
  15826. </aside>
  15827. <h2 id="get_user">get_user</h2>
  15828. <p><a id="opIdget_user"></a></p>
  15829. <blockquote>
  15830. <p>Code samples</p>
  15831. </blockquote>
  15832. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15833. curl -X GET /api/users/{user} \
  15834. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15835. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15836. </code></pre>
  15837. <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>
  15838. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15839. </span></code></pre>
  15840. <pre class="highlight tab tab-javascript"><code>
  15841. <span class="hljs-keyword">const</span> headers = {
  15842. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15843. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15844. };
  15845. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15846. {
  15847. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15848. <span class="hljs-attr">headers</span>: headers
  15849. })
  15850. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15851. <span class="hljs-keyword">return</span> res.json();
  15852. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15853. <span class="hljs-built_in">console</span>.log(body);
  15854. });
  15855. </code></pre>
  15856. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15857. <span class="hljs-keyword">const</span> headers = {
  15858. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15859. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15860. };
  15861. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15862. {
  15863. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15864. <span class="hljs-attr">headers</span>: headers
  15865. })
  15866. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15867. <span class="hljs-keyword">return</span> res.json();
  15868. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15869. <span class="hljs-built_in">console</span>.log(body);
  15870. });
  15871. </code></pre>
  15872. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15873. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15874. headers = {
  15875. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15876. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15877. }
  15878. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15879. <span class="hljs-symbol">params:</span> {
  15880. }, <span class="hljs-symbol">headers:</span> headers
  15881. p JSON.parse(result)
  15882. </code></pre>
  15883. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15884. headers = {
  15885. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15886. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15887. }
  15888. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15889. <span class="hljs-built_in">print</span>(r.json())
  15890. </code></pre>
  15891. <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>);
  15892. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15893. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15894. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15895. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15896. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15897. String inputLine;
  15898. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15899. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15900. response.append(inputLine);
  15901. }
  15902. in.close();
  15903. System.out.println(response.toString());
  15904. </code></pre>
  15905. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15906. <span class="hljs-keyword">import</span> (
  15907. <span class="hljs-string">&quot;bytes&quot;</span>
  15908. <span class="hljs-string">&quot;net/http&quot;</span>
  15909. )
  15910. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15911. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15912. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15913. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15914. }
  15915. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15916. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15917. req.Header = headers
  15918. client := &amp;http.Client{}
  15919. resp, err := client.Do(req)
  15920. <span class="hljs-comment">// ...</span>
  15921. }
  15922. </code></pre>
  15923. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15924. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15925. );
  15926. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15927. <span class="hljs-comment">// Define array of request body.</span>
  15928. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15929. <span class="hljs-keyword">try</span> {
  15930. <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>(
  15931. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15932. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15933. )
  15934. );
  15935. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15936. }
  15937. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15938. <span class="hljs-comment">// handle exception or api errors.</span>
  15939. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15940. }
  15941. <span class="hljs-comment">// ...</span>
  15942. </code></pre>
  15943. <p><code>GET /api/users/{user}</code></p>
  15944. <p><em>get a given user</em></p>
  15945. <p>Only the admin user (the first user) can call the REST API.</p>
  15946. <h3 id="get_user-parameters">Parameters</h3>
  15947. <table>
  15948. <thead>
  15949. <tr>
  15950. <th>Name</th>
  15951. <th>In</th>
  15952. <th>Type</th>
  15953. <th>Required</th>
  15954. <th>Description</th>
  15955. </tr>
  15956. </thead>
  15957. <tbody>
  15958. <tr>
  15959. <td>user</td>
  15960. <td>path</td>
  15961. <td>string</td>
  15962. <td>true</td>
  15963. <td>the user ID or username</td>
  15964. </tr>
  15965. </tbody>
  15966. </table>
  15967. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15968. <p><strong>user</strong>: the user ID or username</p>
  15969. <blockquote>
  15970. <p>Example responses</p>
  15971. </blockquote>
  15972. <blockquote>
  15973. <p>200 Response</p>
  15974. </blockquote>
  15975. <pre class="highlight tab tab-json"><code>{
  15976. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15977. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15978. {
  15979. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15980. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15981. }
  15982. ],
  15983. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15984. {
  15985. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15986. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15987. }
  15988. ],
  15989. <span class="hljs-attr">&quot;emails&quot;</span>: [
  15990. {
  15991. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15992. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  15993. }
  15994. ],
  15995. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15996. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15997. <span class="hljs-attr">&quot;profile&quot;</span>: {
  15998. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15999. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  16000. <span class="hljs-string">&quot;string&quot;</span>
  16001. ],
  16002. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16003. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  16004. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  16005. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  16006. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  16007. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  16008. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  16009. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16010. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  16011. <span class="hljs-string">&quot;string&quot;</span>
  16012. ],
  16013. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16014. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  16015. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  16016. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  16017. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  16018. {
  16019. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16020. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16021. }
  16022. ],
  16023. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  16024. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  16025. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  16026. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  16027. <span class="hljs-string">&quot;string&quot;</span>
  16028. ],
  16029. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16030. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  16031. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  16032. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16033. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16034. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16035. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16036. },
  16037. <span class="hljs-attr">&quot;services&quot;</span>: {},
  16038. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16039. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16040. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  16041. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  16042. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16043. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  16044. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  16045. },
  16046. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  16047. <span class="hljs-string">&quot;string&quot;</span>
  16048. ],
  16049. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16050. }
  16051. </code></pre>
  16052. <h3 id="get_user-responses">Responses</h3>
  16053. <table>
  16054. <thead>
  16055. <tr>
  16056. <th>Status</th>
  16057. <th>Meaning</th>
  16058. <th>Description</th>
  16059. <th>Schema</th>
  16060. </tr>
  16061. </thead>
  16062. <tbody>
  16063. <tr>
  16064. <td>200</td>
  16065. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16066. <td>200 response</td>
  16067. <td><a href="#schemausers">Users</a></td>
  16068. </tr>
  16069. </tbody>
  16070. </table>
  16071. <aside class="warning">
  16072. To perform this operation, you must be authenticated by means of one of the following methods:
  16073. UserSecurity
  16074. </aside>
  16075. <h2 id="edit_user">edit_user</h2>
  16076. <p><a id="opIdedit_user"></a></p>
  16077. <blockquote>
  16078. <p>Code samples</p>
  16079. </blockquote>
  16080. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16081. curl -X PUT /api/users/{user} \
  16082. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  16083. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16084. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16085. </code></pre>
  16086. <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>
  16087. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  16088. Accept: application/json
  16089. </span></code></pre>
  16090. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  16091. &quot;action&quot;: &quot;string&quot;
  16092. }&#x27;</span>;
  16093. <span class="hljs-keyword">const</span> headers = {
  16094. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16095. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16096. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16097. };
  16098. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16099. {
  16100. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  16101. <span class="hljs-attr">body</span>: inputBody,
  16102. <span class="hljs-attr">headers</span>: headers
  16103. })
  16104. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16105. <span class="hljs-keyword">return</span> res.json();
  16106. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16107. <span class="hljs-built_in">console</span>.log(body);
  16108. });
  16109. </code></pre>
  16110. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16111. <span class="hljs-keyword">const</span> inputBody = {
  16112. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16113. };
  16114. <span class="hljs-keyword">const</span> headers = {
  16115. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16116. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16117. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16118. };
  16119. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16120. {
  16121. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  16122. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  16123. <span class="hljs-attr">headers</span>: headers
  16124. })
  16125. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16126. <span class="hljs-keyword">return</span> res.json();
  16127. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16128. <span class="hljs-built_in">console</span>.log(body);
  16129. });
  16130. </code></pre>
  16131. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16132. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16133. headers = {
  16134. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16135. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16136. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16137. }
  16138. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16139. <span class="hljs-symbol">params:</span> {
  16140. }, <span class="hljs-symbol">headers:</span> headers
  16141. p JSON.parse(result)
  16142. </code></pre>
  16143. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16144. headers = {
  16145. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16146. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16147. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16148. }
  16149. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  16150. <span class="hljs-built_in">print</span>(r.json())
  16151. </code></pre>
  16152. <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>);
  16153. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16154. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  16155. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16156. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16157. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16158. String inputLine;
  16159. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16160. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16161. response.append(inputLine);
  16162. }
  16163. in.close();
  16164. System.out.println(response.toString());
  16165. </code></pre>
  16166. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16167. <span class="hljs-keyword">import</span> (
  16168. <span class="hljs-string">&quot;bytes&quot;</span>
  16169. <span class="hljs-string">&quot;net/http&quot;</span>
  16170. )
  16171. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16172. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16173. <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>},
  16174. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16175. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16176. }
  16177. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16178. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  16179. req.Header = headers
  16180. client := &amp;http.Client{}
  16181. resp, err := client.Do(req)
  16182. <span class="hljs-comment">// ...</span>
  16183. }
  16184. </code></pre>
  16185. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16186. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16187. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16188. );
  16189. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16190. <span class="hljs-comment">// Define array of request body.</span>
  16191. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16192. <span class="hljs-keyword">try</span> {
  16193. <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>(
  16194. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16195. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16196. )
  16197. );
  16198. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16199. }
  16200. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16201. <span class="hljs-comment">// handle exception or api errors.</span>
  16202. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16203. }
  16204. <span class="hljs-comment">// ...</span>
  16205. </code></pre>
  16206. <p><code>PUT /api/users/{user}</code></p>
  16207. <p><em>edit a given user</em></p>
  16208. <p>Only the admin user (the first user) can call the REST API.</p>
  16209. <p>Possible values for <em>action</em>:</p>
  16210. <ul>
  16211. <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>
  16212. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  16213. <li><code>enableLogin</code>: Enable a user</li>
  16214. </ul>
  16215. <blockquote>
  16216. <p>Body parameter</p>
  16217. </blockquote>
  16218. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  16219. </code></pre>
  16220. <h3 id="edit_user-parameters">Parameters</h3>
  16221. <table>
  16222. <thead>
  16223. <tr>
  16224. <th>Name</th>
  16225. <th>In</th>
  16226. <th>Type</th>
  16227. <th>Required</th>
  16228. <th>Description</th>
  16229. </tr>
  16230. </thead>
  16231. <tbody>
  16232. <tr>
  16233. <td>user</td>
  16234. <td>path</td>
  16235. <td>string</td>
  16236. <td>true</td>
  16237. <td>the user ID</td>
  16238. </tr>
  16239. <tr>
  16240. <td>body</td>
  16241. <td>body</td>
  16242. <td>object</td>
  16243. <td>true</td>
  16244. <td>none</td>
  16245. </tr>
  16246. <tr>
  16247. <td>» action</td>
  16248. <td>body</td>
  16249. <td>string</td>
  16250. <td>true</td>
  16251. <td>the action</td>
  16252. </tr>
  16253. </tbody>
  16254. </table>
  16255. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  16256. <p><strong>user</strong>: the user ID</p>
  16257. <blockquote>
  16258. <p>Example responses</p>
  16259. </blockquote>
  16260. <blockquote>
  16261. <p>200 Response</p>
  16262. </blockquote>
  16263. <pre class="highlight tab tab-json"><code>{
  16264. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16265. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16266. }
  16267. </code></pre>
  16268. <h3 id="edit_user-responses">Responses</h3>
  16269. <table>
  16270. <thead>
  16271. <tr>
  16272. <th>Status</th>
  16273. <th>Meaning</th>
  16274. <th>Description</th>
  16275. <th>Schema</th>
  16276. </tr>
  16277. </thead>
  16278. <tbody>
  16279. <tr>
  16280. <td>200</td>
  16281. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16282. <td>200 response</td>
  16283. <td>Inline</td>
  16284. </tr>
  16285. </tbody>
  16286. </table>
  16287. <h3 id="edit_user-responseschema">Response Schema</h3>
  16288. <p>Status Code <strong>200</strong></p>
  16289. <table>
  16290. <thead>
  16291. <tr>
  16292. <th>Name</th>
  16293. <th>Type</th>
  16294. <th>Required</th>
  16295. <th>Restrictions</th>
  16296. <th>Description</th>
  16297. </tr>
  16298. </thead>
  16299. <tbody>
  16300. <tr>
  16301. <td>» _id</td>
  16302. <td>string</td>
  16303. <td>false</td>
  16304. <td>none</td>
  16305. <td>none</td>
  16306. </tr>
  16307. <tr>
  16308. <td>» title</td>
  16309. <td>string</td>
  16310. <td>false</td>
  16311. <td>none</td>
  16312. <td>none</td>
  16313. </tr>
  16314. </tbody>
  16315. </table>
  16316. <aside class="warning">
  16317. To perform this operation, you must be authenticated by means of one of the following methods:
  16318. UserSecurity
  16319. </aside>
  16320. <h2 id="delete_user">delete_user</h2>
  16321. <p><a id="opIddelete_user"></a></p>
  16322. <blockquote>
  16323. <p>Code samples</p>
  16324. </blockquote>
  16325. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16326. curl -X DELETE /api/users/{user} \
  16327. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16328. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16329. </code></pre>
  16330. <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>
  16331. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16332. </span></code></pre>
  16333. <pre class="highlight tab tab-javascript"><code>
  16334. <span class="hljs-keyword">const</span> headers = {
  16335. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16336. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16337. };
  16338. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16339. {
  16340. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16341. <span class="hljs-attr">headers</span>: headers
  16342. })
  16343. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16344. <span class="hljs-keyword">return</span> res.json();
  16345. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16346. <span class="hljs-built_in">console</span>.log(body);
  16347. });
  16348. </code></pre>
  16349. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16350. <span class="hljs-keyword">const</span> headers = {
  16351. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16352. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16353. };
  16354. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16355. {
  16356. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16357. <span class="hljs-attr">headers</span>: headers
  16358. })
  16359. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16360. <span class="hljs-keyword">return</span> res.json();
  16361. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16362. <span class="hljs-built_in">console</span>.log(body);
  16363. });
  16364. </code></pre>
  16365. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16366. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16367. headers = {
  16368. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16369. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16370. }
  16371. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  16372. <span class="hljs-symbol">params:</span> {
  16373. }, <span class="hljs-symbol">headers:</span> headers
  16374. p JSON.parse(result)
  16375. </code></pre>
  16376. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16377. headers = {
  16378. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16379. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16380. }
  16381. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  16382. <span class="hljs-built_in">print</span>(r.json())
  16383. </code></pre>
  16384. <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>);
  16385. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16386. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16387. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16388. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16389. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16390. String inputLine;
  16391. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16392. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16393. response.append(inputLine);
  16394. }
  16395. in.close();
  16396. System.out.println(response.toString());
  16397. </code></pre>
  16398. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16399. <span class="hljs-keyword">import</span> (
  16400. <span class="hljs-string">&quot;bytes&quot;</span>
  16401. <span class="hljs-string">&quot;net/http&quot;</span>
  16402. )
  16403. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16404. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16405. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16406. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16407. }
  16408. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16409. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  16410. req.Header = headers
  16411. client := &amp;http.Client{}
  16412. resp, err := client.Do(req)
  16413. <span class="hljs-comment">// ...</span>
  16414. }
  16415. </code></pre>
  16416. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16417. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16418. );
  16419. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16420. <span class="hljs-comment">// Define array of request body.</span>
  16421. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16422. <span class="hljs-keyword">try</span> {
  16423. <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>(
  16424. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16425. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16426. )
  16427. );
  16428. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16429. }
  16430. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16431. <span class="hljs-comment">// handle exception or api errors.</span>
  16432. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16433. }
  16434. <span class="hljs-comment">// ...</span>
  16435. </code></pre>
  16436. <p><code>DELETE /api/users/{user}</code></p>
  16437. <p><em>Delete a user</em></p>
  16438. <p>Only the admin user (the first user) can call the REST API.</p>
  16439. <h3 id="delete_user-parameters">Parameters</h3>
  16440. <table>
  16441. <thead>
  16442. <tr>
  16443. <th>Name</th>
  16444. <th>In</th>
  16445. <th>Type</th>
  16446. <th>Required</th>
  16447. <th>Description</th>
  16448. </tr>
  16449. </thead>
  16450. <tbody>
  16451. <tr>
  16452. <td>user</td>
  16453. <td>path</td>
  16454. <td>string</td>
  16455. <td>true</td>
  16456. <td>the ID of the user to delete</td>
  16457. </tr>
  16458. </tbody>
  16459. </table>
  16460. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16461. <p><strong>user</strong>: the ID of the user to delete</p>
  16462. <blockquote>
  16463. <p>Example responses</p>
  16464. </blockquote>
  16465. <blockquote>
  16466. <p>200 Response</p>
  16467. </blockquote>
  16468. <pre class="highlight tab tab-json"><code>{
  16469. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16470. }
  16471. </code></pre>
  16472. <h3 id="delete_user-responses">Responses</h3>
  16473. <table>
  16474. <thead>
  16475. <tr>
  16476. <th>Status</th>
  16477. <th>Meaning</th>
  16478. <th>Description</th>
  16479. <th>Schema</th>
  16480. </tr>
  16481. </thead>
  16482. <tbody>
  16483. <tr>
  16484. <td>200</td>
  16485. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16486. <td>200 response</td>
  16487. <td>Inline</td>
  16488. </tr>
  16489. </tbody>
  16490. </table>
  16491. <h3 id="delete_user-responseschema">Response Schema</h3>
  16492. <p>Status Code <strong>200</strong></p>
  16493. <table>
  16494. <thead>
  16495. <tr>
  16496. <th>Name</th>
  16497. <th>Type</th>
  16498. <th>Required</th>
  16499. <th>Restrictions</th>
  16500. <th>Description</th>
  16501. </tr>
  16502. </thead>
  16503. <tbody>
  16504. <tr>
  16505. <td>» _id</td>
  16506. <td>string</td>
  16507. <td>false</td>
  16508. <td>none</td>
  16509. <td>none</td>
  16510. </tr>
  16511. </tbody>
  16512. </table>
  16513. <aside class="warning">
  16514. To perform this operation, you must be authenticated by means of one of the following methods:
  16515. UserSecurity
  16516. </aside>
  16517. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  16518. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  16519. <p><a id="opIdget_all_swimlanes"></a></p>
  16520. <blockquote>
  16521. <p>Code samples</p>
  16522. </blockquote>
  16523. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16524. curl -X GET /api/boards/{board}/swimlanes \
  16525. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16526. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16527. </code></pre>
  16528. <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>
  16529. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16530. </span></code></pre>
  16531. <pre class="highlight tab tab-javascript"><code>
  16532. <span class="hljs-keyword">const</span> headers = {
  16533. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16534. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16535. };
  16536. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16537. {
  16538. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16539. <span class="hljs-attr">headers</span>: headers
  16540. })
  16541. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16542. <span class="hljs-keyword">return</span> res.json();
  16543. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16544. <span class="hljs-built_in">console</span>.log(body);
  16545. });
  16546. </code></pre>
  16547. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16548. <span class="hljs-keyword">const</span> headers = {
  16549. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16550. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16551. };
  16552. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16553. {
  16554. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16555. <span class="hljs-attr">headers</span>: headers
  16556. })
  16557. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16558. <span class="hljs-keyword">return</span> res.json();
  16559. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16560. <span class="hljs-built_in">console</span>.log(body);
  16561. });
  16562. </code></pre>
  16563. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16564. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16565. headers = {
  16566. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16567. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16568. }
  16569. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16570. <span class="hljs-symbol">params:</span> {
  16571. }, <span class="hljs-symbol">headers:</span> headers
  16572. p JSON.parse(result)
  16573. </code></pre>
  16574. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16575. headers = {
  16576. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16577. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16578. }
  16579. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  16580. <span class="hljs-built_in">print</span>(r.json())
  16581. </code></pre>
  16582. <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>);
  16583. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16584. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  16585. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16586. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16587. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16588. String inputLine;
  16589. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16590. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16591. response.append(inputLine);
  16592. }
  16593. in.close();
  16594. System.out.println(response.toString());
  16595. </code></pre>
  16596. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16597. <span class="hljs-keyword">import</span> (
  16598. <span class="hljs-string">&quot;bytes&quot;</span>
  16599. <span class="hljs-string">&quot;net/http&quot;</span>
  16600. )
  16601. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16602. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16603. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16604. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16605. }
  16606. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16607. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  16608. req.Header = headers
  16609. client := &amp;http.Client{}
  16610. resp, err := client.Do(req)
  16611. <span class="hljs-comment">// ...</span>
  16612. }
  16613. </code></pre>
  16614. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16615. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16616. );
  16617. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16618. <span class="hljs-comment">// Define array of request body.</span>
  16619. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16620. <span class="hljs-keyword">try</span> {
  16621. <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>(
  16622. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16623. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16624. )
  16625. );
  16626. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16627. }
  16628. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16629. <span class="hljs-comment">// handle exception or api errors.</span>
  16630. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16631. }
  16632. <span class="hljs-comment">// ...</span>
  16633. </code></pre>
  16634. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  16635. <p><em>Get the list of swimlanes attached to a board</em></p>
  16636. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  16637. <table>
  16638. <thead>
  16639. <tr>
  16640. <th>Name</th>
  16641. <th>In</th>
  16642. <th>Type</th>
  16643. <th>Required</th>
  16644. <th>Description</th>
  16645. </tr>
  16646. </thead>
  16647. <tbody>
  16648. <tr>
  16649. <td>board</td>
  16650. <td>path</td>
  16651. <td>string</td>
  16652. <td>true</td>
  16653. <td>the ID of the board</td>
  16654. </tr>
  16655. </tbody>
  16656. </table>
  16657. <h4 id="detailed-descriptions-50">Detailed descriptions</h4>
  16658. <p><strong>board</strong>: the ID of the board</p>
  16659. <blockquote>
  16660. <p>Example responses</p>
  16661. </blockquote>
  16662. <blockquote>
  16663. <p>200 Response</p>
  16664. </blockquote>
  16665. <pre class="highlight tab tab-json"><code>[
  16666. {
  16667. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16668. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16669. }
  16670. ]
  16671. </code></pre>
  16672. <h3 id="get_all_swimlanes-responses">Responses</h3>
  16673. <table>
  16674. <thead>
  16675. <tr>
  16676. <th>Status</th>
  16677. <th>Meaning</th>
  16678. <th>Description</th>
  16679. <th>Schema</th>
  16680. </tr>
  16681. </thead>
  16682. <tbody>
  16683. <tr>
  16684. <td>200</td>
  16685. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16686. <td>200 response</td>
  16687. <td>Inline</td>
  16688. </tr>
  16689. </tbody>
  16690. </table>
  16691. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  16692. <p>Status Code <strong>200</strong></p>
  16693. <table>
  16694. <thead>
  16695. <tr>
  16696. <th>Name</th>
  16697. <th>Type</th>
  16698. <th>Required</th>
  16699. <th>Restrictions</th>
  16700. <th>Description</th>
  16701. </tr>
  16702. </thead>
  16703. <tbody>
  16704. <tr>
  16705. <td>» _id</td>
  16706. <td>string</td>
  16707. <td>false</td>
  16708. <td>none</td>
  16709. <td>none</td>
  16710. </tr>
  16711. <tr>
  16712. <td>» title</td>
  16713. <td>string</td>
  16714. <td>false</td>
  16715. <td>none</td>
  16716. <td>none</td>
  16717. </tr>
  16718. </tbody>
  16719. </table>
  16720. <aside class="warning">
  16721. To perform this operation, you must be authenticated by means of one of the following methods:
  16722. UserSecurity
  16723. </aside>
  16724. <h2 id="new_swimlane">new_swimlane</h2>
  16725. <p><a id="opIdnew_swimlane"></a></p>
  16726. <blockquote>
  16727. <p>Code samples</p>
  16728. </blockquote>
  16729. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16730. curl -X POST /api/boards/{board}/swimlanes \
  16731. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  16732. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16733. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16734. </code></pre>
  16735. <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>
  16736. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  16737. Accept: application/json
  16738. </span></code></pre>
  16739. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  16740. &quot;title&quot;: &quot;string&quot;
  16741. }&#x27;</span>;
  16742. <span class="hljs-keyword">const</span> headers = {
  16743. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16744. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16745. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16746. };
  16747. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16748. {
  16749. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  16750. <span class="hljs-attr">body</span>: inputBody,
  16751. <span class="hljs-attr">headers</span>: headers
  16752. })
  16753. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16754. <span class="hljs-keyword">return</span> res.json();
  16755. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16756. <span class="hljs-built_in">console</span>.log(body);
  16757. });
  16758. </code></pre>
  16759. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16760. <span class="hljs-keyword">const</span> inputBody = {
  16761. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16762. };
  16763. <span class="hljs-keyword">const</span> headers = {
  16764. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16765. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16766. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16767. };
  16768. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16769. {
  16770. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  16771. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  16772. <span class="hljs-attr">headers</span>: headers
  16773. })
  16774. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16775. <span class="hljs-keyword">return</span> res.json();
  16776. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16777. <span class="hljs-built_in">console</span>.log(body);
  16778. });
  16779. </code></pre>
  16780. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16781. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16782. headers = {
  16783. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16784. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16785. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16786. }
  16787. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16788. <span class="hljs-symbol">params:</span> {
  16789. }, <span class="hljs-symbol">headers:</span> headers
  16790. p JSON.parse(result)
  16791. </code></pre>
  16792. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16793. headers = {
  16794. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16795. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16796. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16797. }
  16798. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  16799. <span class="hljs-built_in">print</span>(r.json())
  16800. </code></pre>
  16801. <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>);
  16802. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16803. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  16804. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16805. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16806. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16807. String inputLine;
  16808. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16809. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16810. response.append(inputLine);
  16811. }
  16812. in.close();
  16813. System.out.println(response.toString());
  16814. </code></pre>
  16815. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16816. <span class="hljs-keyword">import</span> (
  16817. <span class="hljs-string">&quot;bytes&quot;</span>
  16818. <span class="hljs-string">&quot;net/http&quot;</span>
  16819. )
  16820. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16821. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16822. <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>},
  16823. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16824. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16825. }
  16826. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16827. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  16828. req.Header = headers
  16829. client := &amp;http.Client{}
  16830. resp, err := client.Do(req)
  16831. <span class="hljs-comment">// ...</span>
  16832. }
  16833. </code></pre>
  16834. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16835. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16836. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16837. );
  16838. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16839. <span class="hljs-comment">// Define array of request body.</span>
  16840. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16841. <span class="hljs-keyword">try</span> {
  16842. <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>(
  16843. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16844. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16845. )
  16846. );
  16847. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16848. }
  16849. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16850. <span class="hljs-comment">// handle exception or api errors.</span>
  16851. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16852. }
  16853. <span class="hljs-comment">// ...</span>
  16854. </code></pre>
  16855. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  16856. <p><em>Add a swimlane to a board</em></p>
  16857. <blockquote>
  16858. <p>Body parameter</p>
  16859. </blockquote>
  16860. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  16861. </code></pre>
  16862. <h3 id="new_swimlane-parameters">Parameters</h3>
  16863. <table>
  16864. <thead>
  16865. <tr>
  16866. <th>Name</th>
  16867. <th>In</th>
  16868. <th>Type</th>
  16869. <th>Required</th>
  16870. <th>Description</th>
  16871. </tr>
  16872. </thead>
  16873. <tbody>
  16874. <tr>
  16875. <td>board</td>
  16876. <td>path</td>
  16877. <td>string</td>
  16878. <td>true</td>
  16879. <td>the ID of the board</td>
  16880. </tr>
  16881. <tr>
  16882. <td>body</td>
  16883. <td>body</td>
  16884. <td>object</td>
  16885. <td>true</td>
  16886. <td>none</td>
  16887. </tr>
  16888. <tr>
  16889. <td>» title</td>
  16890. <td>body</td>
  16891. <td>string</td>
  16892. <td>true</td>
  16893. <td>the new title of the swimlane</td>
  16894. </tr>
  16895. </tbody>
  16896. </table>
  16897. <h4 id="detailed-descriptions-51">Detailed descriptions</h4>
  16898. <p><strong>board</strong>: the ID of the board</p>
  16899. <blockquote>
  16900. <p>Example responses</p>
  16901. </blockquote>
  16902. <blockquote>
  16903. <p>200 Response</p>
  16904. </blockquote>
  16905. <pre class="highlight tab tab-json"><code>{
  16906. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16907. }
  16908. </code></pre>
  16909. <h3 id="new_swimlane-responses">Responses</h3>
  16910. <table>
  16911. <thead>
  16912. <tr>
  16913. <th>Status</th>
  16914. <th>Meaning</th>
  16915. <th>Description</th>
  16916. <th>Schema</th>
  16917. </tr>
  16918. </thead>
  16919. <tbody>
  16920. <tr>
  16921. <td>200</td>
  16922. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16923. <td>200 response</td>
  16924. <td>Inline</td>
  16925. </tr>
  16926. </tbody>
  16927. </table>
  16928. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  16929. <p>Status Code <strong>200</strong></p>
  16930. <table>
  16931. <thead>
  16932. <tr>
  16933. <th>Name</th>
  16934. <th>Type</th>
  16935. <th>Required</th>
  16936. <th>Restrictions</th>
  16937. <th>Description</th>
  16938. </tr>
  16939. </thead>
  16940. <tbody>
  16941. <tr>
  16942. <td>» _id</td>
  16943. <td>string</td>
  16944. <td>false</td>
  16945. <td>none</td>
  16946. <td>none</td>
  16947. </tr>
  16948. </tbody>
  16949. </table>
  16950. <aside class="warning">
  16951. To perform this operation, you must be authenticated by means of one of the following methods:
  16952. UserSecurity
  16953. </aside>
  16954. <h2 id="get_swimlane">get_swimlane</h2>
  16955. <p><a id="opIdget_swimlane"></a></p>
  16956. <blockquote>
  16957. <p>Code samples</p>
  16958. </blockquote>
  16959. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16960. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  16961. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16962. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16963. </code></pre>
  16964. <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>
  16965. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16966. </span></code></pre>
  16967. <pre class="highlight tab tab-javascript"><code>
  16968. <span class="hljs-keyword">const</span> headers = {
  16969. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16970. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16971. };
  16972. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16973. {
  16974. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16975. <span class="hljs-attr">headers</span>: headers
  16976. })
  16977. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16978. <span class="hljs-keyword">return</span> res.json();
  16979. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16980. <span class="hljs-built_in">console</span>.log(body);
  16981. });
  16982. </code></pre>
  16983. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16984. <span class="hljs-keyword">const</span> headers = {
  16985. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16986. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16987. };
  16988. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16989. {
  16990. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16991. <span class="hljs-attr">headers</span>: headers
  16992. })
  16993. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16994. <span class="hljs-keyword">return</span> res.json();
  16995. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16996. <span class="hljs-built_in">console</span>.log(body);
  16997. });
  16998. </code></pre>
  16999. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  17000. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  17001. headers = {
  17002. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17003. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17004. }
  17005. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17006. <span class="hljs-symbol">params:</span> {
  17007. }, <span class="hljs-symbol">headers:</span> headers
  17008. p JSON.parse(result)
  17009. </code></pre>
  17010. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  17011. headers = {
  17012. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17013. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17014. }
  17015. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  17016. <span class="hljs-built_in">print</span>(r.json())
  17017. </code></pre>
  17018. <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>);
  17019. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  17020. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  17021. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  17022. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  17023. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  17024. String inputLine;
  17025. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  17026. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  17027. response.append(inputLine);
  17028. }
  17029. in.close();
  17030. System.out.println(response.toString());
  17031. </code></pre>
  17032. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  17033. <span class="hljs-keyword">import</span> (
  17034. <span class="hljs-string">&quot;bytes&quot;</span>
  17035. <span class="hljs-string">&quot;net/http&quot;</span>
  17036. )
  17037. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  17038. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  17039. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  17040. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  17041. }
  17042. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  17043. 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)
  17044. req.Header = headers
  17045. client := &amp;http.Client{}
  17046. resp, err := client.Do(req)
  17047. <span class="hljs-comment">// ...</span>
  17048. }
  17049. </code></pre>
  17050. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17051. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  17052. );
  17053. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  17054. <span class="hljs-comment">// Define array of request body.</span>
  17055. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  17056. <span class="hljs-keyword">try</span> {
  17057. <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>(
  17058. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  17059. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  17060. )
  17061. );
  17062. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  17063. }
  17064. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  17065. <span class="hljs-comment">// handle exception or api errors.</span>
  17066. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  17067. }
  17068. <span class="hljs-comment">// ...</span>
  17069. </code></pre>
  17070. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  17071. <p><em>Get a swimlane</em></p>
  17072. <h3 id="get_swimlane-parameters">Parameters</h3>
  17073. <table>
  17074. <thead>
  17075. <tr>
  17076. <th>Name</th>
  17077. <th>In</th>
  17078. <th>Type</th>
  17079. <th>Required</th>
  17080. <th>Description</th>
  17081. </tr>
  17082. </thead>
  17083. <tbody>
  17084. <tr>
  17085. <td>board</td>
  17086. <td>path</td>
  17087. <td>string</td>
  17088. <td>true</td>
  17089. <td>the ID of the board</td>
  17090. </tr>
  17091. <tr>
  17092. <td>swimlane</td>
  17093. <td>path</td>
  17094. <td>string</td>
  17095. <td>true</td>
  17096. <td>the ID of the swimlane</td>
  17097. </tr>
  17098. </tbody>
  17099. </table>
  17100. <h4 id="detailed-descriptions-52">Detailed descriptions</h4>
  17101. <p><strong>board</strong>: the ID of the board</p>
  17102. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  17103. <blockquote>
  17104. <p>Example responses</p>
  17105. </blockquote>
  17106. <blockquote>
  17107. <p>200 Response</p>
  17108. </blockquote>
  17109. <pre class="highlight tab tab-json"><code>{
  17110. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17111. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17112. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17113. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17114. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17115. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17116. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17117. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17118. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17119. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17120. }
  17121. </code></pre>
  17122. <h3 id="get_swimlane-responses">Responses</h3>
  17123. <table>
  17124. <thead>
  17125. <tr>
  17126. <th>Status</th>
  17127. <th>Meaning</th>
  17128. <th>Description</th>
  17129. <th>Schema</th>
  17130. </tr>
  17131. </thead>
  17132. <tbody>
  17133. <tr>
  17134. <td>200</td>
  17135. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  17136. <td>200 response</td>
  17137. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  17138. </tr>
  17139. </tbody>
  17140. </table>
  17141. <aside class="warning">
  17142. To perform this operation, you must be authenticated by means of one of the following methods:
  17143. UserSecurity
  17144. </aside>
  17145. <h2 id="edit_swimlane">edit_swimlane</h2>
  17146. <p><a id="opIdedit_swimlane"></a></p>
  17147. <blockquote>
  17148. <p>Code samples</p>
  17149. </blockquote>
  17150. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  17151. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  17152. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  17153. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  17154. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  17155. </code></pre>
  17156. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  17157. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  17158. Accept: application/json
  17159. </span></code></pre>
  17160. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  17161. &quot;title&quot;: &quot;string&quot;
  17162. }&#x27;</span>;
  17163. <span class="hljs-keyword">const</span> headers = {
  17164. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  17165. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  17166. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17167. };
  17168. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17169. {
  17170. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  17171. <span class="hljs-attr">body</span>: inputBody,
  17172. <span class="hljs-attr">headers</span>: headers
  17173. })
  17174. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  17175. <span class="hljs-keyword">return</span> res.json();
  17176. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  17177. <span class="hljs-built_in">console</span>.log(body);
  17178. });
  17179. </code></pre>
  17180. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  17181. <span class="hljs-keyword">const</span> inputBody = {
  17182. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17183. };
  17184. <span class="hljs-keyword">const</span> headers = {
  17185. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  17186. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  17187. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17188. };
  17189. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17190. {
  17191. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  17192. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  17193. <span class="hljs-attr">headers</span>: headers
  17194. })
  17195. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  17196. <span class="hljs-keyword">return</span> res.json();
  17197. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  17198. <span class="hljs-built_in">console</span>.log(body);
  17199. });
  17200. </code></pre>
  17201. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  17202. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  17203. headers = {
  17204. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  17205. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17206. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17207. }
  17208. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17209. <span class="hljs-symbol">params:</span> {
  17210. }, <span class="hljs-symbol">headers:</span> headers
  17211. p JSON.parse(result)
  17212. </code></pre>
  17213. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  17214. headers = {
  17215. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  17216. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17217. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17218. }
  17219. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  17220. <span class="hljs-built_in">print</span>(r.json())
  17221. </code></pre>
  17222. <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>);
  17223. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  17224. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  17225. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  17226. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  17227. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  17228. String inputLine;
  17229. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  17230. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  17231. response.append(inputLine);
  17232. }
  17233. in.close();
  17234. System.out.println(response.toString());
  17235. </code></pre>
  17236. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  17237. <span class="hljs-keyword">import</span> (
  17238. <span class="hljs-string">&quot;bytes&quot;</span>
  17239. <span class="hljs-string">&quot;net/http&quot;</span>
  17240. )
  17241. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  17242. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  17243. <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>},
  17244. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  17245. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  17246. }
  17247. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  17248. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  17249. req.Header = headers
  17250. client := &amp;http.Client{}
  17251. resp, err := client.Do(req)
  17252. <span class="hljs-comment">// ...</span>
  17253. }
  17254. </code></pre>
  17255. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  17256. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17257. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  17258. );
  17259. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  17260. <span class="hljs-comment">// Define array of request body.</span>
  17261. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  17262. <span class="hljs-keyword">try</span> {
  17263. <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}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  17264. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  17265. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  17266. )
  17267. );
  17268. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  17269. }
  17270. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  17271. <span class="hljs-comment">// handle exception or api errors.</span>
  17272. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  17273. }
  17274. <span class="hljs-comment">// ...</span>
  17275. </code></pre>
  17276. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  17277. <p><em>Edit the title of a swimlane</em></p>
  17278. <blockquote>
  17279. <p>Body parameter</p>
  17280. </blockquote>
  17281. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  17282. </code></pre>
  17283. <h3 id="edit_swimlane-parameters">Parameters</h3>
  17284. <table>
  17285. <thead>
  17286. <tr>
  17287. <th>Name</th>
  17288. <th>In</th>
  17289. <th>Type</th>
  17290. <th>Required</th>
  17291. <th>Description</th>
  17292. </tr>
  17293. </thead>
  17294. <tbody>
  17295. <tr>
  17296. <td>board</td>
  17297. <td>path</td>
  17298. <td>string</td>
  17299. <td>true</td>
  17300. <td>the ID of the board</td>
  17301. </tr>
  17302. <tr>
  17303. <td>swimlane</td>
  17304. <td>path</td>
  17305. <td>string</td>
  17306. <td>true</td>
  17307. <td>the ID of the swimlane to edit</td>
  17308. </tr>
  17309. <tr>
  17310. <td>body</td>
  17311. <td>body</td>
  17312. <td>object</td>
  17313. <td>true</td>
  17314. <td>none</td>
  17315. </tr>
  17316. <tr>
  17317. <td>» title</td>
  17318. <td>body</td>
  17319. <td>string</td>
  17320. <td>true</td>
  17321. <td>the new title of the swimlane</td>
  17322. </tr>
  17323. </tbody>
  17324. </table>
  17325. <h4 id="detailed-descriptions-53">Detailed descriptions</h4>
  17326. <p><strong>board</strong>: the ID of the board</p>
  17327. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  17328. <blockquote>
  17329. <p>Example responses</p>
  17330. </blockquote>
  17331. <blockquote>
  17332. <p>200 Response</p>
  17333. </blockquote>
  17334. <pre class="highlight tab tab-json"><code>{
  17335. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17336. }
  17337. </code></pre>
  17338. <h3 id="edit_swimlane-responses">Responses</h3>
  17339. <table>
  17340. <thead>
  17341. <tr>
  17342. <th>Status</th>
  17343. <th>Meaning</th>
  17344. <th>Description</th>
  17345. <th>Schema</th>
  17346. </tr>
  17347. </thead>
  17348. <tbody>
  17349. <tr>
  17350. <td>200</td>
  17351. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  17352. <td>200 response</td>
  17353. <td>Inline</td>
  17354. </tr>
  17355. </tbody>
  17356. </table>
  17357. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  17358. <p>Status Code <strong>200</strong></p>
  17359. <table>
  17360. <thead>
  17361. <tr>
  17362. <th>Name</th>
  17363. <th>Type</th>
  17364. <th>Required</th>
  17365. <th>Restrictions</th>
  17366. <th>Description</th>
  17367. </tr>
  17368. </thead>
  17369. <tbody>
  17370. <tr>
  17371. <td>» _id</td>
  17372. <td>string</td>
  17373. <td>false</td>
  17374. <td>none</td>
  17375. <td>none</td>
  17376. </tr>
  17377. </tbody>
  17378. </table>
  17379. <aside class="warning">
  17380. To perform this operation, you must be authenticated by means of one of the following methods:
  17381. UserSecurity
  17382. </aside>
  17383. <h2 id="delete_swimlane">delete_swimlane</h2>
  17384. <p><a id="opIddelete_swimlane"></a></p>
  17385. <blockquote>
  17386. <p>Code samples</p>
  17387. </blockquote>
  17388. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  17389. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  17390. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  17391. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  17392. </code></pre>
  17393. <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>
  17394. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  17395. </span></code></pre>
  17396. <pre class="highlight tab tab-javascript"><code>
  17397. <span class="hljs-keyword">const</span> headers = {
  17398. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  17399. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17400. };
  17401. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17402. {
  17403. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  17404. <span class="hljs-attr">headers</span>: headers
  17405. })
  17406. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  17407. <span class="hljs-keyword">return</span> res.json();
  17408. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  17409. <span class="hljs-built_in">console</span>.log(body);
  17410. });
  17411. </code></pre>
  17412. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  17413. <span class="hljs-keyword">const</span> headers = {
  17414. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  17415. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17416. };
  17417. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17418. {
  17419. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  17420. <span class="hljs-attr">headers</span>: headers
  17421. })
  17422. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  17423. <span class="hljs-keyword">return</span> res.json();
  17424. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  17425. <span class="hljs-built_in">console</span>.log(body);
  17426. });
  17427. </code></pre>
  17428. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  17429. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  17430. headers = {
  17431. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17432. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17433. }
  17434. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  17435. <span class="hljs-symbol">params:</span> {
  17436. }, <span class="hljs-symbol">headers:</span> headers
  17437. p JSON.parse(result)
  17438. </code></pre>
  17439. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  17440. headers = {
  17441. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17442. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  17443. }
  17444. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  17445. <span class="hljs-built_in">print</span>(r.json())
  17446. </code></pre>
  17447. <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>);
  17448. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  17449. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  17450. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  17451. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  17452. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  17453. String inputLine;
  17454. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  17455. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  17456. response.append(inputLine);
  17457. }
  17458. in.close();
  17459. System.out.println(response.toString());
  17460. </code></pre>
  17461. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  17462. <span class="hljs-keyword">import</span> (
  17463. <span class="hljs-string">&quot;bytes&quot;</span>
  17464. <span class="hljs-string">&quot;net/http&quot;</span>
  17465. )
  17466. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  17467. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  17468. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  17469. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  17470. }
  17471. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  17472. 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)
  17473. req.Header = headers
  17474. client := &amp;http.Client{}
  17475. resp, err := client.Do(req)
  17476. <span class="hljs-comment">// ...</span>
  17477. }
  17478. </code></pre>
  17479. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  17480. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  17481. );
  17482. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  17483. <span class="hljs-comment">// Define array of request body.</span>
  17484. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  17485. <span class="hljs-keyword">try</span> {
  17486. <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>(
  17487. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  17488. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  17489. )
  17490. );
  17491. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  17492. }
  17493. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  17494. <span class="hljs-comment">// handle exception or api errors.</span>
  17495. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  17496. }
  17497. <span class="hljs-comment">// ...</span>
  17498. </code></pre>
  17499. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  17500. <p><em>Delete a swimlane</em></p>
  17501. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  17502. <h3 id="delete_swimlane-parameters">Parameters</h3>
  17503. <table>
  17504. <thead>
  17505. <tr>
  17506. <th>Name</th>
  17507. <th>In</th>
  17508. <th>Type</th>
  17509. <th>Required</th>
  17510. <th>Description</th>
  17511. </tr>
  17512. </thead>
  17513. <tbody>
  17514. <tr>
  17515. <td>board</td>
  17516. <td>path</td>
  17517. <td>string</td>
  17518. <td>true</td>
  17519. <td>the ID of the board</td>
  17520. </tr>
  17521. <tr>
  17522. <td>swimlane</td>
  17523. <td>path</td>
  17524. <td>string</td>
  17525. <td>true</td>
  17526. <td>the ID of the swimlane</td>
  17527. </tr>
  17528. </tbody>
  17529. </table>
  17530. <h4 id="detailed-descriptions-54">Detailed descriptions</h4>
  17531. <p><strong>board</strong>: the ID of the board</p>
  17532. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  17533. <blockquote>
  17534. <p>Example responses</p>
  17535. </blockquote>
  17536. <blockquote>
  17537. <p>200 Response</p>
  17538. </blockquote>
  17539. <pre class="highlight tab tab-json"><code>{
  17540. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17541. }
  17542. </code></pre>
  17543. <h3 id="delete_swimlane-responses">Responses</h3>
  17544. <table>
  17545. <thead>
  17546. <tr>
  17547. <th>Status</th>
  17548. <th>Meaning</th>
  17549. <th>Description</th>
  17550. <th>Schema</th>
  17551. </tr>
  17552. </thead>
  17553. <tbody>
  17554. <tr>
  17555. <td>200</td>
  17556. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  17557. <td>200 response</td>
  17558. <td>Inline</td>
  17559. </tr>
  17560. </tbody>
  17561. </table>
  17562. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  17563. <p>Status Code <strong>200</strong></p>
  17564. <table>
  17565. <thead>
  17566. <tr>
  17567. <th>Name</th>
  17568. <th>Type</th>
  17569. <th>Required</th>
  17570. <th>Restrictions</th>
  17571. <th>Description</th>
  17572. </tr>
  17573. </thead>
  17574. <tbody>
  17575. <tr>
  17576. <td>» _id</td>
  17577. <td>string</td>
  17578. <td>false</td>
  17579. <td>none</td>
  17580. <td>none</td>
  17581. </tr>
  17582. </tbody>
  17583. </table>
  17584. <aside class="warning">
  17585. To perform this operation, you must be authenticated by means of one of the following methods:
  17586. UserSecurity
  17587. </aside>
  17588. <h1 id="schemas">Schemas</h1>
  17589. <h2 id="tocs_boards">Boards</h2>
  17590. <p><a id="schemaboards"></a>
  17591. <a id="schema_Boards"></a>
  17592. <a id="tocSboards"></a>
  17593. <a id="tocsboards"></a></p>
  17594. <pre class="highlight tab tab-json"><code>{
  17595. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17596. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17597. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17598. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17599. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17600. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17601. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  17602. <span class="hljs-attr">&quot;labels&quot;</span>: [
  17603. {
  17604. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17605. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17606. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  17607. }
  17608. ],
  17609. <span class="hljs-attr">&quot;members&quot;</span>: [
  17610. {
  17611. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17612. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  17613. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  17614. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  17615. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  17616. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  17617. }
  17618. ],
  17619. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  17620. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  17621. {
  17622. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17623. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17624. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17625. }
  17626. ],
  17627. <span class="hljs-attr">&quot;teams&quot;</span>: [
  17628. {
  17629. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17630. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17631. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17632. }
  17633. ],
  17634. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  17635. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17636. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  17637. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  17638. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17639. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17640. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17641. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17642. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17643. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  17644. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  17645. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  17646. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  17647. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  17648. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  17649. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  17650. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  17651. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  17652. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  17653. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  17654. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  17655. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  17656. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  17657. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  17658. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17659. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  17660. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  17661. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  17662. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  17663. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  17664. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  17665. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  17666. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  17667. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  17668. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17669. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17670. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17671. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17672. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17673. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17674. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  17675. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17676. }
  17677. </code></pre>
  17678. <p>This is a Board.</p>
  17679. <h3 id="properties">Properties</h3>
  17680. <table>
  17681. <thead>
  17682. <tr>
  17683. <th>Name</th>
  17684. <th>Type</th>
  17685. <th>Required</th>
  17686. <th>Restrictions</th>
  17687. <th>Description</th>
  17688. </tr>
  17689. </thead>
  17690. <tbody>
  17691. <tr>
  17692. <td>title</td>
  17693. <td>string</td>
  17694. <td>true</td>
  17695. <td>none</td>
  17696. <td>The title of the board</td>
  17697. </tr>
  17698. <tr>
  17699. <td>slug</td>
  17700. <td>string</td>
  17701. <td>true</td>
  17702. <td>none</td>
  17703. <td>The title slugified.</td>
  17704. </tr>
  17705. <tr>
  17706. <td>archived</td>
  17707. <td>boolean</td>
  17708. <td>true</td>
  17709. <td>none</td>
  17710. <td>Is the board archived?</td>
  17711. </tr>
  17712. <tr>
  17713. <td>archivedAt</td>
  17714. <td>string¦null</td>
  17715. <td>false</td>
  17716. <td>none</td>
  17717. <td>Latest archiving time of the board</td>
  17718. </tr>
  17719. <tr>
  17720. <td>createdAt</td>
  17721. <td>string</td>
  17722. <td>true</td>
  17723. <td>none</td>
  17724. <td>Creation time of the board</td>
  17725. </tr>
  17726. <tr>
  17727. <td>modifiedAt</td>
  17728. <td>string¦null</td>
  17729. <td>false</td>
  17730. <td>none</td>
  17731. <td>Last modification time of the board</td>
  17732. </tr>
  17733. <tr>
  17734. <td>stars</td>
  17735. <td>number</td>
  17736. <td>true</td>
  17737. <td>none</td>
  17738. <td>How many stars the board has</td>
  17739. </tr>
  17740. <tr>
  17741. <td>labels</td>
  17742. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  17743. <td>false</td>
  17744. <td>none</td>
  17745. <td>List of labels attached to a board</td>
  17746. </tr>
  17747. <tr>
  17748. <td>members</td>
  17749. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  17750. <td>true</td>
  17751. <td>none</td>
  17752. <td>List of members of a board</td>
  17753. </tr>
  17754. <tr>
  17755. <td>permission</td>
  17756. <td>string</td>
  17757. <td>true</td>
  17758. <td>none</td>
  17759. <td>visibility of the board</td>
  17760. </tr>
  17761. <tr>
  17762. <td>orgs</td>
  17763. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  17764. <td>false</td>
  17765. <td>none</td>
  17766. <td>the list of organizations that a board belongs to</td>
  17767. </tr>
  17768. <tr>
  17769. <td>teams</td>
  17770. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  17771. <td>false</td>
  17772. <td>none</td>
  17773. <td>the list of teams that a board belongs to</td>
  17774. </tr>
  17775. <tr>
  17776. <td>color</td>
  17777. <td>string</td>
  17778. <td>true</td>
  17779. <td>none</td>
  17780. <td>The color of the board.</td>
  17781. </tr>
  17782. <tr>
  17783. <td>backgroundImageURL</td>
  17784. <td>string¦null</td>
  17785. <td>false</td>
  17786. <td>none</td>
  17787. <td>The background image URL of the board.</td>
  17788. </tr>
  17789. <tr>
  17790. <td>allowsCardCounterList</td>
  17791. <td>boolean</td>
  17792. <td>true</td>
  17793. <td>none</td>
  17794. <td>Show card counter per list</td>
  17795. </tr>
  17796. <tr>
  17797. <td>allowsBoardMemberList</td>
  17798. <td>boolean</td>
  17799. <td>true</td>
  17800. <td>none</td>
  17801. <td>Show board member list</td>
  17802. </tr>
  17803. <tr>
  17804. <td>description</td>
  17805. <td>string¦null</td>
  17806. <td>false</td>
  17807. <td>none</td>
  17808. <td>The description of the board</td>
  17809. </tr>
  17810. <tr>
  17811. <td>subtasksDefaultBoardId</td>
  17812. <td>string¦null</td>
  17813. <td>false</td>
  17814. <td>none</td>
  17815. <td>The default board ID assigned to subtasks.</td>
  17816. </tr>
  17817. <tr>
  17818. <td>subtasksDefaultListId</td>
  17819. <td>string¦null</td>
  17820. <td>false</td>
  17821. <td>none</td>
  17822. <td>The default List ID assigned to subtasks.</td>
  17823. </tr>
  17824. <tr>
  17825. <td>dateSettingsDefaultBoardId</td>
  17826. <td>string¦null</td>
  17827. <td>false</td>
  17828. <td>none</td>
  17829. <td>none</td>
  17830. </tr>
  17831. <tr>
  17832. <td>dateSettingsDefaultListId</td>
  17833. <td>string¦null</td>
  17834. <td>false</td>
  17835. <td>none</td>
  17836. <td>none</td>
  17837. </tr>
  17838. <tr>
  17839. <td>allowsSubtasks</td>
  17840. <td>boolean</td>
  17841. <td>true</td>
  17842. <td>none</td>
  17843. <td>Does the board allows subtasks?</td>
  17844. </tr>
  17845. <tr>
  17846. <td>allowsAttachments</td>
  17847. <td>boolean</td>
  17848. <td>true</td>
  17849. <td>none</td>
  17850. <td>Does the board allows attachments?</td>
  17851. </tr>
  17852. <tr>
  17853. <td>allowsChecklists</td>
  17854. <td>boolean</td>
  17855. <td>true</td>
  17856. <td>none</td>
  17857. <td>Does the board allows checklists?</td>
  17858. </tr>
  17859. <tr>
  17860. <td>allowsComments</td>
  17861. <td>boolean</td>
  17862. <td>true</td>
  17863. <td>none</td>
  17864. <td>Does the board allows comments?</td>
  17865. </tr>
  17866. <tr>
  17867. <td>allowsDescriptionTitle</td>
  17868. <td>boolean</td>
  17869. <td>true</td>
  17870. <td>none</td>
  17871. <td>Does the board allows description title?</td>
  17872. </tr>
  17873. <tr>
  17874. <td>allowsDescriptionText</td>
  17875. <td>boolean</td>
  17876. <td>true</td>
  17877. <td>none</td>
  17878. <td>Does the board allows description text?</td>
  17879. </tr>
  17880. <tr>
  17881. <td>allowsDescriptionTextOnMinicard</td>
  17882. <td>boolean</td>
  17883. <td>true</td>
  17884. <td>none</td>
  17885. <td>Does the board allows description text on minicard?</td>
  17886. </tr>
  17887. <tr>
  17888. <td>allowsCoverAttachmentOnMinicard</td>
  17889. <td>boolean</td>
  17890. <td>true</td>
  17891. <td>none</td>
  17892. <td>Does the board allows cover attachment on minicard?</td>
  17893. </tr>
  17894. <tr>
  17895. <td>allowsBadgeAttachmentOnMinicard</td>
  17896. <td>boolean</td>
  17897. <td>true</td>
  17898. <td>none</td>
  17899. <td>Does the board allows badge attachment on minicard?</td>
  17900. </tr>
  17901. <tr>
  17902. <td>allowsCardSortingByNumberOnMinicard</td>
  17903. <td>boolean</td>
  17904. <td>true</td>
  17905. <td>none</td>
  17906. <td>Does the board allows card sorting by number on minicard?</td>
  17907. </tr>
  17908. <tr>
  17909. <td>allowsCardNumber</td>
  17910. <td>boolean</td>
  17911. <td>true</td>
  17912. <td>none</td>
  17913. <td>Does the board allows card numbers?</td>
  17914. </tr>
  17915. <tr>
  17916. <td>allowsActivities</td>
  17917. <td>boolean</td>
  17918. <td>true</td>
  17919. <td>none</td>
  17920. <td>Does the board allows comments?</td>
  17921. </tr>
  17922. <tr>
  17923. <td>allowsLabels</td>
  17924. <td>boolean</td>
  17925. <td>true</td>
  17926. <td>none</td>
  17927. <td>Does the board allows labels?</td>
  17928. </tr>
  17929. <tr>
  17930. <td>allowsCreator</td>
  17931. <td>boolean</td>
  17932. <td>true</td>
  17933. <td>none</td>
  17934. <td>Does the board allow creator?</td>
  17935. </tr>
  17936. <tr>
  17937. <td>allowsAssignee</td>
  17938. <td>boolean</td>
  17939. <td>true</td>
  17940. <td>none</td>
  17941. <td>Does the board allows assignee?</td>
  17942. </tr>
  17943. <tr>
  17944. <td>allowsMembers</td>
  17945. <td>boolean</td>
  17946. <td>true</td>
  17947. <td>none</td>
  17948. <td>Does the board allows members?</td>
  17949. </tr>
  17950. <tr>
  17951. <td>allowsRequestedBy</td>
  17952. <td>boolean</td>
  17953. <td>true</td>
  17954. <td>none</td>
  17955. <td>Does the board allows requested by?</td>
  17956. </tr>
  17957. <tr>
  17958. <td>allowsCardSortingByNumber</td>
  17959. <td>boolean</td>
  17960. <td>true</td>
  17961. <td>none</td>
  17962. <td>Does the board allows card sorting by number?</td>
  17963. </tr>
  17964. <tr>
  17965. <td>allowsShowLists</td>
  17966. <td>boolean</td>
  17967. <td>true</td>
  17968. <td>none</td>
  17969. <td>Does the board allows show lists on the card?</td>
  17970. </tr>
  17971. <tr>
  17972. <td>allowsAssignedBy</td>
  17973. <td>boolean</td>
  17974. <td>true</td>
  17975. <td>none</td>
  17976. <td>Does the board allows requested by?</td>
  17977. </tr>
  17978. <tr>
  17979. <td>allowsReceivedDate</td>
  17980. <td>boolean</td>
  17981. <td>true</td>
  17982. <td>none</td>
  17983. <td>Does the board allows received date?</td>
  17984. </tr>
  17985. <tr>
  17986. <td>allowsStartDate</td>
  17987. <td>boolean</td>
  17988. <td>true</td>
  17989. <td>none</td>
  17990. <td>Does the board allows start date?</td>
  17991. </tr>
  17992. <tr>
  17993. <td>allowsEndDate</td>
  17994. <td>boolean</td>
  17995. <td>true</td>
  17996. <td>none</td>
  17997. <td>Does the board allows end date?</td>
  17998. </tr>
  17999. <tr>
  18000. <td>allowsDueDate</td>
  18001. <td>boolean</td>
  18002. <td>true</td>
  18003. <td>none</td>
  18004. <td>Does the board allows due date?</td>
  18005. </tr>
  18006. <tr>
  18007. <td>presentParentTask</td>
  18008. <td>string¦null</td>
  18009. <td>false</td>
  18010. <td>none</td>
  18011. <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>
  18012. </tr>
  18013. <tr>
  18014. <td>receivedAt</td>
  18015. <td>string¦null</td>
  18016. <td>false</td>
  18017. <td>none</td>
  18018. <td>Date the card was received</td>
  18019. </tr>
  18020. <tr>
  18021. <td>startAt</td>
  18022. <td>string¦null</td>
  18023. <td>false</td>
  18024. <td>none</td>
  18025. <td>Starting date of the board.</td>
  18026. </tr>
  18027. <tr>
  18028. <td>dueAt</td>
  18029. <td>string¦null</td>
  18030. <td>false</td>
  18031. <td>none</td>
  18032. <td>Due date of the board.</td>
  18033. </tr>
  18034. <tr>
  18035. <td>endAt</td>
  18036. <td>string¦null</td>
  18037. <td>false</td>
  18038. <td>none</td>
  18039. <td>End date of the board.</td>
  18040. </tr>
  18041. <tr>
  18042. <td>spentTime</td>
  18043. <td>number¦null</td>
  18044. <td>false</td>
  18045. <td>none</td>
  18046. <td>Time spent in the board.</td>
  18047. </tr>
  18048. <tr>
  18049. <td>isOvertime</td>
  18050. <td>boolean¦null</td>
  18051. <td>false</td>
  18052. <td>none</td>
  18053. <td>Is the board overtimed?</td>
  18054. </tr>
  18055. <tr>
  18056. <td>type</td>
  18057. <td>string</td>
  18058. <td>true</td>
  18059. <td>none</td>
  18060. <td>The type of board<br />possible values: board, template-board, template-container</td>
  18061. </tr>
  18062. <tr>
  18063. <td>sort</td>
  18064. <td>number</td>
  18065. <td>true</td>
  18066. <td>none</td>
  18067. <td>Sort value</td>
  18068. </tr>
  18069. </tbody>
  18070. </table>
  18071. <h4 id="enumerated-values">Enumerated Values</h4>
  18072. <table>
  18073. <thead>
  18074. <tr>
  18075. <th>Property</th>
  18076. <th>Value</th>
  18077. </tr>
  18078. </thead>
  18079. <tbody>
  18080. <tr>
  18081. <td>permission</td>
  18082. <td>public</td>
  18083. </tr>
  18084. <tr>
  18085. <td>permission</td>
  18086. <td>private</td>
  18087. </tr>
  18088. <tr>
  18089. <td>color</td>
  18090. <td>belize</td>
  18091. </tr>
  18092. <tr>
  18093. <td>color</td>
  18094. <td>nephritis</td>
  18095. </tr>
  18096. <tr>
  18097. <td>color</td>
  18098. <td>pomegranate</td>
  18099. </tr>
  18100. <tr>
  18101. <td>color</td>
  18102. <td>pumpkin</td>
  18103. </tr>
  18104. <tr>
  18105. <td>color</td>
  18106. <td>wisteria</td>
  18107. </tr>
  18108. <tr>
  18109. <td>color</td>
  18110. <td>moderatepink</td>
  18111. </tr>
  18112. <tr>
  18113. <td>color</td>
  18114. <td>strongcyan</td>
  18115. </tr>
  18116. <tr>
  18117. <td>color</td>
  18118. <td>limegreen</td>
  18119. </tr>
  18120. <tr>
  18121. <td>color</td>
  18122. <td>midnight</td>
  18123. </tr>
  18124. <tr>
  18125. <td>color</td>
  18126. <td>dark</td>
  18127. </tr>
  18128. <tr>
  18129. <td>color</td>
  18130. <td>relax</td>
  18131. </tr>
  18132. <tr>
  18133. <td>color</td>
  18134. <td>corteza</td>
  18135. </tr>
  18136. <tr>
  18137. <td>color</td>
  18138. <td>clearblue</td>
  18139. </tr>
  18140. <tr>
  18141. <td>color</td>
  18142. <td>natural</td>
  18143. </tr>
  18144. <tr>
  18145. <td>color</td>
  18146. <td>modern</td>
  18147. </tr>
  18148. <tr>
  18149. <td>color</td>
  18150. <td>moderndark</td>
  18151. </tr>
  18152. <tr>
  18153. <td>color</td>
  18154. <td>exodark</td>
  18155. </tr>
  18156. <tr>
  18157. <td>presentParentTask</td>
  18158. <td>prefix-with-full-path</td>
  18159. </tr>
  18160. <tr>
  18161. <td>presentParentTask</td>
  18162. <td>prefix-with-parent</td>
  18163. </tr>
  18164. <tr>
  18165. <td>presentParentTask</td>
  18166. <td>subtext-with-full-path</td>
  18167. </tr>
  18168. <tr>
  18169. <td>presentParentTask</td>
  18170. <td>subtext-with-parent</td>
  18171. </tr>
  18172. <tr>
  18173. <td>presentParentTask</td>
  18174. <td>no-parent</td>
  18175. </tr>
  18176. <tr>
  18177. <td>type</td>
  18178. <td>board</td>
  18179. </tr>
  18180. <tr>
  18181. <td>type</td>
  18182. <td>template-board</td>
  18183. </tr>
  18184. <tr>
  18185. <td>type</td>
  18186. <td>template-container</td>
  18187. </tr>
  18188. </tbody>
  18189. </table>
  18190. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  18191. <p><a id="schemaboardslabels"></a>
  18192. <a id="schema_BoardsLabels"></a>
  18193. <a id="tocSboardslabels"></a>
  18194. <a id="tocsboardslabels"></a></p>
  18195. <pre class="highlight tab tab-json"><code>{
  18196. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18197. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18198. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  18199. }
  18200. </code></pre>
  18201. <h3 id="properties-2">Properties</h3>
  18202. <table>
  18203. <thead>
  18204. <tr>
  18205. <th>Name</th>
  18206. <th>Type</th>
  18207. <th>Required</th>
  18208. <th>Restrictions</th>
  18209. <th>Description</th>
  18210. </tr>
  18211. </thead>
  18212. <tbody>
  18213. <tr>
  18214. <td>_id</td>
  18215. <td>string</td>
  18216. <td>true</td>
  18217. <td>none</td>
  18218. <td>Unique id of a label</td>
  18219. </tr>
  18220. <tr>
  18221. <td>name</td>
  18222. <td>string</td>
  18223. <td>false</td>
  18224. <td>none</td>
  18225. <td>Name of a label</td>
  18226. </tr>
  18227. <tr>
  18228. <td>color</td>
  18229. <td>string</td>
  18230. <td>true</td>
  18231. <td>none</td>
  18232. <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>
  18233. </tr>
  18234. </tbody>
  18235. </table>
  18236. <h4 id="enumerated-values-2">Enumerated Values</h4>
  18237. <table>
  18238. <thead>
  18239. <tr>
  18240. <th>Property</th>
  18241. <th>Value</th>
  18242. </tr>
  18243. </thead>
  18244. <tbody>
  18245. <tr>
  18246. <td>color</td>
  18247. <td>white</td>
  18248. </tr>
  18249. <tr>
  18250. <td>color</td>
  18251. <td>green</td>
  18252. </tr>
  18253. <tr>
  18254. <td>color</td>
  18255. <td>yellow</td>
  18256. </tr>
  18257. <tr>
  18258. <td>color</td>
  18259. <td>orange</td>
  18260. </tr>
  18261. <tr>
  18262. <td>color</td>
  18263. <td>red</td>
  18264. </tr>
  18265. <tr>
  18266. <td>color</td>
  18267. <td>purple</td>
  18268. </tr>
  18269. <tr>
  18270. <td>color</td>
  18271. <td>blue</td>
  18272. </tr>
  18273. <tr>
  18274. <td>color</td>
  18275. <td>sky</td>
  18276. </tr>
  18277. <tr>
  18278. <td>color</td>
  18279. <td>lime</td>
  18280. </tr>
  18281. <tr>
  18282. <td>color</td>
  18283. <td>pink</td>
  18284. </tr>
  18285. <tr>
  18286. <td>color</td>
  18287. <td>black</td>
  18288. </tr>
  18289. <tr>
  18290. <td>color</td>
  18291. <td>silver</td>
  18292. </tr>
  18293. <tr>
  18294. <td>color</td>
  18295. <td>peachpuff</td>
  18296. </tr>
  18297. <tr>
  18298. <td>color</td>
  18299. <td>crimson</td>
  18300. </tr>
  18301. <tr>
  18302. <td>color</td>
  18303. <td>plum</td>
  18304. </tr>
  18305. <tr>
  18306. <td>color</td>
  18307. <td>darkgreen</td>
  18308. </tr>
  18309. <tr>
  18310. <td>color</td>
  18311. <td>slateblue</td>
  18312. </tr>
  18313. <tr>
  18314. <td>color</td>
  18315. <td>magenta</td>
  18316. </tr>
  18317. <tr>
  18318. <td>color</td>
  18319. <td>gold</td>
  18320. </tr>
  18321. <tr>
  18322. <td>color</td>
  18323. <td>navy</td>
  18324. </tr>
  18325. <tr>
  18326. <td>color</td>
  18327. <td>gray</td>
  18328. </tr>
  18329. <tr>
  18330. <td>color</td>
  18331. <td>saddlebrown</td>
  18332. </tr>
  18333. <tr>
  18334. <td>color</td>
  18335. <td>paleturquoise</td>
  18336. </tr>
  18337. <tr>
  18338. <td>color</td>
  18339. <td>mistyrose</td>
  18340. </tr>
  18341. <tr>
  18342. <td>color</td>
  18343. <td>indigo</td>
  18344. </tr>
  18345. </tbody>
  18346. </table>
  18347. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  18348. <p><a id="schemaboardsmembers"></a>
  18349. <a id="schema_BoardsMembers"></a>
  18350. <a id="tocSboardsmembers"></a>
  18351. <a id="tocsboardsmembers"></a></p>
  18352. <pre class="highlight tab tab-json"><code>{
  18353. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18354. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18355. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  18356. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  18357. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  18358. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  18359. }
  18360. </code></pre>
  18361. <h3 id="properties-3">Properties</h3>
  18362. <table>
  18363. <thead>
  18364. <tr>
  18365. <th>Name</th>
  18366. <th>Type</th>
  18367. <th>Required</th>
  18368. <th>Restrictions</th>
  18369. <th>Description</th>
  18370. </tr>
  18371. </thead>
  18372. <tbody>
  18373. <tr>
  18374. <td>userId</td>
  18375. <td>string</td>
  18376. <td>true</td>
  18377. <td>none</td>
  18378. <td>The uniq ID of the member</td>
  18379. </tr>
  18380. <tr>
  18381. <td>isAdmin</td>
  18382. <td>boolean</td>
  18383. <td>true</td>
  18384. <td>none</td>
  18385. <td>Is the member an admin of the board?</td>
  18386. </tr>
  18387. <tr>
  18388. <td>isActive</td>
  18389. <td>boolean</td>
  18390. <td>true</td>
  18391. <td>none</td>
  18392. <td>Is the member active?</td>
  18393. </tr>
  18394. <tr>
  18395. <td>isNoComments</td>
  18396. <td>boolean</td>
  18397. <td>false</td>
  18398. <td>none</td>
  18399. <td>Is the member not allowed to make comments</td>
  18400. </tr>
  18401. <tr>
  18402. <td>isCommentOnly</td>
  18403. <td>boolean</td>
  18404. <td>false</td>
  18405. <td>none</td>
  18406. <td>Is the member only allowed to comment on the board</td>
  18407. </tr>
  18408. <tr>
  18409. <td>isWorker</td>
  18410. <td>boolean</td>
  18411. <td>false</td>
  18412. <td>none</td>
  18413. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  18414. </tr>
  18415. </tbody>
  18416. </table>
  18417. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  18418. <p><a id="schemaboardsorgs"></a>
  18419. <a id="schema_BoardsOrgs"></a>
  18420. <a id="tocSboardsorgs"></a>
  18421. <a id="tocsboardsorgs"></a></p>
  18422. <pre class="highlight tab tab-json"><code>{
  18423. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18424. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18425. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  18426. }
  18427. </code></pre>
  18428. <h3 id="properties-4">Properties</h3>
  18429. <table>
  18430. <thead>
  18431. <tr>
  18432. <th>Name</th>
  18433. <th>Type</th>
  18434. <th>Required</th>
  18435. <th>Restrictions</th>
  18436. <th>Description</th>
  18437. </tr>
  18438. </thead>
  18439. <tbody>
  18440. <tr>
  18441. <td>orgId</td>
  18442. <td>string</td>
  18443. <td>true</td>
  18444. <td>none</td>
  18445. <td>The uniq ID of the organization</td>
  18446. </tr>
  18447. <tr>
  18448. <td>orgDisplayName</td>
  18449. <td>string</td>
  18450. <td>true</td>
  18451. <td>none</td>
  18452. <td>The display name of the organization</td>
  18453. </tr>
  18454. <tr>
  18455. <td>isActive</td>
  18456. <td>boolean</td>
  18457. <td>true</td>
  18458. <td>none</td>
  18459. <td>Is the organization active?</td>
  18460. </tr>
  18461. </tbody>
  18462. </table>
  18463. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  18464. <p><a id="schemaboardsteams"></a>
  18465. <a id="schema_BoardsTeams"></a>
  18466. <a id="tocSboardsteams"></a>
  18467. <a id="tocsboardsteams"></a></p>
  18468. <pre class="highlight tab tab-json"><code>{
  18469. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18470. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18471. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  18472. }
  18473. </code></pre>
  18474. <h3 id="properties-5">Properties</h3>
  18475. <table>
  18476. <thead>
  18477. <tr>
  18478. <th>Name</th>
  18479. <th>Type</th>
  18480. <th>Required</th>
  18481. <th>Restrictions</th>
  18482. <th>Description</th>
  18483. </tr>
  18484. </thead>
  18485. <tbody>
  18486. <tr>
  18487. <td>teamId</td>
  18488. <td>string</td>
  18489. <td>true</td>
  18490. <td>none</td>
  18491. <td>The uniq ID of the team</td>
  18492. </tr>
  18493. <tr>
  18494. <td>teamDisplayName</td>
  18495. <td>string</td>
  18496. <td>true</td>
  18497. <td>none</td>
  18498. <td>The display name of the team</td>
  18499. </tr>
  18500. <tr>
  18501. <td>isActive</td>
  18502. <td>boolean</td>
  18503. <td>true</td>
  18504. <td>none</td>
  18505. <td>Is the team active?</td>
  18506. </tr>
  18507. </tbody>
  18508. </table>
  18509. <h2 id="tocs_cardcomments">CardComments</h2>
  18510. <p><a id="schemacardcomments"></a>
  18511. <a id="schema_CardComments"></a>
  18512. <a id="tocScardcomments"></a>
  18513. <a id="tocscardcomments"></a></p>
  18514. <pre class="highlight tab tab-json"><code>{
  18515. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18516. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18517. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18518. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18519. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18520. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18521. }
  18522. </code></pre>
  18523. <p>A comment on a card</p>
  18524. <h3 id="properties-6">Properties</h3>
  18525. <table>
  18526. <thead>
  18527. <tr>
  18528. <th>Name</th>
  18529. <th>Type</th>
  18530. <th>Required</th>
  18531. <th>Restrictions</th>
  18532. <th>Description</th>
  18533. </tr>
  18534. </thead>
  18535. <tbody>
  18536. <tr>
  18537. <td>boardId</td>
  18538. <td>string</td>
  18539. <td>true</td>
  18540. <td>none</td>
  18541. <td>the board ID</td>
  18542. </tr>
  18543. <tr>
  18544. <td>cardId</td>
  18545. <td>string</td>
  18546. <td>true</td>
  18547. <td>none</td>
  18548. <td>the card ID</td>
  18549. </tr>
  18550. <tr>
  18551. <td>text</td>
  18552. <td>string</td>
  18553. <td>true</td>
  18554. <td>none</td>
  18555. <td>the text of the comment</td>
  18556. </tr>
  18557. <tr>
  18558. <td>createdAt</td>
  18559. <td>string</td>
  18560. <td>true</td>
  18561. <td>none</td>
  18562. <td>when was the comment created</td>
  18563. </tr>
  18564. <tr>
  18565. <td>modifiedAt</td>
  18566. <td>string</td>
  18567. <td>true</td>
  18568. <td>none</td>
  18569. <td>none</td>
  18570. </tr>
  18571. <tr>
  18572. <td>userId</td>
  18573. <td>string</td>
  18574. <td>true</td>
  18575. <td>none</td>
  18576. <td>the author ID of the comment</td>
  18577. </tr>
  18578. </tbody>
  18579. </table>
  18580. <h2 id="tocs_cards">Cards</h2>
  18581. <p><a id="schemacards"></a>
  18582. <a id="schema_Cards"></a>
  18583. <a id="tocScards"></a>
  18584. <a id="tocscards"></a></p>
  18585. <pre class="highlight tab tab-json"><code>{
  18586. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18587. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18588. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18589. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18590. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18591. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18592. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18593. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18594. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18595. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18596. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18597. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  18598. {}
  18599. ],
  18600. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18601. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18602. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18603. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18604. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  18605. <span class="hljs-string">&quot;string&quot;</span>
  18606. ],
  18607. <span class="hljs-attr">&quot;members&quot;</span>: [
  18608. <span class="hljs-string">&quot;string&quot;</span>
  18609. ],
  18610. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  18611. <span class="hljs-string">&quot;string&quot;</span>
  18612. ],
  18613. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18614. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18615. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18616. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18617. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  18618. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  18619. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18620. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18621. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  18622. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18623. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18624. <span class="hljs-attr">&quot;vote&quot;</span>: {
  18625. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18626. <span class="hljs-attr">&quot;positive&quot;</span>: [
  18627. <span class="hljs-string">&quot;string&quot;</span>
  18628. ],
  18629. <span class="hljs-attr">&quot;negative&quot;</span>: [
  18630. <span class="hljs-string">&quot;string&quot;</span>
  18631. ],
  18632. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18633. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  18634. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  18635. },
  18636. <span class="hljs-attr">&quot;poker&quot;</span>: {
  18637. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  18638. <span class="hljs-attr">&quot;one&quot;</span>: [
  18639. <span class="hljs-string">&quot;string&quot;</span>
  18640. ],
  18641. <span class="hljs-attr">&quot;two&quot;</span>: [
  18642. <span class="hljs-string">&quot;string&quot;</span>
  18643. ],
  18644. <span class="hljs-attr">&quot;three&quot;</span>: [
  18645. <span class="hljs-string">&quot;string&quot;</span>
  18646. ],
  18647. <span class="hljs-attr">&quot;five&quot;</span>: [
  18648. <span class="hljs-string">&quot;string&quot;</span>
  18649. ],
  18650. <span class="hljs-attr">&quot;eight&quot;</span>: [
  18651. <span class="hljs-string">&quot;string&quot;</span>
  18652. ],
  18653. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  18654. <span class="hljs-string">&quot;string&quot;</span>
  18655. ],
  18656. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  18657. <span class="hljs-string">&quot;string&quot;</span>
  18658. ],
  18659. <span class="hljs-attr">&quot;forty&quot;</span>: [
  18660. <span class="hljs-string">&quot;string&quot;</span>
  18661. ],
  18662. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  18663. <span class="hljs-string">&quot;string&quot;</span>
  18664. ],
  18665. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  18666. <span class="hljs-string">&quot;string&quot;</span>
  18667. ],
  18668. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18669. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  18670. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  18671. },
  18672. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  18673. <span class="hljs-string">&quot;string&quot;</span>
  18674. ],
  18675. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  18676. <span class="hljs-number">0</span>
  18677. ],
  18678. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  18679. <span class="hljs-string">&quot;string&quot;</span>
  18680. ],
  18681. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  18682. }
  18683. </code></pre>
  18684. <h3 id="properties-7">Properties</h3>
  18685. <table>
  18686. <thead>
  18687. <tr>
  18688. <th>Name</th>
  18689. <th>Type</th>
  18690. <th>Required</th>
  18691. <th>Restrictions</th>
  18692. <th>Description</th>
  18693. </tr>
  18694. </thead>
  18695. <tbody>
  18696. <tr>
  18697. <td>title</td>
  18698. <td>string¦null</td>
  18699. <td>false</td>
  18700. <td>none</td>
  18701. <td>the title of the card</td>
  18702. </tr>
  18703. <tr>
  18704. <td>archived</td>
  18705. <td>boolean</td>
  18706. <td>true</td>
  18707. <td>none</td>
  18708. <td>is the card archived</td>
  18709. </tr>
  18710. <tr>
  18711. <td>archivedAt</td>
  18712. <td>string¦null</td>
  18713. <td>false</td>
  18714. <td>none</td>
  18715. <td>latest archiving date</td>
  18716. </tr>
  18717. <tr>
  18718. <td>parentId</td>
  18719. <td>string¦null</td>
  18720. <td>false</td>
  18721. <td>none</td>
  18722. <td>ID of the parent card</td>
  18723. </tr>
  18724. <tr>
  18725. <td>listId</td>
  18726. <td>string¦null</td>
  18727. <td>false</td>
  18728. <td>none</td>
  18729. <td>List ID where the card is</td>
  18730. </tr>
  18731. <tr>
  18732. <td>swimlaneId</td>
  18733. <td>string</td>
  18734. <td>true</td>
  18735. <td>none</td>
  18736. <td>Swimlane ID where the card is</td>
  18737. </tr>
  18738. <tr>
  18739. <td>boardId</td>
  18740. <td>string¦null</td>
  18741. <td>false</td>
  18742. <td>none</td>
  18743. <td>Board ID of the card</td>
  18744. </tr>
  18745. <tr>
  18746. <td>coverId</td>
  18747. <td>string¦null</td>
  18748. <td>false</td>
  18749. <td>none</td>
  18750. <td>Cover ID of the card</td>
  18751. </tr>
  18752. <tr>
  18753. <td>color</td>
  18754. <td>string¦null</td>
  18755. <td>false</td>
  18756. <td>none</td>
  18757. <td>none</td>
  18758. </tr>
  18759. <tr>
  18760. <td>createdAt</td>
  18761. <td>string</td>
  18762. <td>true</td>
  18763. <td>none</td>
  18764. <td>creation date</td>
  18765. </tr>
  18766. <tr>
  18767. <td>modifiedAt</td>
  18768. <td>string</td>
  18769. <td>true</td>
  18770. <td>none</td>
  18771. <td>none</td>
  18772. </tr>
  18773. <tr>
  18774. <td>customFields</td>
  18775. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  18776. <td>false</td>
  18777. <td>none</td>
  18778. <td>list of custom fields</td>
  18779. </tr>
  18780. <tr>
  18781. <td>dateLastActivity</td>
  18782. <td>string</td>
  18783. <td>true</td>
  18784. <td>none</td>
  18785. <td>Date of last activity</td>
  18786. </tr>
  18787. <tr>
  18788. <td>description</td>
  18789. <td>string¦null</td>
  18790. <td>false</td>
  18791. <td>none</td>
  18792. <td>description of the card</td>
  18793. </tr>
  18794. <tr>
  18795. <td>requestedBy</td>
  18796. <td>string¦null</td>
  18797. <td>false</td>
  18798. <td>none</td>
  18799. <td>who requested the card (ID of the user)</td>
  18800. </tr>
  18801. <tr>
  18802. <td>assignedBy</td>
  18803. <td>string¦null</td>
  18804. <td>false</td>
  18805. <td>none</td>
  18806. <td>who assigned the card (ID of the user)</td>
  18807. </tr>
  18808. <tr>
  18809. <td>labelIds</td>
  18810. <td>[string]¦null</td>
  18811. <td>false</td>
  18812. <td>none</td>
  18813. <td>list of labels ID the card has</td>
  18814. </tr>
  18815. <tr>
  18816. <td>members</td>
  18817. <td>[string]¦null</td>
  18818. <td>false</td>
  18819. <td>none</td>
  18820. <td>list of members (user IDs)</td>
  18821. </tr>
  18822. <tr>
  18823. <td>assignees</td>
  18824. <td>[string]¦null</td>
  18825. <td>false</td>
  18826. <td>none</td>
  18827. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  18828. </tr>
  18829. <tr>
  18830. <td>receivedAt</td>
  18831. <td>string¦null</td>
  18832. <td>false</td>
  18833. <td>none</td>
  18834. <td>Date the card was received</td>
  18835. </tr>
  18836. <tr>
  18837. <td>startAt</td>
  18838. <td>string¦null</td>
  18839. <td>false</td>
  18840. <td>none</td>
  18841. <td>Date the card was started to be worked on</td>
  18842. </tr>
  18843. <tr>
  18844. <td>dueAt</td>
  18845. <td>string¦null</td>
  18846. <td>false</td>
  18847. <td>none</td>
  18848. <td>Date the card is due</td>
  18849. </tr>
  18850. <tr>
  18851. <td>endAt</td>
  18852. <td>string¦null</td>
  18853. <td>false</td>
  18854. <td>none</td>
  18855. <td>Date the card ended</td>
  18856. </tr>
  18857. <tr>
  18858. <td>spentTime</td>
  18859. <td>number¦null</td>
  18860. <td>false</td>
  18861. <td>none</td>
  18862. <td>How much time has been spent on this</td>
  18863. </tr>
  18864. <tr>
  18865. <td>isOvertime</td>
  18866. <td>boolean¦null</td>
  18867. <td>false</td>
  18868. <td>none</td>
  18869. <td>is the card over time?</td>
  18870. </tr>
  18871. <tr>
  18872. <td>userId</td>
  18873. <td>string</td>
  18874. <td>true</td>
  18875. <td>none</td>
  18876. <td>user ID of the author of the card</td>
  18877. </tr>
  18878. <tr>
  18879. <td>sort</td>
  18880. <td>number¦null</td>
  18881. <td>false</td>
  18882. <td>none</td>
  18883. <td>Sort value</td>
  18884. </tr>
  18885. <tr>
  18886. <td>subtaskSort</td>
  18887. <td>number¦null</td>
  18888. <td>false</td>
  18889. <td>none</td>
  18890. <td>subtask sort value</td>
  18891. </tr>
  18892. <tr>
  18893. <td>type</td>
  18894. <td>string</td>
  18895. <td>true</td>
  18896. <td>none</td>
  18897. <td>type of the card</td>
  18898. </tr>
  18899. <tr>
  18900. <td>linkedId</td>
  18901. <td>string¦null</td>
  18902. <td>false</td>
  18903. <td>none</td>
  18904. <td>ID of the linked card</td>
  18905. </tr>
  18906. <tr>
  18907. <td>vote</td>
  18908. <td><a href="#schemacardsvote">CardsVote</a></td>
  18909. <td>false</td>
  18910. <td>none</td>
  18911. <td>none</td>
  18912. </tr>
  18913. <tr>
  18914. <td>poker</td>
  18915. <td><a href="#schemacardspoker">CardsPoker</a></td>
  18916. <td>false</td>
  18917. <td>none</td>
  18918. <td>none</td>
  18919. </tr>
  18920. <tr>
  18921. <td>targetId_gantt</td>
  18922. <td>[string]¦null</td>
  18923. <td>false</td>
  18924. <td>none</td>
  18925. <td>ID of card which is the child link in gantt view</td>
  18926. </tr>
  18927. <tr>
  18928. <td>linkType_gantt</td>
  18929. <td>[number]¦null</td>
  18930. <td>false</td>
  18931. <td>none</td>
  18932. <td>ID of card which is the parent link in gantt view</td>
  18933. </tr>
  18934. <tr>
  18935. <td>linkId_gantt</td>
  18936. <td>[string]¦null</td>
  18937. <td>false</td>
  18938. <td>none</td>
  18939. <td>ID of card which is the parent link in gantt view</td>
  18940. </tr>
  18941. <tr>
  18942. <td>cardNumber</td>
  18943. <td>number¦null</td>
  18944. <td>false</td>
  18945. <td>none</td>
  18946. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  18947. </tr>
  18948. </tbody>
  18949. </table>
  18950. <h4 id="enumerated-values-3">Enumerated Values</h4>
  18951. <table>
  18952. <thead>
  18953. <tr>
  18954. <th>Property</th>
  18955. <th>Value</th>
  18956. </tr>
  18957. </thead>
  18958. <tbody>
  18959. <tr>
  18960. <td>color</td>
  18961. <td>white</td>
  18962. </tr>
  18963. <tr>
  18964. <td>color</td>
  18965. <td>green</td>
  18966. </tr>
  18967. <tr>
  18968. <td>color</td>
  18969. <td>yellow</td>
  18970. </tr>
  18971. <tr>
  18972. <td>color</td>
  18973. <td>orange</td>
  18974. </tr>
  18975. <tr>
  18976. <td>color</td>
  18977. <td>red</td>
  18978. </tr>
  18979. <tr>
  18980. <td>color</td>
  18981. <td>purple</td>
  18982. </tr>
  18983. <tr>
  18984. <td>color</td>
  18985. <td>blue</td>
  18986. </tr>
  18987. <tr>
  18988. <td>color</td>
  18989. <td>sky</td>
  18990. </tr>
  18991. <tr>
  18992. <td>color</td>
  18993. <td>lime</td>
  18994. </tr>
  18995. <tr>
  18996. <td>color</td>
  18997. <td>pink</td>
  18998. </tr>
  18999. <tr>
  19000. <td>color</td>
  19001. <td>black</td>
  19002. </tr>
  19003. <tr>
  19004. <td>color</td>
  19005. <td>silver</td>
  19006. </tr>
  19007. <tr>
  19008. <td>color</td>
  19009. <td>peachpuff</td>
  19010. </tr>
  19011. <tr>
  19012. <td>color</td>
  19013. <td>crimson</td>
  19014. </tr>
  19015. <tr>
  19016. <td>color</td>
  19017. <td>plum</td>
  19018. </tr>
  19019. <tr>
  19020. <td>color</td>
  19021. <td>darkgreen</td>
  19022. </tr>
  19023. <tr>
  19024. <td>color</td>
  19025. <td>slateblue</td>
  19026. </tr>
  19027. <tr>
  19028. <td>color</td>
  19029. <td>magenta</td>
  19030. </tr>
  19031. <tr>
  19032. <td>color</td>
  19033. <td>gold</td>
  19034. </tr>
  19035. <tr>
  19036. <td>color</td>
  19037. <td>navy</td>
  19038. </tr>
  19039. <tr>
  19040. <td>color</td>
  19041. <td>gray</td>
  19042. </tr>
  19043. <tr>
  19044. <td>color</td>
  19045. <td>saddlebrown</td>
  19046. </tr>
  19047. <tr>
  19048. <td>color</td>
  19049. <td>paleturquoise</td>
  19050. </tr>
  19051. <tr>
  19052. <td>color</td>
  19053. <td>mistyrose</td>
  19054. </tr>
  19055. <tr>
  19056. <td>color</td>
  19057. <td>indigo</td>
  19058. </tr>
  19059. </tbody>
  19060. </table>
  19061. <h2 id="tocs_cardsvote">CardsVote</h2>
  19062. <p><a id="schemacardsvote"></a>
  19063. <a id="schema_CardsVote"></a>
  19064. <a id="tocScardsvote"></a>
  19065. <a id="tocscardsvote"></a></p>
  19066. <pre class="highlight tab tab-json"><code>{
  19067. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19068. <span class="hljs-attr">&quot;positive&quot;</span>: [
  19069. <span class="hljs-string">&quot;string&quot;</span>
  19070. ],
  19071. <span class="hljs-attr">&quot;negative&quot;</span>: [
  19072. <span class="hljs-string">&quot;string&quot;</span>
  19073. ],
  19074. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19075. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  19076. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  19077. }
  19078. </code></pre>
  19079. <h3 id="properties-8">Properties</h3>
  19080. <table>
  19081. <thead>
  19082. <tr>
  19083. <th>Name</th>
  19084. <th>Type</th>
  19085. <th>Required</th>
  19086. <th>Restrictions</th>
  19087. <th>Description</th>
  19088. </tr>
  19089. </thead>
  19090. <tbody>
  19091. <tr>
  19092. <td>question</td>
  19093. <td>string</td>
  19094. <td>true</td>
  19095. <td>none</td>
  19096. <td>none</td>
  19097. </tr>
  19098. <tr>
  19099. <td>positive</td>
  19100. <td>[string]</td>
  19101. <td>false</td>
  19102. <td>none</td>
  19103. <td>list of members (user IDs)</td>
  19104. </tr>
  19105. <tr>
  19106. <td>negative</td>
  19107. <td>[string]</td>
  19108. <td>false</td>
  19109. <td>none</td>
  19110. <td>list of members (user IDs)</td>
  19111. </tr>
  19112. <tr>
  19113. <td>end</td>
  19114. <td>string</td>
  19115. <td>false</td>
  19116. <td>none</td>
  19117. <td>none</td>
  19118. </tr>
  19119. <tr>
  19120. <td>public</td>
  19121. <td>boolean</td>
  19122. <td>true</td>
  19123. <td>none</td>
  19124. <td>none</td>
  19125. </tr>
  19126. <tr>
  19127. <td>allowNonBoardMembers</td>
  19128. <td>boolean</td>
  19129. <td>true</td>
  19130. <td>none</td>
  19131. <td>none</td>
  19132. </tr>
  19133. </tbody>
  19134. </table>
  19135. <h2 id="tocs_cardspoker">CardsPoker</h2>
  19136. <p><a id="schemacardspoker"></a>
  19137. <a id="schema_CardsPoker"></a>
  19138. <a id="tocScardspoker"></a>
  19139. <a id="tocscardspoker"></a></p>
  19140. <pre class="highlight tab tab-json"><code>{
  19141. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  19142. <span class="hljs-attr">&quot;one&quot;</span>: [
  19143. <span class="hljs-string">&quot;string&quot;</span>
  19144. ],
  19145. <span class="hljs-attr">&quot;two&quot;</span>: [
  19146. <span class="hljs-string">&quot;string&quot;</span>
  19147. ],
  19148. <span class="hljs-attr">&quot;three&quot;</span>: [
  19149. <span class="hljs-string">&quot;string&quot;</span>
  19150. ],
  19151. <span class="hljs-attr">&quot;five&quot;</span>: [
  19152. <span class="hljs-string">&quot;string&quot;</span>
  19153. ],
  19154. <span class="hljs-attr">&quot;eight&quot;</span>: [
  19155. <span class="hljs-string">&quot;string&quot;</span>
  19156. ],
  19157. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  19158. <span class="hljs-string">&quot;string&quot;</span>
  19159. ],
  19160. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  19161. <span class="hljs-string">&quot;string&quot;</span>
  19162. ],
  19163. <span class="hljs-attr">&quot;forty&quot;</span>: [
  19164. <span class="hljs-string">&quot;string&quot;</span>
  19165. ],
  19166. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  19167. <span class="hljs-string">&quot;string&quot;</span>
  19168. ],
  19169. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  19170. <span class="hljs-string">&quot;string&quot;</span>
  19171. ],
  19172. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19173. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  19174. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  19175. }
  19176. </code></pre>
  19177. <h3 id="properties-9">Properties</h3>
  19178. <table>
  19179. <thead>
  19180. <tr>
  19181. <th>Name</th>
  19182. <th>Type</th>
  19183. <th>Required</th>
  19184. <th>Restrictions</th>
  19185. <th>Description</th>
  19186. </tr>
  19187. </thead>
  19188. <tbody>
  19189. <tr>
  19190. <td>question</td>
  19191. <td>boolean</td>
  19192. <td>true</td>
  19193. <td>none</td>
  19194. <td>none</td>
  19195. </tr>
  19196. <tr>
  19197. <td>one</td>
  19198. <td>[string]</td>
  19199. <td>false</td>
  19200. <td>none</td>
  19201. <td>poker card one</td>
  19202. </tr>
  19203. <tr>
  19204. <td>two</td>
  19205. <td>[string]</td>
  19206. <td>false</td>
  19207. <td>none</td>
  19208. <td>poker card two</td>
  19209. </tr>
  19210. <tr>
  19211. <td>three</td>
  19212. <td>[string]</td>
  19213. <td>false</td>
  19214. <td>none</td>
  19215. <td>poker card three</td>
  19216. </tr>
  19217. <tr>
  19218. <td>five</td>
  19219. <td>[string]</td>
  19220. <td>false</td>
  19221. <td>none</td>
  19222. <td>poker card five</td>
  19223. </tr>
  19224. <tr>
  19225. <td>eight</td>
  19226. <td>[string]</td>
  19227. <td>false</td>
  19228. <td>none</td>
  19229. <td>poker card eight</td>
  19230. </tr>
  19231. <tr>
  19232. <td>thirteen</td>
  19233. <td>[string]</td>
  19234. <td>false</td>
  19235. <td>none</td>
  19236. <td>poker card thirteen</td>
  19237. </tr>
  19238. <tr>
  19239. <td>twenty</td>
  19240. <td>[string]</td>
  19241. <td>false</td>
  19242. <td>none</td>
  19243. <td>poker card twenty</td>
  19244. </tr>
  19245. <tr>
  19246. <td>forty</td>
  19247. <td>[string]</td>
  19248. <td>false</td>
  19249. <td>none</td>
  19250. <td>poker card forty</td>
  19251. </tr>
  19252. <tr>
  19253. <td>oneHundred</td>
  19254. <td>[string]</td>
  19255. <td>false</td>
  19256. <td>none</td>
  19257. <td>poker card oneHundred</td>
  19258. </tr>
  19259. <tr>
  19260. <td>unsure</td>
  19261. <td>[string]</td>
  19262. <td>false</td>
  19263. <td>none</td>
  19264. <td>poker card unsure</td>
  19265. </tr>
  19266. <tr>
  19267. <td>end</td>
  19268. <td>string</td>
  19269. <td>false</td>
  19270. <td>none</td>
  19271. <td>none</td>
  19272. </tr>
  19273. <tr>
  19274. <td>allowNonBoardMembers</td>
  19275. <td>boolean</td>
  19276. <td>true</td>
  19277. <td>none</td>
  19278. <td>none</td>
  19279. </tr>
  19280. <tr>
  19281. <td>estimation</td>
  19282. <td>number</td>
  19283. <td>false</td>
  19284. <td>none</td>
  19285. <td>poker estimation value</td>
  19286. </tr>
  19287. </tbody>
  19288. </table>
  19289. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  19290. <p><a id="schemacardscustomfields"></a>
  19291. <a id="schema_CardsCustomfields"></a>
  19292. <a id="tocScardscustomfields"></a>
  19293. <a id="tocscardscustomfields"></a></p>
  19294. <pre class="highlight tab tab-json"><code>{}
  19295. </code></pre>
  19296. <h3 id="properties-10">Properties</h3>
  19297. <p><em>None</em></p>
  19298. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  19299. <p><a id="schemachecklistitems"></a>
  19300. <a id="schema_ChecklistItems"></a>
  19301. <a id="tocSchecklistitems"></a>
  19302. <a id="tocschecklistitems"></a></p>
  19303. <pre class="highlight tab tab-json"><code>{
  19304. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19305. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  19306. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  19307. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19308. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19309. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19310. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19311. }
  19312. </code></pre>
  19313. <p>An item in a checklist</p>
  19314. <h3 id="properties-11">Properties</h3>
  19315. <table>
  19316. <thead>
  19317. <tr>
  19318. <th>Name</th>
  19319. <th>Type</th>
  19320. <th>Required</th>
  19321. <th>Restrictions</th>
  19322. <th>Description</th>
  19323. </tr>
  19324. </thead>
  19325. <tbody>
  19326. <tr>
  19327. <td>title</td>
  19328. <td>string</td>
  19329. <td>true</td>
  19330. <td>none</td>
  19331. <td>the text of the item</td>
  19332. </tr>
  19333. <tr>
  19334. <td>sort</td>
  19335. <td>number</td>
  19336. <td>true</td>
  19337. <td>none</td>
  19338. <td>the sorting field of the item</td>
  19339. </tr>
  19340. <tr>
  19341. <td>isFinished</td>
  19342. <td>boolean</td>
  19343. <td>true</td>
  19344. <td>none</td>
  19345. <td>Is the item checked?</td>
  19346. </tr>
  19347. <tr>
  19348. <td>checklistId</td>
  19349. <td>string</td>
  19350. <td>true</td>
  19351. <td>none</td>
  19352. <td>the checklist ID the item is attached to</td>
  19353. </tr>
  19354. <tr>
  19355. <td>cardId</td>
  19356. <td>string</td>
  19357. <td>true</td>
  19358. <td>none</td>
  19359. <td>the card ID the item is attached to</td>
  19360. </tr>
  19361. <tr>
  19362. <td>createdAt</td>
  19363. <td>string¦null</td>
  19364. <td>false</td>
  19365. <td>none</td>
  19366. <td>none</td>
  19367. </tr>
  19368. <tr>
  19369. <td>modifiedAt</td>
  19370. <td>string</td>
  19371. <td>true</td>
  19372. <td>none</td>
  19373. <td>none</td>
  19374. </tr>
  19375. </tbody>
  19376. </table>
  19377. <h2 id="tocs_checklists">Checklists</h2>
  19378. <p><a id="schemachecklists"></a>
  19379. <a id="schema_Checklists"></a>
  19380. <a id="tocSchecklists"></a>
  19381. <a id="tocschecklists"></a></p>
  19382. <pre class="highlight tab tab-json"><code>{
  19383. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19384. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19385. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19386. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19387. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19388. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  19389. }
  19390. </code></pre>
  19391. <p>A Checklist</p>
  19392. <h3 id="properties-12">Properties</h3>
  19393. <table>
  19394. <thead>
  19395. <tr>
  19396. <th>Name</th>
  19397. <th>Type</th>
  19398. <th>Required</th>
  19399. <th>Restrictions</th>
  19400. <th>Description</th>
  19401. </tr>
  19402. </thead>
  19403. <tbody>
  19404. <tr>
  19405. <td>cardId</td>
  19406. <td>string</td>
  19407. <td>true</td>
  19408. <td>none</td>
  19409. <td>The ID of the card the checklist is in</td>
  19410. </tr>
  19411. <tr>
  19412. <td>title</td>
  19413. <td>string</td>
  19414. <td>true</td>
  19415. <td>none</td>
  19416. <td>the title of the checklist</td>
  19417. </tr>
  19418. <tr>
  19419. <td>finishedAt</td>
  19420. <td>string¦null</td>
  19421. <td>false</td>
  19422. <td>none</td>
  19423. <td>When was the checklist finished</td>
  19424. </tr>
  19425. <tr>
  19426. <td>createdAt</td>
  19427. <td>string</td>
  19428. <td>true</td>
  19429. <td>none</td>
  19430. <td>Creation date of the checklist</td>
  19431. </tr>
  19432. <tr>
  19433. <td>modifiedAt</td>
  19434. <td>string</td>
  19435. <td>true</td>
  19436. <td>none</td>
  19437. <td>none</td>
  19438. </tr>
  19439. <tr>
  19440. <td>sort</td>
  19441. <td>number</td>
  19442. <td>true</td>
  19443. <td>none</td>
  19444. <td>sorting value of the checklist</td>
  19445. </tr>
  19446. </tbody>
  19447. </table>
  19448. <h2 id="tocs_customfields">CustomFields</h2>
  19449. <p><a id="schemacustomfields"></a>
  19450. <a id="schema_CustomFields"></a>
  19451. <a id="tocScustomfields"></a>
  19452. <a id="tocscustomfields"></a></p>
  19453. <pre class="highlight tab tab-json"><code>{
  19454. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  19455. <span class="hljs-string">&quot;string&quot;</span>
  19456. ],
  19457. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19458. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  19459. <span class="hljs-attr">&quot;settings&quot;</span>: {
  19460. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19461. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  19462. {}
  19463. ],
  19464. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19465. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19466. },
  19467. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  19468. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  19469. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  19470. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  19471. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  19472. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19473. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19474. }
  19475. </code></pre>
  19476. <p>A custom field on a card in the board</p>
  19477. <h3 id="properties-13">Properties</h3>
  19478. <table>
  19479. <thead>
  19480. <tr>
  19481. <th>Name</th>
  19482. <th>Type</th>
  19483. <th>Required</th>
  19484. <th>Restrictions</th>
  19485. <th>Description</th>
  19486. </tr>
  19487. </thead>
  19488. <tbody>
  19489. <tr>
  19490. <td>boardIds</td>
  19491. <td>[string]</td>
  19492. <td>true</td>
  19493. <td>none</td>
  19494. <td>the ID of the board</td>
  19495. </tr>
  19496. <tr>
  19497. <td>name</td>
  19498. <td>string</td>
  19499. <td>true</td>
  19500. <td>none</td>
  19501. <td>name of the custom field</td>
  19502. </tr>
  19503. <tr>
  19504. <td>type</td>
  19505. <td>string</td>
  19506. <td>true</td>
  19507. <td>none</td>
  19508. <td>type of the custom field</td>
  19509. </tr>
  19510. <tr>
  19511. <td>settings</td>
  19512. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  19513. <td>true</td>
  19514. <td>none</td>
  19515. <td>none</td>
  19516. </tr>
  19517. <tr>
  19518. <td>showOnCard</td>
  19519. <td>boolean</td>
  19520. <td>true</td>
  19521. <td>none</td>
  19522. <td>should we show on the cards this custom field</td>
  19523. </tr>
  19524. <tr>
  19525. <td>automaticallyOnCard</td>
  19526. <td>boolean</td>
  19527. <td>true</td>
  19528. <td>none</td>
  19529. <td>should the custom fields automatically be added on cards?</td>
  19530. </tr>
  19531. <tr>
  19532. <td>alwaysOnCard</td>
  19533. <td>boolean</td>
  19534. <td>true</td>
  19535. <td>none</td>
  19536. <td>should the custom field be automatically added to all cards?</td>
  19537. </tr>
  19538. <tr>
  19539. <td>showLabelOnMiniCard</td>
  19540. <td>boolean</td>
  19541. <td>true</td>
  19542. <td>none</td>
  19543. <td>should the label of the custom field be shown on minicards?</td>
  19544. </tr>
  19545. <tr>
  19546. <td>showSumAtTopOfList</td>
  19547. <td>boolean</td>
  19548. <td>true</td>
  19549. <td>none</td>
  19550. <td>should the sum of the custom fields be shown at top of list?</td>
  19551. </tr>
  19552. <tr>
  19553. <td>createdAt</td>
  19554. <td>string¦null</td>
  19555. <td>false</td>
  19556. <td>none</td>
  19557. <td>none</td>
  19558. </tr>
  19559. <tr>
  19560. <td>modifiedAt</td>
  19561. <td>string</td>
  19562. <td>true</td>
  19563. <td>none</td>
  19564. <td>none</td>
  19565. </tr>
  19566. </tbody>
  19567. </table>
  19568. <h4 id="enumerated-values-4">Enumerated Values</h4>
  19569. <table>
  19570. <thead>
  19571. <tr>
  19572. <th>Property</th>
  19573. <th>Value</th>
  19574. </tr>
  19575. </thead>
  19576. <tbody>
  19577. <tr>
  19578. <td>type</td>
  19579. <td>text</td>
  19580. </tr>
  19581. <tr>
  19582. <td>type</td>
  19583. <td>number</td>
  19584. </tr>
  19585. <tr>
  19586. <td>type</td>
  19587. <td>date</td>
  19588. </tr>
  19589. <tr>
  19590. <td>type</td>
  19591. <td>dropdown</td>
  19592. </tr>
  19593. <tr>
  19594. <td>type</td>
  19595. <td>checkbox</td>
  19596. </tr>
  19597. <tr>
  19598. <td>type</td>
  19599. <td>currency</td>
  19600. </tr>
  19601. <tr>
  19602. <td>type</td>
  19603. <td>stringtemplate</td>
  19604. </tr>
  19605. </tbody>
  19606. </table>
  19607. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  19608. <p><a id="schemacustomfieldssettings"></a>
  19609. <a id="schema_CustomFieldsSettings"></a>
  19610. <a id="tocScustomfieldssettings"></a>
  19611. <a id="tocscustomfieldssettings"></a></p>
  19612. <pre class="highlight tab tab-json"><code>{
  19613. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19614. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  19615. {}
  19616. ],
  19617. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19618. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19619. }
  19620. </code></pre>
  19621. <h3 id="properties-14">Properties</h3>
  19622. <table>
  19623. <thead>
  19624. <tr>
  19625. <th>Name</th>
  19626. <th>Type</th>
  19627. <th>Required</th>
  19628. <th>Restrictions</th>
  19629. <th>Description</th>
  19630. </tr>
  19631. </thead>
  19632. <tbody>
  19633. <tr>
  19634. <td>currencyCode</td>
  19635. <td>string</td>
  19636. <td>false</td>
  19637. <td>none</td>
  19638. <td>none</td>
  19639. </tr>
  19640. <tr>
  19641. <td>dropdownItems</td>
  19642. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  19643. <td>false</td>
  19644. <td>none</td>
  19645. <td>list of drop down items objects</td>
  19646. </tr>
  19647. <tr>
  19648. <td>stringtemplateFormat</td>
  19649. <td>string</td>
  19650. <td>false</td>
  19651. <td>none</td>
  19652. <td>none</td>
  19653. </tr>
  19654. <tr>
  19655. <td>stringtemplateSeparator</td>
  19656. <td>string</td>
  19657. <td>false</td>
  19658. <td>none</td>
  19659. <td>none</td>
  19660. </tr>
  19661. </tbody>
  19662. </table>
  19663. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  19664. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  19665. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  19666. <a id="tocScustomfieldssettingsdropdownitems"></a>
  19667. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  19668. <pre class="highlight tab tab-json"><code>{}
  19669. </code></pre>
  19670. <h3 id="properties-15">Properties</h3>
  19671. <p><em>None</em></p>
  19672. <h2 id="tocs_integrations">Integrations</h2>
  19673. <p><a id="schemaintegrations"></a>
  19674. <a id="schema_Integrations"></a>
  19675. <a id="tocSintegrations"></a>
  19676. <a id="tocsintegrations"></a></p>
  19677. <pre class="highlight tab tab-json"><code>{
  19678. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  19679. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19680. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19681. <span class="hljs-attr">&quot;activities&quot;</span>: [
  19682. <span class="hljs-string">&quot;string&quot;</span>
  19683. ],
  19684. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19685. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19686. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19687. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19688. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19689. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19690. }
  19691. </code></pre>
  19692. <p>Integration with third-party applications</p>
  19693. <h3 id="properties-16">Properties</h3>
  19694. <table>
  19695. <thead>
  19696. <tr>
  19697. <th>Name</th>
  19698. <th>Type</th>
  19699. <th>Required</th>
  19700. <th>Restrictions</th>
  19701. <th>Description</th>
  19702. </tr>
  19703. </thead>
  19704. <tbody>
  19705. <tr>
  19706. <td>enabled</td>
  19707. <td>boolean</td>
  19708. <td>true</td>
  19709. <td>none</td>
  19710. <td>is the integration enabled?</td>
  19711. </tr>
  19712. <tr>
  19713. <td>title</td>
  19714. <td>string¦null</td>
  19715. <td>false</td>
  19716. <td>none</td>
  19717. <td>name of the integration</td>
  19718. </tr>
  19719. <tr>
  19720. <td>type</td>
  19721. <td>string</td>
  19722. <td>true</td>
  19723. <td>none</td>
  19724. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  19725. </tr>
  19726. <tr>
  19727. <td>activities</td>
  19728. <td>[string]</td>
  19729. <td>true</td>
  19730. <td>none</td>
  19731. <td>activities the integration gets triggered (list)</td>
  19732. </tr>
  19733. <tr>
  19734. <td>url</td>
  19735. <td>string</td>
  19736. <td>true</td>
  19737. <td>none</td>
  19738. <td>none</td>
  19739. </tr>
  19740. <tr>
  19741. <td>token</td>
  19742. <td>string¦null</td>
  19743. <td>false</td>
  19744. <td>none</td>
  19745. <td>token of the integration</td>
  19746. </tr>
  19747. <tr>
  19748. <td>boardId</td>
  19749. <td>string</td>
  19750. <td>true</td>
  19751. <td>none</td>
  19752. <td>Board ID of the integration</td>
  19753. </tr>
  19754. <tr>
  19755. <td>createdAt</td>
  19756. <td>string</td>
  19757. <td>true</td>
  19758. <td>none</td>
  19759. <td>Creation date of the integration</td>
  19760. </tr>
  19761. <tr>
  19762. <td>modifiedAt</td>
  19763. <td>string</td>
  19764. <td>true</td>
  19765. <td>none</td>
  19766. <td>none</td>
  19767. </tr>
  19768. <tr>
  19769. <td>userId</td>
  19770. <td>string</td>
  19771. <td>true</td>
  19772. <td>none</td>
  19773. <td>user ID who created the interation</td>
  19774. </tr>
  19775. </tbody>
  19776. </table>
  19777. <h2 id="tocs_lists">Lists</h2>
  19778. <p><a id="schemalists"></a>
  19779. <a id="schema_Lists"></a>
  19780. <a id="tocSlists"></a>
  19781. <a id="tocslists"></a></p>
  19782. <pre class="highlight tab tab-json"><code>{
  19783. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19784. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  19785. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  19786. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19787. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19788. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19789. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19790. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  19791. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19792. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19793. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19794. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19795. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  19796. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  19797. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  19798. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  19799. },
  19800. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  19801. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19802. }
  19803. </code></pre>
  19804. <p>A list (column) in the Wekan board.</p>
  19805. <h3 id="properties-17">Properties</h3>
  19806. <table>
  19807. <thead>
  19808. <tr>
  19809. <th>Name</th>
  19810. <th>Type</th>
  19811. <th>Required</th>
  19812. <th>Restrictions</th>
  19813. <th>Description</th>
  19814. </tr>
  19815. </thead>
  19816. <tbody>
  19817. <tr>
  19818. <td>title</td>
  19819. <td>string</td>
  19820. <td>true</td>
  19821. <td>none</td>
  19822. <td>the title of the list</td>
  19823. </tr>
  19824. <tr>
  19825. <td>starred</td>
  19826. <td>boolean¦null</td>
  19827. <td>false</td>
  19828. <td>none</td>
  19829. <td>if a list is stared<br />then we put it on the top</td>
  19830. </tr>
  19831. <tr>
  19832. <td>archived</td>
  19833. <td>boolean</td>
  19834. <td>true</td>
  19835. <td>none</td>
  19836. <td>is the list archived</td>
  19837. </tr>
  19838. <tr>
  19839. <td>archivedAt</td>
  19840. <td>string¦null</td>
  19841. <td>false</td>
  19842. <td>none</td>
  19843. <td>latest archiving date</td>
  19844. </tr>
  19845. <tr>
  19846. <td>boardId</td>
  19847. <td>string</td>
  19848. <td>true</td>
  19849. <td>none</td>
  19850. <td>the board associated to this list</td>
  19851. </tr>
  19852. <tr>
  19853. <td>swimlaneId</td>
  19854. <td>string</td>
  19855. <td>true</td>
  19856. <td>none</td>
  19857. <td>the swimlane associated to this list. Used for templates</td>
  19858. </tr>
  19859. <tr>
  19860. <td>createdAt</td>
  19861. <td>string</td>
  19862. <td>true</td>
  19863. <td>none</td>
  19864. <td>creation date</td>
  19865. </tr>
  19866. <tr>
  19867. <td>sort</td>
  19868. <td>number¦null</td>
  19869. <td>false</td>
  19870. <td>none</td>
  19871. <td>is the list sorted</td>
  19872. </tr>
  19873. <tr>
  19874. <td>width</td>
  19875. <td>string¦null</td>
  19876. <td>false</td>
  19877. <td>none</td>
  19878. <td>list width, default 270px</td>
  19879. </tr>
  19880. <tr>
  19881. <td>height</td>
  19882. <td>string¦null</td>
  19883. <td>false</td>
  19884. <td>none</td>
  19885. <td>list height</td>
  19886. </tr>
  19887. <tr>
  19888. <td>updatedAt</td>
  19889. <td>string¦null</td>
  19890. <td>false</td>
  19891. <td>none</td>
  19892. <td>last update of the list</td>
  19893. </tr>
  19894. <tr>
  19895. <td>modifiedAt</td>
  19896. <td>string</td>
  19897. <td>true</td>
  19898. <td>none</td>
  19899. <td>none</td>
  19900. </tr>
  19901. <tr>
  19902. <td>wipLimit</td>
  19903. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  19904. <td>false</td>
  19905. <td>none</td>
  19906. <td>none</td>
  19907. </tr>
  19908. <tr>
  19909. <td>color</td>
  19910. <td>string¦null</td>
  19911. <td>false</td>
  19912. <td>none</td>
  19913. <td>the color of the list</td>
  19914. </tr>
  19915. <tr>
  19916. <td>type</td>
  19917. <td>string</td>
  19918. <td>true</td>
  19919. <td>none</td>
  19920. <td>The type of list</td>
  19921. </tr>
  19922. </tbody>
  19923. </table>
  19924. <h4 id="enumerated-values-5">Enumerated Values</h4>
  19925. <table>
  19926. <thead>
  19927. <tr>
  19928. <th>Property</th>
  19929. <th>Value</th>
  19930. </tr>
  19931. </thead>
  19932. <tbody>
  19933. <tr>
  19934. <td>color</td>
  19935. <td>white</td>
  19936. </tr>
  19937. <tr>
  19938. <td>color</td>
  19939. <td>green</td>
  19940. </tr>
  19941. <tr>
  19942. <td>color</td>
  19943. <td>yellow</td>
  19944. </tr>
  19945. <tr>
  19946. <td>color</td>
  19947. <td>orange</td>
  19948. </tr>
  19949. <tr>
  19950. <td>color</td>
  19951. <td>red</td>
  19952. </tr>
  19953. <tr>
  19954. <td>color</td>
  19955. <td>purple</td>
  19956. </tr>
  19957. <tr>
  19958. <td>color</td>
  19959. <td>blue</td>
  19960. </tr>
  19961. <tr>
  19962. <td>color</td>
  19963. <td>sky</td>
  19964. </tr>
  19965. <tr>
  19966. <td>color</td>
  19967. <td>lime</td>
  19968. </tr>
  19969. <tr>
  19970. <td>color</td>
  19971. <td>pink</td>
  19972. </tr>
  19973. <tr>
  19974. <td>color</td>
  19975. <td>black</td>
  19976. </tr>
  19977. <tr>
  19978. <td>color</td>
  19979. <td>silver</td>
  19980. </tr>
  19981. <tr>
  19982. <td>color</td>
  19983. <td>peachpuff</td>
  19984. </tr>
  19985. <tr>
  19986. <td>color</td>
  19987. <td>crimson</td>
  19988. </tr>
  19989. <tr>
  19990. <td>color</td>
  19991. <td>plum</td>
  19992. </tr>
  19993. <tr>
  19994. <td>color</td>
  19995. <td>darkgreen</td>
  19996. </tr>
  19997. <tr>
  19998. <td>color</td>
  19999. <td>slateblue</td>
  20000. </tr>
  20001. <tr>
  20002. <td>color</td>
  20003. <td>magenta</td>
  20004. </tr>
  20005. <tr>
  20006. <td>color</td>
  20007. <td>gold</td>
  20008. </tr>
  20009. <tr>
  20010. <td>color</td>
  20011. <td>navy</td>
  20012. </tr>
  20013. <tr>
  20014. <td>color</td>
  20015. <td>gray</td>
  20016. </tr>
  20017. <tr>
  20018. <td>color</td>
  20019. <td>saddlebrown</td>
  20020. </tr>
  20021. <tr>
  20022. <td>color</td>
  20023. <td>paleturquoise</td>
  20024. </tr>
  20025. <tr>
  20026. <td>color</td>
  20027. <td>mistyrose</td>
  20028. </tr>
  20029. <tr>
  20030. <td>color</td>
  20031. <td>indigo</td>
  20032. </tr>
  20033. </tbody>
  20034. </table>
  20035. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  20036. <p><a id="schemalistswiplimit"></a>
  20037. <a id="schema_ListsWiplimit"></a>
  20038. <a id="tocSlistswiplimit"></a>
  20039. <a id="tocslistswiplimit"></a></p>
  20040. <pre class="highlight tab tab-json"><code>{
  20041. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  20042. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  20043. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  20044. }
  20045. </code></pre>
  20046. <h3 id="properties-18">Properties</h3>
  20047. <table>
  20048. <thead>
  20049. <tr>
  20050. <th>Name</th>
  20051. <th>Type</th>
  20052. <th>Required</th>
  20053. <th>Restrictions</th>
  20054. <th>Description</th>
  20055. </tr>
  20056. </thead>
  20057. <tbody>
  20058. <tr>
  20059. <td>value</td>
  20060. <td>number</td>
  20061. <td>true</td>
  20062. <td>none</td>
  20063. <td>value of the WIP</td>
  20064. </tr>
  20065. <tr>
  20066. <td>enabled</td>
  20067. <td>boolean</td>
  20068. <td>true</td>
  20069. <td>none</td>
  20070. <td>is the WIP enabled</td>
  20071. </tr>
  20072. <tr>
  20073. <td>soft</td>
  20074. <td>boolean</td>
  20075. <td>true</td>
  20076. <td>none</td>
  20077. <td>is the WIP a soft or hard requirement</td>
  20078. </tr>
  20079. </tbody>
  20080. </table>
  20081. <h2 id="tocs_swimlanes">Swimlanes</h2>
  20082. <p><a id="schemaswimlanes"></a>
  20083. <a id="schema_Swimlanes"></a>
  20084. <a id="tocSswimlanes"></a>
  20085. <a id="tocsswimlanes"></a></p>
  20086. <pre class="highlight tab tab-json"><code>{
  20087. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20088. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  20089. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20090. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20091. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20092. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  20093. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  20094. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20095. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20096. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20097. }
  20098. </code></pre>
  20099. <p>A swimlane is an line in the kaban board.</p>
  20100. <h3 id="properties-19">Properties</h3>
  20101. <table>
  20102. <thead>
  20103. <tr>
  20104. <th>Name</th>
  20105. <th>Type</th>
  20106. <th>Required</th>
  20107. <th>Restrictions</th>
  20108. <th>Description</th>
  20109. </tr>
  20110. </thead>
  20111. <tbody>
  20112. <tr>
  20113. <td>title</td>
  20114. <td>string</td>
  20115. <td>true</td>
  20116. <td>none</td>
  20117. <td>the title of the swimlane</td>
  20118. </tr>
  20119. <tr>
  20120. <td>archived</td>
  20121. <td>boolean</td>
  20122. <td>true</td>
  20123. <td>none</td>
  20124. <td>is the swimlane archived?</td>
  20125. </tr>
  20126. <tr>
  20127. <td>archivedAt</td>
  20128. <td>string¦null</td>
  20129. <td>false</td>
  20130. <td>none</td>
  20131. <td>latest archiving date of the swimlane</td>
  20132. </tr>
  20133. <tr>
  20134. <td>boardId</td>
  20135. <td>string</td>
  20136. <td>true</td>
  20137. <td>none</td>
  20138. <td>the ID of the board the swimlane is attached to</td>
  20139. </tr>
  20140. <tr>
  20141. <td>createdAt</td>
  20142. <td>string</td>
  20143. <td>true</td>
  20144. <td>none</td>
  20145. <td>creation date of the swimlane</td>
  20146. </tr>
  20147. <tr>
  20148. <td>sort</td>
  20149. <td>number¦null</td>
  20150. <td>false</td>
  20151. <td>none</td>
  20152. <td>the sort value of the swimlane</td>
  20153. </tr>
  20154. <tr>
  20155. <td>color</td>
  20156. <td>string¦null</td>
  20157. <td>false</td>
  20158. <td>none</td>
  20159. <td>the color of the swimlane</td>
  20160. </tr>
  20161. <tr>
  20162. <td>updatedAt</td>
  20163. <td>string¦null</td>
  20164. <td>false</td>
  20165. <td>none</td>
  20166. <td>when was the swimlane last edited</td>
  20167. </tr>
  20168. <tr>
  20169. <td>modifiedAt</td>
  20170. <td>string</td>
  20171. <td>true</td>
  20172. <td>none</td>
  20173. <td>none</td>
  20174. </tr>
  20175. <tr>
  20176. <td>type</td>
  20177. <td>string</td>
  20178. <td>true</td>
  20179. <td>none</td>
  20180. <td>The type of swimlane</td>
  20181. </tr>
  20182. </tbody>
  20183. </table>
  20184. <h4 id="enumerated-values-6">Enumerated Values</h4>
  20185. <table>
  20186. <thead>
  20187. <tr>
  20188. <th>Property</th>
  20189. <th>Value</th>
  20190. </tr>
  20191. </thead>
  20192. <tbody>
  20193. <tr>
  20194. <td>color</td>
  20195. <td>white</td>
  20196. </tr>
  20197. <tr>
  20198. <td>color</td>
  20199. <td>green</td>
  20200. </tr>
  20201. <tr>
  20202. <td>color</td>
  20203. <td>yellow</td>
  20204. </tr>
  20205. <tr>
  20206. <td>color</td>
  20207. <td>orange</td>
  20208. </tr>
  20209. <tr>
  20210. <td>color</td>
  20211. <td>red</td>
  20212. </tr>
  20213. <tr>
  20214. <td>color</td>
  20215. <td>purple</td>
  20216. </tr>
  20217. <tr>
  20218. <td>color</td>
  20219. <td>blue</td>
  20220. </tr>
  20221. <tr>
  20222. <td>color</td>
  20223. <td>sky</td>
  20224. </tr>
  20225. <tr>
  20226. <td>color</td>
  20227. <td>lime</td>
  20228. </tr>
  20229. <tr>
  20230. <td>color</td>
  20231. <td>pink</td>
  20232. </tr>
  20233. <tr>
  20234. <td>color</td>
  20235. <td>black</td>
  20236. </tr>
  20237. <tr>
  20238. <td>color</td>
  20239. <td>silver</td>
  20240. </tr>
  20241. <tr>
  20242. <td>color</td>
  20243. <td>peachpuff</td>
  20244. </tr>
  20245. <tr>
  20246. <td>color</td>
  20247. <td>crimson</td>
  20248. </tr>
  20249. <tr>
  20250. <td>color</td>
  20251. <td>plum</td>
  20252. </tr>
  20253. <tr>
  20254. <td>color</td>
  20255. <td>darkgreen</td>
  20256. </tr>
  20257. <tr>
  20258. <td>color</td>
  20259. <td>slateblue</td>
  20260. </tr>
  20261. <tr>
  20262. <td>color</td>
  20263. <td>magenta</td>
  20264. </tr>
  20265. <tr>
  20266. <td>color</td>
  20267. <td>gold</td>
  20268. </tr>
  20269. <tr>
  20270. <td>color</td>
  20271. <td>navy</td>
  20272. </tr>
  20273. <tr>
  20274. <td>color</td>
  20275. <td>gray</td>
  20276. </tr>
  20277. <tr>
  20278. <td>color</td>
  20279. <td>saddlebrown</td>
  20280. </tr>
  20281. <tr>
  20282. <td>color</td>
  20283. <td>paleturquoise</td>
  20284. </tr>
  20285. <tr>
  20286. <td>color</td>
  20287. <td>mistyrose</td>
  20288. </tr>
  20289. <tr>
  20290. <td>color</td>
  20291. <td>indigo</td>
  20292. </tr>
  20293. </tbody>
  20294. </table>
  20295. <h2 id="tocs_users">Users</h2>
  20296. <p><a id="schemausers"></a>
  20297. <a id="schema_Users"></a>
  20298. <a id="tocSusers"></a>
  20299. <a id="tocsusers"></a></p>
  20300. <pre class="highlight tab tab-json"><code>{
  20301. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20302. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  20303. {
  20304. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20305. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20306. }
  20307. ],
  20308. <span class="hljs-attr">&quot;teams&quot;</span>: [
  20309. {
  20310. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20311. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20312. }
  20313. ],
  20314. <span class="hljs-attr">&quot;emails&quot;</span>: [
  20315. {
  20316. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20317. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  20318. }
  20319. ],
  20320. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20321. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20322. <span class="hljs-attr">&quot;profile&quot;</span>: {
  20323. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20324. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  20325. <span class="hljs-string">&quot;string&quot;</span>
  20326. ],
  20327. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20328. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  20329. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  20330. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  20331. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  20332. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  20333. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  20334. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20335. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  20336. <span class="hljs-string">&quot;string&quot;</span>
  20337. ],
  20338. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20339. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  20340. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  20341. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  20342. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  20343. {
  20344. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20345. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20346. }
  20347. ],
  20348. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  20349. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  20350. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  20351. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  20352. <span class="hljs-string">&quot;string&quot;</span>
  20353. ],
  20354. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20355. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  20356. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  20357. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20358. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20359. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20360. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20361. },
  20362. <span class="hljs-attr">&quot;services&quot;</span>: {},
  20363. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20364. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  20365. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  20366. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  20367. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20368. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  20369. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  20370. },
  20371. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  20372. <span class="hljs-string">&quot;string&quot;</span>
  20373. ],
  20374. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20375. }
  20376. </code></pre>
  20377. <p>A User in wekan</p>
  20378. <h3 id="properties-20">Properties</h3>
  20379. <table>
  20380. <thead>
  20381. <tr>
  20382. <th>Name</th>
  20383. <th>Type</th>
  20384. <th>Required</th>
  20385. <th>Restrictions</th>
  20386. <th>Description</th>
  20387. </tr>
  20388. </thead>
  20389. <tbody>
  20390. <tr>
  20391. <td>username</td>
  20392. <td>string¦null</td>
  20393. <td>false</td>
  20394. <td>none</td>
  20395. <td>the username of the user</td>
  20396. </tr>
  20397. <tr>
  20398. <td>orgs</td>
  20399. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  20400. <td>false</td>
  20401. <td>none</td>
  20402. <td>the list of organizations that a user belongs to</td>
  20403. </tr>
  20404. <tr>
  20405. <td>teams</td>
  20406. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  20407. <td>false</td>
  20408. <td>none</td>
  20409. <td>the list of teams that a user belongs to</td>
  20410. </tr>
  20411. <tr>
  20412. <td>emails</td>
  20413. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  20414. <td>false</td>
  20415. <td>none</td>
  20416. <td>the list of emails attached to a user</td>
  20417. </tr>
  20418. <tr>
  20419. <td>createdAt</td>
  20420. <td>string</td>
  20421. <td>true</td>
  20422. <td>none</td>
  20423. <td>creation date of the user</td>
  20424. </tr>
  20425. <tr>
  20426. <td>modifiedAt</td>
  20427. <td>string</td>
  20428. <td>true</td>
  20429. <td>none</td>
  20430. <td>none</td>
  20431. </tr>
  20432. <tr>
  20433. <td>profile</td>
  20434. <td><a href="#schemausersprofile">UsersProfile</a></td>
  20435. <td>false</td>
  20436. <td>none</td>
  20437. <td>none</td>
  20438. </tr>
  20439. <tr>
  20440. <td>services</td>
  20441. <td>object¦null</td>
  20442. <td>false</td>
  20443. <td>none</td>
  20444. <td>services field of the user</td>
  20445. </tr>
  20446. <tr>
  20447. <td>heartbeat</td>
  20448. <td>string¦null</td>
  20449. <td>false</td>
  20450. <td>none</td>
  20451. <td>last time the user has been seen</td>
  20452. </tr>
  20453. <tr>
  20454. <td>isAdmin</td>
  20455. <td>boolean¦null</td>
  20456. <td>false</td>
  20457. <td>none</td>
  20458. <td>is the user an admin of the board?</td>
  20459. </tr>
  20460. <tr>
  20461. <td>createdThroughApi</td>
  20462. <td>boolean¦null</td>
  20463. <td>false</td>
  20464. <td>none</td>
  20465. <td>was the user created through the API?</td>
  20466. </tr>
  20467. <tr>
  20468. <td>loginDisabled</td>
  20469. <td>boolean¦null</td>
  20470. <td>false</td>
  20471. <td>none</td>
  20472. <td>loginDisabled field of the user</td>
  20473. </tr>
  20474. <tr>
  20475. <td>authenticationMethod</td>
  20476. <td>string</td>
  20477. <td>true</td>
  20478. <td>none</td>
  20479. <td>authentication method of the user</td>
  20480. </tr>
  20481. <tr>
  20482. <td>sessionData</td>
  20483. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  20484. <td>false</td>
  20485. <td>none</td>
  20486. <td>none</td>
  20487. </tr>
  20488. <tr>
  20489. <td>importUsernames</td>
  20490. <td>[string]¦null</td>
  20491. <td>false</td>
  20492. <td>none</td>
  20493. <td>username for imported</td>
  20494. </tr>
  20495. <tr>
  20496. <td>lastConnectionDate</td>
  20497. <td>string¦null</td>
  20498. <td>false</td>
  20499. <td>none</td>
  20500. <td>none</td>
  20501. </tr>
  20502. </tbody>
  20503. </table>
  20504. <h2 id="tocs_usersprofile">UsersProfile</h2>
  20505. <p><a id="schemausersprofile"></a>
  20506. <a id="schema_UsersProfile"></a>
  20507. <a id="tocSusersprofile"></a>
  20508. <a id="tocsusersprofile"></a></p>
  20509. <pre class="highlight tab tab-json"><code>{
  20510. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20511. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  20512. <span class="hljs-string">&quot;string&quot;</span>
  20513. ],
  20514. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20515. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  20516. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  20517. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  20518. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  20519. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  20520. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  20521. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20522. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  20523. <span class="hljs-string">&quot;string&quot;</span>
  20524. ],
  20525. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20526. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  20527. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  20528. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  20529. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  20530. {
  20531. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20532. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20533. }
  20534. ],
  20535. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  20536. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  20537. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  20538. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  20539. <span class="hljs-string">&quot;string&quot;</span>
  20540. ],
  20541. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20542. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  20543. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  20544. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20545. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20546. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20547. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20548. }
  20549. </code></pre>
  20550. <h3 id="properties-21">Properties</h3>
  20551. <table>
  20552. <thead>
  20553. <tr>
  20554. <th>Name</th>
  20555. <th>Type</th>
  20556. <th>Required</th>
  20557. <th>Restrictions</th>
  20558. <th>Description</th>
  20559. </tr>
  20560. </thead>
  20561. <tbody>
  20562. <tr>
  20563. <td>avatarUrl</td>
  20564. <td>string</td>
  20565. <td>false</td>
  20566. <td>none</td>
  20567. <td>URL of the avatar of the user</td>
  20568. </tr>
  20569. <tr>
  20570. <td>emailBuffer</td>
  20571. <td>[string]</td>
  20572. <td>false</td>
  20573. <td>none</td>
  20574. <td>list of email buffers of the user</td>
  20575. </tr>
  20576. <tr>
  20577. <td>fullname</td>
  20578. <td>string</td>
  20579. <td>false</td>
  20580. <td>none</td>
  20581. <td>full name of the user</td>
  20582. </tr>
  20583. <tr>
  20584. <td>showDesktopDragHandles</td>
  20585. <td>boolean</td>
  20586. <td>false</td>
  20587. <td>none</td>
  20588. <td>does the user want to show desktop drag handles?</td>
  20589. </tr>
  20590. <tr>
  20591. <td>hideCheckedItems</td>
  20592. <td>boolean</td>
  20593. <td>false</td>
  20594. <td>none</td>
  20595. <td>does the user want to hide checked checklist items?</td>
  20596. </tr>
  20597. <tr>
  20598. <td>cardMaximized</td>
  20599. <td>boolean</td>
  20600. <td>false</td>
  20601. <td>none</td>
  20602. <td>has user clicked maximize card?</td>
  20603. </tr>
  20604. <tr>
  20605. <td>customFieldsGrid</td>
  20606. <td>boolean</td>
  20607. <td>false</td>
  20608. <td>none</td>
  20609. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  20610. </tr>
  20611. <tr>
  20612. <td>hiddenSystemMessages</td>
  20613. <td>boolean</td>
  20614. <td>false</td>
  20615. <td>none</td>
  20616. <td>does the user want to hide system messages?</td>
  20617. </tr>
  20618. <tr>
  20619. <td>hiddenMinicardLabelText</td>
  20620. <td>boolean</td>
  20621. <td>false</td>
  20622. <td>none</td>
  20623. <td>does the user want to hide minicard label texts?</td>
  20624. </tr>
  20625. <tr>
  20626. <td>initials</td>
  20627. <td>string</td>
  20628. <td>false</td>
  20629. <td>none</td>
  20630. <td>initials of the user</td>
  20631. </tr>
  20632. <tr>
  20633. <td>invitedBoards</td>
  20634. <td>[string]</td>
  20635. <td>false</td>
  20636. <td>none</td>
  20637. <td>board IDs the user has been invited to</td>
  20638. </tr>
  20639. <tr>
  20640. <td>language</td>
  20641. <td>string</td>
  20642. <td>false</td>
  20643. <td>none</td>
  20644. <td>language of the user</td>
  20645. </tr>
  20646. <tr>
  20647. <td>moveAndCopyDialog</td>
  20648. <td>object</td>
  20649. <td>false</td>
  20650. <td>none</td>
  20651. <td>move and copy card dialog</td>
  20652. </tr>
  20653. <tr>
  20654. <td>moveChecklistDialog</td>
  20655. <td>object</td>
  20656. <td>false</td>
  20657. <td>none</td>
  20658. <td>move checklist dialog</td>
  20659. </tr>
  20660. <tr>
  20661. <td>copyChecklistDialog</td>
  20662. <td>object</td>
  20663. <td>false</td>
  20664. <td>none</td>
  20665. <td>copy checklist dialog</td>
  20666. </tr>
  20667. <tr>
  20668. <td>notifications</td>
  20669. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  20670. <td>false</td>
  20671. <td>none</td>
  20672. <td>enabled notifications for the user</td>
  20673. </tr>
  20674. <tr>
  20675. <td>rescueCardDescription</td>
  20676. <td>boolean</td>
  20677. <td>false</td>
  20678. <td>none</td>
  20679. <td>show dialog for saving card description on unintentional card closing</td>
  20680. </tr>
  20681. <tr>
  20682. <td>showCardsCountAt</td>
  20683. <td>number</td>
  20684. <td>false</td>
  20685. <td>none</td>
  20686. <td>showCardCountAt field of the user</td>
  20687. </tr>
  20688. <tr>
  20689. <td>startDayOfWeek</td>
  20690. <td>number</td>
  20691. <td>false</td>
  20692. <td>none</td>
  20693. <td>startDayOfWeek field of the user</td>
  20694. </tr>
  20695. <tr>
  20696. <td>starredBoards</td>
  20697. <td>[string]</td>
  20698. <td>false</td>
  20699. <td>none</td>
  20700. <td>list of starred board IDs</td>
  20701. </tr>
  20702. <tr>
  20703. <td>icode</td>
  20704. <td>string</td>
  20705. <td>false</td>
  20706. <td>none</td>
  20707. <td>icode</td>
  20708. </tr>
  20709. <tr>
  20710. <td>boardView</td>
  20711. <td>string</td>
  20712. <td>false</td>
  20713. <td>none</td>
  20714. <td>boardView field of the user</td>
  20715. </tr>
  20716. <tr>
  20717. <td>listSortBy</td>
  20718. <td>string</td>
  20719. <td>false</td>
  20720. <td>none</td>
  20721. <td>default sort list for user</td>
  20722. </tr>
  20723. <tr>
  20724. <td>templatesBoardId</td>
  20725. <td>string</td>
  20726. <td>true</td>
  20727. <td>none</td>
  20728. <td>Reference to the templates board</td>
  20729. </tr>
  20730. <tr>
  20731. <td>cardTemplatesSwimlaneId</td>
  20732. <td>string</td>
  20733. <td>true</td>
  20734. <td>none</td>
  20735. <td>Reference to the card templates swimlane Id</td>
  20736. </tr>
  20737. <tr>
  20738. <td>listTemplatesSwimlaneId</td>
  20739. <td>string</td>
  20740. <td>true</td>
  20741. <td>none</td>
  20742. <td>Reference to the list templates swimlane Id</td>
  20743. </tr>
  20744. <tr>
  20745. <td>boardTemplatesSwimlaneId</td>
  20746. <td>string</td>
  20747. <td>true</td>
  20748. <td>none</td>
  20749. <td>Reference to the board templates swimlane Id</td>
  20750. </tr>
  20751. </tbody>
  20752. </table>
  20753. <h4 id="enumerated-values-7">Enumerated Values</h4>
  20754. <table>
  20755. <thead>
  20756. <tr>
  20757. <th>Property</th>
  20758. <th>Value</th>
  20759. </tr>
  20760. </thead>
  20761. <tbody>
  20762. <tr>
  20763. <td>boardView</td>
  20764. <td>board-view-swimlanes</td>
  20765. </tr>
  20766. <tr>
  20767. <td>boardView</td>
  20768. <td>board-view-lists</td>
  20769. </tr>
  20770. <tr>
  20771. <td>boardView</td>
  20772. <td>board-view-cal</td>
  20773. </tr>
  20774. <tr>
  20775. <td>listSortBy</td>
  20776. <td>-modifiedat</td>
  20777. </tr>
  20778. <tr>
  20779. <td>listSortBy</td>
  20780. <td>modifiedat</td>
  20781. </tr>
  20782. <tr>
  20783. <td>listSortBy</td>
  20784. <td>-title</td>
  20785. </tr>
  20786. <tr>
  20787. <td>listSortBy</td>
  20788. <td>title</td>
  20789. </tr>
  20790. <tr>
  20791. <td>listSortBy</td>
  20792. <td>-sort</td>
  20793. </tr>
  20794. <tr>
  20795. <td>listSortBy</td>
  20796. <td>sort</td>
  20797. </tr>
  20798. </tbody>
  20799. </table>
  20800. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  20801. <p><a id="schemauserssessiondata"></a>
  20802. <a id="schema_UsersSessiondata"></a>
  20803. <a id="tocSuserssessiondata"></a>
  20804. <a id="tocsuserssessiondata"></a></p>
  20805. <pre class="highlight tab tab-json"><code>{
  20806. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  20807. }
  20808. </code></pre>
  20809. <h3 id="properties-22">Properties</h3>
  20810. <table>
  20811. <thead>
  20812. <tr>
  20813. <th>Name</th>
  20814. <th>Type</th>
  20815. <th>Required</th>
  20816. <th>Restrictions</th>
  20817. <th>Description</th>
  20818. </tr>
  20819. </thead>
  20820. <tbody>
  20821. <tr>
  20822. <td>totalHits</td>
  20823. <td>number</td>
  20824. <td>false</td>
  20825. <td>none</td>
  20826. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  20827. </tr>
  20828. </tbody>
  20829. </table>
  20830. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  20831. <p><a id="schemausersorgs"></a>
  20832. <a id="schema_UsersOrgs"></a>
  20833. <a id="tocSusersorgs"></a>
  20834. <a id="tocsusersorgs"></a></p>
  20835. <pre class="highlight tab tab-json"><code>{
  20836. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20837. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20838. }
  20839. </code></pre>
  20840. <h3 id="properties-23">Properties</h3>
  20841. <table>
  20842. <thead>
  20843. <tr>
  20844. <th>Name</th>
  20845. <th>Type</th>
  20846. <th>Required</th>
  20847. <th>Restrictions</th>
  20848. <th>Description</th>
  20849. </tr>
  20850. </thead>
  20851. <tbody>
  20852. <tr>
  20853. <td>orgId</td>
  20854. <td>string</td>
  20855. <td>true</td>
  20856. <td>none</td>
  20857. <td>The uniq ID of the organization</td>
  20858. </tr>
  20859. <tr>
  20860. <td>orgDisplayName</td>
  20861. <td>string</td>
  20862. <td>true</td>
  20863. <td>none</td>
  20864. <td>The display name of the organization</td>
  20865. </tr>
  20866. </tbody>
  20867. </table>
  20868. <h2 id="tocs_usersteams">UsersTeams</h2>
  20869. <p><a id="schemausersteams"></a>
  20870. <a id="schema_UsersTeams"></a>
  20871. <a id="tocSusersteams"></a>
  20872. <a id="tocsusersteams"></a></p>
  20873. <pre class="highlight tab tab-json"><code>{
  20874. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20875. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20876. }
  20877. </code></pre>
  20878. <h3 id="properties-24">Properties</h3>
  20879. <table>
  20880. <thead>
  20881. <tr>
  20882. <th>Name</th>
  20883. <th>Type</th>
  20884. <th>Required</th>
  20885. <th>Restrictions</th>
  20886. <th>Description</th>
  20887. </tr>
  20888. </thead>
  20889. <tbody>
  20890. <tr>
  20891. <td>teamId</td>
  20892. <td>string</td>
  20893. <td>true</td>
  20894. <td>none</td>
  20895. <td>The uniq ID of the team</td>
  20896. </tr>
  20897. <tr>
  20898. <td>teamDisplayName</td>
  20899. <td>string</td>
  20900. <td>true</td>
  20901. <td>none</td>
  20902. <td>The display name of the team</td>
  20903. </tr>
  20904. </tbody>
  20905. </table>
  20906. <h2 id="tocs_usersemails">UsersEmails</h2>
  20907. <p><a id="schemausersemails"></a>
  20908. <a id="schema_UsersEmails"></a>
  20909. <a id="tocSusersemails"></a>
  20910. <a id="tocsusersemails"></a></p>
  20911. <pre class="highlight tab tab-json"><code>{
  20912. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20913. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  20914. }
  20915. </code></pre>
  20916. <h3 id="properties-25">Properties</h3>
  20917. <table>
  20918. <thead>
  20919. <tr>
  20920. <th>Name</th>
  20921. <th>Type</th>
  20922. <th>Required</th>
  20923. <th>Restrictions</th>
  20924. <th>Description</th>
  20925. </tr>
  20926. </thead>
  20927. <tbody>
  20928. <tr>
  20929. <td>address</td>
  20930. <td>string</td>
  20931. <td>true</td>
  20932. <td>none</td>
  20933. <td>The email address</td>
  20934. </tr>
  20935. <tr>
  20936. <td>verified</td>
  20937. <td>boolean</td>
  20938. <td>true</td>
  20939. <td>none</td>
  20940. <td>Has the email been verified</td>
  20941. </tr>
  20942. </tbody>
  20943. </table>
  20944. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  20945. <p><a id="schemausersprofilemoveandcopydialog"></a>
  20946. <a id="schema_UsersProfileMoveandcopydialog"></a>
  20947. <a id="tocSusersprofilemoveandcopydialog"></a>
  20948. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  20949. <pre class="highlight tab tab-json"><code>{
  20950. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20951. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20952. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20953. }
  20954. </code></pre>
  20955. <h3 id="properties-26">Properties</h3>
  20956. <table>
  20957. <thead>
  20958. <tr>
  20959. <th>Name</th>
  20960. <th>Type</th>
  20961. <th>Required</th>
  20962. <th>Restrictions</th>
  20963. <th>Description</th>
  20964. </tr>
  20965. </thead>
  20966. <tbody>
  20967. <tr>
  20968. <td>boardId</td>
  20969. <td>string</td>
  20970. <td>true</td>
  20971. <td>none</td>
  20972. <td>last selected board id</td>
  20973. </tr>
  20974. <tr>
  20975. <td>swimlaneId</td>
  20976. <td>string</td>
  20977. <td>true</td>
  20978. <td>none</td>
  20979. <td>last selected swimlane id</td>
  20980. </tr>
  20981. <tr>
  20982. <td>listId</td>
  20983. <td>string</td>
  20984. <td>true</td>
  20985. <td>none</td>
  20986. <td>last selected list id</td>
  20987. </tr>
  20988. </tbody>
  20989. </table>
  20990. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  20991. <p><a id="schemausersprofilemovechecklistdialog"></a>
  20992. <a id="schema_UsersProfileMovechecklistdialog"></a>
  20993. <a id="tocSusersprofilemovechecklistdialog"></a>
  20994. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  20995. <pre class="highlight tab tab-json"><code>{
  20996. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20997. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20998. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20999. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  21000. }
  21001. </code></pre>
  21002. <h3 id="properties-27">Properties</h3>
  21003. <table>
  21004. <thead>
  21005. <tr>
  21006. <th>Name</th>
  21007. <th>Type</th>
  21008. <th>Required</th>
  21009. <th>Restrictions</th>
  21010. <th>Description</th>
  21011. </tr>
  21012. </thead>
  21013. <tbody>
  21014. <tr>
  21015. <td>boardId</td>
  21016. <td>string</td>
  21017. <td>true</td>
  21018. <td>none</td>
  21019. <td>last selected board id</td>
  21020. </tr>
  21021. <tr>
  21022. <td>swimlaneId</td>
  21023. <td>string</td>
  21024. <td>true</td>
  21025. <td>none</td>
  21026. <td>last selected swimlane id</td>
  21027. </tr>
  21028. <tr>
  21029. <td>listId</td>
  21030. <td>string</td>
  21031. <td>true</td>
  21032. <td>none</td>
  21033. <td>last selected list id</td>
  21034. </tr>
  21035. <tr>
  21036. <td>cardId</td>
  21037. <td>string</td>
  21038. <td>true</td>
  21039. <td>none</td>
  21040. <td>last selected card id</td>
  21041. </tr>
  21042. </tbody>
  21043. </table>
  21044. <h2 id="tocs_usersprofilecopychecklistdialog">UsersProfileCopychecklistdialog</h2>
  21045. <p><a id="schemausersprofilecopychecklistdialog"></a>
  21046. <a id="schema_UsersProfileCopychecklistdialog"></a>
  21047. <a id="tocSusersprofilecopychecklistdialog"></a>
  21048. <a id="tocsusersprofilecopychecklistdialog"></a></p>
  21049. <pre class="highlight tab tab-json"><code>{
  21050. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  21051. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  21052. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  21053. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  21054. }
  21055. </code></pre>
  21056. <h3 id="properties-28">Properties</h3>
  21057. <table>
  21058. <thead>
  21059. <tr>
  21060. <th>Name</th>
  21061. <th>Type</th>
  21062. <th>Required</th>
  21063. <th>Restrictions</th>
  21064. <th>Description</th>
  21065. </tr>
  21066. </thead>
  21067. <tbody>
  21068. <tr>
  21069. <td>boardId</td>
  21070. <td>string</td>
  21071. <td>true</td>
  21072. <td>none</td>
  21073. <td>last selected board id</td>
  21074. </tr>
  21075. <tr>
  21076. <td>swimlaneId</td>
  21077. <td>string</td>
  21078. <td>true</td>
  21079. <td>none</td>
  21080. <td>last selected swimlane id</td>
  21081. </tr>
  21082. <tr>
  21083. <td>listId</td>
  21084. <td>string</td>
  21085. <td>true</td>
  21086. <td>none</td>
  21087. <td>last selected list id</td>
  21088. </tr>
  21089. <tr>
  21090. <td>cardId</td>
  21091. <td>string</td>
  21092. <td>true</td>
  21093. <td>none</td>
  21094. <td>last selected card id</td>
  21095. </tr>
  21096. </tbody>
  21097. </table>
  21098. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  21099. <p><a id="schemausersprofilenotifications"></a>
  21100. <a id="schema_UsersProfileNotifications"></a>
  21101. <a id="tocSusersprofilenotifications"></a>
  21102. <a id="tocsusersprofilenotifications"></a></p>
  21103. <pre class="highlight tab tab-json"><code>{
  21104. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  21105. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  21106. }
  21107. </code></pre>
  21108. <h3 id="properties-29">Properties</h3>
  21109. <table>
  21110. <thead>
  21111. <tr>
  21112. <th>Name</th>
  21113. <th>Type</th>
  21114. <th>Required</th>
  21115. <th>Restrictions</th>
  21116. <th>Description</th>
  21117. </tr>
  21118. </thead>
  21119. <tbody>
  21120. <tr>
  21121. <td>activity</td>
  21122. <td>string</td>
  21123. <td>true</td>
  21124. <td>none</td>
  21125. <td>The id of the activity this notification references</td>
  21126. </tr>
  21127. <tr>
  21128. <td>read</td>
  21129. <td>string</td>
  21130. <td>false</td>
  21131. <td>none</td>
  21132. <td>the date on which this notification was read</td>
  21133. </tr>
  21134. </tbody>
  21135. </table>
  21136. <!-- Renderer: Shins v2.6.0 -->
  21137. <!-- Generator: Widdershins v4.0.1 -->
  21138. <!-- backwards compatibility -->
  21139. <!-- backwards compatibility -->
  21140. <!-- backwards compatibility -->
  21141. <!-- backwards compatibility -->
  21142. <!-- backwards compatibility -->
  21143. <!-- backwards compatibility -->
  21144. <!-- backwards compatibility -->
  21145. <!-- backwards compatibility -->
  21146. <!-- backwards compatibility -->
  21147. <!-- backwards compatibility -->
  21148. <!-- backwards compatibility -->
  21149. <!-- backwards compatibility -->
  21150. <!-- backwards compatibility -->
  21151. <!-- backwards compatibility -->
  21152. <!-- backwards compatibility -->
  21153. <!-- backwards compatibility -->
  21154. <!-- backwards compatibility -->
  21155. <!-- backwards compatibility -->
  21156. <!-- backwards compatibility -->
  21157. <!-- backwards compatibility -->
  21158. <!-- backwards compatibility -->
  21159. <!-- backwards compatibility -->
  21160. <!-- backwards compatibility -->
  21161. <!-- backwards compatibility -->
  21162. <!-- backwards compatibility -->
  21163. <!-- backwards compatibility -->
  21164. <!-- backwards compatibility -->
  21165. <!-- backwards compatibility -->
  21166. <!-- backwards compatibility -->
  21167. </div>
  21168. <div class="dark-box">
  21169. <div class="lang-selector">
  21170. <a href="#" data-language-name="shell">Shell</a>
  21171. <a href="#" data-language-name="http">HTTP</a>
  21172. <a href="#" data-language-name="javascript">JavaScript</a>
  21173. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  21174. <a href="#" data-language-name="ruby">Ruby</a>
  21175. <a href="#" data-language-name="python">Python</a>
  21176. <a href="#" data-language-name="java">Java</a>
  21177. <a href="#" data-language-name="go">Go</a>
  21178. <a href="#" data-language-name="php">PHP</a>
  21179. </div>
  21180. </div>
  21181. </div>
  21182. </body>
  21183. </html>