wekan.html 959 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704
  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.73</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.73">Wekan REST API v6.73</a>
  1378. </li>
  1379. <li>
  1380. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1381. </li>
  1382. <li>
  1383. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1384. </li>
  1385. <li>
  1386. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1387. <ul class="toc-list-h2">
  1388. <li>
  1389. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1390. </li>
  1391. <li>
  1392. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1393. </li>
  1394. </ul>
  1395. </li>
  1396. <li>
  1397. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1398. <ul class="toc-list-h2">
  1399. <li>
  1400. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1401. </li>
  1402. <li>
  1403. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1404. </li>
  1405. <li>
  1406. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1407. </li>
  1408. <li>
  1409. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1410. </li>
  1411. <li>
  1412. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1413. </li>
  1414. <li>
  1415. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1416. </li>
  1417. <li>
  1418. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1419. </li>
  1420. <li>
  1421. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1422. </li>
  1423. <li>
  1424. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1425. </li>
  1426. <li>
  1427. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1428. </li>
  1429. </ul>
  1430. </li>
  1431. <li>
  1432. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1433. <ul class="toc-list-h2">
  1434. <li>
  1435. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1436. </li>
  1437. <li>
  1438. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1439. </li>
  1440. <li>
  1441. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1442. </li>
  1443. <li>
  1444. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1445. </li>
  1446. </ul>
  1447. </li>
  1448. <li>
  1449. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1450. <ul class="toc-list-h2">
  1451. <li>
  1452. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1453. </li>
  1454. <li>
  1455. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1456. </li>
  1457. <li>
  1458. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1459. </li>
  1460. </ul>
  1461. </li>
  1462. <li>
  1463. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1464. <ul class="toc-list-h2">
  1465. <li>
  1466. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1467. </li>
  1468. <li>
  1469. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1470. </li>
  1471. <li>
  1472. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1473. </li>
  1474. <li>
  1475. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1476. </li>
  1477. </ul>
  1478. </li>
  1479. <li>
  1480. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1481. <ul class="toc-list-h2">
  1482. <li>
  1483. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1484. </li>
  1485. <li>
  1486. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="">get_board_cards_count</a>
  1487. </li>
  1488. <li>
  1489. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1490. </li>
  1491. <li>
  1492. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1493. </li>
  1494. <li>
  1495. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1499. </li>
  1500. <li>
  1501. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1502. </li>
  1503. <li>
  1504. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="">get_list_cards_count</a>
  1505. </li>
  1506. <li>
  1507. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1508. </li>
  1509. </ul>
  1510. </li>
  1511. <li>
  1512. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1513. <ul class="toc-list-h2">
  1514. <li>
  1515. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1516. </li>
  1517. <li>
  1518. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1519. </li>
  1520. <li>
  1521. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1522. </li>
  1523. <li>
  1524. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1525. </li>
  1526. <li>
  1527. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1528. </li>
  1529. <li>
  1530. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1531. </li>
  1532. <li>
  1533. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1534. </li>
  1535. <li>
  1536. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1537. </li>
  1538. </ul>
  1539. </li>
  1540. <li>
  1541. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1542. <ul class="toc-list-h2">
  1543. <li>
  1544. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1545. </li>
  1546. <li>
  1547. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1548. </li>
  1549. <li>
  1550. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1551. </li>
  1552. <li>
  1553. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1554. </li>
  1555. <li>
  1556. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1557. </li>
  1558. <li>
  1559. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1560. </li>
  1561. <li>
  1562. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1563. </li>
  1564. </ul>
  1565. </li>
  1566. <li>
  1567. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1568. <ul class="toc-list-h2">
  1569. <li>
  1570. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1571. </li>
  1572. <li>
  1573. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1574. </li>
  1575. <li>
  1576. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1577. </li>
  1578. <li>
  1579. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1580. </li>
  1581. </ul>
  1582. </li>
  1583. <li>
  1584. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1585. <ul class="toc-list-h2">
  1586. <li>
  1587. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1588. </li>
  1589. <li>
  1590. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1591. </li>
  1592. <li>
  1593. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1594. </li>
  1595. <li>
  1596. <a href="#delete_user_token" class="toc-h2 toc-link" data-title="">delete_user_token</a>
  1597. </li>
  1598. <li>
  1599. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1600. </li>
  1601. <li>
  1602. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1603. </li>
  1604. <li>
  1605. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1606. </li>
  1607. <li>
  1608. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1609. </li>
  1610. <li>
  1611. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1612. </li>
  1613. <li>
  1614. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1615. </li>
  1616. </ul>
  1617. </li>
  1618. <li>
  1619. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1620. <ul class="toc-list-h2">
  1621. <li>
  1622. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1623. </li>
  1624. <li>
  1625. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1626. </li>
  1627. <li>
  1628. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1629. </li>
  1630. <li>
  1631. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1632. </li>
  1633. </ul>
  1634. </li>
  1635. <li>
  1636. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1637. <ul class="toc-list-h2">
  1638. <li>
  1639. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1703. </li>
  1704. <li>
  1705. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1706. </li>
  1707. <li>
  1708. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1709. </li>
  1710. <li>
  1711. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1712. </li>
  1713. <li>
  1714. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1715. </li>
  1716. <li>
  1717. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1718. </li>
  1719. <li>
  1720. <a href="#tocs_usersprofilecopychecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileCopychecklistdialog</a>
  1721. </li>
  1722. <li>
  1723. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1724. </li>
  1725. </ul>
  1726. </li>
  1727. </ul>
  1728. </div>
  1729. <ul class="toc-footer">
  1730. </ul>
  1731. </div>
  1732. <div class="page-wrapper">
  1733. <div class="dark-box"></div>
  1734. <div class="content">
  1735. <h1 id="wekan-rest-api">Wekan REST API v6.73</h1>
  1736. <blockquote>
  1737. <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>
  1738. </blockquote>
  1739. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1740. <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>
  1741. <blockquote>
  1742. <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>
  1743. </blockquote>
  1744. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1745. <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>
  1746. <ul>
  1747. <li>Only call via HTTPS</li>
  1748. <li>Implement a timed authorization token expiration strategy</li>
  1749. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1750. </ul>
  1751. <h1 id="authentication">Authentication</h1>
  1752. <ul>
  1753. <li>API Key (UserSecurity)
  1754. <ul>
  1755. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1756. </ul>
  1757. </li>
  1758. </ul>
  1759. <h1 id="wekan-rest-api-login">Login</h1>
  1760. <h2 id="login">login</h2>
  1761. <p><a id="opIdlogin"></a></p>
  1762. <blockquote>
  1763. <p>Code samples</p>
  1764. </blockquote>
  1765. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1766. curl -X POST /users/login \
  1767. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1768. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1769. </code></pre>
  1770. <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>
  1771. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1772. <span class="hljs-keyword">Accept</span>: */*
  1773. </span></code></pre>
  1774. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1775. &quot;username&quot;: &quot;string&quot;,
  1776. &quot;password&quot;: &quot;pa$$word&quot;
  1777. }&#x27;</span>;
  1778. <span class="hljs-keyword">const</span> headers = {
  1779. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1780. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1781. };
  1782. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1783. {
  1784. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1785. <span class="hljs-attr">body</span>: inputBody,
  1786. <span class="hljs-attr">headers</span>: headers
  1787. })
  1788. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1789. <span class="hljs-keyword">return</span> res.json();
  1790. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1791. <span class="hljs-built_in">console</span>.log(body);
  1792. });
  1793. </code></pre>
  1794. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  1795. <span class="hljs-keyword">const</span> inputBody = {
  1796. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1797. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1798. };
  1799. <span class="hljs-keyword">const</span> headers = {
  1800. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1801. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1802. };
  1803. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1804. {
  1805. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1806. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1807. <span class="hljs-attr">headers</span>: headers
  1808. })
  1809. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1810. <span class="hljs-keyword">return</span> res.json();
  1811. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1812. <span class="hljs-built_in">console</span>.log(body);
  1813. });
  1814. </code></pre>
  1815. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1816. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1817. headers = {
  1818. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1819. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1820. }
  1821. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1822. <span class="hljs-symbol">params:</span> {
  1823. }, <span class="hljs-symbol">headers:</span> headers
  1824. p JSON.parse(result)
  1825. </code></pre>
  1826. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1827. headers = {
  1828. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1829. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1830. }
  1831. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1832. <span class="hljs-built_in">print</span>(r.json())
  1833. </code></pre>
  1834. <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>);
  1835. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1836. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1837. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1838. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1839. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1840. String inputLine;
  1841. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1842. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1843. response.append(inputLine);
  1844. }
  1845. in.close();
  1846. System.out.println(response.toString());
  1847. </code></pre>
  1848. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1849. <span class="hljs-keyword">import</span> (
  1850. <span class="hljs-string">&quot;bytes&quot;</span>
  1851. <span class="hljs-string">&quot;net/http&quot;</span>
  1852. )
  1853. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1854. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1855. <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>},
  1856. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1857. }
  1858. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1859. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1860. req.Header = headers
  1861. client := &amp;http.Client{}
  1862. resp, err := client.Do(req)
  1863. <span class="hljs-comment">// ...</span>
  1864. }
  1865. </code></pre>
  1866. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1867. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1868. );
  1869. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1870. <span class="hljs-comment">// Define array of request body.</span>
  1871. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1872. <span class="hljs-keyword">try</span> {
  1873. <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>(
  1874. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1875. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1876. )
  1877. );
  1878. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1879. }
  1880. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1881. <span class="hljs-comment">// handle exception or api errors.</span>
  1882. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1883. }
  1884. <span class="hljs-comment">// ...</span>
  1885. </code></pre>
  1886. <p><code>POST /users/login</code></p>
  1887. <p><em>Login with REST API</em></p>
  1888. <blockquote>
  1889. <p>Body parameter</p>
  1890. </blockquote>
  1891. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1892. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1893. </code></pre>
  1894. <h3 id="login-parameters">Parameters</h3>
  1895. <table>
  1896. <thead>
  1897. <tr>
  1898. <th>Name</th>
  1899. <th>In</th>
  1900. <th>Type</th>
  1901. <th>Required</th>
  1902. <th>Description</th>
  1903. </tr>
  1904. </thead>
  1905. <tbody>
  1906. <tr>
  1907. <td>body</td>
  1908. <td>body</td>
  1909. <td>object</td>
  1910. <td>true</td>
  1911. <td>none</td>
  1912. </tr>
  1913. <tr>
  1914. <td>» username</td>
  1915. <td>body</td>
  1916. <td>string</td>
  1917. <td>true</td>
  1918. <td>Your username</td>
  1919. </tr>
  1920. <tr>
  1921. <td>» password</td>
  1922. <td>body</td>
  1923. <td>string(password)</td>
  1924. <td>true</td>
  1925. <td>Your password</td>
  1926. </tr>
  1927. </tbody>
  1928. </table>
  1929. <blockquote>
  1930. <p>Example responses</p>
  1931. </blockquote>
  1932. <blockquote>
  1933. <p>200 Response</p>
  1934. </blockquote>
  1935. <h3 id="login-responses">Responses</h3>
  1936. <table>
  1937. <thead>
  1938. <tr>
  1939. <th>Status</th>
  1940. <th>Meaning</th>
  1941. <th>Description</th>
  1942. <th>Schema</th>
  1943. </tr>
  1944. </thead>
  1945. <tbody>
  1946. <tr>
  1947. <td>200</td>
  1948. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1949. <td>Successful authentication</td>
  1950. <td>Inline</td>
  1951. </tr>
  1952. <tr>
  1953. <td>400</td>
  1954. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1955. <td>Error in authentication</td>
  1956. <td>Inline</td>
  1957. </tr>
  1958. <tr>
  1959. <td>default</td>
  1960. <td>Default</td>
  1961. <td>Error in authentication</td>
  1962. <td>None</td>
  1963. </tr>
  1964. </tbody>
  1965. </table>
  1966. <h3 id="login-responseschema">Response Schema</h3>
  1967. <p>Status Code <strong>200</strong></p>
  1968. <table>
  1969. <thead>
  1970. <tr>
  1971. <th>Name</th>
  1972. <th>Type</th>
  1973. <th>Required</th>
  1974. <th>Restrictions</th>
  1975. <th>Description</th>
  1976. </tr>
  1977. </thead>
  1978. <tbody>
  1979. <tr>
  1980. <td>» id</td>
  1981. <td>string</td>
  1982. <td>false</td>
  1983. <td>none</td>
  1984. <td>none</td>
  1985. </tr>
  1986. <tr>
  1987. <td>» token</td>
  1988. <td>string</td>
  1989. <td>false</td>
  1990. <td>none</td>
  1991. <td>none</td>
  1992. </tr>
  1993. <tr>
  1994. <td>» tokenExpires</td>
  1995. <td>string</td>
  1996. <td>false</td>
  1997. <td>none</td>
  1998. <td>none</td>
  1999. </tr>
  2000. </tbody>
  2001. </table>
  2002. <p>Status Code <strong>400</strong></p>
  2003. <table>
  2004. <thead>
  2005. <tr>
  2006. <th>Name</th>
  2007. <th>Type</th>
  2008. <th>Required</th>
  2009. <th>Restrictions</th>
  2010. <th>Description</th>
  2011. </tr>
  2012. </thead>
  2013. <tbody>
  2014. <tr>
  2015. <td>» error</td>
  2016. <td>number</td>
  2017. <td>false</td>
  2018. <td>none</td>
  2019. <td>none</td>
  2020. </tr>
  2021. <tr>
  2022. <td>» reason</td>
  2023. <td>string</td>
  2024. <td>false</td>
  2025. <td>none</td>
  2026. <td>none</td>
  2027. </tr>
  2028. </tbody>
  2029. </table>
  2030. <aside class="success">
  2031. This operation does not require authentication
  2032. </aside>
  2033. <h2 id="register">register</h2>
  2034. <p><a id="opIdregister"></a></p>
  2035. <blockquote>
  2036. <p>Code samples</p>
  2037. </blockquote>
  2038. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2039. curl -X POST /users/register \
  2040. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2041. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2042. </code></pre>
  2043. <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>
  2044. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2045. <span class="hljs-keyword">Accept</span>: */*
  2046. </span></code></pre>
  2047. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2048. &quot;username&quot;: &quot;string&quot;,
  2049. &quot;password&quot;: &quot;pa$$word&quot;,
  2050. &quot;email&quot;: &quot;string&quot;
  2051. }&#x27;</span>;
  2052. <span class="hljs-keyword">const</span> headers = {
  2053. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2054. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2055. };
  2056. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2057. {
  2058. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2059. <span class="hljs-attr">body</span>: inputBody,
  2060. <span class="hljs-attr">headers</span>: headers
  2061. })
  2062. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2063. <span class="hljs-keyword">return</span> res.json();
  2064. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2065. <span class="hljs-built_in">console</span>.log(body);
  2066. });
  2067. </code></pre>
  2068. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2069. <span class="hljs-keyword">const</span> inputBody = {
  2070. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2071. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2072. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2073. };
  2074. <span class="hljs-keyword">const</span> headers = {
  2075. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2076. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2077. };
  2078. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2079. {
  2080. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2081. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2082. <span class="hljs-attr">headers</span>: headers
  2083. })
  2084. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2085. <span class="hljs-keyword">return</span> res.json();
  2086. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2087. <span class="hljs-built_in">console</span>.log(body);
  2088. });
  2089. </code></pre>
  2090. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2091. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2092. headers = {
  2093. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2094. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2095. }
  2096. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2097. <span class="hljs-symbol">params:</span> {
  2098. }, <span class="hljs-symbol">headers:</span> headers
  2099. p JSON.parse(result)
  2100. </code></pre>
  2101. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2102. headers = {
  2103. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2104. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2105. }
  2106. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2107. <span class="hljs-built_in">print</span>(r.json())
  2108. </code></pre>
  2109. <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>);
  2110. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2111. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2112. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2113. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2114. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2115. String inputLine;
  2116. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2117. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2118. response.append(inputLine);
  2119. }
  2120. in.close();
  2121. System.out.println(response.toString());
  2122. </code></pre>
  2123. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2124. <span class="hljs-keyword">import</span> (
  2125. <span class="hljs-string">&quot;bytes&quot;</span>
  2126. <span class="hljs-string">&quot;net/http&quot;</span>
  2127. )
  2128. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2129. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2130. <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>},
  2131. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2132. }
  2133. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2134. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2135. req.Header = headers
  2136. client := &amp;http.Client{}
  2137. resp, err := client.Do(req)
  2138. <span class="hljs-comment">// ...</span>
  2139. }
  2140. </code></pre>
  2141. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2142. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2143. );
  2144. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2145. <span class="hljs-comment">// Define array of request body.</span>
  2146. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2147. <span class="hljs-keyword">try</span> {
  2148. <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>(
  2149. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2150. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2151. )
  2152. );
  2153. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2154. }
  2155. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2156. <span class="hljs-comment">// handle exception or api errors.</span>
  2157. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2158. }
  2159. <span class="hljs-comment">// ...</span>
  2160. </code></pre>
  2161. <p><code>POST /users/register</code></p>
  2162. <p><em>Register with REST API</em></p>
  2163. <p>Notes:</p>
  2164. <ul>
  2165. <li>You will need to provide the token for any of the authenticated methods.</li>
  2166. </ul>
  2167. <blockquote>
  2168. <p>Body parameter</p>
  2169. </blockquote>
  2170. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2171. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2172. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2173. </code></pre>
  2174. <h3 id="register-parameters">Parameters</h3>
  2175. <table>
  2176. <thead>
  2177. <tr>
  2178. <th>Name</th>
  2179. <th>In</th>
  2180. <th>Type</th>
  2181. <th>Required</th>
  2182. <th>Description</th>
  2183. </tr>
  2184. </thead>
  2185. <tbody>
  2186. <tr>
  2187. <td>body</td>
  2188. <td>body</td>
  2189. <td>object</td>
  2190. <td>true</td>
  2191. <td>none</td>
  2192. </tr>
  2193. <tr>
  2194. <td>» username</td>
  2195. <td>body</td>
  2196. <td>string</td>
  2197. <td>true</td>
  2198. <td>Your username</td>
  2199. </tr>
  2200. <tr>
  2201. <td>» password</td>
  2202. <td>body</td>
  2203. <td>string(password)</td>
  2204. <td>true</td>
  2205. <td>Your password</td>
  2206. </tr>
  2207. <tr>
  2208. <td>» email</td>
  2209. <td>body</td>
  2210. <td>string</td>
  2211. <td>true</td>
  2212. <td>Your email</td>
  2213. </tr>
  2214. </tbody>
  2215. </table>
  2216. <blockquote>
  2217. <p>Example responses</p>
  2218. </blockquote>
  2219. <blockquote>
  2220. <p>200 Response</p>
  2221. </blockquote>
  2222. <h3 id="register-responses">Responses</h3>
  2223. <table>
  2224. <thead>
  2225. <tr>
  2226. <th>Status</th>
  2227. <th>Meaning</th>
  2228. <th>Description</th>
  2229. <th>Schema</th>
  2230. </tr>
  2231. </thead>
  2232. <tbody>
  2233. <tr>
  2234. <td>200</td>
  2235. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2236. <td>Successful registration</td>
  2237. <td>Inline</td>
  2238. </tr>
  2239. <tr>
  2240. <td>400</td>
  2241. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2242. <td>Error in registration</td>
  2243. <td>Inline</td>
  2244. </tr>
  2245. <tr>
  2246. <td>default</td>
  2247. <td>Default</td>
  2248. <td>Error in registration</td>
  2249. <td>None</td>
  2250. </tr>
  2251. </tbody>
  2252. </table>
  2253. <h3 id="register-responseschema">Response Schema</h3>
  2254. <p>Status Code <strong>200</strong></p>
  2255. <table>
  2256. <thead>
  2257. <tr>
  2258. <th>Name</th>
  2259. <th>Type</th>
  2260. <th>Required</th>
  2261. <th>Restrictions</th>
  2262. <th>Description</th>
  2263. </tr>
  2264. </thead>
  2265. <tbody>
  2266. <tr>
  2267. <td>» id</td>
  2268. <td>string</td>
  2269. <td>false</td>
  2270. <td>none</td>
  2271. <td>none</td>
  2272. </tr>
  2273. <tr>
  2274. <td>» token</td>
  2275. <td>string</td>
  2276. <td>false</td>
  2277. <td>none</td>
  2278. <td>none</td>
  2279. </tr>
  2280. <tr>
  2281. <td>» tokenExpires</td>
  2282. <td>string</td>
  2283. <td>false</td>
  2284. <td>none</td>
  2285. <td>none</td>
  2286. </tr>
  2287. </tbody>
  2288. </table>
  2289. <p>Status Code <strong>400</strong></p>
  2290. <table>
  2291. <thead>
  2292. <tr>
  2293. <th>Name</th>
  2294. <th>Type</th>
  2295. <th>Required</th>
  2296. <th>Restrictions</th>
  2297. <th>Description</th>
  2298. </tr>
  2299. </thead>
  2300. <tbody>
  2301. <tr>
  2302. <td>» error</td>
  2303. <td>number</td>
  2304. <td>false</td>
  2305. <td>none</td>
  2306. <td>none</td>
  2307. </tr>
  2308. <tr>
  2309. <td>» reason</td>
  2310. <td>string</td>
  2311. <td>false</td>
  2312. <td>none</td>
  2313. <td>none</td>
  2314. </tr>
  2315. </tbody>
  2316. </table>
  2317. <aside class="success">
  2318. This operation does not require authentication
  2319. </aside>
  2320. <h1 id="wekan-rest-api-boards">Boards</h1>
  2321. <h2 id="get_public_boards">get_public_boards</h2>
  2322. <p><a id="opIdget_public_boards"></a></p>
  2323. <blockquote>
  2324. <p>Code samples</p>
  2325. </blockquote>
  2326. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2327. curl -X GET /api/boards \
  2328. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2329. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2330. </code></pre>
  2331. <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>
  2332. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2333. </span></code></pre>
  2334. <pre class="highlight tab tab-javascript"><code>
  2335. <span class="hljs-keyword">const</span> headers = {
  2336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2338. };
  2339. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2340. {
  2341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2342. <span class="hljs-attr">headers</span>: headers
  2343. })
  2344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2345. <span class="hljs-keyword">return</span> res.json();
  2346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2347. <span class="hljs-built_in">console</span>.log(body);
  2348. });
  2349. </code></pre>
  2350. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2351. <span class="hljs-keyword">const</span> headers = {
  2352. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2353. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2354. };
  2355. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2356. {
  2357. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2358. <span class="hljs-attr">headers</span>: headers
  2359. })
  2360. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2361. <span class="hljs-keyword">return</span> res.json();
  2362. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2363. <span class="hljs-built_in">console</span>.log(body);
  2364. });
  2365. </code></pre>
  2366. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2367. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2368. headers = {
  2369. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2370. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2371. }
  2372. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2373. <span class="hljs-symbol">params:</span> {
  2374. }, <span class="hljs-symbol">headers:</span> headers
  2375. p JSON.parse(result)
  2376. </code></pre>
  2377. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2378. headers = {
  2379. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2380. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2381. }
  2382. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2383. <span class="hljs-built_in">print</span>(r.json())
  2384. </code></pre>
  2385. <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>);
  2386. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2387. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2388. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2389. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2390. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2391. String inputLine;
  2392. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2393. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2394. response.append(inputLine);
  2395. }
  2396. in.close();
  2397. System.out.println(response.toString());
  2398. </code></pre>
  2399. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2400. <span class="hljs-keyword">import</span> (
  2401. <span class="hljs-string">&quot;bytes&quot;</span>
  2402. <span class="hljs-string">&quot;net/http&quot;</span>
  2403. )
  2404. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2405. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2406. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2407. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2408. }
  2409. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2410. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2411. req.Header = headers
  2412. client := &amp;http.Client{}
  2413. resp, err := client.Do(req)
  2414. <span class="hljs-comment">// ...</span>
  2415. }
  2416. </code></pre>
  2417. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2418. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2419. );
  2420. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2421. <span class="hljs-comment">// Define array of request body.</span>
  2422. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2423. <span class="hljs-keyword">try</span> {
  2424. <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>(
  2425. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2426. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2427. )
  2428. );
  2429. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2430. }
  2431. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2432. <span class="hljs-comment">// handle exception or api errors.</span>
  2433. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2434. }
  2435. <span class="hljs-comment">// ...</span>
  2436. </code></pre>
  2437. <p><code>GET /api/boards</code></p>
  2438. <p><em>Get all public boards</em></p>
  2439. <blockquote>
  2440. <p>Example responses</p>
  2441. </blockquote>
  2442. <blockquote>
  2443. <p>200 Response</p>
  2444. </blockquote>
  2445. <pre class="highlight tab tab-json"><code>[
  2446. {
  2447. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2448. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2449. }
  2450. ]
  2451. </code></pre>
  2452. <h3 id="get_public_boards-responses">Responses</h3>
  2453. <table>
  2454. <thead>
  2455. <tr>
  2456. <th>Status</th>
  2457. <th>Meaning</th>
  2458. <th>Description</th>
  2459. <th>Schema</th>
  2460. </tr>
  2461. </thead>
  2462. <tbody>
  2463. <tr>
  2464. <td>200</td>
  2465. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2466. <td>200 response</td>
  2467. <td>Inline</td>
  2468. </tr>
  2469. </tbody>
  2470. </table>
  2471. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2472. <p>Status Code <strong>200</strong></p>
  2473. <table>
  2474. <thead>
  2475. <tr>
  2476. <th>Name</th>
  2477. <th>Type</th>
  2478. <th>Required</th>
  2479. <th>Restrictions</th>
  2480. <th>Description</th>
  2481. </tr>
  2482. </thead>
  2483. <tbody>
  2484. <tr>
  2485. <td>» _id</td>
  2486. <td>string</td>
  2487. <td>false</td>
  2488. <td>none</td>
  2489. <td>none</td>
  2490. </tr>
  2491. <tr>
  2492. <td>» title</td>
  2493. <td>string</td>
  2494. <td>false</td>
  2495. <td>none</td>
  2496. <td>none</td>
  2497. </tr>
  2498. </tbody>
  2499. </table>
  2500. <aside class="warning">
  2501. To perform this operation, you must be authenticated by means of one of the following methods:
  2502. UserSecurity
  2503. </aside>
  2504. <h2 id="new_board">new_board</h2>
  2505. <p><a id="opIdnew_board"></a></p>
  2506. <blockquote>
  2507. <p>Code samples</p>
  2508. </blockquote>
  2509. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2510. curl -X POST /api/boards \
  2511. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2512. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2513. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2514. </code></pre>
  2515. <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>
  2516. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2517. Accept: application/json
  2518. </span></code></pre>
  2519. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2520. &quot;title&quot;: &quot;string&quot;,
  2521. &quot;owner&quot;: &quot;string&quot;,
  2522. &quot;isAdmin&quot;: true,
  2523. &quot;isActive&quot;: true,
  2524. &quot;isNoComments&quot;: true,
  2525. &quot;isCommentOnly&quot;: true,
  2526. &quot;isWorker&quot;: true,
  2527. &quot;permission&quot;: &quot;string&quot;,
  2528. &quot;color&quot;: &quot;string&quot;
  2529. }&#x27;</span>;
  2530. <span class="hljs-keyword">const</span> headers = {
  2531. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2532. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2533. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2534. };
  2535. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2536. {
  2537. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2538. <span class="hljs-attr">body</span>: inputBody,
  2539. <span class="hljs-attr">headers</span>: headers
  2540. })
  2541. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2542. <span class="hljs-keyword">return</span> res.json();
  2543. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2544. <span class="hljs-built_in">console</span>.log(body);
  2545. });
  2546. </code></pre>
  2547. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2548. <span class="hljs-keyword">const</span> inputBody = {
  2549. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2550. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2551. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2552. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2553. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2554. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2555. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2556. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2557. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2558. };
  2559. <span class="hljs-keyword">const</span> headers = {
  2560. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2561. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2562. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2563. };
  2564. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2565. {
  2566. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2567. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2568. <span class="hljs-attr">headers</span>: headers
  2569. })
  2570. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2571. <span class="hljs-keyword">return</span> res.json();
  2572. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2573. <span class="hljs-built_in">console</span>.log(body);
  2574. });
  2575. </code></pre>
  2576. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2577. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2578. headers = {
  2579. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2580. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2581. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2582. }
  2583. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2584. <span class="hljs-symbol">params:</span> {
  2585. }, <span class="hljs-symbol">headers:</span> headers
  2586. p JSON.parse(result)
  2587. </code></pre>
  2588. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2589. headers = {
  2590. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2591. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2592. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2593. }
  2594. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2595. <span class="hljs-built_in">print</span>(r.json())
  2596. </code></pre>
  2597. <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>);
  2598. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2599. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2600. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2601. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2602. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2603. String inputLine;
  2604. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2605. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2606. response.append(inputLine);
  2607. }
  2608. in.close();
  2609. System.out.println(response.toString());
  2610. </code></pre>
  2611. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2612. <span class="hljs-keyword">import</span> (
  2613. <span class="hljs-string">&quot;bytes&quot;</span>
  2614. <span class="hljs-string">&quot;net/http&quot;</span>
  2615. )
  2616. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2617. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2618. <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>},
  2619. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2620. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2621. }
  2622. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2623. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2624. req.Header = headers
  2625. client := &amp;http.Client{}
  2626. resp, err := client.Do(req)
  2627. <span class="hljs-comment">// ...</span>
  2628. }
  2629. </code></pre>
  2630. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2631. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2632. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2633. );
  2634. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2635. <span class="hljs-comment">// Define array of request body.</span>
  2636. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2637. <span class="hljs-keyword">try</span> {
  2638. <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>(
  2639. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2640. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2641. )
  2642. );
  2643. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2644. }
  2645. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2646. <span class="hljs-comment">// handle exception or api errors.</span>
  2647. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2648. }
  2649. <span class="hljs-comment">// ...</span>
  2650. </code></pre>
  2651. <p><code>POST /api/boards</code></p>
  2652. <p><em>Create a board</em></p>
  2653. <p>This allows to create a board.</p>
  2654. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2655. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2656. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2657. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2658. <blockquote>
  2659. <p>Body parameter</p>
  2660. </blockquote>
  2661. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2662. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2663. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2664. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2665. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2666. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2667. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2668. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2669. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2670. </code></pre>
  2671. <h3 id="new_board-parameters">Parameters</h3>
  2672. <table>
  2673. <thead>
  2674. <tr>
  2675. <th>Name</th>
  2676. <th>In</th>
  2677. <th>Type</th>
  2678. <th>Required</th>
  2679. <th>Description</th>
  2680. </tr>
  2681. </thead>
  2682. <tbody>
  2683. <tr>
  2684. <td>body</td>
  2685. <td>body</td>
  2686. <td>object</td>
  2687. <td>true</td>
  2688. <td>none</td>
  2689. </tr>
  2690. <tr>
  2691. <td>» title</td>
  2692. <td>body</td>
  2693. <td>string</td>
  2694. <td>true</td>
  2695. <td>the new title of the board</td>
  2696. </tr>
  2697. <tr>
  2698. <td>» owner</td>
  2699. <td>body</td>
  2700. <td>string</td>
  2701. <td>true</td>
  2702. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2703. </tr>
  2704. <tr>
  2705. <td>» isAdmin</td>
  2706. <td>body</td>
  2707. <td>boolean</td>
  2708. <td>false</td>
  2709. <td>is the owner an admin of the board (default true)</td>
  2710. </tr>
  2711. <tr>
  2712. <td>» isActive</td>
  2713. <td>body</td>
  2714. <td>boolean</td>
  2715. <td>false</td>
  2716. <td>is the board active (default true)</td>
  2717. </tr>
  2718. <tr>
  2719. <td>» isNoComments</td>
  2720. <td>body</td>
  2721. <td>boolean</td>
  2722. <td>false</td>
  2723. <td>disable comments (default false)</td>
  2724. </tr>
  2725. <tr>
  2726. <td>» isCommentOnly</td>
  2727. <td>body</td>
  2728. <td>boolean</td>
  2729. <td>false</td>
  2730. <td>only enable comments (default false)</td>
  2731. </tr>
  2732. <tr>
  2733. <td>» isWorker</td>
  2734. <td>body</td>
  2735. <td>boolean</td>
  2736. <td>false</td>
  2737. <td>only move cards, assign himself to card and comment (default false)</td>
  2738. </tr>
  2739. <tr>
  2740. <td>» permission</td>
  2741. <td>body</td>
  2742. <td>string</td>
  2743. <td>false</td>
  2744. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2745. </tr>
  2746. <tr>
  2747. <td>» color</td>
  2748. <td>body</td>
  2749. <td>string</td>
  2750. <td>false</td>
  2751. <td>the color of the board</td>
  2752. </tr>
  2753. </tbody>
  2754. </table>
  2755. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2756. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2757. (Not username or email)</p>
  2758. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2759. want public Wekan board</p>
  2760. <blockquote>
  2761. <p>Example responses</p>
  2762. </blockquote>
  2763. <blockquote>
  2764. <p>200 Response</p>
  2765. </blockquote>
  2766. <pre class="highlight tab tab-json"><code>{
  2767. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2768. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2769. }
  2770. </code></pre>
  2771. <h3 id="new_board-responses">Responses</h3>
  2772. <table>
  2773. <thead>
  2774. <tr>
  2775. <th>Status</th>
  2776. <th>Meaning</th>
  2777. <th>Description</th>
  2778. <th>Schema</th>
  2779. </tr>
  2780. </thead>
  2781. <tbody>
  2782. <tr>
  2783. <td>200</td>
  2784. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2785. <td>200 response</td>
  2786. <td>Inline</td>
  2787. </tr>
  2788. </tbody>
  2789. </table>
  2790. <h3 id="new_board-responseschema">Response Schema</h3>
  2791. <p>Status Code <strong>200</strong></p>
  2792. <table>
  2793. <thead>
  2794. <tr>
  2795. <th>Name</th>
  2796. <th>Type</th>
  2797. <th>Required</th>
  2798. <th>Restrictions</th>
  2799. <th>Description</th>
  2800. </tr>
  2801. </thead>
  2802. <tbody>
  2803. <tr>
  2804. <td>» _id</td>
  2805. <td>string</td>
  2806. <td>false</td>
  2807. <td>none</td>
  2808. <td>none</td>
  2809. </tr>
  2810. <tr>
  2811. <td>» defaultSwimlaneId</td>
  2812. <td>string</td>
  2813. <td>false</td>
  2814. <td>none</td>
  2815. <td>none</td>
  2816. </tr>
  2817. </tbody>
  2818. </table>
  2819. <aside class="warning">
  2820. To perform this operation, you must be authenticated by means of one of the following methods:
  2821. UserSecurity
  2822. </aside>
  2823. <h2 id="get_board">get_board</h2>
  2824. <p><a id="opIdget_board"></a></p>
  2825. <blockquote>
  2826. <p>Code samples</p>
  2827. </blockquote>
  2828. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2829. curl -X GET /api/boards/{board} \
  2830. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2831. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2832. </code></pre>
  2833. <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>
  2834. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2835. </span></code></pre>
  2836. <pre class="highlight tab tab-javascript"><code>
  2837. <span class="hljs-keyword">const</span> headers = {
  2838. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2839. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2840. };
  2841. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2842. {
  2843. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2844. <span class="hljs-attr">headers</span>: headers
  2845. })
  2846. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2847. <span class="hljs-keyword">return</span> res.json();
  2848. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2849. <span class="hljs-built_in">console</span>.log(body);
  2850. });
  2851. </code></pre>
  2852. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2853. <span class="hljs-keyword">const</span> headers = {
  2854. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2855. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2856. };
  2857. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2858. {
  2859. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2860. <span class="hljs-attr">headers</span>: headers
  2861. })
  2862. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2863. <span class="hljs-keyword">return</span> res.json();
  2864. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2865. <span class="hljs-built_in">console</span>.log(body);
  2866. });
  2867. </code></pre>
  2868. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2869. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2870. headers = {
  2871. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2872. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2873. }
  2874. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2875. <span class="hljs-symbol">params:</span> {
  2876. }, <span class="hljs-symbol">headers:</span> headers
  2877. p JSON.parse(result)
  2878. </code></pre>
  2879. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2880. headers = {
  2881. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2882. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2883. }
  2884. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2885. <span class="hljs-built_in">print</span>(r.json())
  2886. </code></pre>
  2887. <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>);
  2888. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2889. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2890. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2891. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2892. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2893. String inputLine;
  2894. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2895. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2896. response.append(inputLine);
  2897. }
  2898. in.close();
  2899. System.out.println(response.toString());
  2900. </code></pre>
  2901. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2902. <span class="hljs-keyword">import</span> (
  2903. <span class="hljs-string">&quot;bytes&quot;</span>
  2904. <span class="hljs-string">&quot;net/http&quot;</span>
  2905. )
  2906. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2907. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2908. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2909. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2910. }
  2911. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2912. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2913. req.Header = headers
  2914. client := &amp;http.Client{}
  2915. resp, err := client.Do(req)
  2916. <span class="hljs-comment">// ...</span>
  2917. }
  2918. </code></pre>
  2919. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2920. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2921. );
  2922. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2923. <span class="hljs-comment">// Define array of request body.</span>
  2924. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2925. <span class="hljs-keyword">try</span> {
  2926. <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>(
  2927. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2928. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2929. )
  2930. );
  2931. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2932. }
  2933. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2934. <span class="hljs-comment">// handle exception or api errors.</span>
  2935. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2936. }
  2937. <span class="hljs-comment">// ...</span>
  2938. </code></pre>
  2939. <p><code>GET /api/boards/{board}</code></p>
  2940. <p><em>Get the board with that particular ID</em></p>
  2941. <h3 id="get_board-parameters">Parameters</h3>
  2942. <table>
  2943. <thead>
  2944. <tr>
  2945. <th>Name</th>
  2946. <th>In</th>
  2947. <th>Type</th>
  2948. <th>Required</th>
  2949. <th>Description</th>
  2950. </tr>
  2951. </thead>
  2952. <tbody>
  2953. <tr>
  2954. <td>board</td>
  2955. <td>path</td>
  2956. <td>string</td>
  2957. <td>true</td>
  2958. <td>the ID of the board to retrieve the data</td>
  2959. </tr>
  2960. </tbody>
  2961. </table>
  2962. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2963. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2964. <blockquote>
  2965. <p>Example responses</p>
  2966. </blockquote>
  2967. <blockquote>
  2968. <p>200 Response</p>
  2969. </blockquote>
  2970. <pre class="highlight tab tab-json"><code>{
  2971. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2972. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2973. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2974. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2975. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2976. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2977. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2978. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2979. {
  2980. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2981. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2982. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2983. }
  2984. ],
  2985. <span class="hljs-attr">&quot;members&quot;</span>: [
  2986. {
  2987. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2988. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2989. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2990. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2991. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2992. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2993. }
  2994. ],
  2995. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2996. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2997. {
  2998. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2999. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3000. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  3001. }
  3002. ],
  3003. <span class="hljs-attr">&quot;teams&quot;</span>: [
  3004. {
  3005. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3006. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3007. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  3008. }
  3009. ],
  3010. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  3011. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  3012. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  3013. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3014. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3015. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3016. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3017. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3018. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3019. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3021. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3023. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3024. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3025. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3026. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3027. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3028. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3029. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3030. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3031. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3032. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3033. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  3034. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3035. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3036. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3037. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3038. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3039. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3040. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3041. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3042. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3043. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3044. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3045. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3046. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3047. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3048. }
  3049. </code></pre>
  3050. <h3 id="get_board-responses">Responses</h3>
  3051. <table>
  3052. <thead>
  3053. <tr>
  3054. <th>Status</th>
  3055. <th>Meaning</th>
  3056. <th>Description</th>
  3057. <th>Schema</th>
  3058. </tr>
  3059. </thead>
  3060. <tbody>
  3061. <tr>
  3062. <td>200</td>
  3063. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3064. <td>200 response</td>
  3065. <td><a href="#schemaboards">Boards</a></td>
  3066. </tr>
  3067. </tbody>
  3068. </table>
  3069. <aside class="warning">
  3070. To perform this operation, you must be authenticated by means of one of the following methods:
  3071. UserSecurity
  3072. </aside>
  3073. <h2 id="delete_board">delete_board</h2>
  3074. <p><a id="opIddelete_board"></a></p>
  3075. <blockquote>
  3076. <p>Code samples</p>
  3077. </blockquote>
  3078. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3079. curl -X DELETE /api/boards/{board} \
  3080. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3081. </code></pre>
  3082. <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>
  3083. </code></pre>
  3084. <pre class="highlight tab tab-javascript"><code>
  3085. <span class="hljs-keyword">const</span> headers = {
  3086. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3087. };
  3088. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3089. {
  3090. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3091. <span class="hljs-attr">headers</span>: headers
  3092. })
  3093. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3094. <span class="hljs-keyword">return</span> res.json();
  3095. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3096. <span class="hljs-built_in">console</span>.log(body);
  3097. });
  3098. </code></pre>
  3099. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3100. <span class="hljs-keyword">const</span> headers = {
  3101. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3102. };
  3103. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3104. {
  3105. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3106. <span class="hljs-attr">headers</span>: headers
  3107. })
  3108. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3109. <span class="hljs-keyword">return</span> res.json();
  3110. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3111. <span class="hljs-built_in">console</span>.log(body);
  3112. });
  3113. </code></pre>
  3114. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3115. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3116. headers = {
  3117. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3118. }
  3119. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3120. <span class="hljs-symbol">params:</span> {
  3121. }, <span class="hljs-symbol">headers:</span> headers
  3122. p JSON.parse(result)
  3123. </code></pre>
  3124. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3125. headers = {
  3126. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3127. }
  3128. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3129. <span class="hljs-built_in">print</span>(r.json())
  3130. </code></pre>
  3131. <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>);
  3132. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3133. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3134. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3135. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3136. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3137. String inputLine;
  3138. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3139. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3140. response.append(inputLine);
  3141. }
  3142. in.close();
  3143. System.out.println(response.toString());
  3144. </code></pre>
  3145. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3146. <span class="hljs-keyword">import</span> (
  3147. <span class="hljs-string">&quot;bytes&quot;</span>
  3148. <span class="hljs-string">&quot;net/http&quot;</span>
  3149. )
  3150. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3151. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3152. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3153. }
  3154. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3155. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3156. req.Header = headers
  3157. client := &amp;http.Client{}
  3158. resp, err := client.Do(req)
  3159. <span class="hljs-comment">// ...</span>
  3160. }
  3161. </code></pre>
  3162. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3163. );
  3164. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3165. <span class="hljs-comment">// Define array of request body.</span>
  3166. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3167. <span class="hljs-keyword">try</span> {
  3168. <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>(
  3169. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3170. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3171. )
  3172. );
  3173. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3174. }
  3175. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3176. <span class="hljs-comment">// handle exception or api errors.</span>
  3177. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3178. }
  3179. <span class="hljs-comment">// ...</span>
  3180. </code></pre>
  3181. <p><code>DELETE /api/boards/{board}</code></p>
  3182. <p><em>Delete a board</em></p>
  3183. <h3 id="delete_board-parameters">Parameters</h3>
  3184. <table>
  3185. <thead>
  3186. <tr>
  3187. <th>Name</th>
  3188. <th>In</th>
  3189. <th>Type</th>
  3190. <th>Required</th>
  3191. <th>Description</th>
  3192. </tr>
  3193. </thead>
  3194. <tbody>
  3195. <tr>
  3196. <td>board</td>
  3197. <td>path</td>
  3198. <td>string</td>
  3199. <td>true</td>
  3200. <td>the ID of the board</td>
  3201. </tr>
  3202. </tbody>
  3203. </table>
  3204. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3205. <p><strong>board</strong>: the ID of the board</p>
  3206. <h3 id="delete_board-responses">Responses</h3>
  3207. <table>
  3208. <thead>
  3209. <tr>
  3210. <th>Status</th>
  3211. <th>Meaning</th>
  3212. <th>Description</th>
  3213. <th>Schema</th>
  3214. </tr>
  3215. </thead>
  3216. <tbody>
  3217. <tr>
  3218. <td>200</td>
  3219. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3220. <td>200 response</td>
  3221. <td>None</td>
  3222. </tr>
  3223. </tbody>
  3224. </table>
  3225. <aside class="warning">
  3226. To perform this operation, you must be authenticated by means of one of the following methods:
  3227. UserSecurity
  3228. </aside>
  3229. <h2 id="get_board_attachments">get_board_attachments</h2>
  3230. <p><a id="opIdget_board_attachments"></a></p>
  3231. <blockquote>
  3232. <p>Code samples</p>
  3233. </blockquote>
  3234. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3235. curl -X GET /api/boards/{board}/attachments \
  3236. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3237. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3238. </code></pre>
  3239. <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>
  3240. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3241. </span></code></pre>
  3242. <pre class="highlight tab tab-javascript"><code>
  3243. <span class="hljs-keyword">const</span> headers = {
  3244. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3245. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3246. };
  3247. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3248. {
  3249. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3250. <span class="hljs-attr">headers</span>: headers
  3251. })
  3252. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3253. <span class="hljs-keyword">return</span> res.json();
  3254. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3255. <span class="hljs-built_in">console</span>.log(body);
  3256. });
  3257. </code></pre>
  3258. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3259. <span class="hljs-keyword">const</span> headers = {
  3260. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3261. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3262. };
  3263. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3264. {
  3265. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3266. <span class="hljs-attr">headers</span>: headers
  3267. })
  3268. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3269. <span class="hljs-keyword">return</span> res.json();
  3270. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3271. <span class="hljs-built_in">console</span>.log(body);
  3272. });
  3273. </code></pre>
  3274. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3275. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3276. headers = {
  3277. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3278. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3279. }
  3280. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3281. <span class="hljs-symbol">params:</span> {
  3282. }, <span class="hljs-symbol">headers:</span> headers
  3283. p JSON.parse(result)
  3284. </code></pre>
  3285. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3286. headers = {
  3287. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3288. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3289. }
  3290. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3291. <span class="hljs-built_in">print</span>(r.json())
  3292. </code></pre>
  3293. <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>);
  3294. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3295. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3296. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3297. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3298. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3299. String inputLine;
  3300. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3301. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3302. response.append(inputLine);
  3303. }
  3304. in.close();
  3305. System.out.println(response.toString());
  3306. </code></pre>
  3307. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3308. <span class="hljs-keyword">import</span> (
  3309. <span class="hljs-string">&quot;bytes&quot;</span>
  3310. <span class="hljs-string">&quot;net/http&quot;</span>
  3311. )
  3312. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3313. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3314. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3315. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3316. }
  3317. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3318. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3319. req.Header = headers
  3320. client := &amp;http.Client{}
  3321. resp, err := client.Do(req)
  3322. <span class="hljs-comment">// ...</span>
  3323. }
  3324. </code></pre>
  3325. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3326. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3327. );
  3328. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3329. <span class="hljs-comment">// Define array of request body.</span>
  3330. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3331. <span class="hljs-keyword">try</span> {
  3332. <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>(
  3333. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3334. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3335. )
  3336. );
  3337. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3338. }
  3339. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3340. <span class="hljs-comment">// handle exception or api errors.</span>
  3341. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3342. }
  3343. <span class="hljs-comment">// ...</span>
  3344. </code></pre>
  3345. <p><code>GET /api/boards/{board}/attachments</code></p>
  3346. <p><em>Get the list of attachments of a board</em></p>
  3347. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3348. <table>
  3349. <thead>
  3350. <tr>
  3351. <th>Name</th>
  3352. <th>In</th>
  3353. <th>Type</th>
  3354. <th>Required</th>
  3355. <th>Description</th>
  3356. </tr>
  3357. </thead>
  3358. <tbody>
  3359. <tr>
  3360. <td>board</td>
  3361. <td>path</td>
  3362. <td>string</td>
  3363. <td>true</td>
  3364. <td>the board ID</td>
  3365. </tr>
  3366. </tbody>
  3367. </table>
  3368. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3369. <p><strong>board</strong>: the board ID</p>
  3370. <blockquote>
  3371. <p>Example responses</p>
  3372. </blockquote>
  3373. <blockquote>
  3374. <p>200 Response</p>
  3375. </blockquote>
  3376. <pre class="highlight tab tab-json"><code>[
  3377. {
  3378. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3379. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3380. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3381. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3382. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3383. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3384. }
  3385. ]
  3386. </code></pre>
  3387. <h3 id="get_board_attachments-responses">Responses</h3>
  3388. <table>
  3389. <thead>
  3390. <tr>
  3391. <th>Status</th>
  3392. <th>Meaning</th>
  3393. <th>Description</th>
  3394. <th>Schema</th>
  3395. </tr>
  3396. </thead>
  3397. <tbody>
  3398. <tr>
  3399. <td>200</td>
  3400. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3401. <td>200 response</td>
  3402. <td>Inline</td>
  3403. </tr>
  3404. </tbody>
  3405. </table>
  3406. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3407. <p>Status Code <strong>200</strong></p>
  3408. <table>
  3409. <thead>
  3410. <tr>
  3411. <th>Name</th>
  3412. <th>Type</th>
  3413. <th>Required</th>
  3414. <th>Restrictions</th>
  3415. <th>Description</th>
  3416. </tr>
  3417. </thead>
  3418. <tbody>
  3419. <tr>
  3420. <td>» attachmentId</td>
  3421. <td>string</td>
  3422. <td>false</td>
  3423. <td>none</td>
  3424. <td>none</td>
  3425. </tr>
  3426. <tr>
  3427. <td>» attachmentName</td>
  3428. <td>string</td>
  3429. <td>false</td>
  3430. <td>none</td>
  3431. <td>none</td>
  3432. </tr>
  3433. <tr>
  3434. <td>» attachmentType</td>
  3435. <td>string</td>
  3436. <td>false</td>
  3437. <td>none</td>
  3438. <td>none</td>
  3439. </tr>
  3440. <tr>
  3441. <td>» cardId</td>
  3442. <td>string</td>
  3443. <td>false</td>
  3444. <td>none</td>
  3445. <td>none</td>
  3446. </tr>
  3447. <tr>
  3448. <td>» listId</td>
  3449. <td>string</td>
  3450. <td>false</td>
  3451. <td>none</td>
  3452. <td>none</td>
  3453. </tr>
  3454. <tr>
  3455. <td>» swimlaneId</td>
  3456. <td>string</td>
  3457. <td>false</td>
  3458. <td>none</td>
  3459. <td>none</td>
  3460. </tr>
  3461. </tbody>
  3462. </table>
  3463. <aside class="warning">
  3464. To perform this operation, you must be authenticated by means of one of the following methods:
  3465. UserSecurity
  3466. </aside>
  3467. <h2 id="exportjson">exportJson</h2>
  3468. <p><a id="opIdexportJson"></a></p>
  3469. <blockquote>
  3470. <p>Code samples</p>
  3471. </blockquote>
  3472. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3473. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3474. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3475. </code></pre>
  3476. <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>
  3477. </code></pre>
  3478. <pre class="highlight tab tab-javascript"><code>
  3479. <span class="hljs-keyword">const</span> headers = {
  3480. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3481. };
  3482. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3483. {
  3484. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3485. <span class="hljs-attr">headers</span>: headers
  3486. })
  3487. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3488. <span class="hljs-keyword">return</span> res.json();
  3489. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3490. <span class="hljs-built_in">console</span>.log(body);
  3491. });
  3492. </code></pre>
  3493. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3494. <span class="hljs-keyword">const</span> headers = {
  3495. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3496. };
  3497. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3498. {
  3499. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3500. <span class="hljs-attr">headers</span>: headers
  3501. })
  3502. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3503. <span class="hljs-keyword">return</span> res.json();
  3504. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3505. <span class="hljs-built_in">console</span>.log(body);
  3506. });
  3507. </code></pre>
  3508. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3509. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3510. headers = {
  3511. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3512. }
  3513. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3514. <span class="hljs-symbol">params:</span> {
  3515. }, <span class="hljs-symbol">headers:</span> headers
  3516. p JSON.parse(result)
  3517. </code></pre>
  3518. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3519. headers = {
  3520. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3521. }
  3522. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3523. <span class="hljs-built_in">print</span>(r.json())
  3524. </code></pre>
  3525. <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>);
  3526. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3527. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3528. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3529. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3530. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3531. String inputLine;
  3532. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3533. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3534. response.append(inputLine);
  3535. }
  3536. in.close();
  3537. System.out.println(response.toString());
  3538. </code></pre>
  3539. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3540. <span class="hljs-keyword">import</span> (
  3541. <span class="hljs-string">&quot;bytes&quot;</span>
  3542. <span class="hljs-string">&quot;net/http&quot;</span>
  3543. )
  3544. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3545. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3546. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3547. }
  3548. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3549. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3550. req.Header = headers
  3551. client := &amp;http.Client{}
  3552. resp, err := client.Do(req)
  3553. <span class="hljs-comment">// ...</span>
  3554. }
  3555. </code></pre>
  3556. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3557. );
  3558. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3559. <span class="hljs-comment">// Define array of request body.</span>
  3560. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3561. <span class="hljs-keyword">try</span> {
  3562. <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>(
  3563. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3564. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3565. )
  3566. );
  3567. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3568. }
  3569. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3570. <span class="hljs-comment">// handle exception or api errors.</span>
  3571. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3572. }
  3573. <span class="hljs-comment">// ...</span>
  3574. </code></pre>
  3575. <p><code>GET /api/boards/{board}/export</code></p>
  3576. <p><em>This route is used to export the board to a json file format.</em></p>
  3577. <p>If user is already logged-in, pass loginToken as param
  3578. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3579. <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>
  3580. for detailed explanations</p>
  3581. <h3 id="exportjson-parameters">Parameters</h3>
  3582. <table>
  3583. <thead>
  3584. <tr>
  3585. <th>Name</th>
  3586. <th>In</th>
  3587. <th>Type</th>
  3588. <th>Required</th>
  3589. <th>Description</th>
  3590. </tr>
  3591. </thead>
  3592. <tbody>
  3593. <tr>
  3594. <td>board</td>
  3595. <td>path</td>
  3596. <td>string</td>
  3597. <td>true</td>
  3598. <td>the ID of the board we are exporting</td>
  3599. </tr>
  3600. </tbody>
  3601. </table>
  3602. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3603. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3604. <h3 id="exportjson-responses">Responses</h3>
  3605. <table>
  3606. <thead>
  3607. <tr>
  3608. <th>Status</th>
  3609. <th>Meaning</th>
  3610. <th>Description</th>
  3611. <th>Schema</th>
  3612. </tr>
  3613. </thead>
  3614. <tbody>
  3615. <tr>
  3616. <td>200</td>
  3617. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3618. <td>200 response</td>
  3619. <td>None</td>
  3620. </tr>
  3621. </tbody>
  3622. </table>
  3623. <aside class="warning">
  3624. To perform this operation, you must be authenticated by means of one of the following methods:
  3625. UserSecurity
  3626. </aside>
  3627. <h2 id="add_board_label">add_board_label</h2>
  3628. <p><a id="opIdadd_board_label"></a></p>
  3629. <blockquote>
  3630. <p>Code samples</p>
  3631. </blockquote>
  3632. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3633. curl -X PUT /api/boards/{board}/labels \
  3634. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3635. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3636. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3637. </code></pre>
  3638. <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>
  3639. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3640. Accept: application/json
  3641. </span></code></pre>
  3642. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3643. &quot;label&quot;: &quot;string&quot;
  3644. }&#x27;</span>;
  3645. <span class="hljs-keyword">const</span> headers = {
  3646. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3647. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3648. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3649. };
  3650. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3651. {
  3652. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3653. <span class="hljs-attr">body</span>: inputBody,
  3654. <span class="hljs-attr">headers</span>: headers
  3655. })
  3656. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3657. <span class="hljs-keyword">return</span> res.json();
  3658. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3659. <span class="hljs-built_in">console</span>.log(body);
  3660. });
  3661. </code></pre>
  3662. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3663. <span class="hljs-keyword">const</span> inputBody = {
  3664. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3665. };
  3666. <span class="hljs-keyword">const</span> headers = {
  3667. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3668. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3669. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3670. };
  3671. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3672. {
  3673. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3674. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3675. <span class="hljs-attr">headers</span>: headers
  3676. })
  3677. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3678. <span class="hljs-keyword">return</span> res.json();
  3679. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3680. <span class="hljs-built_in">console</span>.log(body);
  3681. });
  3682. </code></pre>
  3683. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3684. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3685. headers = {
  3686. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3687. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3688. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3689. }
  3690. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3691. <span class="hljs-symbol">params:</span> {
  3692. }, <span class="hljs-symbol">headers:</span> headers
  3693. p JSON.parse(result)
  3694. </code></pre>
  3695. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3696. headers = {
  3697. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3698. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3699. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3700. }
  3701. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3702. <span class="hljs-built_in">print</span>(r.json())
  3703. </code></pre>
  3704. <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>);
  3705. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3706. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3707. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3708. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3709. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3710. String inputLine;
  3711. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3712. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3713. response.append(inputLine);
  3714. }
  3715. in.close();
  3716. System.out.println(response.toString());
  3717. </code></pre>
  3718. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3719. <span class="hljs-keyword">import</span> (
  3720. <span class="hljs-string">&quot;bytes&quot;</span>
  3721. <span class="hljs-string">&quot;net/http&quot;</span>
  3722. )
  3723. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3724. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3725. <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>},
  3726. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3727. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3728. }
  3729. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3730. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3731. req.Header = headers
  3732. client := &amp;http.Client{}
  3733. resp, err := client.Do(req)
  3734. <span class="hljs-comment">// ...</span>
  3735. }
  3736. </code></pre>
  3737. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3738. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3739. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3740. );
  3741. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3742. <span class="hljs-comment">// Define array of request body.</span>
  3743. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3744. <span class="hljs-keyword">try</span> {
  3745. <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>(
  3746. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3747. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3748. )
  3749. );
  3750. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3751. }
  3752. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3753. <span class="hljs-comment">// handle exception or api errors.</span>
  3754. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3755. }
  3756. <span class="hljs-comment">// ...</span>
  3757. </code></pre>
  3758. <p><code>PUT /api/boards/{board}/labels</code></p>
  3759. <p><em>Add a label to a board</em></p>
  3760. <p>If the board doesn't have the name/color label, this function
  3761. adds the label to the board.</p>
  3762. <blockquote>
  3763. <p>Body parameter</p>
  3764. </blockquote>
  3765. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3766. </code></pre>
  3767. <h3 id="add_board_label-parameters">Parameters</h3>
  3768. <table>
  3769. <thead>
  3770. <tr>
  3771. <th>Name</th>
  3772. <th>In</th>
  3773. <th>Type</th>
  3774. <th>Required</th>
  3775. <th>Description</th>
  3776. </tr>
  3777. </thead>
  3778. <tbody>
  3779. <tr>
  3780. <td>board</td>
  3781. <td>path</td>
  3782. <td>string</td>
  3783. <td>true</td>
  3784. <td>the board</td>
  3785. </tr>
  3786. <tr>
  3787. <td>body</td>
  3788. <td>body</td>
  3789. <td>object</td>
  3790. <td>true</td>
  3791. <td>none</td>
  3792. </tr>
  3793. <tr>
  3794. <td>» label</td>
  3795. <td>body</td>
  3796. <td>string</td>
  3797. <td>true</td>
  3798. <td>the label value</td>
  3799. </tr>
  3800. </tbody>
  3801. </table>
  3802. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3803. <p><strong>board</strong>: the board</p>
  3804. <blockquote>
  3805. <p>Example responses</p>
  3806. </blockquote>
  3807. <blockquote>
  3808. <p>200 Response</p>
  3809. </blockquote>
  3810. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3811. </code></pre>
  3812. <h3 id="add_board_label-responses">Responses</h3>
  3813. <table>
  3814. <thead>
  3815. <tr>
  3816. <th>Status</th>
  3817. <th>Meaning</th>
  3818. <th>Description</th>
  3819. <th>Schema</th>
  3820. </tr>
  3821. </thead>
  3822. <tbody>
  3823. <tr>
  3824. <td>200</td>
  3825. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3826. <td>200 response</td>
  3827. <td>string</td>
  3828. </tr>
  3829. </tbody>
  3830. </table>
  3831. <aside class="warning">
  3832. To perform this operation, you must be authenticated by means of one of the following methods:
  3833. UserSecurity
  3834. </aside>
  3835. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3836. <p><a id="opIdset_board_member_permission"></a></p>
  3837. <blockquote>
  3838. <p>Code samples</p>
  3839. </blockquote>
  3840. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3841. curl -X POST /api/boards/{board}/members/{member} \
  3842. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3843. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3844. </code></pre>
  3845. <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>
  3846. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3847. </span></code></pre>
  3848. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3849. &quot;isAdmin&quot;: true,
  3850. &quot;isNoComments&quot;: true,
  3851. &quot;isCommentOnly&quot;: true,
  3852. &quot;isWorker&quot;: true
  3853. }&#x27;</span>;
  3854. <span class="hljs-keyword">const</span> headers = {
  3855. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3856. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3857. };
  3858. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3859. {
  3860. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3861. <span class="hljs-attr">body</span>: inputBody,
  3862. <span class="hljs-attr">headers</span>: headers
  3863. })
  3864. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3865. <span class="hljs-keyword">return</span> res.json();
  3866. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3867. <span class="hljs-built_in">console</span>.log(body);
  3868. });
  3869. </code></pre>
  3870. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3871. <span class="hljs-keyword">const</span> inputBody = {
  3872. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3873. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3874. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3875. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3876. };
  3877. <span class="hljs-keyword">const</span> headers = {
  3878. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3879. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3880. };
  3881. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3882. {
  3883. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3884. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3885. <span class="hljs-attr">headers</span>: headers
  3886. })
  3887. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3888. <span class="hljs-keyword">return</span> res.json();
  3889. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3890. <span class="hljs-built_in">console</span>.log(body);
  3891. });
  3892. </code></pre>
  3893. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3894. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3895. headers = {
  3896. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3897. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3898. }
  3899. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3900. <span class="hljs-symbol">params:</span> {
  3901. }, <span class="hljs-symbol">headers:</span> headers
  3902. p JSON.parse(result)
  3903. </code></pre>
  3904. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3905. headers = {
  3906. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3907. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3908. }
  3909. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3910. <span class="hljs-built_in">print</span>(r.json())
  3911. </code></pre>
  3912. <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>);
  3913. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3914. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3915. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3916. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3917. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3918. String inputLine;
  3919. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3920. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3921. response.append(inputLine);
  3922. }
  3923. in.close();
  3924. System.out.println(response.toString());
  3925. </code></pre>
  3926. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3927. <span class="hljs-keyword">import</span> (
  3928. <span class="hljs-string">&quot;bytes&quot;</span>
  3929. <span class="hljs-string">&quot;net/http&quot;</span>
  3930. )
  3931. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3932. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3933. <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>},
  3934. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3935. }
  3936. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3937. 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)
  3938. req.Header = headers
  3939. client := &amp;http.Client{}
  3940. resp, err := client.Do(req)
  3941. <span class="hljs-comment">// ...</span>
  3942. }
  3943. </code></pre>
  3944. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3945. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3946. );
  3947. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3948. <span class="hljs-comment">// Define array of request body.</span>
  3949. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3950. <span class="hljs-keyword">try</span> {
  3951. <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>(
  3952. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3953. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3954. )
  3955. );
  3956. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3957. }
  3958. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3959. <span class="hljs-comment">// handle exception or api errors.</span>
  3960. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3961. }
  3962. <span class="hljs-comment">// ...</span>
  3963. </code></pre>
  3964. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3965. <p><em>Change the permission of a member of a board</em></p>
  3966. <blockquote>
  3967. <p>Body parameter</p>
  3968. </blockquote>
  3969. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3970. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3971. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3972. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3973. </code></pre>
  3974. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3975. <table>
  3976. <thead>
  3977. <tr>
  3978. <th>Name</th>
  3979. <th>In</th>
  3980. <th>Type</th>
  3981. <th>Required</th>
  3982. <th>Description</th>
  3983. </tr>
  3984. </thead>
  3985. <tbody>
  3986. <tr>
  3987. <td>board</td>
  3988. <td>path</td>
  3989. <td>string</td>
  3990. <td>true</td>
  3991. <td>the ID of the board that we are changing</td>
  3992. </tr>
  3993. <tr>
  3994. <td>member</td>
  3995. <td>path</td>
  3996. <td>string</td>
  3997. <td>true</td>
  3998. <td>the ID of the user to change permissions</td>
  3999. </tr>
  4000. <tr>
  4001. <td>body</td>
  4002. <td>body</td>
  4003. <td>object</td>
  4004. <td>true</td>
  4005. <td>none</td>
  4006. </tr>
  4007. <tr>
  4008. <td>» isAdmin</td>
  4009. <td>body</td>
  4010. <td>boolean</td>
  4011. <td>true</td>
  4012. <td>admin capability</td>
  4013. </tr>
  4014. <tr>
  4015. <td>» isNoComments</td>
  4016. <td>body</td>
  4017. <td>boolean</td>
  4018. <td>true</td>
  4019. <td>NoComments capability</td>
  4020. </tr>
  4021. <tr>
  4022. <td>» isCommentOnly</td>
  4023. <td>body</td>
  4024. <td>boolean</td>
  4025. <td>true</td>
  4026. <td>CommentsOnly capability</td>
  4027. </tr>
  4028. <tr>
  4029. <td>» isWorker</td>
  4030. <td>body</td>
  4031. <td>boolean</td>
  4032. <td>true</td>
  4033. <td>Worker capability</td>
  4034. </tr>
  4035. </tbody>
  4036. </table>
  4037. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4038. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4039. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4040. <h3 id="set_board_member_permission-responses">Responses</h3>
  4041. <table>
  4042. <thead>
  4043. <tr>
  4044. <th>Status</th>
  4045. <th>Meaning</th>
  4046. <th>Description</th>
  4047. <th>Schema</th>
  4048. </tr>
  4049. </thead>
  4050. <tbody>
  4051. <tr>
  4052. <td>200</td>
  4053. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4054. <td>200 response</td>
  4055. <td>None</td>
  4056. </tr>
  4057. </tbody>
  4058. </table>
  4059. <aside class="warning">
  4060. To perform this operation, you must be authenticated by means of one of the following methods:
  4061. UserSecurity
  4062. </aside>
  4063. <h2 id="get_boards_count">get_boards_count</h2>
  4064. <p><a id="opIdget_boards_count"></a></p>
  4065. <blockquote>
  4066. <p>Code samples</p>
  4067. </blockquote>
  4068. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4069. curl -X GET /api/boards_count \
  4070. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4071. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4072. </code></pre>
  4073. <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>
  4074. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4075. </span></code></pre>
  4076. <pre class="highlight tab tab-javascript"><code>
  4077. <span class="hljs-keyword">const</span> headers = {
  4078. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4079. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4080. };
  4081. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4082. {
  4083. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4084. <span class="hljs-attr">headers</span>: headers
  4085. })
  4086. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4087. <span class="hljs-keyword">return</span> res.json();
  4088. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4089. <span class="hljs-built_in">console</span>.log(body);
  4090. });
  4091. </code></pre>
  4092. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4093. <span class="hljs-keyword">const</span> headers = {
  4094. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4095. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4096. };
  4097. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4098. {
  4099. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4100. <span class="hljs-attr">headers</span>: headers
  4101. })
  4102. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4103. <span class="hljs-keyword">return</span> res.json();
  4104. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4105. <span class="hljs-built_in">console</span>.log(body);
  4106. });
  4107. </code></pre>
  4108. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4109. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4110. headers = {
  4111. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4112. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4113. }
  4114. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4115. <span class="hljs-symbol">params:</span> {
  4116. }, <span class="hljs-symbol">headers:</span> headers
  4117. p JSON.parse(result)
  4118. </code></pre>
  4119. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4120. headers = {
  4121. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4122. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4123. }
  4124. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4125. <span class="hljs-built_in">print</span>(r.json())
  4126. </code></pre>
  4127. <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>);
  4128. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4129. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4130. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4131. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4132. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4133. String inputLine;
  4134. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4135. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4136. response.append(inputLine);
  4137. }
  4138. in.close();
  4139. System.out.println(response.toString());
  4140. </code></pre>
  4141. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4142. <span class="hljs-keyword">import</span> (
  4143. <span class="hljs-string">&quot;bytes&quot;</span>
  4144. <span class="hljs-string">&quot;net/http&quot;</span>
  4145. )
  4146. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4147. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4148. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4149. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4150. }
  4151. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4152. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4153. req.Header = headers
  4154. client := &amp;http.Client{}
  4155. resp, err := client.Do(req)
  4156. <span class="hljs-comment">// ...</span>
  4157. }
  4158. </code></pre>
  4159. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4160. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4161. );
  4162. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4163. <span class="hljs-comment">// Define array of request body.</span>
  4164. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4165. <span class="hljs-keyword">try</span> {
  4166. <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>(
  4167. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4168. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4169. )
  4170. );
  4171. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4172. }
  4173. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4174. <span class="hljs-comment">// handle exception or api errors.</span>
  4175. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4176. }
  4177. <span class="hljs-comment">// ...</span>
  4178. </code></pre>
  4179. <p><code>GET /api/boards_count</code></p>
  4180. <p><em>Get public and private boards count</em></p>
  4181. <blockquote>
  4182. <p>Example responses</p>
  4183. </blockquote>
  4184. <blockquote>
  4185. <p>200 Response</p>
  4186. </blockquote>
  4187. <pre class="highlight tab tab-json"><code>{
  4188. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4189. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4190. }
  4191. </code></pre>
  4192. <h3 id="get_boards_count-responses">Responses</h3>
  4193. <table>
  4194. <thead>
  4195. <tr>
  4196. <th>Status</th>
  4197. <th>Meaning</th>
  4198. <th>Description</th>
  4199. <th>Schema</th>
  4200. </tr>
  4201. </thead>
  4202. <tbody>
  4203. <tr>
  4204. <td>200</td>
  4205. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4206. <td>200 response</td>
  4207. <td>Inline</td>
  4208. </tr>
  4209. </tbody>
  4210. </table>
  4211. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4212. <p>Status Code <strong>200</strong></p>
  4213. <table>
  4214. <thead>
  4215. <tr>
  4216. <th>Name</th>
  4217. <th>Type</th>
  4218. <th>Required</th>
  4219. <th>Restrictions</th>
  4220. <th>Description</th>
  4221. </tr>
  4222. </thead>
  4223. <tbody>
  4224. <tr>
  4225. <td>» private</td>
  4226. <td>integer</td>
  4227. <td>false</td>
  4228. <td>none</td>
  4229. <td>none</td>
  4230. </tr>
  4231. <tr>
  4232. <td>» public</td>
  4233. <td>integer</td>
  4234. <td>false</td>
  4235. <td>none</td>
  4236. <td>none</td>
  4237. </tr>
  4238. </tbody>
  4239. </table>
  4240. <aside class="warning">
  4241. To perform this operation, you must be authenticated by means of one of the following methods:
  4242. UserSecurity
  4243. </aside>
  4244. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4245. <p><a id="opIdget_boards_from_user"></a></p>
  4246. <blockquote>
  4247. <p>Code samples</p>
  4248. </blockquote>
  4249. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4250. curl -X GET /api/users/{user}/boards \
  4251. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4252. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4253. </code></pre>
  4254. <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>
  4255. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4256. </span></code></pre>
  4257. <pre class="highlight tab tab-javascript"><code>
  4258. <span class="hljs-keyword">const</span> headers = {
  4259. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4260. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4261. };
  4262. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4263. {
  4264. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4265. <span class="hljs-attr">headers</span>: headers
  4266. })
  4267. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4268. <span class="hljs-keyword">return</span> res.json();
  4269. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4270. <span class="hljs-built_in">console</span>.log(body);
  4271. });
  4272. </code></pre>
  4273. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4274. <span class="hljs-keyword">const</span> headers = {
  4275. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4276. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4277. };
  4278. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4279. {
  4280. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4281. <span class="hljs-attr">headers</span>: headers
  4282. })
  4283. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4284. <span class="hljs-keyword">return</span> res.json();
  4285. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4286. <span class="hljs-built_in">console</span>.log(body);
  4287. });
  4288. </code></pre>
  4289. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4290. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4291. headers = {
  4292. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4293. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4294. }
  4295. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4296. <span class="hljs-symbol">params:</span> {
  4297. }, <span class="hljs-symbol">headers:</span> headers
  4298. p JSON.parse(result)
  4299. </code></pre>
  4300. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4301. headers = {
  4302. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4303. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4304. }
  4305. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4306. <span class="hljs-built_in">print</span>(r.json())
  4307. </code></pre>
  4308. <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>);
  4309. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4310. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4311. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4312. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4313. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4314. String inputLine;
  4315. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4316. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4317. response.append(inputLine);
  4318. }
  4319. in.close();
  4320. System.out.println(response.toString());
  4321. </code></pre>
  4322. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4323. <span class="hljs-keyword">import</span> (
  4324. <span class="hljs-string">&quot;bytes&quot;</span>
  4325. <span class="hljs-string">&quot;net/http&quot;</span>
  4326. )
  4327. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4328. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4329. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4330. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4331. }
  4332. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4333. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4334. req.Header = headers
  4335. client := &amp;http.Client{}
  4336. resp, err := client.Do(req)
  4337. <span class="hljs-comment">// ...</span>
  4338. }
  4339. </code></pre>
  4340. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4341. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4342. );
  4343. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4344. <span class="hljs-comment">// Define array of request body.</span>
  4345. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4346. <span class="hljs-keyword">try</span> {
  4347. <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>(
  4348. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4349. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4350. )
  4351. );
  4352. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4353. }
  4354. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4355. <span class="hljs-comment">// handle exception or api errors.</span>
  4356. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4357. }
  4358. <span class="hljs-comment">// ...</span>
  4359. </code></pre>
  4360. <p><code>GET /api/users/{user}/boards</code></p>
  4361. <p><em>Get all boards attached to a user</em></p>
  4362. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4363. <table>
  4364. <thead>
  4365. <tr>
  4366. <th>Name</th>
  4367. <th>In</th>
  4368. <th>Type</th>
  4369. <th>Required</th>
  4370. <th>Description</th>
  4371. </tr>
  4372. </thead>
  4373. <tbody>
  4374. <tr>
  4375. <td>user</td>
  4376. <td>path</td>
  4377. <td>string</td>
  4378. <td>true</td>
  4379. <td>the ID of the user to retrieve the data</td>
  4380. </tr>
  4381. </tbody>
  4382. </table>
  4383. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4384. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4385. <blockquote>
  4386. <p>Example responses</p>
  4387. </blockquote>
  4388. <blockquote>
  4389. <p>200 Response</p>
  4390. </blockquote>
  4391. <pre class="highlight tab tab-json"><code>[
  4392. {
  4393. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4394. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4395. }
  4396. ]
  4397. </code></pre>
  4398. <h3 id="get_boards_from_user-responses">Responses</h3>
  4399. <table>
  4400. <thead>
  4401. <tr>
  4402. <th>Status</th>
  4403. <th>Meaning</th>
  4404. <th>Description</th>
  4405. <th>Schema</th>
  4406. </tr>
  4407. </thead>
  4408. <tbody>
  4409. <tr>
  4410. <td>200</td>
  4411. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4412. <td>200 response</td>
  4413. <td>Inline</td>
  4414. </tr>
  4415. </tbody>
  4416. </table>
  4417. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4418. <p>Status Code <strong>200</strong></p>
  4419. <table>
  4420. <thead>
  4421. <tr>
  4422. <th>Name</th>
  4423. <th>Type</th>
  4424. <th>Required</th>
  4425. <th>Restrictions</th>
  4426. <th>Description</th>
  4427. </tr>
  4428. </thead>
  4429. <tbody>
  4430. <tr>
  4431. <td>» _id</td>
  4432. <td>string</td>
  4433. <td>false</td>
  4434. <td>none</td>
  4435. <td>none</td>
  4436. </tr>
  4437. <tr>
  4438. <td>» title</td>
  4439. <td>string</td>
  4440. <td>false</td>
  4441. <td>none</td>
  4442. <td>none</td>
  4443. </tr>
  4444. </tbody>
  4445. </table>
  4446. <aside class="warning">
  4447. To perform this operation, you must be authenticated by means of one of the following methods:
  4448. UserSecurity
  4449. </aside>
  4450. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4451. <h2 id="get_all_checklists">get_all_checklists</h2>
  4452. <p><a id="opIdget_all_checklists"></a></p>
  4453. <blockquote>
  4454. <p>Code samples</p>
  4455. </blockquote>
  4456. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4457. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4458. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4459. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4460. </code></pre>
  4461. <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>
  4462. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4463. </span></code></pre>
  4464. <pre class="highlight tab tab-javascript"><code>
  4465. <span class="hljs-keyword">const</span> headers = {
  4466. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4467. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4468. };
  4469. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4470. {
  4471. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4472. <span class="hljs-attr">headers</span>: headers
  4473. })
  4474. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4475. <span class="hljs-keyword">return</span> res.json();
  4476. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4477. <span class="hljs-built_in">console</span>.log(body);
  4478. });
  4479. </code></pre>
  4480. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4481. <span class="hljs-keyword">const</span> headers = {
  4482. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4483. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4484. };
  4485. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4486. {
  4487. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4488. <span class="hljs-attr">headers</span>: headers
  4489. })
  4490. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4491. <span class="hljs-keyword">return</span> res.json();
  4492. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4493. <span class="hljs-built_in">console</span>.log(body);
  4494. });
  4495. </code></pre>
  4496. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4497. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4498. headers = {
  4499. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4500. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4501. }
  4502. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4503. <span class="hljs-symbol">params:</span> {
  4504. }, <span class="hljs-symbol">headers:</span> headers
  4505. p JSON.parse(result)
  4506. </code></pre>
  4507. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4508. headers = {
  4509. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4510. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4511. }
  4512. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4513. <span class="hljs-built_in">print</span>(r.json())
  4514. </code></pre>
  4515. <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>);
  4516. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4517. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4518. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4519. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4520. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4521. String inputLine;
  4522. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4523. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4524. response.append(inputLine);
  4525. }
  4526. in.close();
  4527. System.out.println(response.toString());
  4528. </code></pre>
  4529. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4530. <span class="hljs-keyword">import</span> (
  4531. <span class="hljs-string">&quot;bytes&quot;</span>
  4532. <span class="hljs-string">&quot;net/http&quot;</span>
  4533. )
  4534. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4535. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4536. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4537. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4538. }
  4539. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4540. 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)
  4541. req.Header = headers
  4542. client := &amp;http.Client{}
  4543. resp, err := client.Do(req)
  4544. <span class="hljs-comment">// ...</span>
  4545. }
  4546. </code></pre>
  4547. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4548. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4549. );
  4550. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4551. <span class="hljs-comment">// Define array of request body.</span>
  4552. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4553. <span class="hljs-keyword">try</span> {
  4554. <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>(
  4555. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4556. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4557. )
  4558. );
  4559. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4560. }
  4561. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4562. <span class="hljs-comment">// handle exception or api errors.</span>
  4563. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4564. }
  4565. <span class="hljs-comment">// ...</span>
  4566. </code></pre>
  4567. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4568. <p><em>Get the list of checklists attached to a card</em></p>
  4569. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4570. <table>
  4571. <thead>
  4572. <tr>
  4573. <th>Name</th>
  4574. <th>In</th>
  4575. <th>Type</th>
  4576. <th>Required</th>
  4577. <th>Description</th>
  4578. </tr>
  4579. </thead>
  4580. <tbody>
  4581. <tr>
  4582. <td>board</td>
  4583. <td>path</td>
  4584. <td>string</td>
  4585. <td>true</td>
  4586. <td>the board ID</td>
  4587. </tr>
  4588. <tr>
  4589. <td>card</td>
  4590. <td>path</td>
  4591. <td>string</td>
  4592. <td>true</td>
  4593. <td>the card ID</td>
  4594. </tr>
  4595. </tbody>
  4596. </table>
  4597. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4598. <p><strong>board</strong>: the board ID</p>
  4599. <p><strong>card</strong>: the card ID</p>
  4600. <blockquote>
  4601. <p>Example responses</p>
  4602. </blockquote>
  4603. <blockquote>
  4604. <p>200 Response</p>
  4605. </blockquote>
  4606. <pre class="highlight tab tab-json"><code>[
  4607. {
  4608. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4609. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4610. }
  4611. ]
  4612. </code></pre>
  4613. <h3 id="get_all_checklists-responses">Responses</h3>
  4614. <table>
  4615. <thead>
  4616. <tr>
  4617. <th>Status</th>
  4618. <th>Meaning</th>
  4619. <th>Description</th>
  4620. <th>Schema</th>
  4621. </tr>
  4622. </thead>
  4623. <tbody>
  4624. <tr>
  4625. <td>200</td>
  4626. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4627. <td>200 response</td>
  4628. <td>Inline</td>
  4629. </tr>
  4630. </tbody>
  4631. </table>
  4632. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4633. <p>Status Code <strong>200</strong></p>
  4634. <table>
  4635. <thead>
  4636. <tr>
  4637. <th>Name</th>
  4638. <th>Type</th>
  4639. <th>Required</th>
  4640. <th>Restrictions</th>
  4641. <th>Description</th>
  4642. </tr>
  4643. </thead>
  4644. <tbody>
  4645. <tr>
  4646. <td>» _id</td>
  4647. <td>string</td>
  4648. <td>false</td>
  4649. <td>none</td>
  4650. <td>none</td>
  4651. </tr>
  4652. <tr>
  4653. <td>» title</td>
  4654. <td>string</td>
  4655. <td>false</td>
  4656. <td>none</td>
  4657. <td>none</td>
  4658. </tr>
  4659. </tbody>
  4660. </table>
  4661. <aside class="warning">
  4662. To perform this operation, you must be authenticated by means of one of the following methods:
  4663. UserSecurity
  4664. </aside>
  4665. <h2 id="new_checklist">new_checklist</h2>
  4666. <p><a id="opIdnew_checklist"></a></p>
  4667. <blockquote>
  4668. <p>Code samples</p>
  4669. </blockquote>
  4670. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4671. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4672. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4673. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4674. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4675. </code></pre>
  4676. <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>
  4677. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4678. Accept: application/json
  4679. </span></code></pre>
  4680. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4681. &quot;title&quot;: &quot;string&quot;,
  4682. &quot;items&quot;: &quot;string&quot;
  4683. }&#x27;</span>;
  4684. <span class="hljs-keyword">const</span> headers = {
  4685. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4686. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4687. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4688. };
  4689. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4690. {
  4691. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4692. <span class="hljs-attr">body</span>: inputBody,
  4693. <span class="hljs-attr">headers</span>: headers
  4694. })
  4695. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4696. <span class="hljs-keyword">return</span> res.json();
  4697. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4698. <span class="hljs-built_in">console</span>.log(body);
  4699. });
  4700. </code></pre>
  4701. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4702. <span class="hljs-keyword">const</span> inputBody = {
  4703. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4704. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4705. };
  4706. <span class="hljs-keyword">const</span> headers = {
  4707. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4708. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4709. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4710. };
  4711. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4712. {
  4713. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4714. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4715. <span class="hljs-attr">headers</span>: headers
  4716. })
  4717. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4718. <span class="hljs-keyword">return</span> res.json();
  4719. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4720. <span class="hljs-built_in">console</span>.log(body);
  4721. });
  4722. </code></pre>
  4723. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4724. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4725. headers = {
  4726. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4727. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4728. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4729. }
  4730. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4731. <span class="hljs-symbol">params:</span> {
  4732. }, <span class="hljs-symbol">headers:</span> headers
  4733. p JSON.parse(result)
  4734. </code></pre>
  4735. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4736. headers = {
  4737. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4738. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4739. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4740. }
  4741. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4742. <span class="hljs-built_in">print</span>(r.json())
  4743. </code></pre>
  4744. <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>);
  4745. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4746. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4747. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4748. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4749. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4750. String inputLine;
  4751. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4752. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4753. response.append(inputLine);
  4754. }
  4755. in.close();
  4756. System.out.println(response.toString());
  4757. </code></pre>
  4758. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4759. <span class="hljs-keyword">import</span> (
  4760. <span class="hljs-string">&quot;bytes&quot;</span>
  4761. <span class="hljs-string">&quot;net/http&quot;</span>
  4762. )
  4763. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4764. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4765. <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>},
  4766. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4767. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4768. }
  4769. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4770. 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)
  4771. req.Header = headers
  4772. client := &amp;http.Client{}
  4773. resp, err := client.Do(req)
  4774. <span class="hljs-comment">// ...</span>
  4775. }
  4776. </code></pre>
  4777. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4778. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4779. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4780. );
  4781. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4782. <span class="hljs-comment">// Define array of request body.</span>
  4783. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4784. <span class="hljs-keyword">try</span> {
  4785. <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>(
  4786. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4787. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4788. )
  4789. );
  4790. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4791. }
  4792. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4793. <span class="hljs-comment">// handle exception or api errors.</span>
  4794. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4795. }
  4796. <span class="hljs-comment">// ...</span>
  4797. </code></pre>
  4798. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4799. <p><em>create a new checklist</em></p>
  4800. <blockquote>
  4801. <p>Body parameter</p>
  4802. </blockquote>
  4803. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4804. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4805. </code></pre>
  4806. <h3 id="new_checklist-parameters">Parameters</h3>
  4807. <table>
  4808. <thead>
  4809. <tr>
  4810. <th>Name</th>
  4811. <th>In</th>
  4812. <th>Type</th>
  4813. <th>Required</th>
  4814. <th>Description</th>
  4815. </tr>
  4816. </thead>
  4817. <tbody>
  4818. <tr>
  4819. <td>board</td>
  4820. <td>path</td>
  4821. <td>string</td>
  4822. <td>true</td>
  4823. <td>the board ID</td>
  4824. </tr>
  4825. <tr>
  4826. <td>card</td>
  4827. <td>path</td>
  4828. <td>string</td>
  4829. <td>true</td>
  4830. <td>the card ID</td>
  4831. </tr>
  4832. <tr>
  4833. <td>body</td>
  4834. <td>body</td>
  4835. <td>object</td>
  4836. <td>true</td>
  4837. <td>none</td>
  4838. </tr>
  4839. <tr>
  4840. <td>» title</td>
  4841. <td>body</td>
  4842. <td>string</td>
  4843. <td>true</td>
  4844. <td>the title of the new checklist</td>
  4845. </tr>
  4846. <tr>
  4847. <td>» items</td>
  4848. <td>body</td>
  4849. <td>string</td>
  4850. <td>false</td>
  4851. <td>the list of items on the new checklist</td>
  4852. </tr>
  4853. </tbody>
  4854. </table>
  4855. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4856. <p><strong>board</strong>: the board ID</p>
  4857. <p><strong>card</strong>: the card ID</p>
  4858. <blockquote>
  4859. <p>Example responses</p>
  4860. </blockquote>
  4861. <blockquote>
  4862. <p>200 Response</p>
  4863. </blockquote>
  4864. <pre class="highlight tab tab-json"><code>{
  4865. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4866. }
  4867. </code></pre>
  4868. <h3 id="new_checklist-responses">Responses</h3>
  4869. <table>
  4870. <thead>
  4871. <tr>
  4872. <th>Status</th>
  4873. <th>Meaning</th>
  4874. <th>Description</th>
  4875. <th>Schema</th>
  4876. </tr>
  4877. </thead>
  4878. <tbody>
  4879. <tr>
  4880. <td>200</td>
  4881. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4882. <td>200 response</td>
  4883. <td>Inline</td>
  4884. </tr>
  4885. </tbody>
  4886. </table>
  4887. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4888. <p>Status Code <strong>200</strong></p>
  4889. <table>
  4890. <thead>
  4891. <tr>
  4892. <th>Name</th>
  4893. <th>Type</th>
  4894. <th>Required</th>
  4895. <th>Restrictions</th>
  4896. <th>Description</th>
  4897. </tr>
  4898. </thead>
  4899. <tbody>
  4900. <tr>
  4901. <td>» _id</td>
  4902. <td>string</td>
  4903. <td>false</td>
  4904. <td>none</td>
  4905. <td>none</td>
  4906. </tr>
  4907. </tbody>
  4908. </table>
  4909. <aside class="warning">
  4910. To perform this operation, you must be authenticated by means of one of the following methods:
  4911. UserSecurity
  4912. </aside>
  4913. <h2 id="get_checklist">get_checklist</h2>
  4914. <p><a id="opIdget_checklist"></a></p>
  4915. <blockquote>
  4916. <p>Code samples</p>
  4917. </blockquote>
  4918. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4919. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4920. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4921. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4922. </code></pre>
  4923. <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>
  4924. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4925. </span></code></pre>
  4926. <pre class="highlight tab tab-javascript"><code>
  4927. <span class="hljs-keyword">const</span> headers = {
  4928. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4929. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4930. };
  4931. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4932. {
  4933. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4934. <span class="hljs-attr">headers</span>: headers
  4935. })
  4936. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4937. <span class="hljs-keyword">return</span> res.json();
  4938. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4939. <span class="hljs-built_in">console</span>.log(body);
  4940. });
  4941. </code></pre>
  4942. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4943. <span class="hljs-keyword">const</span> headers = {
  4944. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4945. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4946. };
  4947. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4948. {
  4949. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4950. <span class="hljs-attr">headers</span>: headers
  4951. })
  4952. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4953. <span class="hljs-keyword">return</span> res.json();
  4954. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4955. <span class="hljs-built_in">console</span>.log(body);
  4956. });
  4957. </code></pre>
  4958. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4959. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4960. headers = {
  4961. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4962. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4963. }
  4964. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4965. <span class="hljs-symbol">params:</span> {
  4966. }, <span class="hljs-symbol">headers:</span> headers
  4967. p JSON.parse(result)
  4968. </code></pre>
  4969. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4970. headers = {
  4971. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4972. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4973. }
  4974. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4975. <span class="hljs-built_in">print</span>(r.json())
  4976. </code></pre>
  4977. <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>);
  4978. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4979. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4980. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4981. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4982. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4983. String inputLine;
  4984. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4985. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4986. response.append(inputLine);
  4987. }
  4988. in.close();
  4989. System.out.println(response.toString());
  4990. </code></pre>
  4991. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4992. <span class="hljs-keyword">import</span> (
  4993. <span class="hljs-string">&quot;bytes&quot;</span>
  4994. <span class="hljs-string">&quot;net/http&quot;</span>
  4995. )
  4996. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4997. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4998. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4999. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5000. }
  5001. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5002. 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)
  5003. req.Header = headers
  5004. client := &amp;http.Client{}
  5005. resp, err := client.Do(req)
  5006. <span class="hljs-comment">// ...</span>
  5007. }
  5008. </code></pre>
  5009. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5010. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5011. );
  5012. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5013. <span class="hljs-comment">// Define array of request body.</span>
  5014. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5015. <span class="hljs-keyword">try</span> {
  5016. <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>(
  5017. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5018. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5019. )
  5020. );
  5021. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5022. }
  5023. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5024. <span class="hljs-comment">// handle exception or api errors.</span>
  5025. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5026. }
  5027. <span class="hljs-comment">// ...</span>
  5028. </code></pre>
  5029. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5030. <p><em>Get a checklist</em></p>
  5031. <h3 id="get_checklist-parameters">Parameters</h3>
  5032. <table>
  5033. <thead>
  5034. <tr>
  5035. <th>Name</th>
  5036. <th>In</th>
  5037. <th>Type</th>
  5038. <th>Required</th>
  5039. <th>Description</th>
  5040. </tr>
  5041. </thead>
  5042. <tbody>
  5043. <tr>
  5044. <td>board</td>
  5045. <td>path</td>
  5046. <td>string</td>
  5047. <td>true</td>
  5048. <td>the board ID</td>
  5049. </tr>
  5050. <tr>
  5051. <td>card</td>
  5052. <td>path</td>
  5053. <td>string</td>
  5054. <td>true</td>
  5055. <td>the card ID</td>
  5056. </tr>
  5057. <tr>
  5058. <td>checklist</td>
  5059. <td>path</td>
  5060. <td>string</td>
  5061. <td>true</td>
  5062. <td>the ID of the checklist</td>
  5063. </tr>
  5064. </tbody>
  5065. </table>
  5066. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5067. <p><strong>board</strong>: the board ID</p>
  5068. <p><strong>card</strong>: the card ID</p>
  5069. <p><strong>checklist</strong>: the ID of the checklist</p>
  5070. <blockquote>
  5071. <p>Example responses</p>
  5072. </blockquote>
  5073. <blockquote>
  5074. <p>200 Response</p>
  5075. </blockquote>
  5076. <pre class="highlight tab tab-json"><code>{
  5077. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5078. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5079. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5080. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5081. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5082. <span class="hljs-attr">&quot;items&quot;</span>: [
  5083. {
  5084. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5085. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5086. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5087. }
  5088. ]
  5089. }
  5090. </code></pre>
  5091. <h3 id="get_checklist-responses">Responses</h3>
  5092. <table>
  5093. <thead>
  5094. <tr>
  5095. <th>Status</th>
  5096. <th>Meaning</th>
  5097. <th>Description</th>
  5098. <th>Schema</th>
  5099. </tr>
  5100. </thead>
  5101. <tbody>
  5102. <tr>
  5103. <td>200</td>
  5104. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5105. <td>200 response</td>
  5106. <td>Inline</td>
  5107. </tr>
  5108. </tbody>
  5109. </table>
  5110. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5111. <p>Status Code <strong>200</strong></p>
  5112. <table>
  5113. <thead>
  5114. <tr>
  5115. <th>Name</th>
  5116. <th>Type</th>
  5117. <th>Required</th>
  5118. <th>Restrictions</th>
  5119. <th>Description</th>
  5120. </tr>
  5121. </thead>
  5122. <tbody>
  5123. <tr>
  5124. <td>» cardId</td>
  5125. <td>string</td>
  5126. <td>false</td>
  5127. <td>none</td>
  5128. <td>none</td>
  5129. </tr>
  5130. <tr>
  5131. <td>» title</td>
  5132. <td>string</td>
  5133. <td>false</td>
  5134. <td>none</td>
  5135. <td>none</td>
  5136. </tr>
  5137. <tr>
  5138. <td>» finishedAt</td>
  5139. <td>string</td>
  5140. <td>false</td>
  5141. <td>none</td>
  5142. <td>none</td>
  5143. </tr>
  5144. <tr>
  5145. <td>» createdAt</td>
  5146. <td>string</td>
  5147. <td>false</td>
  5148. <td>none</td>
  5149. <td>none</td>
  5150. </tr>
  5151. <tr>
  5152. <td>» sort</td>
  5153. <td>number</td>
  5154. <td>false</td>
  5155. <td>none</td>
  5156. <td>none</td>
  5157. </tr>
  5158. <tr>
  5159. <td>» items</td>
  5160. <td>[object]</td>
  5161. <td>false</td>
  5162. <td>none</td>
  5163. <td>none</td>
  5164. </tr>
  5165. <tr>
  5166. <td>»» _id</td>
  5167. <td>string</td>
  5168. <td>false</td>
  5169. <td>none</td>
  5170. <td>none</td>
  5171. </tr>
  5172. <tr>
  5173. <td>»» title</td>
  5174. <td>string</td>
  5175. <td>false</td>
  5176. <td>none</td>
  5177. <td>none</td>
  5178. </tr>
  5179. <tr>
  5180. <td>»» isFinished</td>
  5181. <td>boolean</td>
  5182. <td>false</td>
  5183. <td>none</td>
  5184. <td>none</td>
  5185. </tr>
  5186. </tbody>
  5187. </table>
  5188. <aside class="warning">
  5189. To perform this operation, you must be authenticated by means of one of the following methods:
  5190. UserSecurity
  5191. </aside>
  5192. <h2 id="delete_checklist">delete_checklist</h2>
  5193. <p><a id="opIddelete_checklist"></a></p>
  5194. <blockquote>
  5195. <p>Code samples</p>
  5196. </blockquote>
  5197. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5198. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5199. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5200. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5201. </code></pre>
  5202. <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>
  5203. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5204. </span></code></pre>
  5205. <pre class="highlight tab tab-javascript"><code>
  5206. <span class="hljs-keyword">const</span> headers = {
  5207. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5208. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5209. };
  5210. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5211. {
  5212. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5213. <span class="hljs-attr">headers</span>: headers
  5214. })
  5215. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5216. <span class="hljs-keyword">return</span> res.json();
  5217. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5218. <span class="hljs-built_in">console</span>.log(body);
  5219. });
  5220. </code></pre>
  5221. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5222. <span class="hljs-keyword">const</span> headers = {
  5223. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5224. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5225. };
  5226. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5227. {
  5228. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5229. <span class="hljs-attr">headers</span>: headers
  5230. })
  5231. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5232. <span class="hljs-keyword">return</span> res.json();
  5233. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5234. <span class="hljs-built_in">console</span>.log(body);
  5235. });
  5236. </code></pre>
  5237. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5238. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5239. headers = {
  5240. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5241. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5242. }
  5243. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5244. <span class="hljs-symbol">params:</span> {
  5245. }, <span class="hljs-symbol">headers:</span> headers
  5246. p JSON.parse(result)
  5247. </code></pre>
  5248. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5249. headers = {
  5250. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5251. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5252. }
  5253. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5254. <span class="hljs-built_in">print</span>(r.json())
  5255. </code></pre>
  5256. <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>);
  5257. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5258. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5259. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5260. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5261. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5262. String inputLine;
  5263. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5264. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5265. response.append(inputLine);
  5266. }
  5267. in.close();
  5268. System.out.println(response.toString());
  5269. </code></pre>
  5270. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5271. <span class="hljs-keyword">import</span> (
  5272. <span class="hljs-string">&quot;bytes&quot;</span>
  5273. <span class="hljs-string">&quot;net/http&quot;</span>
  5274. )
  5275. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5276. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5277. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5278. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5279. }
  5280. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5281. 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)
  5282. req.Header = headers
  5283. client := &amp;http.Client{}
  5284. resp, err := client.Do(req)
  5285. <span class="hljs-comment">// ...</span>
  5286. }
  5287. </code></pre>
  5288. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5289. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5290. );
  5291. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5292. <span class="hljs-comment">// Define array of request body.</span>
  5293. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5294. <span class="hljs-keyword">try</span> {
  5295. <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>(
  5296. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5297. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5298. )
  5299. );
  5300. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5301. }
  5302. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5303. <span class="hljs-comment">// handle exception or api errors.</span>
  5304. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5305. }
  5306. <span class="hljs-comment">// ...</span>
  5307. </code></pre>
  5308. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5309. <p><em>Delete a checklist</em></p>
  5310. <p>The checklist will be removed, not put in the recycle bin.</p>
  5311. <h3 id="delete_checklist-parameters">Parameters</h3>
  5312. <table>
  5313. <thead>
  5314. <tr>
  5315. <th>Name</th>
  5316. <th>In</th>
  5317. <th>Type</th>
  5318. <th>Required</th>
  5319. <th>Description</th>
  5320. </tr>
  5321. </thead>
  5322. <tbody>
  5323. <tr>
  5324. <td>board</td>
  5325. <td>path</td>
  5326. <td>string</td>
  5327. <td>true</td>
  5328. <td>the board ID</td>
  5329. </tr>
  5330. <tr>
  5331. <td>card</td>
  5332. <td>path</td>
  5333. <td>string</td>
  5334. <td>true</td>
  5335. <td>the card ID</td>
  5336. </tr>
  5337. <tr>
  5338. <td>checklist</td>
  5339. <td>path</td>
  5340. <td>string</td>
  5341. <td>true</td>
  5342. <td>the ID of the checklist to remove</td>
  5343. </tr>
  5344. </tbody>
  5345. </table>
  5346. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5347. <p><strong>board</strong>: the board ID</p>
  5348. <p><strong>card</strong>: the card ID</p>
  5349. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5350. <blockquote>
  5351. <p>Example responses</p>
  5352. </blockquote>
  5353. <blockquote>
  5354. <p>200 Response</p>
  5355. </blockquote>
  5356. <pre class="highlight tab tab-json"><code>{
  5357. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5358. }
  5359. </code></pre>
  5360. <h3 id="delete_checklist-responses">Responses</h3>
  5361. <table>
  5362. <thead>
  5363. <tr>
  5364. <th>Status</th>
  5365. <th>Meaning</th>
  5366. <th>Description</th>
  5367. <th>Schema</th>
  5368. </tr>
  5369. </thead>
  5370. <tbody>
  5371. <tr>
  5372. <td>200</td>
  5373. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5374. <td>200 response</td>
  5375. <td>Inline</td>
  5376. </tr>
  5377. </tbody>
  5378. </table>
  5379. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5380. <p>Status Code <strong>200</strong></p>
  5381. <table>
  5382. <thead>
  5383. <tr>
  5384. <th>Name</th>
  5385. <th>Type</th>
  5386. <th>Required</th>
  5387. <th>Restrictions</th>
  5388. <th>Description</th>
  5389. </tr>
  5390. </thead>
  5391. <tbody>
  5392. <tr>
  5393. <td>» _id</td>
  5394. <td>string</td>
  5395. <td>false</td>
  5396. <td>none</td>
  5397. <td>none</td>
  5398. </tr>
  5399. </tbody>
  5400. </table>
  5401. <aside class="warning">
  5402. To perform this operation, you must be authenticated by means of one of the following methods:
  5403. UserSecurity
  5404. </aside>
  5405. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5406. <h2 id="get_checklist_item">get_checklist_item</h2>
  5407. <p><a id="opIdget_checklist_item"></a></p>
  5408. <blockquote>
  5409. <p>Code samples</p>
  5410. </blockquote>
  5411. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5412. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5413. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5414. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5415. </code></pre>
  5416. <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>
  5417. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5418. </span></code></pre>
  5419. <pre class="highlight tab tab-javascript"><code>
  5420. <span class="hljs-keyword">const</span> headers = {
  5421. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5422. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5423. };
  5424. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5425. {
  5426. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5427. <span class="hljs-attr">headers</span>: headers
  5428. })
  5429. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5430. <span class="hljs-keyword">return</span> res.json();
  5431. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5432. <span class="hljs-built_in">console</span>.log(body);
  5433. });
  5434. </code></pre>
  5435. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5436. <span class="hljs-keyword">const</span> headers = {
  5437. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5438. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5439. };
  5440. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5441. {
  5442. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5443. <span class="hljs-attr">headers</span>: headers
  5444. })
  5445. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5446. <span class="hljs-keyword">return</span> res.json();
  5447. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5448. <span class="hljs-built_in">console</span>.log(body);
  5449. });
  5450. </code></pre>
  5451. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5452. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5453. headers = {
  5454. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5455. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5456. }
  5457. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5458. <span class="hljs-symbol">params:</span> {
  5459. }, <span class="hljs-symbol">headers:</span> headers
  5460. p JSON.parse(result)
  5461. </code></pre>
  5462. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5463. headers = {
  5464. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5465. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5466. }
  5467. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5468. <span class="hljs-built_in">print</span>(r.json())
  5469. </code></pre>
  5470. <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>);
  5471. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5472. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5473. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5474. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5475. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5476. String inputLine;
  5477. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5478. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5479. response.append(inputLine);
  5480. }
  5481. in.close();
  5482. System.out.println(response.toString());
  5483. </code></pre>
  5484. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5485. <span class="hljs-keyword">import</span> (
  5486. <span class="hljs-string">&quot;bytes&quot;</span>
  5487. <span class="hljs-string">&quot;net/http&quot;</span>
  5488. )
  5489. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5490. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5491. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5492. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5493. }
  5494. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5495. 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)
  5496. req.Header = headers
  5497. client := &amp;http.Client{}
  5498. resp, err := client.Do(req)
  5499. <span class="hljs-comment">// ...</span>
  5500. }
  5501. </code></pre>
  5502. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5503. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5504. );
  5505. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5506. <span class="hljs-comment">// Define array of request body.</span>
  5507. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5508. <span class="hljs-keyword">try</span> {
  5509. <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>(
  5510. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5511. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5512. )
  5513. );
  5514. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5515. }
  5516. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5517. <span class="hljs-comment">// handle exception or api errors.</span>
  5518. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5519. }
  5520. <span class="hljs-comment">// ...</span>
  5521. </code></pre>
  5522. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5523. <p><em>Get a checklist item</em></p>
  5524. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5525. <table>
  5526. <thead>
  5527. <tr>
  5528. <th>Name</th>
  5529. <th>In</th>
  5530. <th>Type</th>
  5531. <th>Required</th>
  5532. <th>Description</th>
  5533. </tr>
  5534. </thead>
  5535. <tbody>
  5536. <tr>
  5537. <td>board</td>
  5538. <td>path</td>
  5539. <td>string</td>
  5540. <td>true</td>
  5541. <td>the board ID</td>
  5542. </tr>
  5543. <tr>
  5544. <td>card</td>
  5545. <td>path</td>
  5546. <td>string</td>
  5547. <td>true</td>
  5548. <td>the card ID</td>
  5549. </tr>
  5550. <tr>
  5551. <td>checklist</td>
  5552. <td>path</td>
  5553. <td>string</td>
  5554. <td>true</td>
  5555. <td>the checklist ID</td>
  5556. </tr>
  5557. <tr>
  5558. <td>item</td>
  5559. <td>path</td>
  5560. <td>string</td>
  5561. <td>true</td>
  5562. <td>the ID of the item</td>
  5563. </tr>
  5564. </tbody>
  5565. </table>
  5566. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5567. <p><strong>board</strong>: the board ID</p>
  5568. <p><strong>card</strong>: the card ID</p>
  5569. <p><strong>checklist</strong>: the checklist ID</p>
  5570. <p><strong>item</strong>: the ID of the item</p>
  5571. <blockquote>
  5572. <p>Example responses</p>
  5573. </blockquote>
  5574. <blockquote>
  5575. <p>200 Response</p>
  5576. </blockquote>
  5577. <pre class="highlight tab tab-json"><code>{
  5578. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5579. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5580. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5581. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5582. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5583. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5584. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5585. }
  5586. </code></pre>
  5587. <h3 id="get_checklist_item-responses">Responses</h3>
  5588. <table>
  5589. <thead>
  5590. <tr>
  5591. <th>Status</th>
  5592. <th>Meaning</th>
  5593. <th>Description</th>
  5594. <th>Schema</th>
  5595. </tr>
  5596. </thead>
  5597. <tbody>
  5598. <tr>
  5599. <td>200</td>
  5600. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5601. <td>200 response</td>
  5602. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5603. </tr>
  5604. </tbody>
  5605. </table>
  5606. <aside class="warning">
  5607. To perform this operation, you must be authenticated by means of one of the following methods:
  5608. UserSecurity
  5609. </aside>
  5610. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5611. <p><a id="opIdedit_checklist_item"></a></p>
  5612. <blockquote>
  5613. <p>Code samples</p>
  5614. </blockquote>
  5615. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5616. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5617. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5618. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5619. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5620. </code></pre>
  5621. <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>
  5622. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5623. Accept: application/json
  5624. </span></code></pre>
  5625. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5626. &quot;isFinished&quot;: &quot;string&quot;,
  5627. &quot;title&quot;: &quot;string&quot;
  5628. }&#x27;</span>;
  5629. <span class="hljs-keyword">const</span> headers = {
  5630. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5631. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5632. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5633. };
  5634. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5635. {
  5636. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5637. <span class="hljs-attr">body</span>: inputBody,
  5638. <span class="hljs-attr">headers</span>: headers
  5639. })
  5640. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5641. <span class="hljs-keyword">return</span> res.json();
  5642. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5643. <span class="hljs-built_in">console</span>.log(body);
  5644. });
  5645. </code></pre>
  5646. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5647. <span class="hljs-keyword">const</span> inputBody = {
  5648. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5649. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5650. };
  5651. <span class="hljs-keyword">const</span> headers = {
  5652. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5653. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5654. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5655. };
  5656. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5657. {
  5658. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5659. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5660. <span class="hljs-attr">headers</span>: headers
  5661. })
  5662. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5663. <span class="hljs-keyword">return</span> res.json();
  5664. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5665. <span class="hljs-built_in">console</span>.log(body);
  5666. });
  5667. </code></pre>
  5668. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5669. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5670. headers = {
  5671. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5672. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5673. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5674. }
  5675. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5676. <span class="hljs-symbol">params:</span> {
  5677. }, <span class="hljs-symbol">headers:</span> headers
  5678. p JSON.parse(result)
  5679. </code></pre>
  5680. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5681. headers = {
  5682. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5683. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5684. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5685. }
  5686. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5687. <span class="hljs-built_in">print</span>(r.json())
  5688. </code></pre>
  5689. <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>);
  5690. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5691. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5692. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5693. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5694. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5695. String inputLine;
  5696. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5697. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5698. response.append(inputLine);
  5699. }
  5700. in.close();
  5701. System.out.println(response.toString());
  5702. </code></pre>
  5703. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5704. <span class="hljs-keyword">import</span> (
  5705. <span class="hljs-string">&quot;bytes&quot;</span>
  5706. <span class="hljs-string">&quot;net/http&quot;</span>
  5707. )
  5708. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5709. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5710. <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>},
  5711. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5712. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5713. }
  5714. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5715. 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)
  5716. req.Header = headers
  5717. client := &amp;http.Client{}
  5718. resp, err := client.Do(req)
  5719. <span class="hljs-comment">// ...</span>
  5720. }
  5721. </code></pre>
  5722. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5723. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5724. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5725. );
  5726. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5727. <span class="hljs-comment">// Define array of request body.</span>
  5728. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5729. <span class="hljs-keyword">try</span> {
  5730. <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>(
  5731. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5732. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5733. )
  5734. );
  5735. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5736. }
  5737. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5738. <span class="hljs-comment">// handle exception or api errors.</span>
  5739. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5740. }
  5741. <span class="hljs-comment">// ...</span>
  5742. </code></pre>
  5743. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5744. <p><em>Edit a checklist item</em></p>
  5745. <blockquote>
  5746. <p>Body parameter</p>
  5747. </blockquote>
  5748. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5749. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5750. </code></pre>
  5751. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5752. <table>
  5753. <thead>
  5754. <tr>
  5755. <th>Name</th>
  5756. <th>In</th>
  5757. <th>Type</th>
  5758. <th>Required</th>
  5759. <th>Description</th>
  5760. </tr>
  5761. </thead>
  5762. <tbody>
  5763. <tr>
  5764. <td>board</td>
  5765. <td>path</td>
  5766. <td>string</td>
  5767. <td>true</td>
  5768. <td>the board ID</td>
  5769. </tr>
  5770. <tr>
  5771. <td>card</td>
  5772. <td>path</td>
  5773. <td>string</td>
  5774. <td>true</td>
  5775. <td>the card ID</td>
  5776. </tr>
  5777. <tr>
  5778. <td>checklist</td>
  5779. <td>path</td>
  5780. <td>string</td>
  5781. <td>true</td>
  5782. <td>the checklist ID</td>
  5783. </tr>
  5784. <tr>
  5785. <td>item</td>
  5786. <td>path</td>
  5787. <td>string</td>
  5788. <td>true</td>
  5789. <td>the ID of the item</td>
  5790. </tr>
  5791. <tr>
  5792. <td>body</td>
  5793. <td>body</td>
  5794. <td>object</td>
  5795. <td>false</td>
  5796. <td>none</td>
  5797. </tr>
  5798. <tr>
  5799. <td>» isFinished</td>
  5800. <td>body</td>
  5801. <td>string</td>
  5802. <td>false</td>
  5803. <td>is the item checked?</td>
  5804. </tr>
  5805. <tr>
  5806. <td>» title</td>
  5807. <td>body</td>
  5808. <td>string</td>
  5809. <td>false</td>
  5810. <td>the new text of the item</td>
  5811. </tr>
  5812. </tbody>
  5813. </table>
  5814. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5815. <p><strong>board</strong>: the board ID</p>
  5816. <p><strong>card</strong>: the card ID</p>
  5817. <p><strong>checklist</strong>: the checklist ID</p>
  5818. <p><strong>item</strong>: the ID of the item</p>
  5819. <blockquote>
  5820. <p>Example responses</p>
  5821. </blockquote>
  5822. <blockquote>
  5823. <p>200 Response</p>
  5824. </blockquote>
  5825. <pre class="highlight tab tab-json"><code>{
  5826. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5827. }
  5828. </code></pre>
  5829. <h3 id="edit_checklist_item-responses">Responses</h3>
  5830. <table>
  5831. <thead>
  5832. <tr>
  5833. <th>Status</th>
  5834. <th>Meaning</th>
  5835. <th>Description</th>
  5836. <th>Schema</th>
  5837. </tr>
  5838. </thead>
  5839. <tbody>
  5840. <tr>
  5841. <td>200</td>
  5842. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5843. <td>200 response</td>
  5844. <td>Inline</td>
  5845. </tr>
  5846. </tbody>
  5847. </table>
  5848. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5849. <p>Status Code <strong>200</strong></p>
  5850. <table>
  5851. <thead>
  5852. <tr>
  5853. <th>Name</th>
  5854. <th>Type</th>
  5855. <th>Required</th>
  5856. <th>Restrictions</th>
  5857. <th>Description</th>
  5858. </tr>
  5859. </thead>
  5860. <tbody>
  5861. <tr>
  5862. <td>» _id</td>
  5863. <td>string</td>
  5864. <td>false</td>
  5865. <td>none</td>
  5866. <td>none</td>
  5867. </tr>
  5868. </tbody>
  5869. </table>
  5870. <aside class="warning">
  5871. To perform this operation, you must be authenticated by means of one of the following methods:
  5872. UserSecurity
  5873. </aside>
  5874. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5875. <p><a id="opIddelete_checklist_item"></a></p>
  5876. <blockquote>
  5877. <p>Code samples</p>
  5878. </blockquote>
  5879. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5880. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5881. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5882. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5883. </code></pre>
  5884. <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>
  5885. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5886. </span></code></pre>
  5887. <pre class="highlight tab tab-javascript"><code>
  5888. <span class="hljs-keyword">const</span> headers = {
  5889. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5890. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5891. };
  5892. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5893. {
  5894. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5895. <span class="hljs-attr">headers</span>: headers
  5896. })
  5897. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5898. <span class="hljs-keyword">return</span> res.json();
  5899. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5900. <span class="hljs-built_in">console</span>.log(body);
  5901. });
  5902. </code></pre>
  5903. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5904. <span class="hljs-keyword">const</span> headers = {
  5905. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5906. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5907. };
  5908. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5909. {
  5910. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5911. <span class="hljs-attr">headers</span>: headers
  5912. })
  5913. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5914. <span class="hljs-keyword">return</span> res.json();
  5915. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5916. <span class="hljs-built_in">console</span>.log(body);
  5917. });
  5918. </code></pre>
  5919. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5920. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5921. headers = {
  5922. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5923. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5924. }
  5925. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5926. <span class="hljs-symbol">params:</span> {
  5927. }, <span class="hljs-symbol">headers:</span> headers
  5928. p JSON.parse(result)
  5929. </code></pre>
  5930. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5931. headers = {
  5932. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5933. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5934. }
  5935. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5936. <span class="hljs-built_in">print</span>(r.json())
  5937. </code></pre>
  5938. <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>);
  5939. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5940. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5941. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5942. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5943. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5944. String inputLine;
  5945. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5946. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5947. response.append(inputLine);
  5948. }
  5949. in.close();
  5950. System.out.println(response.toString());
  5951. </code></pre>
  5952. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5953. <span class="hljs-keyword">import</span> (
  5954. <span class="hljs-string">&quot;bytes&quot;</span>
  5955. <span class="hljs-string">&quot;net/http&quot;</span>
  5956. )
  5957. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5958. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5959. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5960. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5961. }
  5962. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5963. 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)
  5964. req.Header = headers
  5965. client := &amp;http.Client{}
  5966. resp, err := client.Do(req)
  5967. <span class="hljs-comment">// ...</span>
  5968. }
  5969. </code></pre>
  5970. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5971. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5972. );
  5973. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5974. <span class="hljs-comment">// Define array of request body.</span>
  5975. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5976. <span class="hljs-keyword">try</span> {
  5977. <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>(
  5978. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5979. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5980. )
  5981. );
  5982. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5983. }
  5984. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5985. <span class="hljs-comment">// handle exception or api errors.</span>
  5986. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5987. }
  5988. <span class="hljs-comment">// ...</span>
  5989. </code></pre>
  5990. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5991. <p><em>Delete a checklist item</em></p>
  5992. <p>Note: this operation can't be reverted.</p>
  5993. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5994. <table>
  5995. <thead>
  5996. <tr>
  5997. <th>Name</th>
  5998. <th>In</th>
  5999. <th>Type</th>
  6000. <th>Required</th>
  6001. <th>Description</th>
  6002. </tr>
  6003. </thead>
  6004. <tbody>
  6005. <tr>
  6006. <td>board</td>
  6007. <td>path</td>
  6008. <td>string</td>
  6009. <td>true</td>
  6010. <td>the board ID</td>
  6011. </tr>
  6012. <tr>
  6013. <td>card</td>
  6014. <td>path</td>
  6015. <td>string</td>
  6016. <td>true</td>
  6017. <td>the card ID</td>
  6018. </tr>
  6019. <tr>
  6020. <td>checklist</td>
  6021. <td>path</td>
  6022. <td>string</td>
  6023. <td>true</td>
  6024. <td>the checklist ID</td>
  6025. </tr>
  6026. <tr>
  6027. <td>item</td>
  6028. <td>path</td>
  6029. <td>string</td>
  6030. <td>true</td>
  6031. <td>the ID of the item to be removed</td>
  6032. </tr>
  6033. </tbody>
  6034. </table>
  6035. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6036. <p><strong>board</strong>: the board ID</p>
  6037. <p><strong>card</strong>: the card ID</p>
  6038. <p><strong>checklist</strong>: the checklist ID</p>
  6039. <p><strong>item</strong>: the ID of the item to be removed</p>
  6040. <blockquote>
  6041. <p>Example responses</p>
  6042. </blockquote>
  6043. <blockquote>
  6044. <p>200 Response</p>
  6045. </blockquote>
  6046. <pre class="highlight tab tab-json"><code>{
  6047. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6048. }
  6049. </code></pre>
  6050. <h3 id="delete_checklist_item-responses">Responses</h3>
  6051. <table>
  6052. <thead>
  6053. <tr>
  6054. <th>Status</th>
  6055. <th>Meaning</th>
  6056. <th>Description</th>
  6057. <th>Schema</th>
  6058. </tr>
  6059. </thead>
  6060. <tbody>
  6061. <tr>
  6062. <td>200</td>
  6063. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6064. <td>200 response</td>
  6065. <td>Inline</td>
  6066. </tr>
  6067. </tbody>
  6068. </table>
  6069. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6070. <p>Status Code <strong>200</strong></p>
  6071. <table>
  6072. <thead>
  6073. <tr>
  6074. <th>Name</th>
  6075. <th>Type</th>
  6076. <th>Required</th>
  6077. <th>Restrictions</th>
  6078. <th>Description</th>
  6079. </tr>
  6080. </thead>
  6081. <tbody>
  6082. <tr>
  6083. <td>» _id</td>
  6084. <td>string</td>
  6085. <td>false</td>
  6086. <td>none</td>
  6087. <td>none</td>
  6088. </tr>
  6089. </tbody>
  6090. </table>
  6091. <aside class="warning">
  6092. To perform this operation, you must be authenticated by means of one of the following methods:
  6093. UserSecurity
  6094. </aside>
  6095. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6096. <h2 id="get_all_comments">get_all_comments</h2>
  6097. <p><a id="opIdget_all_comments"></a></p>
  6098. <blockquote>
  6099. <p>Code samples</p>
  6100. </blockquote>
  6101. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6102. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6103. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6104. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6105. </code></pre>
  6106. <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>
  6107. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6108. </span></code></pre>
  6109. <pre class="highlight tab tab-javascript"><code>
  6110. <span class="hljs-keyword">const</span> headers = {
  6111. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6112. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6113. };
  6114. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6115. {
  6116. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6117. <span class="hljs-attr">headers</span>: headers
  6118. })
  6119. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6120. <span class="hljs-keyword">return</span> res.json();
  6121. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6122. <span class="hljs-built_in">console</span>.log(body);
  6123. });
  6124. </code></pre>
  6125. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6126. <span class="hljs-keyword">const</span> headers = {
  6127. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6128. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6129. };
  6130. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6131. {
  6132. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6133. <span class="hljs-attr">headers</span>: headers
  6134. })
  6135. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6136. <span class="hljs-keyword">return</span> res.json();
  6137. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6138. <span class="hljs-built_in">console</span>.log(body);
  6139. });
  6140. </code></pre>
  6141. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6142. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6143. headers = {
  6144. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6145. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6146. }
  6147. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6148. <span class="hljs-symbol">params:</span> {
  6149. }, <span class="hljs-symbol">headers:</span> headers
  6150. p JSON.parse(result)
  6151. </code></pre>
  6152. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6153. headers = {
  6154. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6155. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6156. }
  6157. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6158. <span class="hljs-built_in">print</span>(r.json())
  6159. </code></pre>
  6160. <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>);
  6161. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6162. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6163. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6164. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6165. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6166. String inputLine;
  6167. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6168. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6169. response.append(inputLine);
  6170. }
  6171. in.close();
  6172. System.out.println(response.toString());
  6173. </code></pre>
  6174. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6175. <span class="hljs-keyword">import</span> (
  6176. <span class="hljs-string">&quot;bytes&quot;</span>
  6177. <span class="hljs-string">&quot;net/http&quot;</span>
  6178. )
  6179. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6180. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6181. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6182. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6183. }
  6184. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6185. 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)
  6186. req.Header = headers
  6187. client := &amp;http.Client{}
  6188. resp, err := client.Do(req)
  6189. <span class="hljs-comment">// ...</span>
  6190. }
  6191. </code></pre>
  6192. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6193. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6194. );
  6195. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6196. <span class="hljs-comment">// Define array of request body.</span>
  6197. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6198. <span class="hljs-keyword">try</span> {
  6199. <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>(
  6200. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6201. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6202. )
  6203. );
  6204. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6205. }
  6206. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6207. <span class="hljs-comment">// handle exception or api errors.</span>
  6208. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6209. }
  6210. <span class="hljs-comment">// ...</span>
  6211. </code></pre>
  6212. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6213. <p><em>Get all comments attached to a card</em></p>
  6214. <h3 id="get_all_comments-parameters">Parameters</h3>
  6215. <table>
  6216. <thead>
  6217. <tr>
  6218. <th>Name</th>
  6219. <th>In</th>
  6220. <th>Type</th>
  6221. <th>Required</th>
  6222. <th>Description</th>
  6223. </tr>
  6224. </thead>
  6225. <tbody>
  6226. <tr>
  6227. <td>board</td>
  6228. <td>path</td>
  6229. <td>string</td>
  6230. <td>true</td>
  6231. <td>the board ID of the card</td>
  6232. </tr>
  6233. <tr>
  6234. <td>card</td>
  6235. <td>path</td>
  6236. <td>string</td>
  6237. <td>true</td>
  6238. <td>the ID of the card</td>
  6239. </tr>
  6240. </tbody>
  6241. </table>
  6242. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6243. <p><strong>board</strong>: the board ID of the card</p>
  6244. <p><strong>card</strong>: the ID of the card</p>
  6245. <blockquote>
  6246. <p>Example responses</p>
  6247. </blockquote>
  6248. <blockquote>
  6249. <p>200 Response</p>
  6250. </blockquote>
  6251. <pre class="highlight tab tab-json"><code>[
  6252. {
  6253. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6254. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6255. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6256. }
  6257. ]
  6258. </code></pre>
  6259. <h3 id="get_all_comments-responses">Responses</h3>
  6260. <table>
  6261. <thead>
  6262. <tr>
  6263. <th>Status</th>
  6264. <th>Meaning</th>
  6265. <th>Description</th>
  6266. <th>Schema</th>
  6267. </tr>
  6268. </thead>
  6269. <tbody>
  6270. <tr>
  6271. <td>200</td>
  6272. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6273. <td>200 response</td>
  6274. <td>Inline</td>
  6275. </tr>
  6276. </tbody>
  6277. </table>
  6278. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6279. <p>Status Code <strong>200</strong></p>
  6280. <table>
  6281. <thead>
  6282. <tr>
  6283. <th>Name</th>
  6284. <th>Type</th>
  6285. <th>Required</th>
  6286. <th>Restrictions</th>
  6287. <th>Description</th>
  6288. </tr>
  6289. </thead>
  6290. <tbody>
  6291. <tr>
  6292. <td>» _id</td>
  6293. <td>string</td>
  6294. <td>false</td>
  6295. <td>none</td>
  6296. <td>none</td>
  6297. </tr>
  6298. <tr>
  6299. <td>» comment</td>
  6300. <td>string</td>
  6301. <td>false</td>
  6302. <td>none</td>
  6303. <td>none</td>
  6304. </tr>
  6305. <tr>
  6306. <td>» authorId</td>
  6307. <td>string</td>
  6308. <td>false</td>
  6309. <td>none</td>
  6310. <td>none</td>
  6311. </tr>
  6312. </tbody>
  6313. </table>
  6314. <aside class="warning">
  6315. To perform this operation, you must be authenticated by means of one of the following methods:
  6316. UserSecurity
  6317. </aside>
  6318. <h2 id="new_comment">new_comment</h2>
  6319. <p><a id="opIdnew_comment"></a></p>
  6320. <blockquote>
  6321. <p>Code samples</p>
  6322. </blockquote>
  6323. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6324. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6325. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6326. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6327. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6328. </code></pre>
  6329. <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>
  6330. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6331. Accept: application/json
  6332. </span></code></pre>
  6333. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6334. &quot;authorId&quot;: &quot;string&quot;,
  6335. &quot;comment&quot;: &quot;string&quot;
  6336. }&#x27;</span>;
  6337. <span class="hljs-keyword">const</span> headers = {
  6338. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6339. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6340. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6341. };
  6342. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6343. {
  6344. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6345. <span class="hljs-attr">body</span>: inputBody,
  6346. <span class="hljs-attr">headers</span>: headers
  6347. })
  6348. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6349. <span class="hljs-keyword">return</span> res.json();
  6350. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6351. <span class="hljs-built_in">console</span>.log(body);
  6352. });
  6353. </code></pre>
  6354. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6355. <span class="hljs-keyword">const</span> inputBody = {
  6356. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6357. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6358. };
  6359. <span class="hljs-keyword">const</span> headers = {
  6360. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6361. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6362. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6363. };
  6364. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6365. {
  6366. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6367. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6368. <span class="hljs-attr">headers</span>: headers
  6369. })
  6370. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6371. <span class="hljs-keyword">return</span> res.json();
  6372. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6373. <span class="hljs-built_in">console</span>.log(body);
  6374. });
  6375. </code></pre>
  6376. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6377. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6378. headers = {
  6379. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6380. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6381. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6382. }
  6383. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6384. <span class="hljs-symbol">params:</span> {
  6385. }, <span class="hljs-symbol">headers:</span> headers
  6386. p JSON.parse(result)
  6387. </code></pre>
  6388. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6389. headers = {
  6390. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6391. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6392. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6393. }
  6394. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6395. <span class="hljs-built_in">print</span>(r.json())
  6396. </code></pre>
  6397. <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>);
  6398. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6399. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6400. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6401. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6402. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6403. String inputLine;
  6404. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6405. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6406. response.append(inputLine);
  6407. }
  6408. in.close();
  6409. System.out.println(response.toString());
  6410. </code></pre>
  6411. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6412. <span class="hljs-keyword">import</span> (
  6413. <span class="hljs-string">&quot;bytes&quot;</span>
  6414. <span class="hljs-string">&quot;net/http&quot;</span>
  6415. )
  6416. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6417. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6418. <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>},
  6419. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6420. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6421. }
  6422. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6423. 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)
  6424. req.Header = headers
  6425. client := &amp;http.Client{}
  6426. resp, err := client.Do(req)
  6427. <span class="hljs-comment">// ...</span>
  6428. }
  6429. </code></pre>
  6430. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6431. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6432. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6433. );
  6434. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6435. <span class="hljs-comment">// Define array of request body.</span>
  6436. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6437. <span class="hljs-keyword">try</span> {
  6438. <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>(
  6439. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6440. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6441. )
  6442. );
  6443. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6444. }
  6445. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6446. <span class="hljs-comment">// handle exception or api errors.</span>
  6447. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6448. }
  6449. <span class="hljs-comment">// ...</span>
  6450. </code></pre>
  6451. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6452. <p><em>Add a comment on a card</em></p>
  6453. <blockquote>
  6454. <p>Body parameter</p>
  6455. </blockquote>
  6456. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6457. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6458. </code></pre>
  6459. <h3 id="new_comment-parameters">Parameters</h3>
  6460. <table>
  6461. <thead>
  6462. <tr>
  6463. <th>Name</th>
  6464. <th>In</th>
  6465. <th>Type</th>
  6466. <th>Required</th>
  6467. <th>Description</th>
  6468. </tr>
  6469. </thead>
  6470. <tbody>
  6471. <tr>
  6472. <td>board</td>
  6473. <td>path</td>
  6474. <td>string</td>
  6475. <td>true</td>
  6476. <td>the board ID of the card</td>
  6477. </tr>
  6478. <tr>
  6479. <td>card</td>
  6480. <td>path</td>
  6481. <td>string</td>
  6482. <td>true</td>
  6483. <td>the ID of the card</td>
  6484. </tr>
  6485. <tr>
  6486. <td>body</td>
  6487. <td>body</td>
  6488. <td>object</td>
  6489. <td>true</td>
  6490. <td>none</td>
  6491. </tr>
  6492. <tr>
  6493. <td>» authorId</td>
  6494. <td>body</td>
  6495. <td>string</td>
  6496. <td>true</td>
  6497. <td>the user who 'posted' the comment</td>
  6498. </tr>
  6499. <tr>
  6500. <td>» comment</td>
  6501. <td>body</td>
  6502. <td>string</td>
  6503. <td>true</td>
  6504. <td>the comment value</td>
  6505. </tr>
  6506. </tbody>
  6507. </table>
  6508. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6509. <p><strong>board</strong>: the board ID of the card</p>
  6510. <p><strong>card</strong>: the ID of the card</p>
  6511. <blockquote>
  6512. <p>Example responses</p>
  6513. </blockquote>
  6514. <blockquote>
  6515. <p>200 Response</p>
  6516. </blockquote>
  6517. <pre class="highlight tab tab-json"><code>{
  6518. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6519. }
  6520. </code></pre>
  6521. <h3 id="new_comment-responses">Responses</h3>
  6522. <table>
  6523. <thead>
  6524. <tr>
  6525. <th>Status</th>
  6526. <th>Meaning</th>
  6527. <th>Description</th>
  6528. <th>Schema</th>
  6529. </tr>
  6530. </thead>
  6531. <tbody>
  6532. <tr>
  6533. <td>200</td>
  6534. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6535. <td>200 response</td>
  6536. <td>Inline</td>
  6537. </tr>
  6538. </tbody>
  6539. </table>
  6540. <h3 id="new_comment-responseschema">Response Schema</h3>
  6541. <p>Status Code <strong>200</strong></p>
  6542. <table>
  6543. <thead>
  6544. <tr>
  6545. <th>Name</th>
  6546. <th>Type</th>
  6547. <th>Required</th>
  6548. <th>Restrictions</th>
  6549. <th>Description</th>
  6550. </tr>
  6551. </thead>
  6552. <tbody>
  6553. <tr>
  6554. <td>» _id</td>
  6555. <td>string</td>
  6556. <td>false</td>
  6557. <td>none</td>
  6558. <td>none</td>
  6559. </tr>
  6560. </tbody>
  6561. </table>
  6562. <aside class="warning">
  6563. To perform this operation, you must be authenticated by means of one of the following methods:
  6564. UserSecurity
  6565. </aside>
  6566. <h2 id="get_comment">get_comment</h2>
  6567. <p><a id="opIdget_comment"></a></p>
  6568. <blockquote>
  6569. <p>Code samples</p>
  6570. </blockquote>
  6571. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6572. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6573. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6574. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6575. </code></pre>
  6576. <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>
  6577. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6578. </span></code></pre>
  6579. <pre class="highlight tab tab-javascript"><code>
  6580. <span class="hljs-keyword">const</span> headers = {
  6581. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6582. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6583. };
  6584. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6585. {
  6586. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6587. <span class="hljs-attr">headers</span>: headers
  6588. })
  6589. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6590. <span class="hljs-keyword">return</span> res.json();
  6591. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6592. <span class="hljs-built_in">console</span>.log(body);
  6593. });
  6594. </code></pre>
  6595. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6596. <span class="hljs-keyword">const</span> headers = {
  6597. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6598. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6599. };
  6600. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6601. {
  6602. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6603. <span class="hljs-attr">headers</span>: headers
  6604. })
  6605. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6606. <span class="hljs-keyword">return</span> res.json();
  6607. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6608. <span class="hljs-built_in">console</span>.log(body);
  6609. });
  6610. </code></pre>
  6611. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6612. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6613. headers = {
  6614. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6615. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6616. }
  6617. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6618. <span class="hljs-symbol">params:</span> {
  6619. }, <span class="hljs-symbol">headers:</span> headers
  6620. p JSON.parse(result)
  6621. </code></pre>
  6622. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6623. headers = {
  6624. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6625. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6626. }
  6627. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6628. <span class="hljs-built_in">print</span>(r.json())
  6629. </code></pre>
  6630. <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>);
  6631. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6632. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6633. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6634. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6635. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6636. String inputLine;
  6637. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6638. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6639. response.append(inputLine);
  6640. }
  6641. in.close();
  6642. System.out.println(response.toString());
  6643. </code></pre>
  6644. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6645. <span class="hljs-keyword">import</span> (
  6646. <span class="hljs-string">&quot;bytes&quot;</span>
  6647. <span class="hljs-string">&quot;net/http&quot;</span>
  6648. )
  6649. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6650. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6651. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6652. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6653. }
  6654. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6655. 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)
  6656. req.Header = headers
  6657. client := &amp;http.Client{}
  6658. resp, err := client.Do(req)
  6659. <span class="hljs-comment">// ...</span>
  6660. }
  6661. </code></pre>
  6662. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6663. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6664. );
  6665. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6666. <span class="hljs-comment">// Define array of request body.</span>
  6667. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6668. <span class="hljs-keyword">try</span> {
  6669. <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>(
  6670. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6671. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6672. )
  6673. );
  6674. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6675. }
  6676. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6677. <span class="hljs-comment">// handle exception or api errors.</span>
  6678. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6679. }
  6680. <span class="hljs-comment">// ...</span>
  6681. </code></pre>
  6682. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6683. <p><em>Get a comment on a card</em></p>
  6684. <h3 id="get_comment-parameters">Parameters</h3>
  6685. <table>
  6686. <thead>
  6687. <tr>
  6688. <th>Name</th>
  6689. <th>In</th>
  6690. <th>Type</th>
  6691. <th>Required</th>
  6692. <th>Description</th>
  6693. </tr>
  6694. </thead>
  6695. <tbody>
  6696. <tr>
  6697. <td>board</td>
  6698. <td>path</td>
  6699. <td>string</td>
  6700. <td>true</td>
  6701. <td>the board ID of the card</td>
  6702. </tr>
  6703. <tr>
  6704. <td>card</td>
  6705. <td>path</td>
  6706. <td>string</td>
  6707. <td>true</td>
  6708. <td>the ID of the card</td>
  6709. </tr>
  6710. <tr>
  6711. <td>comment</td>
  6712. <td>path</td>
  6713. <td>string</td>
  6714. <td>true</td>
  6715. <td>the ID of the comment to retrieve</td>
  6716. </tr>
  6717. </tbody>
  6718. </table>
  6719. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6720. <p><strong>board</strong>: the board ID of the card</p>
  6721. <p><strong>card</strong>: the ID of the card</p>
  6722. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6723. <blockquote>
  6724. <p>Example responses</p>
  6725. </blockquote>
  6726. <blockquote>
  6727. <p>200 Response</p>
  6728. </blockquote>
  6729. <pre class="highlight tab tab-json"><code>{
  6730. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6731. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6732. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6733. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6734. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6735. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6736. }
  6737. </code></pre>
  6738. <h3 id="get_comment-responses">Responses</h3>
  6739. <table>
  6740. <thead>
  6741. <tr>
  6742. <th>Status</th>
  6743. <th>Meaning</th>
  6744. <th>Description</th>
  6745. <th>Schema</th>
  6746. </tr>
  6747. </thead>
  6748. <tbody>
  6749. <tr>
  6750. <td>200</td>
  6751. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6752. <td>200 response</td>
  6753. <td><a href="#schemacardcomments">CardComments</a></td>
  6754. </tr>
  6755. </tbody>
  6756. </table>
  6757. <aside class="warning">
  6758. To perform this operation, you must be authenticated by means of one of the following methods:
  6759. UserSecurity
  6760. </aside>
  6761. <h2 id="delete_comment">delete_comment</h2>
  6762. <p><a id="opIddelete_comment"></a></p>
  6763. <blockquote>
  6764. <p>Code samples</p>
  6765. </blockquote>
  6766. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6767. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6768. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6769. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6770. </code></pre>
  6771. <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>
  6772. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6773. </span></code></pre>
  6774. <pre class="highlight tab tab-javascript"><code>
  6775. <span class="hljs-keyword">const</span> headers = {
  6776. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6777. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6778. };
  6779. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6780. {
  6781. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6782. <span class="hljs-attr">headers</span>: headers
  6783. })
  6784. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6785. <span class="hljs-keyword">return</span> res.json();
  6786. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6787. <span class="hljs-built_in">console</span>.log(body);
  6788. });
  6789. </code></pre>
  6790. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6791. <span class="hljs-keyword">const</span> headers = {
  6792. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6793. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6794. };
  6795. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6796. {
  6797. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6798. <span class="hljs-attr">headers</span>: headers
  6799. })
  6800. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6801. <span class="hljs-keyword">return</span> res.json();
  6802. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6803. <span class="hljs-built_in">console</span>.log(body);
  6804. });
  6805. </code></pre>
  6806. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6807. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6808. headers = {
  6809. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6810. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6811. }
  6812. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6813. <span class="hljs-symbol">params:</span> {
  6814. }, <span class="hljs-symbol">headers:</span> headers
  6815. p JSON.parse(result)
  6816. </code></pre>
  6817. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6818. headers = {
  6819. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6820. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6821. }
  6822. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6823. <span class="hljs-built_in">print</span>(r.json())
  6824. </code></pre>
  6825. <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>);
  6826. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6827. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6828. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6829. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6830. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6831. String inputLine;
  6832. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6833. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6834. response.append(inputLine);
  6835. }
  6836. in.close();
  6837. System.out.println(response.toString());
  6838. </code></pre>
  6839. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6840. <span class="hljs-keyword">import</span> (
  6841. <span class="hljs-string">&quot;bytes&quot;</span>
  6842. <span class="hljs-string">&quot;net/http&quot;</span>
  6843. )
  6844. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6845. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6846. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6847. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6848. }
  6849. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6850. 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)
  6851. req.Header = headers
  6852. client := &amp;http.Client{}
  6853. resp, err := client.Do(req)
  6854. <span class="hljs-comment">// ...</span>
  6855. }
  6856. </code></pre>
  6857. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6858. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6859. );
  6860. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6861. <span class="hljs-comment">// Define array of request body.</span>
  6862. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6863. <span class="hljs-keyword">try</span> {
  6864. <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>(
  6865. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6866. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6867. )
  6868. );
  6869. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6870. }
  6871. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6872. <span class="hljs-comment">// handle exception or api errors.</span>
  6873. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6874. }
  6875. <span class="hljs-comment">// ...</span>
  6876. </code></pre>
  6877. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6878. <p><em>Delete a comment on a card</em></p>
  6879. <h3 id="delete_comment-parameters">Parameters</h3>
  6880. <table>
  6881. <thead>
  6882. <tr>
  6883. <th>Name</th>
  6884. <th>In</th>
  6885. <th>Type</th>
  6886. <th>Required</th>
  6887. <th>Description</th>
  6888. </tr>
  6889. </thead>
  6890. <tbody>
  6891. <tr>
  6892. <td>board</td>
  6893. <td>path</td>
  6894. <td>string</td>
  6895. <td>true</td>
  6896. <td>the board ID of the card</td>
  6897. </tr>
  6898. <tr>
  6899. <td>card</td>
  6900. <td>path</td>
  6901. <td>string</td>
  6902. <td>true</td>
  6903. <td>the ID of the card</td>
  6904. </tr>
  6905. <tr>
  6906. <td>comment</td>
  6907. <td>path</td>
  6908. <td>string</td>
  6909. <td>true</td>
  6910. <td>the ID of the comment to delete</td>
  6911. </tr>
  6912. </tbody>
  6913. </table>
  6914. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6915. <p><strong>board</strong>: the board ID of the card</p>
  6916. <p><strong>card</strong>: the ID of the card</p>
  6917. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6918. <blockquote>
  6919. <p>Example responses</p>
  6920. </blockquote>
  6921. <blockquote>
  6922. <p>200 Response</p>
  6923. </blockquote>
  6924. <pre class="highlight tab tab-json"><code>{
  6925. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6926. }
  6927. </code></pre>
  6928. <h3 id="delete_comment-responses">Responses</h3>
  6929. <table>
  6930. <thead>
  6931. <tr>
  6932. <th>Status</th>
  6933. <th>Meaning</th>
  6934. <th>Description</th>
  6935. <th>Schema</th>
  6936. </tr>
  6937. </thead>
  6938. <tbody>
  6939. <tr>
  6940. <td>200</td>
  6941. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6942. <td>200 response</td>
  6943. <td>Inline</td>
  6944. </tr>
  6945. </tbody>
  6946. </table>
  6947. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6948. <p>Status Code <strong>200</strong></p>
  6949. <table>
  6950. <thead>
  6951. <tr>
  6952. <th>Name</th>
  6953. <th>Type</th>
  6954. <th>Required</th>
  6955. <th>Restrictions</th>
  6956. <th>Description</th>
  6957. </tr>
  6958. </thead>
  6959. <tbody>
  6960. <tr>
  6961. <td>» _id</td>
  6962. <td>string</td>
  6963. <td>false</td>
  6964. <td>none</td>
  6965. <td>none</td>
  6966. </tr>
  6967. </tbody>
  6968. </table>
  6969. <aside class="warning">
  6970. To perform this operation, you must be authenticated by means of one of the following methods:
  6971. UserSecurity
  6972. </aside>
  6973. <h1 id="wekan-rest-api-cards">Cards</h1>
  6974. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6975. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6976. <blockquote>
  6977. <p>Code samples</p>
  6978. </blockquote>
  6979. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6980. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6981. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6982. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6983. </code></pre>
  6984. <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>
  6985. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6986. </span></code></pre>
  6987. <pre class="highlight tab tab-javascript"><code>
  6988. <span class="hljs-keyword">const</span> headers = {
  6989. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6990. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6991. };
  6992. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6993. {
  6994. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6995. <span class="hljs-attr">headers</span>: headers
  6996. })
  6997. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6998. <span class="hljs-keyword">return</span> res.json();
  6999. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7000. <span class="hljs-built_in">console</span>.log(body);
  7001. });
  7002. </code></pre>
  7003. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7004. <span class="hljs-keyword">const</span> headers = {
  7005. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7006. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7007. };
  7008. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7009. {
  7010. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7011. <span class="hljs-attr">headers</span>: headers
  7012. })
  7013. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7014. <span class="hljs-keyword">return</span> res.json();
  7015. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7016. <span class="hljs-built_in">console</span>.log(body);
  7017. });
  7018. </code></pre>
  7019. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7020. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7021. headers = {
  7022. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7023. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7024. }
  7025. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7026. <span class="hljs-symbol">params:</span> {
  7027. }, <span class="hljs-symbol">headers:</span> headers
  7028. p JSON.parse(result)
  7029. </code></pre>
  7030. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7031. headers = {
  7032. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7033. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7034. }
  7035. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7036. <span class="hljs-built_in">print</span>(r.json())
  7037. </code></pre>
  7038. <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>);
  7039. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7040. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7041. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7042. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7043. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7044. String inputLine;
  7045. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7046. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7047. response.append(inputLine);
  7048. }
  7049. in.close();
  7050. System.out.println(response.toString());
  7051. </code></pre>
  7052. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7053. <span class="hljs-keyword">import</span> (
  7054. <span class="hljs-string">&quot;bytes&quot;</span>
  7055. <span class="hljs-string">&quot;net/http&quot;</span>
  7056. )
  7057. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7058. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7059. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7060. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7061. }
  7062. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7063. 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)
  7064. req.Header = headers
  7065. client := &amp;http.Client{}
  7066. resp, err := client.Do(req)
  7067. <span class="hljs-comment">// ...</span>
  7068. }
  7069. </code></pre>
  7070. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7071. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7072. );
  7073. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7074. <span class="hljs-comment">// Define array of request body.</span>
  7075. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7076. <span class="hljs-keyword">try</span> {
  7077. <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>(
  7078. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7079. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7080. )
  7081. );
  7082. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7083. }
  7084. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7085. <span class="hljs-comment">// handle exception or api errors.</span>
  7086. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7087. }
  7088. <span class="hljs-comment">// ...</span>
  7089. </code></pre>
  7090. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7091. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7092. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7093. <table>
  7094. <thead>
  7095. <tr>
  7096. <th>Name</th>
  7097. <th>In</th>
  7098. <th>Type</th>
  7099. <th>Required</th>
  7100. <th>Description</th>
  7101. </tr>
  7102. </thead>
  7103. <tbody>
  7104. <tr>
  7105. <td>board</td>
  7106. <td>path</td>
  7107. <td>string</td>
  7108. <td>true</td>
  7109. <td>the board ID</td>
  7110. </tr>
  7111. <tr>
  7112. <td>customField</td>
  7113. <td>path</td>
  7114. <td>string</td>
  7115. <td>true</td>
  7116. <td>the list ID</td>
  7117. </tr>
  7118. <tr>
  7119. <td>customFieldValue</td>
  7120. <td>path</td>
  7121. <td>string</td>
  7122. <td>true</td>
  7123. <td>the value to look for</td>
  7124. </tr>
  7125. </tbody>
  7126. </table>
  7127. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7128. <p><strong>board</strong>: the board ID</p>
  7129. <p><strong>customField</strong>: the list ID</p>
  7130. <p><strong>customFieldValue</strong>: the value to look for</p>
  7131. <blockquote>
  7132. <p>Example responses</p>
  7133. </blockquote>
  7134. <blockquote>
  7135. <p>200 Response</p>
  7136. </blockquote>
  7137. <pre class="highlight tab tab-json"><code>[
  7138. {
  7139. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7140. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7141. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7142. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7143. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7144. }
  7145. ]
  7146. </code></pre>
  7147. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7148. <table>
  7149. <thead>
  7150. <tr>
  7151. <th>Status</th>
  7152. <th>Meaning</th>
  7153. <th>Description</th>
  7154. <th>Schema</th>
  7155. </tr>
  7156. </thead>
  7157. <tbody>
  7158. <tr>
  7159. <td>200</td>
  7160. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7161. <td>200 response</td>
  7162. <td>Inline</td>
  7163. </tr>
  7164. </tbody>
  7165. </table>
  7166. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7167. <p>Status Code <strong>200</strong></p>
  7168. <table>
  7169. <thead>
  7170. <tr>
  7171. <th>Name</th>
  7172. <th>Type</th>
  7173. <th>Required</th>
  7174. <th>Restrictions</th>
  7175. <th>Description</th>
  7176. </tr>
  7177. </thead>
  7178. <tbody>
  7179. <tr>
  7180. <td>» _id</td>
  7181. <td>string</td>
  7182. <td>false</td>
  7183. <td>none</td>
  7184. <td>none</td>
  7185. </tr>
  7186. <tr>
  7187. <td>» title</td>
  7188. <td>string</td>
  7189. <td>false</td>
  7190. <td>none</td>
  7191. <td>none</td>
  7192. </tr>
  7193. <tr>
  7194. <td>» description</td>
  7195. <td>string</td>
  7196. <td>false</td>
  7197. <td>none</td>
  7198. <td>none</td>
  7199. </tr>
  7200. <tr>
  7201. <td>» listId</td>
  7202. <td>string</td>
  7203. <td>false</td>
  7204. <td>none</td>
  7205. <td>none</td>
  7206. </tr>
  7207. <tr>
  7208. <td>» swinlaneId</td>
  7209. <td>string</td>
  7210. <td>false</td>
  7211. <td>none</td>
  7212. <td>none</td>
  7213. </tr>
  7214. </tbody>
  7215. </table>
  7216. <aside class="warning">
  7217. To perform this operation, you must be authenticated by means of one of the following methods:
  7218. UserSecurity
  7219. </aside>
  7220. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7221. <p><a id="opIdget_board_cards_count"></a></p>
  7222. <blockquote>
  7223. <p>Code samples</p>
  7224. </blockquote>
  7225. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7226. curl -X GET /api/boards/{board}/cards_count \
  7227. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7228. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7229. </code></pre>
  7230. <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>
  7231. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7232. </span></code></pre>
  7233. <pre class="highlight tab tab-javascript"><code>
  7234. <span class="hljs-keyword">const</span> headers = {
  7235. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7236. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7237. };
  7238. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7239. {
  7240. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7241. <span class="hljs-attr">headers</span>: headers
  7242. })
  7243. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7244. <span class="hljs-keyword">return</span> res.json();
  7245. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7246. <span class="hljs-built_in">console</span>.log(body);
  7247. });
  7248. </code></pre>
  7249. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7250. <span class="hljs-keyword">const</span> headers = {
  7251. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7252. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7253. };
  7254. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7255. {
  7256. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7257. <span class="hljs-attr">headers</span>: headers
  7258. })
  7259. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7260. <span class="hljs-keyword">return</span> res.json();
  7261. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7262. <span class="hljs-built_in">console</span>.log(body);
  7263. });
  7264. </code></pre>
  7265. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7266. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7267. headers = {
  7268. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7269. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7270. }
  7271. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7272. <span class="hljs-symbol">params:</span> {
  7273. }, <span class="hljs-symbol">headers:</span> headers
  7274. p JSON.parse(result)
  7275. </code></pre>
  7276. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7277. headers = {
  7278. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7279. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7280. }
  7281. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, headers = headers)
  7282. <span class="hljs-built_in">print</span>(r.json())
  7283. </code></pre>
  7284. <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>);
  7285. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7286. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7287. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7288. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7289. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7290. String inputLine;
  7291. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7292. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7293. response.append(inputLine);
  7294. }
  7295. in.close();
  7296. System.out.println(response.toString());
  7297. </code></pre>
  7298. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7299. <span class="hljs-keyword">import</span> (
  7300. <span class="hljs-string">&quot;bytes&quot;</span>
  7301. <span class="hljs-string">&quot;net/http&quot;</span>
  7302. )
  7303. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7304. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7305. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7306. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7307. }
  7308. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7309. 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)
  7310. req.Header = headers
  7311. client := &amp;http.Client{}
  7312. resp, err := client.Do(req)
  7313. <span class="hljs-comment">// ...</span>
  7314. }
  7315. </code></pre>
  7316. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7317. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7318. );
  7319. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7320. <span class="hljs-comment">// Define array of request body.</span>
  7321. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7322. <span class="hljs-keyword">try</span> {
  7323. <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>(
  7324. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7325. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7326. )
  7327. );
  7328. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7329. }
  7330. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7331. <span class="hljs-comment">// handle exception or api errors.</span>
  7332. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7333. }
  7334. <span class="hljs-comment">// ...</span>
  7335. </code></pre>
  7336. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7337. <p><em>Get a cards count to a board</em></p>
  7338. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7339. <table>
  7340. <thead>
  7341. <tr>
  7342. <th>Name</th>
  7343. <th>In</th>
  7344. <th>Type</th>
  7345. <th>Required</th>
  7346. <th>Description</th>
  7347. </tr>
  7348. </thead>
  7349. <tbody>
  7350. <tr>
  7351. <td>board</td>
  7352. <td>path</td>
  7353. <td>string</td>
  7354. <td>true</td>
  7355. <td>the board ID</td>
  7356. </tr>
  7357. </tbody>
  7358. </table>
  7359. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7360. <p><strong>board</strong>: the board ID</p>
  7361. <blockquote>
  7362. <p>Example responses</p>
  7363. </blockquote>
  7364. <blockquote>
  7365. <p>200 Response</p>
  7366. </blockquote>
  7367. <pre class="highlight tab tab-json"><code>{
  7368. <span class="hljs-attr">&quot;board_cards_count&quot;</span>: <span class="hljs-number">0</span>
  7369. }
  7370. </code></pre>
  7371. <h3 id="get_board_cards_count-responses">Responses</h3>
  7372. <table>
  7373. <thead>
  7374. <tr>
  7375. <th>Status</th>
  7376. <th>Meaning</th>
  7377. <th>Description</th>
  7378. <th>Schema</th>
  7379. </tr>
  7380. </thead>
  7381. <tbody>
  7382. <tr>
  7383. <td>200</td>
  7384. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7385. <td>200 response</td>
  7386. <td>Inline</td>
  7387. </tr>
  7388. </tbody>
  7389. </table>
  7390. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7391. <p>Status Code <strong>200</strong></p>
  7392. <table>
  7393. <thead>
  7394. <tr>
  7395. <th>Name</th>
  7396. <th>Type</th>
  7397. <th>Required</th>
  7398. <th>Restrictions</th>
  7399. <th>Description</th>
  7400. </tr>
  7401. </thead>
  7402. <tbody>
  7403. <tr>
  7404. <td>» board_cards_count</td>
  7405. <td>integer</td>
  7406. <td>false</td>
  7407. <td>none</td>
  7408. <td>none</td>
  7409. </tr>
  7410. </tbody>
  7411. </table>
  7412. <aside class="warning">
  7413. To perform this operation, you must be authenticated by means of one of the following methods:
  7414. UserSecurity
  7415. </aside>
  7416. <h2 id="get_all_cards">get_all_cards</h2>
  7417. <p><a id="opIdget_all_cards"></a></p>
  7418. <blockquote>
  7419. <p>Code samples</p>
  7420. </blockquote>
  7421. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7422. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7423. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7424. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7425. </code></pre>
  7426. <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>
  7427. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7428. </span></code></pre>
  7429. <pre class="highlight tab tab-javascript"><code>
  7430. <span class="hljs-keyword">const</span> headers = {
  7431. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7432. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7433. };
  7434. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7435. {
  7436. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7437. <span class="hljs-attr">headers</span>: headers
  7438. })
  7439. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7440. <span class="hljs-keyword">return</span> res.json();
  7441. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7442. <span class="hljs-built_in">console</span>.log(body);
  7443. });
  7444. </code></pre>
  7445. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7446. <span class="hljs-keyword">const</span> headers = {
  7447. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7448. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7449. };
  7450. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7451. {
  7452. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7453. <span class="hljs-attr">headers</span>: headers
  7454. })
  7455. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7456. <span class="hljs-keyword">return</span> res.json();
  7457. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7458. <span class="hljs-built_in">console</span>.log(body);
  7459. });
  7460. </code></pre>
  7461. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7462. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7463. headers = {
  7464. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7465. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7466. }
  7467. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7468. <span class="hljs-symbol">params:</span> {
  7469. }, <span class="hljs-symbol">headers:</span> headers
  7470. p JSON.parse(result)
  7471. </code></pre>
  7472. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7473. headers = {
  7474. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7475. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7476. }
  7477. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7478. <span class="hljs-built_in">print</span>(r.json())
  7479. </code></pre>
  7480. <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>);
  7481. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7482. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7483. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7484. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7485. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7486. String inputLine;
  7487. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7488. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7489. response.append(inputLine);
  7490. }
  7491. in.close();
  7492. System.out.println(response.toString());
  7493. </code></pre>
  7494. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7495. <span class="hljs-keyword">import</span> (
  7496. <span class="hljs-string">&quot;bytes&quot;</span>
  7497. <span class="hljs-string">&quot;net/http&quot;</span>
  7498. )
  7499. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7500. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7501. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7502. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7503. }
  7504. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7505. 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)
  7506. req.Header = headers
  7507. client := &amp;http.Client{}
  7508. resp, err := client.Do(req)
  7509. <span class="hljs-comment">// ...</span>
  7510. }
  7511. </code></pre>
  7512. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7513. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7514. );
  7515. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7516. <span class="hljs-comment">// Define array of request body.</span>
  7517. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7518. <span class="hljs-keyword">try</span> {
  7519. <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>(
  7520. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7521. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7522. )
  7523. );
  7524. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7525. }
  7526. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7527. <span class="hljs-comment">// handle exception or api errors.</span>
  7528. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7529. }
  7530. <span class="hljs-comment">// ...</span>
  7531. </code></pre>
  7532. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7533. <p><em>Get all Cards attached to a List</em></p>
  7534. <h3 id="get_all_cards-parameters">Parameters</h3>
  7535. <table>
  7536. <thead>
  7537. <tr>
  7538. <th>Name</th>
  7539. <th>In</th>
  7540. <th>Type</th>
  7541. <th>Required</th>
  7542. <th>Description</th>
  7543. </tr>
  7544. </thead>
  7545. <tbody>
  7546. <tr>
  7547. <td>board</td>
  7548. <td>path</td>
  7549. <td>string</td>
  7550. <td>true</td>
  7551. <td>the board ID</td>
  7552. </tr>
  7553. <tr>
  7554. <td>list</td>
  7555. <td>path</td>
  7556. <td>string</td>
  7557. <td>true</td>
  7558. <td>the list ID</td>
  7559. </tr>
  7560. </tbody>
  7561. </table>
  7562. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7563. <p><strong>board</strong>: the board ID</p>
  7564. <p><strong>list</strong>: the list ID</p>
  7565. <blockquote>
  7566. <p>Example responses</p>
  7567. </blockquote>
  7568. <blockquote>
  7569. <p>200 Response</p>
  7570. </blockquote>
  7571. <pre class="highlight tab tab-json"><code>[
  7572. {
  7573. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7574. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7575. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7576. }
  7577. ]
  7578. </code></pre>
  7579. <h3 id="get_all_cards-responses">Responses</h3>
  7580. <table>
  7581. <thead>
  7582. <tr>
  7583. <th>Status</th>
  7584. <th>Meaning</th>
  7585. <th>Description</th>
  7586. <th>Schema</th>
  7587. </tr>
  7588. </thead>
  7589. <tbody>
  7590. <tr>
  7591. <td>200</td>
  7592. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7593. <td>200 response</td>
  7594. <td>Inline</td>
  7595. </tr>
  7596. </tbody>
  7597. </table>
  7598. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7599. <p>Status Code <strong>200</strong></p>
  7600. <table>
  7601. <thead>
  7602. <tr>
  7603. <th>Name</th>
  7604. <th>Type</th>
  7605. <th>Required</th>
  7606. <th>Restrictions</th>
  7607. <th>Description</th>
  7608. </tr>
  7609. </thead>
  7610. <tbody>
  7611. <tr>
  7612. <td>» _id</td>
  7613. <td>string</td>
  7614. <td>false</td>
  7615. <td>none</td>
  7616. <td>none</td>
  7617. </tr>
  7618. <tr>
  7619. <td>» title</td>
  7620. <td>string</td>
  7621. <td>false</td>
  7622. <td>none</td>
  7623. <td>none</td>
  7624. </tr>
  7625. <tr>
  7626. <td>» description</td>
  7627. <td>string</td>
  7628. <td>false</td>
  7629. <td>none</td>
  7630. <td>none</td>
  7631. </tr>
  7632. </tbody>
  7633. </table>
  7634. <aside class="warning">
  7635. To perform this operation, you must be authenticated by means of one of the following methods:
  7636. UserSecurity
  7637. </aside>
  7638. <h2 id="new_card">new_card</h2>
  7639. <p><a id="opIdnew_card"></a></p>
  7640. <blockquote>
  7641. <p>Code samples</p>
  7642. </blockquote>
  7643. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7644. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7645. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7646. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7647. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7648. </code></pre>
  7649. <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>
  7650. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7651. Accept: application/json
  7652. </span></code></pre>
  7653. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7654. &quot;authorId&quot;: &quot;string&quot;,
  7655. &quot;members&quot;: &quot;string&quot;,
  7656. &quot;assignees&quot;: &quot;string&quot;,
  7657. &quot;title&quot;: &quot;string&quot;,
  7658. &quot;description&quot;: &quot;string&quot;,
  7659. &quot;swimlaneId&quot;: &quot;string&quot;
  7660. }&#x27;</span>;
  7661. <span class="hljs-keyword">const</span> headers = {
  7662. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7663. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7664. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7665. };
  7666. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7667. {
  7668. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7669. <span class="hljs-attr">body</span>: inputBody,
  7670. <span class="hljs-attr">headers</span>: headers
  7671. })
  7672. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7673. <span class="hljs-keyword">return</span> res.json();
  7674. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7675. <span class="hljs-built_in">console</span>.log(body);
  7676. });
  7677. </code></pre>
  7678. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7679. <span class="hljs-keyword">const</span> inputBody = {
  7680. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7681. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7682. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7683. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7684. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7685. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7686. };
  7687. <span class="hljs-keyword">const</span> headers = {
  7688. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7689. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7690. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7691. };
  7692. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7693. {
  7694. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7695. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  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-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7705. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7706. headers = {
  7707. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7708. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7709. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7710. }
  7711. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7712. <span class="hljs-symbol">params:</span> {
  7713. }, <span class="hljs-symbol">headers:</span> headers
  7714. p JSON.parse(result)
  7715. </code></pre>
  7716. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7717. headers = {
  7718. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7719. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7720. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7721. }
  7722. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7723. <span class="hljs-built_in">print</span>(r.json())
  7724. </code></pre>
  7725. <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>);
  7726. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7727. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7728. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7729. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7730. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7731. String inputLine;
  7732. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7733. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7734. response.append(inputLine);
  7735. }
  7736. in.close();
  7737. System.out.println(response.toString());
  7738. </code></pre>
  7739. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7740. <span class="hljs-keyword">import</span> (
  7741. <span class="hljs-string">&quot;bytes&quot;</span>
  7742. <span class="hljs-string">&quot;net/http&quot;</span>
  7743. )
  7744. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7745. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7746. <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>},
  7747. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7748. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7749. }
  7750. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7751. 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)
  7752. req.Header = headers
  7753. client := &amp;http.Client{}
  7754. resp, err := client.Do(req)
  7755. <span class="hljs-comment">// ...</span>
  7756. }
  7757. </code></pre>
  7758. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7759. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7760. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7761. );
  7762. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7763. <span class="hljs-comment">// Define array of request body.</span>
  7764. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7765. <span class="hljs-keyword">try</span> {
  7766. <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>(
  7767. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7768. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7769. )
  7770. );
  7771. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7772. }
  7773. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7774. <span class="hljs-comment">// handle exception or api errors.</span>
  7775. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7776. }
  7777. <span class="hljs-comment">// ...</span>
  7778. </code></pre>
  7779. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7780. <p><em>Create a new Card</em></p>
  7781. <blockquote>
  7782. <p>Body parameter</p>
  7783. </blockquote>
  7784. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7785. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7786. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7787. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7788. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7789. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7790. </code></pre>
  7791. <h3 id="new_card-parameters">Parameters</h3>
  7792. <table>
  7793. <thead>
  7794. <tr>
  7795. <th>Name</th>
  7796. <th>In</th>
  7797. <th>Type</th>
  7798. <th>Required</th>
  7799. <th>Description</th>
  7800. </tr>
  7801. </thead>
  7802. <tbody>
  7803. <tr>
  7804. <td>board</td>
  7805. <td>path</td>
  7806. <td>string</td>
  7807. <td>true</td>
  7808. <td>the board ID of the new card</td>
  7809. </tr>
  7810. <tr>
  7811. <td>list</td>
  7812. <td>path</td>
  7813. <td>string</td>
  7814. <td>true</td>
  7815. <td>the list ID of the new card</td>
  7816. </tr>
  7817. <tr>
  7818. <td>body</td>
  7819. <td>body</td>
  7820. <td>object</td>
  7821. <td>true</td>
  7822. <td>none</td>
  7823. </tr>
  7824. <tr>
  7825. <td>» authorId</td>
  7826. <td>body</td>
  7827. <td>string</td>
  7828. <td>true</td>
  7829. <td>the authorId value</td>
  7830. </tr>
  7831. <tr>
  7832. <td>» members</td>
  7833. <td>body</td>
  7834. <td>string</td>
  7835. <td>false</td>
  7836. <td>the member IDs list of the new card</td>
  7837. </tr>
  7838. <tr>
  7839. <td>» assignees</td>
  7840. <td>body</td>
  7841. <td>string</td>
  7842. <td>false</td>
  7843. <td>the array of maximum one ID of assignee of the new card</td>
  7844. </tr>
  7845. <tr>
  7846. <td>» title</td>
  7847. <td>body</td>
  7848. <td>string</td>
  7849. <td>true</td>
  7850. <td>the title of the new card</td>
  7851. </tr>
  7852. <tr>
  7853. <td>» description</td>
  7854. <td>body</td>
  7855. <td>string</td>
  7856. <td>true</td>
  7857. <td>the description of the new card</td>
  7858. </tr>
  7859. <tr>
  7860. <td>» swimlaneId</td>
  7861. <td>body</td>
  7862. <td>string</td>
  7863. <td>true</td>
  7864. <td>the swimlane ID of the new card</td>
  7865. </tr>
  7866. </tbody>
  7867. </table>
  7868. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7869. <p><strong>board</strong>: the board ID of the new card</p>
  7870. <p><strong>list</strong>: the list ID of the new card</p>
  7871. <blockquote>
  7872. <p>Example responses</p>
  7873. </blockquote>
  7874. <blockquote>
  7875. <p>200 Response</p>
  7876. </blockquote>
  7877. <pre class="highlight tab tab-json"><code>{
  7878. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7879. }
  7880. </code></pre>
  7881. <h3 id="new_card-responses">Responses</h3>
  7882. <table>
  7883. <thead>
  7884. <tr>
  7885. <th>Status</th>
  7886. <th>Meaning</th>
  7887. <th>Description</th>
  7888. <th>Schema</th>
  7889. </tr>
  7890. </thead>
  7891. <tbody>
  7892. <tr>
  7893. <td>200</td>
  7894. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7895. <td>200 response</td>
  7896. <td>Inline</td>
  7897. </tr>
  7898. </tbody>
  7899. </table>
  7900. <h3 id="new_card-responseschema">Response Schema</h3>
  7901. <p>Status Code <strong>200</strong></p>
  7902. <table>
  7903. <thead>
  7904. <tr>
  7905. <th>Name</th>
  7906. <th>Type</th>
  7907. <th>Required</th>
  7908. <th>Restrictions</th>
  7909. <th>Description</th>
  7910. </tr>
  7911. </thead>
  7912. <tbody>
  7913. <tr>
  7914. <td>» _id</td>
  7915. <td>string</td>
  7916. <td>false</td>
  7917. <td>none</td>
  7918. <td>none</td>
  7919. </tr>
  7920. </tbody>
  7921. </table>
  7922. <aside class="warning">
  7923. To perform this operation, you must be authenticated by means of one of the following methods:
  7924. UserSecurity
  7925. </aside>
  7926. <h2 id="get_card">get_card</h2>
  7927. <p><a id="opIdget_card"></a></p>
  7928. <blockquote>
  7929. <p>Code samples</p>
  7930. </blockquote>
  7931. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7932. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7933. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7934. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7935. </code></pre>
  7936. <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>
  7937. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7938. </span></code></pre>
  7939. <pre class="highlight tab tab-javascript"><code>
  7940. <span class="hljs-keyword">const</span> headers = {
  7941. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7942. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7943. };
  7944. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7945. {
  7946. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7947. <span class="hljs-attr">headers</span>: headers
  7948. })
  7949. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7950. <span class="hljs-keyword">return</span> res.json();
  7951. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7952. <span class="hljs-built_in">console</span>.log(body);
  7953. });
  7954. </code></pre>
  7955. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7956. <span class="hljs-keyword">const</span> headers = {
  7957. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7958. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7959. };
  7960. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7961. {
  7962. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7963. <span class="hljs-attr">headers</span>: headers
  7964. })
  7965. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7966. <span class="hljs-keyword">return</span> res.json();
  7967. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7968. <span class="hljs-built_in">console</span>.log(body);
  7969. });
  7970. </code></pre>
  7971. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7972. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7973. headers = {
  7974. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7975. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7976. }
  7977. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7978. <span class="hljs-symbol">params:</span> {
  7979. }, <span class="hljs-symbol">headers:</span> headers
  7980. p JSON.parse(result)
  7981. </code></pre>
  7982. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7983. headers = {
  7984. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7985. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7986. }
  7987. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7988. <span class="hljs-built_in">print</span>(r.json())
  7989. </code></pre>
  7990. <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>);
  7991. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7992. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7993. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7994. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7995. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7996. String inputLine;
  7997. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7998. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7999. response.append(inputLine);
  8000. }
  8001. in.close();
  8002. System.out.println(response.toString());
  8003. </code></pre>
  8004. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8005. <span class="hljs-keyword">import</span> (
  8006. <span class="hljs-string">&quot;bytes&quot;</span>
  8007. <span class="hljs-string">&quot;net/http&quot;</span>
  8008. )
  8009. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8010. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8011. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8012. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8013. }
  8014. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8015. 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)
  8016. req.Header = headers
  8017. client := &amp;http.Client{}
  8018. resp, err := client.Do(req)
  8019. <span class="hljs-comment">// ...</span>
  8020. }
  8021. </code></pre>
  8022. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8023. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8024. );
  8025. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8026. <span class="hljs-comment">// Define array of request body.</span>
  8027. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8028. <span class="hljs-keyword">try</span> {
  8029. <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>(
  8030. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8031. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8032. )
  8033. );
  8034. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8035. }
  8036. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8037. <span class="hljs-comment">// handle exception or api errors.</span>
  8038. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8039. }
  8040. <span class="hljs-comment">// ...</span>
  8041. </code></pre>
  8042. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8043. <p><em>Get a Card</em></p>
  8044. <h3 id="get_card-parameters">Parameters</h3>
  8045. <table>
  8046. <thead>
  8047. <tr>
  8048. <th>Name</th>
  8049. <th>In</th>
  8050. <th>Type</th>
  8051. <th>Required</th>
  8052. <th>Description</th>
  8053. </tr>
  8054. </thead>
  8055. <tbody>
  8056. <tr>
  8057. <td>board</td>
  8058. <td>path</td>
  8059. <td>string</td>
  8060. <td>true</td>
  8061. <td>the board ID</td>
  8062. </tr>
  8063. <tr>
  8064. <td>list</td>
  8065. <td>path</td>
  8066. <td>string</td>
  8067. <td>true</td>
  8068. <td>the list ID of the card</td>
  8069. </tr>
  8070. <tr>
  8071. <td>card</td>
  8072. <td>path</td>
  8073. <td>string</td>
  8074. <td>true</td>
  8075. <td>the card ID</td>
  8076. </tr>
  8077. </tbody>
  8078. </table>
  8079. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8080. <p><strong>board</strong>: the board ID</p>
  8081. <p><strong>list</strong>: the list ID of the card</p>
  8082. <p><strong>card</strong>: the card ID</p>
  8083. <blockquote>
  8084. <p>Example responses</p>
  8085. </blockquote>
  8086. <blockquote>
  8087. <p>200 Response</p>
  8088. </blockquote>
  8089. <pre class="highlight tab tab-json"><code>{
  8090. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8091. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  8092. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8093. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8094. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8095. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8096. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8097. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8098. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  8099. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8100. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8101. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  8102. {}
  8103. ],
  8104. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8105. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8106. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8107. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8108. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  8109. <span class="hljs-string">&quot;string&quot;</span>
  8110. ],
  8111. <span class="hljs-attr">&quot;members&quot;</span>: [
  8112. <span class="hljs-string">&quot;string&quot;</span>
  8113. ],
  8114. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  8115. <span class="hljs-string">&quot;string&quot;</span>
  8116. ],
  8117. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8118. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8119. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8120. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8121. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  8122. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  8123. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8124. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  8125. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  8126. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8127. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8128. <span class="hljs-attr">&quot;vote&quot;</span>: {
  8129. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8130. <span class="hljs-attr">&quot;positive&quot;</span>: [
  8131. <span class="hljs-string">&quot;string&quot;</span>
  8132. ],
  8133. <span class="hljs-attr">&quot;negative&quot;</span>: [
  8134. <span class="hljs-string">&quot;string&quot;</span>
  8135. ],
  8136. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8137. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  8138. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  8139. },
  8140. <span class="hljs-attr">&quot;poker&quot;</span>: {
  8141. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  8142. <span class="hljs-attr">&quot;one&quot;</span>: [
  8143. <span class="hljs-string">&quot;string&quot;</span>
  8144. ],
  8145. <span class="hljs-attr">&quot;two&quot;</span>: [
  8146. <span class="hljs-string">&quot;string&quot;</span>
  8147. ],
  8148. <span class="hljs-attr">&quot;three&quot;</span>: [
  8149. <span class="hljs-string">&quot;string&quot;</span>
  8150. ],
  8151. <span class="hljs-attr">&quot;five&quot;</span>: [
  8152. <span class="hljs-string">&quot;string&quot;</span>
  8153. ],
  8154. <span class="hljs-attr">&quot;eight&quot;</span>: [
  8155. <span class="hljs-string">&quot;string&quot;</span>
  8156. ],
  8157. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  8158. <span class="hljs-string">&quot;string&quot;</span>
  8159. ],
  8160. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  8161. <span class="hljs-string">&quot;string&quot;</span>
  8162. ],
  8163. <span class="hljs-attr">&quot;forty&quot;</span>: [
  8164. <span class="hljs-string">&quot;string&quot;</span>
  8165. ],
  8166. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  8167. <span class="hljs-string">&quot;string&quot;</span>
  8168. ],
  8169. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  8170. <span class="hljs-string">&quot;string&quot;</span>
  8171. ],
  8172. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8173. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  8174. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  8175. },
  8176. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  8177. <span class="hljs-string">&quot;string&quot;</span>
  8178. ],
  8179. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  8180. <span class="hljs-number">0</span>
  8181. ],
  8182. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  8183. <span class="hljs-string">&quot;string&quot;</span>
  8184. ],
  8185. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  8186. }
  8187. </code></pre>
  8188. <h3 id="get_card-responses">Responses</h3>
  8189. <table>
  8190. <thead>
  8191. <tr>
  8192. <th>Status</th>
  8193. <th>Meaning</th>
  8194. <th>Description</th>
  8195. <th>Schema</th>
  8196. </tr>
  8197. </thead>
  8198. <tbody>
  8199. <tr>
  8200. <td>200</td>
  8201. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8202. <td>200 response</td>
  8203. <td><a href="#schemacards">Cards</a></td>
  8204. </tr>
  8205. </tbody>
  8206. </table>
  8207. <aside class="warning">
  8208. To perform this operation, you must be authenticated by means of one of the following methods:
  8209. UserSecurity
  8210. </aside>
  8211. <h2 id="edit_card">edit_card</h2>
  8212. <p><a id="opIdedit_card"></a></p>
  8213. <blockquote>
  8214. <p>Code samples</p>
  8215. </blockquote>
  8216. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8217. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8218. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8219. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8220. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8221. </code></pre>
  8222. <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>
  8223. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8224. Accept: application/json
  8225. </span></code></pre>
  8226. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8227. &quot;title&quot;: &quot;string&quot;,
  8228. &quot;sort&quot;: &quot;string&quot;,
  8229. &quot;parentId&quot;: &quot;string&quot;,
  8230. &quot;description&quot;: &quot;string&quot;,
  8231. &quot;color&quot;: &quot;string&quot;,
  8232. &quot;vote&quot;: {},
  8233. &quot;poker&quot;: {},
  8234. &quot;labelIds&quot;: &quot;string&quot;,
  8235. &quot;requestedBy&quot;: &quot;string&quot;,
  8236. &quot;assignedBy&quot;: &quot;string&quot;,
  8237. &quot;receivedAt&quot;: &quot;string&quot;,
  8238. &quot;startAt&quot;: &quot;string&quot;,
  8239. &quot;dueAt&quot;: &quot;string&quot;,
  8240. &quot;endAt&quot;: &quot;string&quot;,
  8241. &quot;spentTime&quot;: &quot;string&quot;,
  8242. &quot;isOverTime&quot;: true,
  8243. &quot;customFields&quot;: &quot;string&quot;,
  8244. &quot;members&quot;: &quot;string&quot;,
  8245. &quot;assignees&quot;: &quot;string&quot;,
  8246. &quot;swimlaneId&quot;: &quot;string&quot;,
  8247. &quot;listId&quot;: &quot;string&quot;,
  8248. &quot;authorId&quot;: &quot;string&quot;
  8249. }&#x27;</span>;
  8250. <span class="hljs-keyword">const</span> headers = {
  8251. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8252. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8253. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8254. };
  8255. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8256. {
  8257. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8258. <span class="hljs-attr">body</span>: inputBody,
  8259. <span class="hljs-attr">headers</span>: headers
  8260. })
  8261. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8262. <span class="hljs-keyword">return</span> res.json();
  8263. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8264. <span class="hljs-built_in">console</span>.log(body);
  8265. });
  8266. </code></pre>
  8267. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8268. <span class="hljs-keyword">const</span> inputBody = {
  8269. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8270. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8271. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8272. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8273. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8274. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8275. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8276. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8277. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8278. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8279. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8280. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8281. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8282. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8283. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8284. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8285. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8286. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8287. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8288. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8289. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8290. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8291. };
  8292. <span class="hljs-keyword">const</span> headers = {
  8293. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8294. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8295. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8296. };
  8297. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8298. {
  8299. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8300. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8301. <span class="hljs-attr">headers</span>: headers
  8302. })
  8303. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8304. <span class="hljs-keyword">return</span> res.json();
  8305. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8306. <span class="hljs-built_in">console</span>.log(body);
  8307. });
  8308. </code></pre>
  8309. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8310. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8311. headers = {
  8312. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8313. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8314. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8315. }
  8316. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8317. <span class="hljs-symbol">params:</span> {
  8318. }, <span class="hljs-symbol">headers:</span> headers
  8319. p JSON.parse(result)
  8320. </code></pre>
  8321. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8322. headers = {
  8323. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8324. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8325. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8326. }
  8327. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8328. <span class="hljs-built_in">print</span>(r.json())
  8329. </code></pre>
  8330. <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>);
  8331. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8332. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8333. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8334. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8335. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8336. String inputLine;
  8337. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8338. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8339. response.append(inputLine);
  8340. }
  8341. in.close();
  8342. System.out.println(response.toString());
  8343. </code></pre>
  8344. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8345. <span class="hljs-keyword">import</span> (
  8346. <span class="hljs-string">&quot;bytes&quot;</span>
  8347. <span class="hljs-string">&quot;net/http&quot;</span>
  8348. )
  8349. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8350. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8351. <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>},
  8352. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8353. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8354. }
  8355. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8356. 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)
  8357. req.Header = headers
  8358. client := &amp;http.Client{}
  8359. resp, err := client.Do(req)
  8360. <span class="hljs-comment">// ...</span>
  8361. }
  8362. </code></pre>
  8363. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8364. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8365. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8366. );
  8367. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8368. <span class="hljs-comment">// Define array of request body.</span>
  8369. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8370. <span class="hljs-keyword">try</span> {
  8371. <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>(
  8372. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8373. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8374. )
  8375. );
  8376. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8377. }
  8378. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8379. <span class="hljs-comment">// handle exception or api errors.</span>
  8380. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8381. }
  8382. <span class="hljs-comment">// ...</span>
  8383. </code></pre>
  8384. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8385. <p><em>Edit Fields in a Card</em></p>
  8386. <p>Edit a card</p>
  8387. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8388. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8389. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8390. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8391. <code>indigo</code>:</p>
  8392. <img src="/card-colors.png" alt="Wekan card colors" />
  8393. <p>Note: setting the color to white has the same effect than removing it.</p>
  8394. <blockquote>
  8395. <p>Body parameter</p>
  8396. </blockquote>
  8397. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8398. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8399. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8400. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8401. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8402. <span class="hljs-attr">vote:</span> {}
  8403. <span class="hljs-attr">poker:</span> {}
  8404. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8405. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8406. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8407. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8408. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8409. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8410. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8411. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8412. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8413. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8414. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8415. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8416. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8417. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8418. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8419. </code></pre>
  8420. <h3 id="edit_card-parameters">Parameters</h3>
  8421. <table>
  8422. <thead>
  8423. <tr>
  8424. <th>Name</th>
  8425. <th>In</th>
  8426. <th>Type</th>
  8427. <th>Required</th>
  8428. <th>Description</th>
  8429. </tr>
  8430. </thead>
  8431. <tbody>
  8432. <tr>
  8433. <td>board</td>
  8434. <td>path</td>
  8435. <td>string</td>
  8436. <td>true</td>
  8437. <td>the board ID of the card</td>
  8438. </tr>
  8439. <tr>
  8440. <td>list</td>
  8441. <td>path</td>
  8442. <td>string</td>
  8443. <td>true</td>
  8444. <td>the list ID of the card</td>
  8445. </tr>
  8446. <tr>
  8447. <td>card</td>
  8448. <td>path</td>
  8449. <td>string</td>
  8450. <td>true</td>
  8451. <td>the ID of the card</td>
  8452. </tr>
  8453. <tr>
  8454. <td>body</td>
  8455. <td>body</td>
  8456. <td>object</td>
  8457. <td>false</td>
  8458. <td>none</td>
  8459. </tr>
  8460. <tr>
  8461. <td>» title</td>
  8462. <td>body</td>
  8463. <td>string</td>
  8464. <td>false</td>
  8465. <td>the new title of the card</td>
  8466. </tr>
  8467. <tr>
  8468. <td>» sort</td>
  8469. <td>body</td>
  8470. <td>string</td>
  8471. <td>false</td>
  8472. <td>the new sort value of the card</td>
  8473. </tr>
  8474. <tr>
  8475. <td>» parentId</td>
  8476. <td>body</td>
  8477. <td>string</td>
  8478. <td>false</td>
  8479. <td>change the parent of the card</td>
  8480. </tr>
  8481. <tr>
  8482. <td>» description</td>
  8483. <td>body</td>
  8484. <td>string</td>
  8485. <td>false</td>
  8486. <td>the new description of the card</td>
  8487. </tr>
  8488. <tr>
  8489. <td>» color</td>
  8490. <td>body</td>
  8491. <td>string</td>
  8492. <td>false</td>
  8493. <td>the new color of the card</td>
  8494. </tr>
  8495. <tr>
  8496. <td>» vote</td>
  8497. <td>body</td>
  8498. <td>object</td>
  8499. <td>false</td>
  8500. <td>the vote object</td>
  8501. </tr>
  8502. <tr>
  8503. <td>» poker</td>
  8504. <td>body</td>
  8505. <td>object</td>
  8506. <td>false</td>
  8507. <td>the poker object</td>
  8508. </tr>
  8509. <tr>
  8510. <td>» labelIds</td>
  8511. <td>body</td>
  8512. <td>string</td>
  8513. <td>false</td>
  8514. <td>the new list of label IDs attached to the card</td>
  8515. </tr>
  8516. <tr>
  8517. <td>» requestedBy</td>
  8518. <td>body</td>
  8519. <td>string</td>
  8520. <td>false</td>
  8521. <td>the new requestedBy field of the card</td>
  8522. </tr>
  8523. <tr>
  8524. <td>» assignedBy</td>
  8525. <td>body</td>
  8526. <td>string</td>
  8527. <td>false</td>
  8528. <td>the new assignedBy field of the card</td>
  8529. </tr>
  8530. <tr>
  8531. <td>» receivedAt</td>
  8532. <td>body</td>
  8533. <td>string</td>
  8534. <td>false</td>
  8535. <td>the new receivedAt field of the card</td>
  8536. </tr>
  8537. <tr>
  8538. <td>» startAt</td>
  8539. <td>body</td>
  8540. <td>string</td>
  8541. <td>false</td>
  8542. <td>the new startAt field of the card</td>
  8543. </tr>
  8544. <tr>
  8545. <td>» dueAt</td>
  8546. <td>body</td>
  8547. <td>string</td>
  8548. <td>false</td>
  8549. <td>the new dueAt field of the card</td>
  8550. </tr>
  8551. <tr>
  8552. <td>» endAt</td>
  8553. <td>body</td>
  8554. <td>string</td>
  8555. <td>false</td>
  8556. <td>the new endAt field of the card</td>
  8557. </tr>
  8558. <tr>
  8559. <td>» spentTime</td>
  8560. <td>body</td>
  8561. <td>string</td>
  8562. <td>false</td>
  8563. <td>the new spentTime field of the card</td>
  8564. </tr>
  8565. <tr>
  8566. <td>» isOverTime</td>
  8567. <td>body</td>
  8568. <td>boolean</td>
  8569. <td>false</td>
  8570. <td>the new isOverTime field of the card</td>
  8571. </tr>
  8572. <tr>
  8573. <td>» customFields</td>
  8574. <td>body</td>
  8575. <td>string</td>
  8576. <td>false</td>
  8577. <td>the new customFields value of the card</td>
  8578. </tr>
  8579. <tr>
  8580. <td>» members</td>
  8581. <td>body</td>
  8582. <td>string</td>
  8583. <td>false</td>
  8584. <td>the new list of member IDs attached to the card</td>
  8585. </tr>
  8586. <tr>
  8587. <td>» assignees</td>
  8588. <td>body</td>
  8589. <td>string</td>
  8590. <td>false</td>
  8591. <td>the array of maximum one ID of assignee attached to the card</td>
  8592. </tr>
  8593. <tr>
  8594. <td>» swimlaneId</td>
  8595. <td>body</td>
  8596. <td>string</td>
  8597. <td>false</td>
  8598. <td>the new swimlane ID of the card</td>
  8599. </tr>
  8600. <tr>
  8601. <td>» listId</td>
  8602. <td>body</td>
  8603. <td>string</td>
  8604. <td>false</td>
  8605. <td>the new list ID of the card (move operation)</td>
  8606. </tr>
  8607. <tr>
  8608. <td>» authorId</td>
  8609. <td>body</td>
  8610. <td>string</td>
  8611. <td>false</td>
  8612. <td>change the owner of the card</td>
  8613. </tr>
  8614. </tbody>
  8615. </table>
  8616. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8617. <p><strong>board</strong>: the board ID of the card</p>
  8618. <p><strong>list</strong>: the list ID of the card</p>
  8619. <p><strong>card</strong>: the ID of the card</p>
  8620. <blockquote>
  8621. <p>Example responses</p>
  8622. </blockquote>
  8623. <blockquote>
  8624. <p>200 Response</p>
  8625. </blockquote>
  8626. <pre class="highlight tab tab-json"><code>{
  8627. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8628. }
  8629. </code></pre>
  8630. <h3 id="edit_card-responses">Responses</h3>
  8631. <table>
  8632. <thead>
  8633. <tr>
  8634. <th>Status</th>
  8635. <th>Meaning</th>
  8636. <th>Description</th>
  8637. <th>Schema</th>
  8638. </tr>
  8639. </thead>
  8640. <tbody>
  8641. <tr>
  8642. <td>200</td>
  8643. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8644. <td>200 response</td>
  8645. <td>Inline</td>
  8646. </tr>
  8647. </tbody>
  8648. </table>
  8649. <h3 id="edit_card-responseschema">Response Schema</h3>
  8650. <p>Status Code <strong>200</strong></p>
  8651. <table>
  8652. <thead>
  8653. <tr>
  8654. <th>Name</th>
  8655. <th>Type</th>
  8656. <th>Required</th>
  8657. <th>Restrictions</th>
  8658. <th>Description</th>
  8659. </tr>
  8660. </thead>
  8661. <tbody>
  8662. <tr>
  8663. <td>» _id</td>
  8664. <td>string</td>
  8665. <td>false</td>
  8666. <td>none</td>
  8667. <td>none</td>
  8668. </tr>
  8669. </tbody>
  8670. </table>
  8671. <aside class="warning">
  8672. To perform this operation, you must be authenticated by means of one of the following methods:
  8673. UserSecurity
  8674. </aside>
  8675. <h2 id="delete_card">delete_card</h2>
  8676. <p><a id="opIddelete_card"></a></p>
  8677. <blockquote>
  8678. <p>Code samples</p>
  8679. </blockquote>
  8680. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8681. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8682. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8683. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8684. </code></pre>
  8685. <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>
  8686. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8687. </span></code></pre>
  8688. <pre class="highlight tab tab-javascript"><code>
  8689. <span class="hljs-keyword">const</span> headers = {
  8690. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8691. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8692. };
  8693. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8694. {
  8695. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8696. <span class="hljs-attr">headers</span>: headers
  8697. })
  8698. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8699. <span class="hljs-keyword">return</span> res.json();
  8700. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8701. <span class="hljs-built_in">console</span>.log(body);
  8702. });
  8703. </code></pre>
  8704. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8705. <span class="hljs-keyword">const</span> headers = {
  8706. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8707. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8708. };
  8709. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8710. {
  8711. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8712. <span class="hljs-attr">headers</span>: headers
  8713. })
  8714. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8715. <span class="hljs-keyword">return</span> res.json();
  8716. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8717. <span class="hljs-built_in">console</span>.log(body);
  8718. });
  8719. </code></pre>
  8720. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8721. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8722. headers = {
  8723. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8724. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8725. }
  8726. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8727. <span class="hljs-symbol">params:</span> {
  8728. }, <span class="hljs-symbol">headers:</span> headers
  8729. p JSON.parse(result)
  8730. </code></pre>
  8731. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8732. headers = {
  8733. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8734. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8735. }
  8736. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8737. <span class="hljs-built_in">print</span>(r.json())
  8738. </code></pre>
  8739. <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>);
  8740. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8741. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8742. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8743. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8744. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8745. String inputLine;
  8746. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8747. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8748. response.append(inputLine);
  8749. }
  8750. in.close();
  8751. System.out.println(response.toString());
  8752. </code></pre>
  8753. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8754. <span class="hljs-keyword">import</span> (
  8755. <span class="hljs-string">&quot;bytes&quot;</span>
  8756. <span class="hljs-string">&quot;net/http&quot;</span>
  8757. )
  8758. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8759. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8760. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8761. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8762. }
  8763. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8764. 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)
  8765. req.Header = headers
  8766. client := &amp;http.Client{}
  8767. resp, err := client.Do(req)
  8768. <span class="hljs-comment">// ...</span>
  8769. }
  8770. </code></pre>
  8771. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8772. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8773. );
  8774. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8775. <span class="hljs-comment">// Define array of request body.</span>
  8776. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8777. <span class="hljs-keyword">try</span> {
  8778. <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>(
  8779. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8780. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8781. )
  8782. );
  8783. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8784. }
  8785. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8786. <span class="hljs-comment">// handle exception or api errors.</span>
  8787. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8788. }
  8789. <span class="hljs-comment">// ...</span>
  8790. </code></pre>
  8791. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8792. <p><em>Delete a card from a board</em></p>
  8793. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8794. is not put in the recycle bin.</p>
  8795. <h3 id="delete_card-parameters">Parameters</h3>
  8796. <table>
  8797. <thead>
  8798. <tr>
  8799. <th>Name</th>
  8800. <th>In</th>
  8801. <th>Type</th>
  8802. <th>Required</th>
  8803. <th>Description</th>
  8804. </tr>
  8805. </thead>
  8806. <tbody>
  8807. <tr>
  8808. <td>board</td>
  8809. <td>path</td>
  8810. <td>string</td>
  8811. <td>true</td>
  8812. <td>the board ID of the card</td>
  8813. </tr>
  8814. <tr>
  8815. <td>list</td>
  8816. <td>path</td>
  8817. <td>string</td>
  8818. <td>true</td>
  8819. <td>the list ID of the card</td>
  8820. </tr>
  8821. <tr>
  8822. <td>card</td>
  8823. <td>path</td>
  8824. <td>string</td>
  8825. <td>true</td>
  8826. <td>the ID of the card</td>
  8827. </tr>
  8828. </tbody>
  8829. </table>
  8830. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8831. <p><strong>board</strong>: the board ID of the card</p>
  8832. <p><strong>list</strong>: the list ID of the card</p>
  8833. <p><strong>card</strong>: the ID of the card</p>
  8834. <blockquote>
  8835. <p>Example responses</p>
  8836. </blockquote>
  8837. <blockquote>
  8838. <p>200 Response</p>
  8839. </blockquote>
  8840. <pre class="highlight tab tab-json"><code>{
  8841. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8842. }
  8843. </code></pre>
  8844. <h3 id="delete_card-responses">Responses</h3>
  8845. <table>
  8846. <thead>
  8847. <tr>
  8848. <th>Status</th>
  8849. <th>Meaning</th>
  8850. <th>Description</th>
  8851. <th>Schema</th>
  8852. </tr>
  8853. </thead>
  8854. <tbody>
  8855. <tr>
  8856. <td>200</td>
  8857. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8858. <td>200 response</td>
  8859. <td>Inline</td>
  8860. </tr>
  8861. </tbody>
  8862. </table>
  8863. <h3 id="delete_card-responseschema">Response Schema</h3>
  8864. <p>Status Code <strong>200</strong></p>
  8865. <table>
  8866. <thead>
  8867. <tr>
  8868. <th>Name</th>
  8869. <th>Type</th>
  8870. <th>Required</th>
  8871. <th>Restrictions</th>
  8872. <th>Description</th>
  8873. </tr>
  8874. </thead>
  8875. <tbody>
  8876. <tr>
  8877. <td>» _id</td>
  8878. <td>string</td>
  8879. <td>false</td>
  8880. <td>none</td>
  8881. <td>none</td>
  8882. </tr>
  8883. </tbody>
  8884. </table>
  8885. <aside class="warning">
  8886. To perform this operation, you must be authenticated by means of one of the following methods:
  8887. UserSecurity
  8888. </aside>
  8889. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  8890. <p><a id="opIdget_list_cards_count"></a></p>
  8891. <blockquote>
  8892. <p>Code samples</p>
  8893. </blockquote>
  8894. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8895. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  8896. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8897. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8898. </code></pre>
  8899. <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>
  8900. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8901. </span></code></pre>
  8902. <pre class="highlight tab tab-javascript"><code>
  8903. <span class="hljs-keyword">const</span> headers = {
  8904. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8905. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8906. };
  8907. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8908. {
  8909. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8910. <span class="hljs-attr">headers</span>: headers
  8911. })
  8912. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8913. <span class="hljs-keyword">return</span> res.json();
  8914. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8915. <span class="hljs-built_in">console</span>.log(body);
  8916. });
  8917. </code></pre>
  8918. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8919. <span class="hljs-keyword">const</span> headers = {
  8920. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8921. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8922. };
  8923. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8924. {
  8925. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8926. <span class="hljs-attr">headers</span>: headers
  8927. })
  8928. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8929. <span class="hljs-keyword">return</span> res.json();
  8930. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8931. <span class="hljs-built_in">console</span>.log(body);
  8932. });
  8933. </code></pre>
  8934. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8935. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8936. headers = {
  8937. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8938. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8939. }
  8940. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8941. <span class="hljs-symbol">params:</span> {
  8942. }, <span class="hljs-symbol">headers:</span> headers
  8943. p JSON.parse(result)
  8944. </code></pre>
  8945. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8946. headers = {
  8947. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8948. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8949. }
  8950. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, headers = headers)
  8951. <span class="hljs-built_in">print</span>(r.json())
  8952. </code></pre>
  8953. <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>);
  8954. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8955. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8956. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8957. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8958. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8959. String inputLine;
  8960. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8961. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8962. response.append(inputLine);
  8963. }
  8964. in.close();
  8965. System.out.println(response.toString());
  8966. </code></pre>
  8967. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8968. <span class="hljs-keyword">import</span> (
  8969. <span class="hljs-string">&quot;bytes&quot;</span>
  8970. <span class="hljs-string">&quot;net/http&quot;</span>
  8971. )
  8972. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8973. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8974. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8975. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8976. }
  8977. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8978. 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)
  8979. req.Header = headers
  8980. client := &amp;http.Client{}
  8981. resp, err := client.Do(req)
  8982. <span class="hljs-comment">// ...</span>
  8983. }
  8984. </code></pre>
  8985. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8986. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8987. );
  8988. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8989. <span class="hljs-comment">// Define array of request body.</span>
  8990. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8991. <span class="hljs-keyword">try</span> {
  8992. <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>(
  8993. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8994. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8995. )
  8996. );
  8997. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8998. }
  8999. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9000. <span class="hljs-comment">// handle exception or api errors.</span>
  9001. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9002. }
  9003. <span class="hljs-comment">// ...</span>
  9004. </code></pre>
  9005. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9006. <p><em>Get a cards count to a list</em></p>
  9007. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9008. <table>
  9009. <thead>
  9010. <tr>
  9011. <th>Name</th>
  9012. <th>In</th>
  9013. <th>Type</th>
  9014. <th>Required</th>
  9015. <th>Description</th>
  9016. </tr>
  9017. </thead>
  9018. <tbody>
  9019. <tr>
  9020. <td>board</td>
  9021. <td>path</td>
  9022. <td>string</td>
  9023. <td>true</td>
  9024. <td>the board ID</td>
  9025. </tr>
  9026. <tr>
  9027. <td>list</td>
  9028. <td>path</td>
  9029. <td>string</td>
  9030. <td>true</td>
  9031. <td>the List ID</td>
  9032. </tr>
  9033. </tbody>
  9034. </table>
  9035. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9036. <p><strong>board</strong>: the board ID</p>
  9037. <p><strong>list</strong>: the List ID</p>
  9038. <blockquote>
  9039. <p>Example responses</p>
  9040. </blockquote>
  9041. <blockquote>
  9042. <p>200 Response</p>
  9043. </blockquote>
  9044. <pre class="highlight tab tab-json"><code>{
  9045. <span class="hljs-attr">&quot;list_cards_count&quot;</span>: <span class="hljs-number">0</span>
  9046. }
  9047. </code></pre>
  9048. <h3 id="get_list_cards_count-responses">Responses</h3>
  9049. <table>
  9050. <thead>
  9051. <tr>
  9052. <th>Status</th>
  9053. <th>Meaning</th>
  9054. <th>Description</th>
  9055. <th>Schema</th>
  9056. </tr>
  9057. </thead>
  9058. <tbody>
  9059. <tr>
  9060. <td>200</td>
  9061. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9062. <td>200 response</td>
  9063. <td>Inline</td>
  9064. </tr>
  9065. </tbody>
  9066. </table>
  9067. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9068. <p>Status Code <strong>200</strong></p>
  9069. <table>
  9070. <thead>
  9071. <tr>
  9072. <th>Name</th>
  9073. <th>Type</th>
  9074. <th>Required</th>
  9075. <th>Restrictions</th>
  9076. <th>Description</th>
  9077. </tr>
  9078. </thead>
  9079. <tbody>
  9080. <tr>
  9081. <td>» list_cards_count</td>
  9082. <td>integer</td>
  9083. <td>false</td>
  9084. <td>none</td>
  9085. <td>none</td>
  9086. </tr>
  9087. </tbody>
  9088. </table>
  9089. <aside class="warning">
  9090. To perform this operation, you must be authenticated by means of one of the following methods:
  9091. UserSecurity
  9092. </aside>
  9093. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9094. <p><a id="opIdget_swimlane_cards"></a></p>
  9095. <blockquote>
  9096. <p>Code samples</p>
  9097. </blockquote>
  9098. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9099. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9100. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9101. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9102. </code></pre>
  9103. <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>
  9104. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9105. </span></code></pre>
  9106. <pre class="highlight tab tab-javascript"><code>
  9107. <span class="hljs-keyword">const</span> headers = {
  9108. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9109. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9110. };
  9111. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9112. {
  9113. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9114. <span class="hljs-attr">headers</span>: headers
  9115. })
  9116. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9117. <span class="hljs-keyword">return</span> res.json();
  9118. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9119. <span class="hljs-built_in">console</span>.log(body);
  9120. });
  9121. </code></pre>
  9122. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9123. <span class="hljs-keyword">const</span> headers = {
  9124. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9125. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9126. };
  9127. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9128. {
  9129. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9130. <span class="hljs-attr">headers</span>: headers
  9131. })
  9132. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9133. <span class="hljs-keyword">return</span> res.json();
  9134. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9135. <span class="hljs-built_in">console</span>.log(body);
  9136. });
  9137. </code></pre>
  9138. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9139. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9140. headers = {
  9141. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9142. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9143. }
  9144. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9145. <span class="hljs-symbol">params:</span> {
  9146. }, <span class="hljs-symbol">headers:</span> headers
  9147. p JSON.parse(result)
  9148. </code></pre>
  9149. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9150. headers = {
  9151. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9152. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9153. }
  9154. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  9155. <span class="hljs-built_in">print</span>(r.json())
  9156. </code></pre>
  9157. <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>);
  9158. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9159. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9160. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9161. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9162. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9163. String inputLine;
  9164. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9165. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9166. response.append(inputLine);
  9167. }
  9168. in.close();
  9169. System.out.println(response.toString());
  9170. </code></pre>
  9171. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9172. <span class="hljs-keyword">import</span> (
  9173. <span class="hljs-string">&quot;bytes&quot;</span>
  9174. <span class="hljs-string">&quot;net/http&quot;</span>
  9175. )
  9176. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9177. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9178. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9179. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9180. }
  9181. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9182. 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)
  9183. req.Header = headers
  9184. client := &amp;http.Client{}
  9185. resp, err := client.Do(req)
  9186. <span class="hljs-comment">// ...</span>
  9187. }
  9188. </code></pre>
  9189. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9190. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9191. );
  9192. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9193. <span class="hljs-comment">// Define array of request body.</span>
  9194. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9195. <span class="hljs-keyword">try</span> {
  9196. <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>(
  9197. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9198. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9199. )
  9200. );
  9201. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9202. }
  9203. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9204. <span class="hljs-comment">// handle exception or api errors.</span>
  9205. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9206. }
  9207. <span class="hljs-comment">// ...</span>
  9208. </code></pre>
  9209. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9210. <p><em>get all cards attached to a swimlane</em></p>
  9211. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9212. <table>
  9213. <thead>
  9214. <tr>
  9215. <th>Name</th>
  9216. <th>In</th>
  9217. <th>Type</th>
  9218. <th>Required</th>
  9219. <th>Description</th>
  9220. </tr>
  9221. </thead>
  9222. <tbody>
  9223. <tr>
  9224. <td>board</td>
  9225. <td>path</td>
  9226. <td>string</td>
  9227. <td>true</td>
  9228. <td>the board ID</td>
  9229. </tr>
  9230. <tr>
  9231. <td>swimlane</td>
  9232. <td>path</td>
  9233. <td>string</td>
  9234. <td>true</td>
  9235. <td>the swimlane ID</td>
  9236. </tr>
  9237. </tbody>
  9238. </table>
  9239. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9240. <p><strong>board</strong>: the board ID</p>
  9241. <p><strong>swimlane</strong>: the swimlane ID</p>
  9242. <blockquote>
  9243. <p>Example responses</p>
  9244. </blockquote>
  9245. <blockquote>
  9246. <p>200 Response</p>
  9247. </blockquote>
  9248. <pre class="highlight tab tab-json"><code>[
  9249. {
  9250. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9251. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9252. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9253. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9254. }
  9255. ]
  9256. </code></pre>
  9257. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9258. <table>
  9259. <thead>
  9260. <tr>
  9261. <th>Status</th>
  9262. <th>Meaning</th>
  9263. <th>Description</th>
  9264. <th>Schema</th>
  9265. </tr>
  9266. </thead>
  9267. <tbody>
  9268. <tr>
  9269. <td>200</td>
  9270. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9271. <td>200 response</td>
  9272. <td>Inline</td>
  9273. </tr>
  9274. </tbody>
  9275. </table>
  9276. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9277. <p>Status Code <strong>200</strong></p>
  9278. <table>
  9279. <thead>
  9280. <tr>
  9281. <th>Name</th>
  9282. <th>Type</th>
  9283. <th>Required</th>
  9284. <th>Restrictions</th>
  9285. <th>Description</th>
  9286. </tr>
  9287. </thead>
  9288. <tbody>
  9289. <tr>
  9290. <td>» _id</td>
  9291. <td>string</td>
  9292. <td>false</td>
  9293. <td>none</td>
  9294. <td>none</td>
  9295. </tr>
  9296. <tr>
  9297. <td>» title</td>
  9298. <td>string</td>
  9299. <td>false</td>
  9300. <td>none</td>
  9301. <td>none</td>
  9302. </tr>
  9303. <tr>
  9304. <td>» description</td>
  9305. <td>string</td>
  9306. <td>false</td>
  9307. <td>none</td>
  9308. <td>none</td>
  9309. </tr>
  9310. <tr>
  9311. <td>» listId</td>
  9312. <td>string</td>
  9313. <td>false</td>
  9314. <td>none</td>
  9315. <td>none</td>
  9316. </tr>
  9317. </tbody>
  9318. </table>
  9319. <aside class="warning">
  9320. To perform this operation, you must be authenticated by means of one of the following methods:
  9321. UserSecurity
  9322. </aside>
  9323. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9324. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9325. <p><a id="opIdget_all_custom_fields"></a></p>
  9326. <blockquote>
  9327. <p>Code samples</p>
  9328. </blockquote>
  9329. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9330. curl -X GET /api/boards/{board}/custom-fields \
  9331. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9332. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9333. </code></pre>
  9334. <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>
  9335. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9336. </span></code></pre>
  9337. <pre class="highlight tab tab-javascript"><code>
  9338. <span class="hljs-keyword">const</span> headers = {
  9339. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9340. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9341. };
  9342. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9343. {
  9344. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9345. <span class="hljs-attr">headers</span>: headers
  9346. })
  9347. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9348. <span class="hljs-keyword">return</span> res.json();
  9349. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9350. <span class="hljs-built_in">console</span>.log(body);
  9351. });
  9352. </code></pre>
  9353. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9354. <span class="hljs-keyword">const</span> headers = {
  9355. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9356. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9357. };
  9358. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9359. {
  9360. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9361. <span class="hljs-attr">headers</span>: headers
  9362. })
  9363. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9364. <span class="hljs-keyword">return</span> res.json();
  9365. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9366. <span class="hljs-built_in">console</span>.log(body);
  9367. });
  9368. </code></pre>
  9369. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9370. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9371. headers = {
  9372. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9373. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9374. }
  9375. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9376. <span class="hljs-symbol">params:</span> {
  9377. }, <span class="hljs-symbol">headers:</span> headers
  9378. p JSON.parse(result)
  9379. </code></pre>
  9380. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9381. headers = {
  9382. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9383. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9384. }
  9385. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9386. <span class="hljs-built_in">print</span>(r.json())
  9387. </code></pre>
  9388. <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>);
  9389. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9390. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9391. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9392. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9393. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9394. String inputLine;
  9395. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9396. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9397. response.append(inputLine);
  9398. }
  9399. in.close();
  9400. System.out.println(response.toString());
  9401. </code></pre>
  9402. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9403. <span class="hljs-keyword">import</span> (
  9404. <span class="hljs-string">&quot;bytes&quot;</span>
  9405. <span class="hljs-string">&quot;net/http&quot;</span>
  9406. )
  9407. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9408. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9409. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9410. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9411. }
  9412. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9413. 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)
  9414. req.Header = headers
  9415. client := &amp;http.Client{}
  9416. resp, err := client.Do(req)
  9417. <span class="hljs-comment">// ...</span>
  9418. }
  9419. </code></pre>
  9420. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9421. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9422. );
  9423. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9424. <span class="hljs-comment">// Define array of request body.</span>
  9425. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9426. <span class="hljs-keyword">try</span> {
  9427. <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>(
  9428. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9429. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9430. )
  9431. );
  9432. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9433. }
  9434. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9435. <span class="hljs-comment">// handle exception or api errors.</span>
  9436. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9437. }
  9438. <span class="hljs-comment">// ...</span>
  9439. </code></pre>
  9440. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9441. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9442. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9443. <table>
  9444. <thead>
  9445. <tr>
  9446. <th>Name</th>
  9447. <th>In</th>
  9448. <th>Type</th>
  9449. <th>Required</th>
  9450. <th>Description</th>
  9451. </tr>
  9452. </thead>
  9453. <tbody>
  9454. <tr>
  9455. <td>board</td>
  9456. <td>path</td>
  9457. <td>string</td>
  9458. <td>true</td>
  9459. <td>the board value</td>
  9460. </tr>
  9461. </tbody>
  9462. </table>
  9463. <blockquote>
  9464. <p>Example responses</p>
  9465. </blockquote>
  9466. <blockquote>
  9467. <p>200 Response</p>
  9468. </blockquote>
  9469. <pre class="highlight tab tab-json"><code>[
  9470. {
  9471. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9472. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9473. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9474. }
  9475. ]
  9476. </code></pre>
  9477. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9478. <table>
  9479. <thead>
  9480. <tr>
  9481. <th>Status</th>
  9482. <th>Meaning</th>
  9483. <th>Description</th>
  9484. <th>Schema</th>
  9485. </tr>
  9486. </thead>
  9487. <tbody>
  9488. <tr>
  9489. <td>200</td>
  9490. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9491. <td>200 response</td>
  9492. <td>Inline</td>
  9493. </tr>
  9494. </tbody>
  9495. </table>
  9496. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9497. <p>Status Code <strong>200</strong></p>
  9498. <table>
  9499. <thead>
  9500. <tr>
  9501. <th>Name</th>
  9502. <th>Type</th>
  9503. <th>Required</th>
  9504. <th>Restrictions</th>
  9505. <th>Description</th>
  9506. </tr>
  9507. </thead>
  9508. <tbody>
  9509. <tr>
  9510. <td>» _id</td>
  9511. <td>string</td>
  9512. <td>false</td>
  9513. <td>none</td>
  9514. <td>none</td>
  9515. </tr>
  9516. <tr>
  9517. <td>» name</td>
  9518. <td>string</td>
  9519. <td>false</td>
  9520. <td>none</td>
  9521. <td>none</td>
  9522. </tr>
  9523. <tr>
  9524. <td>» type</td>
  9525. <td>string</td>
  9526. <td>false</td>
  9527. <td>none</td>
  9528. <td>none</td>
  9529. </tr>
  9530. </tbody>
  9531. </table>
  9532. <aside class="warning">
  9533. To perform this operation, you must be authenticated by means of one of the following methods:
  9534. UserSecurity
  9535. </aside>
  9536. <h2 id="new_custom_field">new_custom_field</h2>
  9537. <p><a id="opIdnew_custom_field"></a></p>
  9538. <blockquote>
  9539. <p>Code samples</p>
  9540. </blockquote>
  9541. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9542. curl -X POST /api/boards/{board}/custom-fields \
  9543. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9544. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9545. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9546. </code></pre>
  9547. <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>
  9548. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9549. Accept: application/json
  9550. </span></code></pre>
  9551. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9552. &quot;name&quot;: &quot;string&quot;,
  9553. &quot;type&quot;: &quot;string&quot;,
  9554. &quot;settings&quot;: &quot;string&quot;,
  9555. &quot;showOnCard&quot;: true,
  9556. &quot;automaticallyOnCard&quot;: true,
  9557. &quot;showLabelOnMiniCard&quot;: true,
  9558. &quot;showSumAtTopOfList&quot;: true,
  9559. &quot;authorId&quot;: &quot;string&quot;
  9560. }&#x27;</span>;
  9561. <span class="hljs-keyword">const</span> headers = {
  9562. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9563. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9564. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9565. };
  9566. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9567. {
  9568. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9569. <span class="hljs-attr">body</span>: inputBody,
  9570. <span class="hljs-attr">headers</span>: headers
  9571. })
  9572. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9573. <span class="hljs-keyword">return</span> res.json();
  9574. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9575. <span class="hljs-built_in">console</span>.log(body);
  9576. });
  9577. </code></pre>
  9578. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9579. <span class="hljs-keyword">const</span> inputBody = {
  9580. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9581. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9582. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9583. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9584. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9585. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9586. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  9587. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9588. };
  9589. <span class="hljs-keyword">const</span> headers = {
  9590. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9591. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9592. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9593. };
  9594. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9595. {
  9596. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9597. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9598. <span class="hljs-attr">headers</span>: headers
  9599. })
  9600. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9601. <span class="hljs-keyword">return</span> res.json();
  9602. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9603. <span class="hljs-built_in">console</span>.log(body);
  9604. });
  9605. </code></pre>
  9606. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9607. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9608. headers = {
  9609. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9610. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9611. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9612. }
  9613. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9614. <span class="hljs-symbol">params:</span> {
  9615. }, <span class="hljs-symbol">headers:</span> headers
  9616. p JSON.parse(result)
  9617. </code></pre>
  9618. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9619. headers = {
  9620. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9621. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9622. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9623. }
  9624. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9625. <span class="hljs-built_in">print</span>(r.json())
  9626. </code></pre>
  9627. <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>);
  9628. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9629. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9630. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9631. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9632. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9633. String inputLine;
  9634. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9635. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9636. response.append(inputLine);
  9637. }
  9638. in.close();
  9639. System.out.println(response.toString());
  9640. </code></pre>
  9641. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9642. <span class="hljs-keyword">import</span> (
  9643. <span class="hljs-string">&quot;bytes&quot;</span>
  9644. <span class="hljs-string">&quot;net/http&quot;</span>
  9645. )
  9646. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9647. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9648. <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>},
  9649. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9650. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9651. }
  9652. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9653. 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)
  9654. req.Header = headers
  9655. client := &amp;http.Client{}
  9656. resp, err := client.Do(req)
  9657. <span class="hljs-comment">// ...</span>
  9658. }
  9659. </code></pre>
  9660. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9661. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9662. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9663. );
  9664. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9665. <span class="hljs-comment">// Define array of request body.</span>
  9666. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9667. <span class="hljs-keyword">try</span> {
  9668. <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>(
  9669. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9670. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9671. )
  9672. );
  9673. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9674. }
  9675. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9676. <span class="hljs-comment">// handle exception or api errors.</span>
  9677. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9678. }
  9679. <span class="hljs-comment">// ...</span>
  9680. </code></pre>
  9681. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9682. <p><em>Create a Custom Field</em></p>
  9683. <blockquote>
  9684. <p>Body parameter</p>
  9685. </blockquote>
  9686. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9687. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9688. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9689. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9690. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9691. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9692. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9693. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9694. </code></pre>
  9695. <h3 id="new_custom_field-parameters">Parameters</h3>
  9696. <table>
  9697. <thead>
  9698. <tr>
  9699. <th>Name</th>
  9700. <th>In</th>
  9701. <th>Type</th>
  9702. <th>Required</th>
  9703. <th>Description</th>
  9704. </tr>
  9705. </thead>
  9706. <tbody>
  9707. <tr>
  9708. <td>board</td>
  9709. <td>path</td>
  9710. <td>string</td>
  9711. <td>true</td>
  9712. <td>the board value</td>
  9713. </tr>
  9714. <tr>
  9715. <td>body</td>
  9716. <td>body</td>
  9717. <td>object</td>
  9718. <td>true</td>
  9719. <td>none</td>
  9720. </tr>
  9721. <tr>
  9722. <td>» name</td>
  9723. <td>body</td>
  9724. <td>string</td>
  9725. <td>true</td>
  9726. <td>the name of the custom field</td>
  9727. </tr>
  9728. <tr>
  9729. <td>» type</td>
  9730. <td>body</td>
  9731. <td>string</td>
  9732. <td>true</td>
  9733. <td>the type of the custom field</td>
  9734. </tr>
  9735. <tr>
  9736. <td>» settings</td>
  9737. <td>body</td>
  9738. <td>string</td>
  9739. <td>true</td>
  9740. <td>the settings object of the custom field</td>
  9741. </tr>
  9742. <tr>
  9743. <td>» showOnCard</td>
  9744. <td>body</td>
  9745. <td>boolean</td>
  9746. <td>true</td>
  9747. <td>should we show the custom field on cards?</td>
  9748. </tr>
  9749. <tr>
  9750. <td>» automaticallyOnCard</td>
  9751. <td>body</td>
  9752. <td>boolean</td>
  9753. <td>true</td>
  9754. <td>should the custom fields automatically be added on cards?</td>
  9755. </tr>
  9756. <tr>
  9757. <td>» showLabelOnMiniCard</td>
  9758. <td>body</td>
  9759. <td>boolean</td>
  9760. <td>true</td>
  9761. <td>should the label of the custom field be shown on minicards?</td>
  9762. </tr>
  9763. <tr>
  9764. <td>» showSumAtTopOfList</td>
  9765. <td>body</td>
  9766. <td>boolean</td>
  9767. <td>true</td>
  9768. <td>should the sum of the custom fields be shown at top of list?</td>
  9769. </tr>
  9770. <tr>
  9771. <td>» authorId</td>
  9772. <td>body</td>
  9773. <td>string</td>
  9774. <td>true</td>
  9775. <td>the authorId value</td>
  9776. </tr>
  9777. </tbody>
  9778. </table>
  9779. <blockquote>
  9780. <p>Example responses</p>
  9781. </blockquote>
  9782. <blockquote>
  9783. <p>200 Response</p>
  9784. </blockquote>
  9785. <pre class="highlight tab tab-json"><code>{
  9786. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9787. }
  9788. </code></pre>
  9789. <h3 id="new_custom_field-responses">Responses</h3>
  9790. <table>
  9791. <thead>
  9792. <tr>
  9793. <th>Status</th>
  9794. <th>Meaning</th>
  9795. <th>Description</th>
  9796. <th>Schema</th>
  9797. </tr>
  9798. </thead>
  9799. <tbody>
  9800. <tr>
  9801. <td>200</td>
  9802. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9803. <td>200 response</td>
  9804. <td>Inline</td>
  9805. </tr>
  9806. </tbody>
  9807. </table>
  9808. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9809. <p>Status Code <strong>200</strong></p>
  9810. <table>
  9811. <thead>
  9812. <tr>
  9813. <th>Name</th>
  9814. <th>Type</th>
  9815. <th>Required</th>
  9816. <th>Restrictions</th>
  9817. <th>Description</th>
  9818. </tr>
  9819. </thead>
  9820. <tbody>
  9821. <tr>
  9822. <td>» _id</td>
  9823. <td>string</td>
  9824. <td>false</td>
  9825. <td>none</td>
  9826. <td>none</td>
  9827. </tr>
  9828. </tbody>
  9829. </table>
  9830. <aside class="warning">
  9831. To perform this operation, you must be authenticated by means of one of the following methods:
  9832. UserSecurity
  9833. </aside>
  9834. <h2 id="get_custom_field">get_custom_field</h2>
  9835. <p><a id="opIdget_custom_field"></a></p>
  9836. <blockquote>
  9837. <p>Code samples</p>
  9838. </blockquote>
  9839. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9840. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9841. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9842. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9843. </code></pre>
  9844. <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>
  9845. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9846. </span></code></pre>
  9847. <pre class="highlight tab tab-javascript"><code>
  9848. <span class="hljs-keyword">const</span> headers = {
  9849. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9850. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9851. };
  9852. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9853. {
  9854. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9855. <span class="hljs-attr">headers</span>: headers
  9856. })
  9857. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9858. <span class="hljs-keyword">return</span> res.json();
  9859. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9860. <span class="hljs-built_in">console</span>.log(body);
  9861. });
  9862. </code></pre>
  9863. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9864. <span class="hljs-keyword">const</span> headers = {
  9865. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9866. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9867. };
  9868. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9869. {
  9870. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9871. <span class="hljs-attr">headers</span>: headers
  9872. })
  9873. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9874. <span class="hljs-keyword">return</span> res.json();
  9875. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9876. <span class="hljs-built_in">console</span>.log(body);
  9877. });
  9878. </code></pre>
  9879. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9880. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9881. headers = {
  9882. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9883. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9884. }
  9885. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9886. <span class="hljs-symbol">params:</span> {
  9887. }, <span class="hljs-symbol">headers:</span> headers
  9888. p JSON.parse(result)
  9889. </code></pre>
  9890. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9891. headers = {
  9892. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9893. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9894. }
  9895. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9896. <span class="hljs-built_in">print</span>(r.json())
  9897. </code></pre>
  9898. <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>);
  9899. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9900. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9901. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9902. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9903. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9904. String inputLine;
  9905. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9906. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9907. response.append(inputLine);
  9908. }
  9909. in.close();
  9910. System.out.println(response.toString());
  9911. </code></pre>
  9912. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9913. <span class="hljs-keyword">import</span> (
  9914. <span class="hljs-string">&quot;bytes&quot;</span>
  9915. <span class="hljs-string">&quot;net/http&quot;</span>
  9916. )
  9917. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9918. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9919. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9920. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9921. }
  9922. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9923. 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)
  9924. req.Header = headers
  9925. client := &amp;http.Client{}
  9926. resp, err := client.Do(req)
  9927. <span class="hljs-comment">// ...</span>
  9928. }
  9929. </code></pre>
  9930. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9931. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9932. );
  9933. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9934. <span class="hljs-comment">// Define array of request body.</span>
  9935. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9936. <span class="hljs-keyword">try</span> {
  9937. <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>(
  9938. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9939. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9940. )
  9941. );
  9942. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9943. }
  9944. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9945. <span class="hljs-comment">// handle exception or api errors.</span>
  9946. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9947. }
  9948. <span class="hljs-comment">// ...</span>
  9949. </code></pre>
  9950. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9951. <p><em>Get a Custom Fields attached to a board</em></p>
  9952. <h3 id="get_custom_field-parameters">Parameters</h3>
  9953. <table>
  9954. <thead>
  9955. <tr>
  9956. <th>Name</th>
  9957. <th>In</th>
  9958. <th>Type</th>
  9959. <th>Required</th>
  9960. <th>Description</th>
  9961. </tr>
  9962. </thead>
  9963. <tbody>
  9964. <tr>
  9965. <td>board</td>
  9966. <td>path</td>
  9967. <td>string</td>
  9968. <td>true</td>
  9969. <td>the board value</td>
  9970. </tr>
  9971. <tr>
  9972. <td>customField</td>
  9973. <td>path</td>
  9974. <td>string</td>
  9975. <td>true</td>
  9976. <td>the ID of the custom field</td>
  9977. </tr>
  9978. </tbody>
  9979. </table>
  9980. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  9981. <p><strong>customField</strong>: the ID of the custom field</p>
  9982. <blockquote>
  9983. <p>Example responses</p>
  9984. </blockquote>
  9985. <blockquote>
  9986. <p>200 Response</p>
  9987. </blockquote>
  9988. <pre class="highlight tab tab-json"><code>[
  9989. {
  9990. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9991. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9992. }
  9993. ]
  9994. </code></pre>
  9995. <h3 id="get_custom_field-responses">Responses</h3>
  9996. <table>
  9997. <thead>
  9998. <tr>
  9999. <th>Status</th>
  10000. <th>Meaning</th>
  10001. <th>Description</th>
  10002. <th>Schema</th>
  10003. </tr>
  10004. </thead>
  10005. <tbody>
  10006. <tr>
  10007. <td>200</td>
  10008. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10009. <td>200 response</td>
  10010. <td>Inline</td>
  10011. </tr>
  10012. </tbody>
  10013. </table>
  10014. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10015. <p>Status Code <strong>200</strong></p>
  10016. <table>
  10017. <thead>
  10018. <tr>
  10019. <th>Name</th>
  10020. <th>Type</th>
  10021. <th>Required</th>
  10022. <th>Restrictions</th>
  10023. <th>Description</th>
  10024. </tr>
  10025. </thead>
  10026. <tbody>
  10027. <tr>
  10028. <td>» _id</td>
  10029. <td>string</td>
  10030. <td>false</td>
  10031. <td>none</td>
  10032. <td>none</td>
  10033. </tr>
  10034. <tr>
  10035. <td>» boardIds</td>
  10036. <td>string</td>
  10037. <td>false</td>
  10038. <td>none</td>
  10039. <td>none</td>
  10040. </tr>
  10041. </tbody>
  10042. </table>
  10043. <aside class="warning">
  10044. To perform this operation, you must be authenticated by means of one of the following methods:
  10045. UserSecurity
  10046. </aside>
  10047. <h2 id="edit_custom_field">edit_custom_field</h2>
  10048. <p><a id="opIdedit_custom_field"></a></p>
  10049. <blockquote>
  10050. <p>Code samples</p>
  10051. </blockquote>
  10052. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10053. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10054. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10055. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10056. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10057. </code></pre>
  10058. <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>
  10059. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10060. Accept: application/json
  10061. </span></code></pre>
  10062. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10063. &quot;name&quot;: &quot;string&quot;,
  10064. &quot;type&quot;: &quot;string&quot;,
  10065. &quot;settings&quot;: &quot;string&quot;,
  10066. &quot;showOnCard&quot;: true,
  10067. &quot;automaticallyOnCard&quot;: true,
  10068. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  10069. &quot;showLabelOnMiniCard&quot;: true,
  10070. &quot;showSumAtTopOfList&quot;: true
  10071. }&#x27;</span>;
  10072. <span class="hljs-keyword">const</span> headers = {
  10073. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10074. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10075. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10076. };
  10077. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10078. {
  10079. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10080. <span class="hljs-attr">body</span>: inputBody,
  10081. <span class="hljs-attr">headers</span>: headers
  10082. })
  10083. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10084. <span class="hljs-keyword">return</span> res.json();
  10085. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10086. <span class="hljs-built_in">console</span>.log(body);
  10087. });
  10088. </code></pre>
  10089. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10090. <span class="hljs-keyword">const</span> inputBody = {
  10091. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10092. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10093. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10094. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10095. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10096. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10097. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10098. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  10099. };
  10100. <span class="hljs-keyword">const</span> headers = {
  10101. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10102. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10103. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10104. };
  10105. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10106. {
  10107. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10108. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10109. <span class="hljs-attr">headers</span>: headers
  10110. })
  10111. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10112. <span class="hljs-keyword">return</span> res.json();
  10113. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10114. <span class="hljs-built_in">console</span>.log(body);
  10115. });
  10116. </code></pre>
  10117. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10118. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10119. headers = {
  10120. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10121. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10122. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10123. }
  10124. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10125. <span class="hljs-symbol">params:</span> {
  10126. }, <span class="hljs-symbol">headers:</span> headers
  10127. p JSON.parse(result)
  10128. </code></pre>
  10129. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10130. headers = {
  10131. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10132. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10133. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10134. }
  10135. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10136. <span class="hljs-built_in">print</span>(r.json())
  10137. </code></pre>
  10138. <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>);
  10139. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10140. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10141. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10142. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10143. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10144. String inputLine;
  10145. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10146. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10147. response.append(inputLine);
  10148. }
  10149. in.close();
  10150. System.out.println(response.toString());
  10151. </code></pre>
  10152. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10153. <span class="hljs-keyword">import</span> (
  10154. <span class="hljs-string">&quot;bytes&quot;</span>
  10155. <span class="hljs-string">&quot;net/http&quot;</span>
  10156. )
  10157. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10158. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10159. <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>},
  10160. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10161. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10162. }
  10163. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10164. 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)
  10165. req.Header = headers
  10166. client := &amp;http.Client{}
  10167. resp, err := client.Do(req)
  10168. <span class="hljs-comment">// ...</span>
  10169. }
  10170. </code></pre>
  10171. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10172. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10173. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10174. );
  10175. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10176. <span class="hljs-comment">// Define array of request body.</span>
  10177. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10178. <span class="hljs-keyword">try</span> {
  10179. <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>(
  10180. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10181. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10182. )
  10183. );
  10184. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10185. }
  10186. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10187. <span class="hljs-comment">// handle exception or api errors.</span>
  10188. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10189. }
  10190. <span class="hljs-comment">// ...</span>
  10191. </code></pre>
  10192. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10193. <p><em>Update a Custom Field</em></p>
  10194. <blockquote>
  10195. <p>Body parameter</p>
  10196. </blockquote>
  10197. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10198. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10199. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10200. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10201. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10202. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10203. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10204. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10205. </code></pre>
  10206. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10207. <table>
  10208. <thead>
  10209. <tr>
  10210. <th>Name</th>
  10211. <th>In</th>
  10212. <th>Type</th>
  10213. <th>Required</th>
  10214. <th>Description</th>
  10215. </tr>
  10216. </thead>
  10217. <tbody>
  10218. <tr>
  10219. <td>board</td>
  10220. <td>path</td>
  10221. <td>string</td>
  10222. <td>true</td>
  10223. <td>the board value</td>
  10224. </tr>
  10225. <tr>
  10226. <td>customField</td>
  10227. <td>path</td>
  10228. <td>string</td>
  10229. <td>true</td>
  10230. <td>the customField value</td>
  10231. </tr>
  10232. <tr>
  10233. <td>body</td>
  10234. <td>body</td>
  10235. <td>object</td>
  10236. <td>true</td>
  10237. <td>none</td>
  10238. </tr>
  10239. <tr>
  10240. <td>» name</td>
  10241. <td>body</td>
  10242. <td>string</td>
  10243. <td>true</td>
  10244. <td>the name of the custom field</td>
  10245. </tr>
  10246. <tr>
  10247. <td>» type</td>
  10248. <td>body</td>
  10249. <td>string</td>
  10250. <td>true</td>
  10251. <td>the type of the custom field</td>
  10252. </tr>
  10253. <tr>
  10254. <td>» settings</td>
  10255. <td>body</td>
  10256. <td>string</td>
  10257. <td>true</td>
  10258. <td>the settings object of the custom field</td>
  10259. </tr>
  10260. <tr>
  10261. <td>» showOnCard</td>
  10262. <td>body</td>
  10263. <td>boolean</td>
  10264. <td>true</td>
  10265. <td>should we show the custom field on cards</td>
  10266. </tr>
  10267. <tr>
  10268. <td>» automaticallyOnCard</td>
  10269. <td>body</td>
  10270. <td>boolean</td>
  10271. <td>true</td>
  10272. <td>should the custom fields automatically be added on cards</td>
  10273. </tr>
  10274. <tr>
  10275. <td>» alwaysOnCard</td>
  10276. <td>body</td>
  10277. <td>string</td>
  10278. <td>true</td>
  10279. <td>the alwaysOnCard value</td>
  10280. </tr>
  10281. <tr>
  10282. <td>» showLabelOnMiniCard</td>
  10283. <td>body</td>
  10284. <td>boolean</td>
  10285. <td>true</td>
  10286. <td>should the label of the custom field be shown on minicards</td>
  10287. </tr>
  10288. <tr>
  10289. <td>» showSumAtTopOfList</td>
  10290. <td>body</td>
  10291. <td>boolean</td>
  10292. <td>true</td>
  10293. <td>should the sum of the custom fields be shown at top of list</td>
  10294. </tr>
  10295. </tbody>
  10296. </table>
  10297. <blockquote>
  10298. <p>Example responses</p>
  10299. </blockquote>
  10300. <blockquote>
  10301. <p>200 Response</p>
  10302. </blockquote>
  10303. <pre class="highlight tab tab-json"><code>{
  10304. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10305. }
  10306. </code></pre>
  10307. <h3 id="edit_custom_field-responses">Responses</h3>
  10308. <table>
  10309. <thead>
  10310. <tr>
  10311. <th>Status</th>
  10312. <th>Meaning</th>
  10313. <th>Description</th>
  10314. <th>Schema</th>
  10315. </tr>
  10316. </thead>
  10317. <tbody>
  10318. <tr>
  10319. <td>200</td>
  10320. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10321. <td>200 response</td>
  10322. <td>Inline</td>
  10323. </tr>
  10324. </tbody>
  10325. </table>
  10326. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10327. <p>Status Code <strong>200</strong></p>
  10328. <table>
  10329. <thead>
  10330. <tr>
  10331. <th>Name</th>
  10332. <th>Type</th>
  10333. <th>Required</th>
  10334. <th>Restrictions</th>
  10335. <th>Description</th>
  10336. </tr>
  10337. </thead>
  10338. <tbody>
  10339. <tr>
  10340. <td>» _id</td>
  10341. <td>string</td>
  10342. <td>false</td>
  10343. <td>none</td>
  10344. <td>none</td>
  10345. </tr>
  10346. </tbody>
  10347. </table>
  10348. <aside class="warning">
  10349. To perform this operation, you must be authenticated by means of one of the following methods:
  10350. UserSecurity
  10351. </aside>
  10352. <h2 id="delete_custom_field">delete_custom_field</h2>
  10353. <p><a id="opIddelete_custom_field"></a></p>
  10354. <blockquote>
  10355. <p>Code samples</p>
  10356. </blockquote>
  10357. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10358. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10359. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10360. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10361. </code></pre>
  10362. <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>
  10363. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10364. </span></code></pre>
  10365. <pre class="highlight tab tab-javascript"><code>
  10366. <span class="hljs-keyword">const</span> headers = {
  10367. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10368. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10369. };
  10370. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10371. {
  10372. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10373. <span class="hljs-attr">headers</span>: headers
  10374. })
  10375. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10376. <span class="hljs-keyword">return</span> res.json();
  10377. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10378. <span class="hljs-built_in">console</span>.log(body);
  10379. });
  10380. </code></pre>
  10381. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10382. <span class="hljs-keyword">const</span> headers = {
  10383. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10384. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10385. };
  10386. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10387. {
  10388. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10389. <span class="hljs-attr">headers</span>: headers
  10390. })
  10391. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10392. <span class="hljs-keyword">return</span> res.json();
  10393. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10394. <span class="hljs-built_in">console</span>.log(body);
  10395. });
  10396. </code></pre>
  10397. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10398. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10399. headers = {
  10400. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10401. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10402. }
  10403. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10404. <span class="hljs-symbol">params:</span> {
  10405. }, <span class="hljs-symbol">headers:</span> headers
  10406. p JSON.parse(result)
  10407. </code></pre>
  10408. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10409. headers = {
  10410. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10411. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10412. }
  10413. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10414. <span class="hljs-built_in">print</span>(r.json())
  10415. </code></pre>
  10416. <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>);
  10417. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10418. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10419. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10420. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10421. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10422. String inputLine;
  10423. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10424. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10425. response.append(inputLine);
  10426. }
  10427. in.close();
  10428. System.out.println(response.toString());
  10429. </code></pre>
  10430. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10431. <span class="hljs-keyword">import</span> (
  10432. <span class="hljs-string">&quot;bytes&quot;</span>
  10433. <span class="hljs-string">&quot;net/http&quot;</span>
  10434. )
  10435. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10436. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10437. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10438. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10439. }
  10440. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10441. 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)
  10442. req.Header = headers
  10443. client := &amp;http.Client{}
  10444. resp, err := client.Do(req)
  10445. <span class="hljs-comment">// ...</span>
  10446. }
  10447. </code></pre>
  10448. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10449. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10450. );
  10451. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10452. <span class="hljs-comment">// Define array of request body.</span>
  10453. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10454. <span class="hljs-keyword">try</span> {
  10455. <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>(
  10456. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10457. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10458. )
  10459. );
  10460. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10461. }
  10462. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10463. <span class="hljs-comment">// handle exception or api errors.</span>
  10464. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10465. }
  10466. <span class="hljs-comment">// ...</span>
  10467. </code></pre>
  10468. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10469. <p><em>Delete a Custom Fields attached to a board</em></p>
  10470. <p>The Custom Field can't be retrieved after this operation</p>
  10471. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10472. <table>
  10473. <thead>
  10474. <tr>
  10475. <th>Name</th>
  10476. <th>In</th>
  10477. <th>Type</th>
  10478. <th>Required</th>
  10479. <th>Description</th>
  10480. </tr>
  10481. </thead>
  10482. <tbody>
  10483. <tr>
  10484. <td>board</td>
  10485. <td>path</td>
  10486. <td>string</td>
  10487. <td>true</td>
  10488. <td>the board value</td>
  10489. </tr>
  10490. <tr>
  10491. <td>customField</td>
  10492. <td>path</td>
  10493. <td>string</td>
  10494. <td>true</td>
  10495. <td>the ID of the custom field</td>
  10496. </tr>
  10497. </tbody>
  10498. </table>
  10499. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  10500. <p><strong>customField</strong>: the ID of the custom field</p>
  10501. <blockquote>
  10502. <p>Example responses</p>
  10503. </blockquote>
  10504. <blockquote>
  10505. <p>200 Response</p>
  10506. </blockquote>
  10507. <pre class="highlight tab tab-json"><code>{
  10508. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10509. }
  10510. </code></pre>
  10511. <h3 id="delete_custom_field-responses">Responses</h3>
  10512. <table>
  10513. <thead>
  10514. <tr>
  10515. <th>Status</th>
  10516. <th>Meaning</th>
  10517. <th>Description</th>
  10518. <th>Schema</th>
  10519. </tr>
  10520. </thead>
  10521. <tbody>
  10522. <tr>
  10523. <td>200</td>
  10524. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10525. <td>200 response</td>
  10526. <td>Inline</td>
  10527. </tr>
  10528. </tbody>
  10529. </table>
  10530. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10531. <p>Status Code <strong>200</strong></p>
  10532. <table>
  10533. <thead>
  10534. <tr>
  10535. <th>Name</th>
  10536. <th>Type</th>
  10537. <th>Required</th>
  10538. <th>Restrictions</th>
  10539. <th>Description</th>
  10540. </tr>
  10541. </thead>
  10542. <tbody>
  10543. <tr>
  10544. <td>» _id</td>
  10545. <td>string</td>
  10546. <td>false</td>
  10547. <td>none</td>
  10548. <td>none</td>
  10549. </tr>
  10550. </tbody>
  10551. </table>
  10552. <aside class="warning">
  10553. To perform this operation, you must be authenticated by means of one of the following methods:
  10554. UserSecurity
  10555. </aside>
  10556. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10557. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10558. <blockquote>
  10559. <p>Code samples</p>
  10560. </blockquote>
  10561. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10562. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10563. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10564. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10565. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10566. </code></pre>
  10567. <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>
  10568. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10569. Accept: application/json
  10570. </span></code></pre>
  10571. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10572. &quot;items&quot;: &quot;string&quot;
  10573. }&#x27;</span>;
  10574. <span class="hljs-keyword">const</span> headers = {
  10575. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10576. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10577. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10578. };
  10579. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10580. {
  10581. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10582. <span class="hljs-attr">body</span>: inputBody,
  10583. <span class="hljs-attr">headers</span>: headers
  10584. })
  10585. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10586. <span class="hljs-keyword">return</span> res.json();
  10587. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10588. <span class="hljs-built_in">console</span>.log(body);
  10589. });
  10590. </code></pre>
  10591. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10592. <span class="hljs-keyword">const</span> inputBody = {
  10593. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10594. };
  10595. <span class="hljs-keyword">const</span> headers = {
  10596. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10597. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10598. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10599. };
  10600. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10601. {
  10602. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10603. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10604. <span class="hljs-attr">headers</span>: headers
  10605. })
  10606. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10607. <span class="hljs-keyword">return</span> res.json();
  10608. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10609. <span class="hljs-built_in">console</span>.log(body);
  10610. });
  10611. </code></pre>
  10612. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10613. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10614. headers = {
  10615. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10616. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10617. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10618. }
  10619. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10620. <span class="hljs-symbol">params:</span> {
  10621. }, <span class="hljs-symbol">headers:</span> headers
  10622. p JSON.parse(result)
  10623. </code></pre>
  10624. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10625. headers = {
  10626. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10627. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10628. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10629. }
  10630. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10631. <span class="hljs-built_in">print</span>(r.json())
  10632. </code></pre>
  10633. <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>);
  10634. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10635. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10636. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10637. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10638. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10639. String inputLine;
  10640. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10641. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10642. response.append(inputLine);
  10643. }
  10644. in.close();
  10645. System.out.println(response.toString());
  10646. </code></pre>
  10647. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10648. <span class="hljs-keyword">import</span> (
  10649. <span class="hljs-string">&quot;bytes&quot;</span>
  10650. <span class="hljs-string">&quot;net/http&quot;</span>
  10651. )
  10652. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10653. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10654. <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>},
  10655. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10656. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10657. }
  10658. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10659. 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)
  10660. req.Header = headers
  10661. client := &amp;http.Client{}
  10662. resp, err := client.Do(req)
  10663. <span class="hljs-comment">// ...</span>
  10664. }
  10665. </code></pre>
  10666. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10667. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10668. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10669. );
  10670. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10671. <span class="hljs-comment">// Define array of request body.</span>
  10672. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10673. <span class="hljs-keyword">try</span> {
  10674. <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>(
  10675. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10676. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10677. )
  10678. );
  10679. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10680. }
  10681. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10682. <span class="hljs-comment">// handle exception or api errors.</span>
  10683. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10684. }
  10685. <span class="hljs-comment">// ...</span>
  10686. </code></pre>
  10687. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10688. <p><em>Update a Custom Field's dropdown items</em></p>
  10689. <blockquote>
  10690. <p>Body parameter</p>
  10691. </blockquote>
  10692. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10693. </code></pre>
  10694. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10695. <table>
  10696. <thead>
  10697. <tr>
  10698. <th>Name</th>
  10699. <th>In</th>
  10700. <th>Type</th>
  10701. <th>Required</th>
  10702. <th>Description</th>
  10703. </tr>
  10704. </thead>
  10705. <tbody>
  10706. <tr>
  10707. <td>board</td>
  10708. <td>path</td>
  10709. <td>string</td>
  10710. <td>true</td>
  10711. <td>the board value</td>
  10712. </tr>
  10713. <tr>
  10714. <td>customField</td>
  10715. <td>path</td>
  10716. <td>string</td>
  10717. <td>true</td>
  10718. <td>the customField value</td>
  10719. </tr>
  10720. <tr>
  10721. <td>body</td>
  10722. <td>body</td>
  10723. <td>object</td>
  10724. <td>false</td>
  10725. <td>none</td>
  10726. </tr>
  10727. <tr>
  10728. <td>» items</td>
  10729. <td>body</td>
  10730. <td>string</td>
  10731. <td>false</td>
  10732. <td>names of the custom field</td>
  10733. </tr>
  10734. </tbody>
  10735. </table>
  10736. <blockquote>
  10737. <p>Example responses</p>
  10738. </blockquote>
  10739. <blockquote>
  10740. <p>200 Response</p>
  10741. </blockquote>
  10742. <pre class="highlight tab tab-json"><code>{
  10743. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10744. }
  10745. </code></pre>
  10746. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10747. <table>
  10748. <thead>
  10749. <tr>
  10750. <th>Status</th>
  10751. <th>Meaning</th>
  10752. <th>Description</th>
  10753. <th>Schema</th>
  10754. </tr>
  10755. </thead>
  10756. <tbody>
  10757. <tr>
  10758. <td>200</td>
  10759. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10760. <td>200 response</td>
  10761. <td>Inline</td>
  10762. </tr>
  10763. </tbody>
  10764. </table>
  10765. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10766. <p>Status Code <strong>200</strong></p>
  10767. <table>
  10768. <thead>
  10769. <tr>
  10770. <th>Name</th>
  10771. <th>Type</th>
  10772. <th>Required</th>
  10773. <th>Restrictions</th>
  10774. <th>Description</th>
  10775. </tr>
  10776. </thead>
  10777. <tbody>
  10778. <tr>
  10779. <td>» _id</td>
  10780. <td>string</td>
  10781. <td>false</td>
  10782. <td>none</td>
  10783. <td>none</td>
  10784. </tr>
  10785. </tbody>
  10786. </table>
  10787. <aside class="warning">
  10788. To perform this operation, you must be authenticated by means of one of the following methods:
  10789. UserSecurity
  10790. </aside>
  10791. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10792. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10793. <blockquote>
  10794. <p>Code samples</p>
  10795. </blockquote>
  10796. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10797. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10798. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10799. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10800. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10801. </code></pre>
  10802. <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>
  10803. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10804. Accept: application/json
  10805. </span></code></pre>
  10806. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10807. &quot;name&quot;: &quot;string&quot;
  10808. }&#x27;</span>;
  10809. <span class="hljs-keyword">const</span> headers = {
  10810. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10811. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10812. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10813. };
  10814. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10815. {
  10816. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10817. <span class="hljs-attr">body</span>: inputBody,
  10818. <span class="hljs-attr">headers</span>: headers
  10819. })
  10820. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10821. <span class="hljs-keyword">return</span> res.json();
  10822. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10823. <span class="hljs-built_in">console</span>.log(body);
  10824. });
  10825. </code></pre>
  10826. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10827. <span class="hljs-keyword">const</span> inputBody = {
  10828. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10829. };
  10830. <span class="hljs-keyword">const</span> headers = {
  10831. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10832. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10833. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10834. };
  10835. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10836. {
  10837. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10838. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10839. <span class="hljs-attr">headers</span>: headers
  10840. })
  10841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10842. <span class="hljs-keyword">return</span> res.json();
  10843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10844. <span class="hljs-built_in">console</span>.log(body);
  10845. });
  10846. </code></pre>
  10847. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10848. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10849. headers = {
  10850. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10851. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10852. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10853. }
  10854. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10855. <span class="hljs-symbol">params:</span> {
  10856. }, <span class="hljs-symbol">headers:</span> headers
  10857. p JSON.parse(result)
  10858. </code></pre>
  10859. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10860. headers = {
  10861. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10862. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10863. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10864. }
  10865. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10866. <span class="hljs-built_in">print</span>(r.json())
  10867. </code></pre>
  10868. <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>);
  10869. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10870. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10871. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10872. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10873. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10874. String inputLine;
  10875. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10876. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10877. response.append(inputLine);
  10878. }
  10879. in.close();
  10880. System.out.println(response.toString());
  10881. </code></pre>
  10882. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10883. <span class="hljs-keyword">import</span> (
  10884. <span class="hljs-string">&quot;bytes&quot;</span>
  10885. <span class="hljs-string">&quot;net/http&quot;</span>
  10886. )
  10887. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10888. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10889. <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>},
  10890. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10891. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10892. }
  10893. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10894. 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)
  10895. req.Header = headers
  10896. client := &amp;http.Client{}
  10897. resp, err := client.Do(req)
  10898. <span class="hljs-comment">// ...</span>
  10899. }
  10900. </code></pre>
  10901. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10902. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10903. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10904. );
  10905. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10906. <span class="hljs-comment">// Define array of request body.</span>
  10907. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10908. <span class="hljs-keyword">try</span> {
  10909. <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>(
  10910. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10911. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10912. )
  10913. );
  10914. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10915. }
  10916. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10917. <span class="hljs-comment">// handle exception or api errors.</span>
  10918. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10919. }
  10920. <span class="hljs-comment">// ...</span>
  10921. </code></pre>
  10922. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10923. <p><em>Update a Custom Field's dropdown item</em></p>
  10924. <blockquote>
  10925. <p>Body parameter</p>
  10926. </blockquote>
  10927. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10928. </code></pre>
  10929. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10930. <table>
  10931. <thead>
  10932. <tr>
  10933. <th>Name</th>
  10934. <th>In</th>
  10935. <th>Type</th>
  10936. <th>Required</th>
  10937. <th>Description</th>
  10938. </tr>
  10939. </thead>
  10940. <tbody>
  10941. <tr>
  10942. <td>board</td>
  10943. <td>path</td>
  10944. <td>string</td>
  10945. <td>true</td>
  10946. <td>the board value</td>
  10947. </tr>
  10948. <tr>
  10949. <td>customField</td>
  10950. <td>path</td>
  10951. <td>string</td>
  10952. <td>true</td>
  10953. <td>the customField value</td>
  10954. </tr>
  10955. <tr>
  10956. <td>dropdownItem</td>
  10957. <td>path</td>
  10958. <td>string</td>
  10959. <td>true</td>
  10960. <td>the dropdownItem value</td>
  10961. </tr>
  10962. <tr>
  10963. <td>body</td>
  10964. <td>body</td>
  10965. <td>object</td>
  10966. <td>true</td>
  10967. <td>none</td>
  10968. </tr>
  10969. <tr>
  10970. <td>» name</td>
  10971. <td>body</td>
  10972. <td>string</td>
  10973. <td>true</td>
  10974. <td>names of the custom field</td>
  10975. </tr>
  10976. </tbody>
  10977. </table>
  10978. <blockquote>
  10979. <p>Example responses</p>
  10980. </blockquote>
  10981. <blockquote>
  10982. <p>200 Response</p>
  10983. </blockquote>
  10984. <pre class="highlight tab tab-json"><code>{
  10985. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10986. }
  10987. </code></pre>
  10988. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10989. <table>
  10990. <thead>
  10991. <tr>
  10992. <th>Status</th>
  10993. <th>Meaning</th>
  10994. <th>Description</th>
  10995. <th>Schema</th>
  10996. </tr>
  10997. </thead>
  10998. <tbody>
  10999. <tr>
  11000. <td>200</td>
  11001. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11002. <td>200 response</td>
  11003. <td>Inline</td>
  11004. </tr>
  11005. </tbody>
  11006. </table>
  11007. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11008. <p>Status Code <strong>200</strong></p>
  11009. <table>
  11010. <thead>
  11011. <tr>
  11012. <th>Name</th>
  11013. <th>Type</th>
  11014. <th>Required</th>
  11015. <th>Restrictions</th>
  11016. <th>Description</th>
  11017. </tr>
  11018. </thead>
  11019. <tbody>
  11020. <tr>
  11021. <td>» _id</td>
  11022. <td>string</td>
  11023. <td>false</td>
  11024. <td>none</td>
  11025. <td>none</td>
  11026. </tr>
  11027. </tbody>
  11028. </table>
  11029. <aside class="warning">
  11030. To perform this operation, you must be authenticated by means of one of the following methods:
  11031. UserSecurity
  11032. </aside>
  11033. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11034. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11035. <blockquote>
  11036. <p>Code samples</p>
  11037. </blockquote>
  11038. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11039. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11040. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11041. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11042. </code></pre>
  11043. <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>
  11044. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11045. </span></code></pre>
  11046. <pre class="highlight tab tab-javascript"><code>
  11047. <span class="hljs-keyword">const</span> headers = {
  11048. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11049. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11050. };
  11051. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11052. {
  11053. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11054. <span class="hljs-attr">headers</span>: headers
  11055. })
  11056. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11057. <span class="hljs-keyword">return</span> res.json();
  11058. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11059. <span class="hljs-built_in">console</span>.log(body);
  11060. });
  11061. </code></pre>
  11062. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11063. <span class="hljs-keyword">const</span> headers = {
  11064. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11065. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11066. };
  11067. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11068. {
  11069. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11070. <span class="hljs-attr">headers</span>: headers
  11071. })
  11072. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11073. <span class="hljs-keyword">return</span> res.json();
  11074. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11075. <span class="hljs-built_in">console</span>.log(body);
  11076. });
  11077. </code></pre>
  11078. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11079. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11080. headers = {
  11081. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11082. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11083. }
  11084. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11085. <span class="hljs-symbol">params:</span> {
  11086. }, <span class="hljs-symbol">headers:</span> headers
  11087. p JSON.parse(result)
  11088. </code></pre>
  11089. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11090. headers = {
  11091. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11092. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11093. }
  11094. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11095. <span class="hljs-built_in">print</span>(r.json())
  11096. </code></pre>
  11097. <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>);
  11098. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11099. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11100. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11101. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11102. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11103. String inputLine;
  11104. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11105. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11106. response.append(inputLine);
  11107. }
  11108. in.close();
  11109. System.out.println(response.toString());
  11110. </code></pre>
  11111. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11112. <span class="hljs-keyword">import</span> (
  11113. <span class="hljs-string">&quot;bytes&quot;</span>
  11114. <span class="hljs-string">&quot;net/http&quot;</span>
  11115. )
  11116. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11117. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11118. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11119. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11120. }
  11121. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11122. 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)
  11123. req.Header = headers
  11124. client := &amp;http.Client{}
  11125. resp, err := client.Do(req)
  11126. <span class="hljs-comment">// ...</span>
  11127. }
  11128. </code></pre>
  11129. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11130. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11131. );
  11132. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11133. <span class="hljs-comment">// Define array of request body.</span>
  11134. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11135. <span class="hljs-keyword">try</span> {
  11136. <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>(
  11137. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11138. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11139. )
  11140. );
  11141. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11142. }
  11143. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11144. <span class="hljs-comment">// handle exception or api errors.</span>
  11145. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11146. }
  11147. <span class="hljs-comment">// ...</span>
  11148. </code></pre>
  11149. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11150. <p><em>Update a Custom Field's dropdown items</em></p>
  11151. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11152. <table>
  11153. <thead>
  11154. <tr>
  11155. <th>Name</th>
  11156. <th>In</th>
  11157. <th>Type</th>
  11158. <th>Required</th>
  11159. <th>Description</th>
  11160. </tr>
  11161. </thead>
  11162. <tbody>
  11163. <tr>
  11164. <td>board</td>
  11165. <td>path</td>
  11166. <td>string</td>
  11167. <td>true</td>
  11168. <td>the board value</td>
  11169. </tr>
  11170. <tr>
  11171. <td>customField</td>
  11172. <td>path</td>
  11173. <td>string</td>
  11174. <td>true</td>
  11175. <td>the customField value</td>
  11176. </tr>
  11177. <tr>
  11178. <td>dropdownItem</td>
  11179. <td>path</td>
  11180. <td>string</td>
  11181. <td>true</td>
  11182. <td>the dropdownItem value</td>
  11183. </tr>
  11184. </tbody>
  11185. </table>
  11186. <blockquote>
  11187. <p>Example responses</p>
  11188. </blockquote>
  11189. <blockquote>
  11190. <p>200 Response</p>
  11191. </blockquote>
  11192. <pre class="highlight tab tab-json"><code>{
  11193. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11194. }
  11195. </code></pre>
  11196. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11197. <table>
  11198. <thead>
  11199. <tr>
  11200. <th>Status</th>
  11201. <th>Meaning</th>
  11202. <th>Description</th>
  11203. <th>Schema</th>
  11204. </tr>
  11205. </thead>
  11206. <tbody>
  11207. <tr>
  11208. <td>200</td>
  11209. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11210. <td>200 response</td>
  11211. <td>Inline</td>
  11212. </tr>
  11213. </tbody>
  11214. </table>
  11215. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11216. <p>Status Code <strong>200</strong></p>
  11217. <table>
  11218. <thead>
  11219. <tr>
  11220. <th>Name</th>
  11221. <th>Type</th>
  11222. <th>Required</th>
  11223. <th>Restrictions</th>
  11224. <th>Description</th>
  11225. </tr>
  11226. </thead>
  11227. <tbody>
  11228. <tr>
  11229. <td>» _id</td>
  11230. <td>string</td>
  11231. <td>false</td>
  11232. <td>none</td>
  11233. <td>none</td>
  11234. </tr>
  11235. </tbody>
  11236. </table>
  11237. <aside class="warning">
  11238. To perform this operation, you must be authenticated by means of one of the following methods:
  11239. UserSecurity
  11240. </aside>
  11241. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11242. <h2 id="get_all_integrations">get_all_integrations</h2>
  11243. <p><a id="opIdget_all_integrations"></a></p>
  11244. <blockquote>
  11245. <p>Code samples</p>
  11246. </blockquote>
  11247. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11248. curl -X GET /api/boards/{board}/integrations \
  11249. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11250. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11251. </code></pre>
  11252. <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>
  11253. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11254. </span></code></pre>
  11255. <pre class="highlight tab tab-javascript"><code>
  11256. <span class="hljs-keyword">const</span> headers = {
  11257. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11258. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11259. };
  11260. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11261. {
  11262. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11263. <span class="hljs-attr">headers</span>: headers
  11264. })
  11265. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11266. <span class="hljs-keyword">return</span> res.json();
  11267. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11268. <span class="hljs-built_in">console</span>.log(body);
  11269. });
  11270. </code></pre>
  11271. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11272. <span class="hljs-keyword">const</span> headers = {
  11273. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11274. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11275. };
  11276. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11277. {
  11278. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11279. <span class="hljs-attr">headers</span>: headers
  11280. })
  11281. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11282. <span class="hljs-keyword">return</span> res.json();
  11283. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11284. <span class="hljs-built_in">console</span>.log(body);
  11285. });
  11286. </code></pre>
  11287. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11288. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11289. headers = {
  11290. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11291. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11292. }
  11293. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11294. <span class="hljs-symbol">params:</span> {
  11295. }, <span class="hljs-symbol">headers:</span> headers
  11296. p JSON.parse(result)
  11297. </code></pre>
  11298. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11299. headers = {
  11300. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11301. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11302. }
  11303. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11304. <span class="hljs-built_in">print</span>(r.json())
  11305. </code></pre>
  11306. <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>);
  11307. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11308. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11309. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11310. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11311. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11312. String inputLine;
  11313. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11314. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11315. response.append(inputLine);
  11316. }
  11317. in.close();
  11318. System.out.println(response.toString());
  11319. </code></pre>
  11320. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11321. <span class="hljs-keyword">import</span> (
  11322. <span class="hljs-string">&quot;bytes&quot;</span>
  11323. <span class="hljs-string">&quot;net/http&quot;</span>
  11324. )
  11325. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11326. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11327. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11328. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11329. }
  11330. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11331. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11332. req.Header = headers
  11333. client := &amp;http.Client{}
  11334. resp, err := client.Do(req)
  11335. <span class="hljs-comment">// ...</span>
  11336. }
  11337. </code></pre>
  11338. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11339. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11340. );
  11341. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11342. <span class="hljs-comment">// Define array of request body.</span>
  11343. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11344. <span class="hljs-keyword">try</span> {
  11345. <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>(
  11346. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11347. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11348. )
  11349. );
  11350. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11351. }
  11352. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11353. <span class="hljs-comment">// handle exception or api errors.</span>
  11354. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11355. }
  11356. <span class="hljs-comment">// ...</span>
  11357. </code></pre>
  11358. <p><code>GET /api/boards/{board}/integrations</code></p>
  11359. <p><em>Get all integrations in board</em></p>
  11360. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11361. <table>
  11362. <thead>
  11363. <tr>
  11364. <th>Name</th>
  11365. <th>In</th>
  11366. <th>Type</th>
  11367. <th>Required</th>
  11368. <th>Description</th>
  11369. </tr>
  11370. </thead>
  11371. <tbody>
  11372. <tr>
  11373. <td>board</td>
  11374. <td>path</td>
  11375. <td>string</td>
  11376. <td>true</td>
  11377. <td>the board ID</td>
  11378. </tr>
  11379. </tbody>
  11380. </table>
  11381. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11382. <p><strong>board</strong>: the board ID</p>
  11383. <blockquote>
  11384. <p>Example responses</p>
  11385. </blockquote>
  11386. <blockquote>
  11387. <p>200 Response</p>
  11388. </blockquote>
  11389. <pre class="highlight tab tab-json"><code>[
  11390. {
  11391. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11392. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11393. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11394. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11395. <span class="hljs-string">&quot;string&quot;</span>
  11396. ],
  11397. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11398. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11399. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11400. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11401. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11402. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11403. }
  11404. ]
  11405. </code></pre>
  11406. <h3 id="get_all_integrations-responses">Responses</h3>
  11407. <table>
  11408. <thead>
  11409. <tr>
  11410. <th>Status</th>
  11411. <th>Meaning</th>
  11412. <th>Description</th>
  11413. <th>Schema</th>
  11414. </tr>
  11415. </thead>
  11416. <tbody>
  11417. <tr>
  11418. <td>200</td>
  11419. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11420. <td>200 response</td>
  11421. <td>Inline</td>
  11422. </tr>
  11423. </tbody>
  11424. </table>
  11425. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11426. <p>Status Code <strong>200</strong></p>
  11427. <table>
  11428. <thead>
  11429. <tr>
  11430. <th>Name</th>
  11431. <th>Type</th>
  11432. <th>Required</th>
  11433. <th>Restrictions</th>
  11434. <th>Description</th>
  11435. </tr>
  11436. </thead>
  11437. <tbody>
  11438. <tr>
  11439. <td><em>anonymous</em></td>
  11440. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11441. <td>false</td>
  11442. <td>none</td>
  11443. <td>[Integration with third-party applications]</td>
  11444. </tr>
  11445. <tr>
  11446. <td>» enabled</td>
  11447. <td>boolean</td>
  11448. <td>true</td>
  11449. <td>none</td>
  11450. <td>is the integration enabled?</td>
  11451. </tr>
  11452. <tr>
  11453. <td>» title</td>
  11454. <td>string¦null</td>
  11455. <td>false</td>
  11456. <td>none</td>
  11457. <td>name of the integration</td>
  11458. </tr>
  11459. <tr>
  11460. <td>» type</td>
  11461. <td>string</td>
  11462. <td>true</td>
  11463. <td>none</td>
  11464. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11465. </tr>
  11466. <tr>
  11467. <td>» activities</td>
  11468. <td>[string]</td>
  11469. <td>true</td>
  11470. <td>none</td>
  11471. <td>activities the integration gets triggered (list)</td>
  11472. </tr>
  11473. <tr>
  11474. <td>» url</td>
  11475. <td>string</td>
  11476. <td>true</td>
  11477. <td>none</td>
  11478. <td>none</td>
  11479. </tr>
  11480. <tr>
  11481. <td>» token</td>
  11482. <td>string¦null</td>
  11483. <td>false</td>
  11484. <td>none</td>
  11485. <td>token of the integration</td>
  11486. </tr>
  11487. <tr>
  11488. <td>» boardId</td>
  11489. <td>string</td>
  11490. <td>true</td>
  11491. <td>none</td>
  11492. <td>Board ID of the integration</td>
  11493. </tr>
  11494. <tr>
  11495. <td>» createdAt</td>
  11496. <td>string</td>
  11497. <td>true</td>
  11498. <td>none</td>
  11499. <td>Creation date of the integration</td>
  11500. </tr>
  11501. <tr>
  11502. <td>» modifiedAt</td>
  11503. <td>string</td>
  11504. <td>true</td>
  11505. <td>none</td>
  11506. <td>none</td>
  11507. </tr>
  11508. <tr>
  11509. <td>» userId</td>
  11510. <td>string</td>
  11511. <td>true</td>
  11512. <td>none</td>
  11513. <td>user ID who created the interation</td>
  11514. </tr>
  11515. </tbody>
  11516. </table>
  11517. <aside class="warning">
  11518. To perform this operation, you must be authenticated by means of one of the following methods:
  11519. UserSecurity
  11520. </aside>
  11521. <h2 id="new_integration">new_integration</h2>
  11522. <p><a id="opIdnew_integration"></a></p>
  11523. <blockquote>
  11524. <p>Code samples</p>
  11525. </blockquote>
  11526. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11527. curl -X POST /api/boards/{board}/integrations \
  11528. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11529. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11530. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11531. </code></pre>
  11532. <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>
  11533. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11534. Accept: application/json
  11535. </span></code></pre>
  11536. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11537. &quot;url&quot;: &quot;string&quot;
  11538. }&#x27;</span>;
  11539. <span class="hljs-keyword">const</span> headers = {
  11540. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11541. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11542. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11543. };
  11544. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11545. {
  11546. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11547. <span class="hljs-attr">body</span>: inputBody,
  11548. <span class="hljs-attr">headers</span>: headers
  11549. })
  11550. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11551. <span class="hljs-keyword">return</span> res.json();
  11552. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11553. <span class="hljs-built_in">console</span>.log(body);
  11554. });
  11555. </code></pre>
  11556. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11557. <span class="hljs-keyword">const</span> inputBody = {
  11558. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11559. };
  11560. <span class="hljs-keyword">const</span> headers = {
  11561. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11562. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11563. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11564. };
  11565. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11566. {
  11567. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11568. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11569. <span class="hljs-attr">headers</span>: headers
  11570. })
  11571. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11572. <span class="hljs-keyword">return</span> res.json();
  11573. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11574. <span class="hljs-built_in">console</span>.log(body);
  11575. });
  11576. </code></pre>
  11577. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11578. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11579. headers = {
  11580. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11581. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11582. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11583. }
  11584. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11585. <span class="hljs-symbol">params:</span> {
  11586. }, <span class="hljs-symbol">headers:</span> headers
  11587. p JSON.parse(result)
  11588. </code></pre>
  11589. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11590. headers = {
  11591. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11592. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11593. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11594. }
  11595. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11596. <span class="hljs-built_in">print</span>(r.json())
  11597. </code></pre>
  11598. <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>);
  11599. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11600. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11601. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11602. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11603. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11604. String inputLine;
  11605. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11606. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11607. response.append(inputLine);
  11608. }
  11609. in.close();
  11610. System.out.println(response.toString());
  11611. </code></pre>
  11612. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11613. <span class="hljs-keyword">import</span> (
  11614. <span class="hljs-string">&quot;bytes&quot;</span>
  11615. <span class="hljs-string">&quot;net/http&quot;</span>
  11616. )
  11617. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11618. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11619. <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>},
  11620. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11621. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11622. }
  11623. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11624. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11625. req.Header = headers
  11626. client := &amp;http.Client{}
  11627. resp, err := client.Do(req)
  11628. <span class="hljs-comment">// ...</span>
  11629. }
  11630. </code></pre>
  11631. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11632. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11633. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11634. );
  11635. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11636. <span class="hljs-comment">// Define array of request body.</span>
  11637. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11638. <span class="hljs-keyword">try</span> {
  11639. <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>(
  11640. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11641. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11642. )
  11643. );
  11644. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11645. }
  11646. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11647. <span class="hljs-comment">// handle exception or api errors.</span>
  11648. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11649. }
  11650. <span class="hljs-comment">// ...</span>
  11651. </code></pre>
  11652. <p><code>POST /api/boards/{board}/integrations</code></p>
  11653. <p><em>Create a new integration</em></p>
  11654. <blockquote>
  11655. <p>Body parameter</p>
  11656. </blockquote>
  11657. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11658. </code></pre>
  11659. <h3 id="new_integration-parameters">Parameters</h3>
  11660. <table>
  11661. <thead>
  11662. <tr>
  11663. <th>Name</th>
  11664. <th>In</th>
  11665. <th>Type</th>
  11666. <th>Required</th>
  11667. <th>Description</th>
  11668. </tr>
  11669. </thead>
  11670. <tbody>
  11671. <tr>
  11672. <td>board</td>
  11673. <td>path</td>
  11674. <td>string</td>
  11675. <td>true</td>
  11676. <td>the board ID</td>
  11677. </tr>
  11678. <tr>
  11679. <td>body</td>
  11680. <td>body</td>
  11681. <td>object</td>
  11682. <td>true</td>
  11683. <td>none</td>
  11684. </tr>
  11685. <tr>
  11686. <td>» url</td>
  11687. <td>body</td>
  11688. <td>string</td>
  11689. <td>true</td>
  11690. <td>the URL of the integration</td>
  11691. </tr>
  11692. </tbody>
  11693. </table>
  11694. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11695. <p><strong>board</strong>: the board ID</p>
  11696. <blockquote>
  11697. <p>Example responses</p>
  11698. </blockquote>
  11699. <blockquote>
  11700. <p>200 Response</p>
  11701. </blockquote>
  11702. <pre class="highlight tab tab-json"><code>{
  11703. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11704. }
  11705. </code></pre>
  11706. <h3 id="new_integration-responses">Responses</h3>
  11707. <table>
  11708. <thead>
  11709. <tr>
  11710. <th>Status</th>
  11711. <th>Meaning</th>
  11712. <th>Description</th>
  11713. <th>Schema</th>
  11714. </tr>
  11715. </thead>
  11716. <tbody>
  11717. <tr>
  11718. <td>200</td>
  11719. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11720. <td>200 response</td>
  11721. <td>Inline</td>
  11722. </tr>
  11723. </tbody>
  11724. </table>
  11725. <h3 id="new_integration-responseschema">Response Schema</h3>
  11726. <p>Status Code <strong>200</strong></p>
  11727. <table>
  11728. <thead>
  11729. <tr>
  11730. <th>Name</th>
  11731. <th>Type</th>
  11732. <th>Required</th>
  11733. <th>Restrictions</th>
  11734. <th>Description</th>
  11735. </tr>
  11736. </thead>
  11737. <tbody>
  11738. <tr>
  11739. <td>» _id</td>
  11740. <td>string</td>
  11741. <td>false</td>
  11742. <td>none</td>
  11743. <td>none</td>
  11744. </tr>
  11745. </tbody>
  11746. </table>
  11747. <aside class="warning">
  11748. To perform this operation, you must be authenticated by means of one of the following methods:
  11749. UserSecurity
  11750. </aside>
  11751. <h2 id="get_integration">get_integration</h2>
  11752. <p><a id="opIdget_integration"></a></p>
  11753. <blockquote>
  11754. <p>Code samples</p>
  11755. </blockquote>
  11756. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11757. curl -X GET /api/boards/{board}/integrations/{int} \
  11758. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11759. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11760. </code></pre>
  11761. <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>
  11762. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11763. </span></code></pre>
  11764. <pre class="highlight tab tab-javascript"><code>
  11765. <span class="hljs-keyword">const</span> headers = {
  11766. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11767. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11768. };
  11769. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11770. {
  11771. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11772. <span class="hljs-attr">headers</span>: headers
  11773. })
  11774. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11775. <span class="hljs-keyword">return</span> res.json();
  11776. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11777. <span class="hljs-built_in">console</span>.log(body);
  11778. });
  11779. </code></pre>
  11780. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11781. <span class="hljs-keyword">const</span> headers = {
  11782. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11783. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11784. };
  11785. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11786. {
  11787. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11788. <span class="hljs-attr">headers</span>: headers
  11789. })
  11790. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11791. <span class="hljs-keyword">return</span> res.json();
  11792. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11793. <span class="hljs-built_in">console</span>.log(body);
  11794. });
  11795. </code></pre>
  11796. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11797. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11798. headers = {
  11799. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11800. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11801. }
  11802. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11803. <span class="hljs-symbol">params:</span> {
  11804. }, <span class="hljs-symbol">headers:</span> headers
  11805. p JSON.parse(result)
  11806. </code></pre>
  11807. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11808. headers = {
  11809. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11810. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11811. }
  11812. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11813. <span class="hljs-built_in">print</span>(r.json())
  11814. </code></pre>
  11815. <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>);
  11816. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11817. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11818. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11819. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11820. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11821. String inputLine;
  11822. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11823. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11824. response.append(inputLine);
  11825. }
  11826. in.close();
  11827. System.out.println(response.toString());
  11828. </code></pre>
  11829. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11830. <span class="hljs-keyword">import</span> (
  11831. <span class="hljs-string">&quot;bytes&quot;</span>
  11832. <span class="hljs-string">&quot;net/http&quot;</span>
  11833. )
  11834. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11835. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11836. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11837. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11838. }
  11839. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11840. 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)
  11841. req.Header = headers
  11842. client := &amp;http.Client{}
  11843. resp, err := client.Do(req)
  11844. <span class="hljs-comment">// ...</span>
  11845. }
  11846. </code></pre>
  11847. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11848. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11849. );
  11850. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11851. <span class="hljs-comment">// Define array of request body.</span>
  11852. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11853. <span class="hljs-keyword">try</span> {
  11854. <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>(
  11855. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11856. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11857. )
  11858. );
  11859. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11860. }
  11861. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11862. <span class="hljs-comment">// handle exception or api errors.</span>
  11863. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11864. }
  11865. <span class="hljs-comment">// ...</span>
  11866. </code></pre>
  11867. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11868. <p><em>Get a single integration in board</em></p>
  11869. <h3 id="get_integration-parameters">Parameters</h3>
  11870. <table>
  11871. <thead>
  11872. <tr>
  11873. <th>Name</th>
  11874. <th>In</th>
  11875. <th>Type</th>
  11876. <th>Required</th>
  11877. <th>Description</th>
  11878. </tr>
  11879. </thead>
  11880. <tbody>
  11881. <tr>
  11882. <td>board</td>
  11883. <td>path</td>
  11884. <td>string</td>
  11885. <td>true</td>
  11886. <td>the board ID</td>
  11887. </tr>
  11888. <tr>
  11889. <td>int</td>
  11890. <td>path</td>
  11891. <td>string</td>
  11892. <td>true</td>
  11893. <td>the integration ID</td>
  11894. </tr>
  11895. </tbody>
  11896. </table>
  11897. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11898. <p><strong>board</strong>: the board ID</p>
  11899. <p><strong>int</strong>: the integration ID</p>
  11900. <blockquote>
  11901. <p>Example responses</p>
  11902. </blockquote>
  11903. <blockquote>
  11904. <p>200 Response</p>
  11905. </blockquote>
  11906. <pre class="highlight tab tab-json"><code>{
  11907. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11908. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11909. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11910. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11911. <span class="hljs-string">&quot;string&quot;</span>
  11912. ],
  11913. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11914. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11915. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11916. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11917. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11918. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11919. }
  11920. </code></pre>
  11921. <h3 id="get_integration-responses">Responses</h3>
  11922. <table>
  11923. <thead>
  11924. <tr>
  11925. <th>Status</th>
  11926. <th>Meaning</th>
  11927. <th>Description</th>
  11928. <th>Schema</th>
  11929. </tr>
  11930. </thead>
  11931. <tbody>
  11932. <tr>
  11933. <td>200</td>
  11934. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11935. <td>200 response</td>
  11936. <td><a href="#schemaintegrations">Integrations</a></td>
  11937. </tr>
  11938. </tbody>
  11939. </table>
  11940. <aside class="warning">
  11941. To perform this operation, you must be authenticated by means of one of the following methods:
  11942. UserSecurity
  11943. </aside>
  11944. <h2 id="edit_integration">edit_integration</h2>
  11945. <p><a id="opIdedit_integration"></a></p>
  11946. <blockquote>
  11947. <p>Code samples</p>
  11948. </blockquote>
  11949. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11950. curl -X PUT /api/boards/{board}/integrations/{int} \
  11951. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11952. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11953. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11954. </code></pre>
  11955. <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>
  11956. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11957. Accept: application/json
  11958. </span></code></pre>
  11959. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11960. &quot;enabled&quot;: &quot;string&quot;,
  11961. &quot;title&quot;: &quot;string&quot;,
  11962. &quot;url&quot;: &quot;string&quot;,
  11963. &quot;token&quot;: &quot;string&quot;,
  11964. &quot;activities&quot;: &quot;string&quot;
  11965. }&#x27;</span>;
  11966. <span class="hljs-keyword">const</span> headers = {
  11967. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11968. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11969. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11970. };
  11971. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11972. {
  11973. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11974. <span class="hljs-attr">body</span>: inputBody,
  11975. <span class="hljs-attr">headers</span>: headers
  11976. })
  11977. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11978. <span class="hljs-keyword">return</span> res.json();
  11979. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11980. <span class="hljs-built_in">console</span>.log(body);
  11981. });
  11982. </code></pre>
  11983. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11984. <span class="hljs-keyword">const</span> inputBody = {
  11985. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11986. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11987. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11988. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11989. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11990. };
  11991. <span class="hljs-keyword">const</span> headers = {
  11992. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11993. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11994. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11995. };
  11996. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11997. {
  11998. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11999. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12000. <span class="hljs-attr">headers</span>: headers
  12001. })
  12002. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12003. <span class="hljs-keyword">return</span> res.json();
  12004. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12005. <span class="hljs-built_in">console</span>.log(body);
  12006. });
  12007. </code></pre>
  12008. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12009. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12010. headers = {
  12011. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12012. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12013. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12014. }
  12015. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12016. <span class="hljs-symbol">params:</span> {
  12017. }, <span class="hljs-symbol">headers:</span> headers
  12018. p JSON.parse(result)
  12019. </code></pre>
  12020. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12021. headers = {
  12022. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12023. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12024. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12025. }
  12026. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12027. <span class="hljs-built_in">print</span>(r.json())
  12028. </code></pre>
  12029. <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>);
  12030. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12031. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  12032. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12033. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12034. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12035. String inputLine;
  12036. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12037. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12038. response.append(inputLine);
  12039. }
  12040. in.close();
  12041. System.out.println(response.toString());
  12042. </code></pre>
  12043. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12044. <span class="hljs-keyword">import</span> (
  12045. <span class="hljs-string">&quot;bytes&quot;</span>
  12046. <span class="hljs-string">&quot;net/http&quot;</span>
  12047. )
  12048. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12049. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12050. <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>},
  12051. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12052. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12053. }
  12054. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12055. 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)
  12056. req.Header = headers
  12057. client := &amp;http.Client{}
  12058. resp, err := client.Do(req)
  12059. <span class="hljs-comment">// ...</span>
  12060. }
  12061. </code></pre>
  12062. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12063. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12064. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12065. );
  12066. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12067. <span class="hljs-comment">// Define array of request body.</span>
  12068. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12069. <span class="hljs-keyword">try</span> {
  12070. <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>(
  12071. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12072. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12073. )
  12074. );
  12075. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12076. }
  12077. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12078. <span class="hljs-comment">// handle exception or api errors.</span>
  12079. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12080. }
  12081. <span class="hljs-comment">// ...</span>
  12082. </code></pre>
  12083. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12084. <p><em>Edit integration data</em></p>
  12085. <blockquote>
  12086. <p>Body parameter</p>
  12087. </blockquote>
  12088. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12089. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12090. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12091. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12092. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12093. </code></pre>
  12094. <h3 id="edit_integration-parameters">Parameters</h3>
  12095. <table>
  12096. <thead>
  12097. <tr>
  12098. <th>Name</th>
  12099. <th>In</th>
  12100. <th>Type</th>
  12101. <th>Required</th>
  12102. <th>Description</th>
  12103. </tr>
  12104. </thead>
  12105. <tbody>
  12106. <tr>
  12107. <td>board</td>
  12108. <td>path</td>
  12109. <td>string</td>
  12110. <td>true</td>
  12111. <td>the board ID</td>
  12112. </tr>
  12113. <tr>
  12114. <td>int</td>
  12115. <td>path</td>
  12116. <td>string</td>
  12117. <td>true</td>
  12118. <td>the integration ID</td>
  12119. </tr>
  12120. <tr>
  12121. <td>body</td>
  12122. <td>body</td>
  12123. <td>object</td>
  12124. <td>false</td>
  12125. <td>none</td>
  12126. </tr>
  12127. <tr>
  12128. <td>» enabled</td>
  12129. <td>body</td>
  12130. <td>string</td>
  12131. <td>false</td>
  12132. <td>is the integration enabled?</td>
  12133. </tr>
  12134. <tr>
  12135. <td>» title</td>
  12136. <td>body</td>
  12137. <td>string</td>
  12138. <td>false</td>
  12139. <td>new name of the integration</td>
  12140. </tr>
  12141. <tr>
  12142. <td>» url</td>
  12143. <td>body</td>
  12144. <td>string</td>
  12145. <td>false</td>
  12146. <td>new URL of the integration</td>
  12147. </tr>
  12148. <tr>
  12149. <td>» token</td>
  12150. <td>body</td>
  12151. <td>string</td>
  12152. <td>false</td>
  12153. <td>new token of the integration</td>
  12154. </tr>
  12155. <tr>
  12156. <td>» activities</td>
  12157. <td>body</td>
  12158. <td>string</td>
  12159. <td>false</td>
  12160. <td>new list of activities of the integration</td>
  12161. </tr>
  12162. </tbody>
  12163. </table>
  12164. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12165. <p><strong>board</strong>: the board ID</p>
  12166. <p><strong>int</strong>: the integration ID</p>
  12167. <blockquote>
  12168. <p>Example responses</p>
  12169. </blockquote>
  12170. <blockquote>
  12171. <p>200 Response</p>
  12172. </blockquote>
  12173. <pre class="highlight tab tab-json"><code>{
  12174. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12175. }
  12176. </code></pre>
  12177. <h3 id="edit_integration-responses">Responses</h3>
  12178. <table>
  12179. <thead>
  12180. <tr>
  12181. <th>Status</th>
  12182. <th>Meaning</th>
  12183. <th>Description</th>
  12184. <th>Schema</th>
  12185. </tr>
  12186. </thead>
  12187. <tbody>
  12188. <tr>
  12189. <td>200</td>
  12190. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12191. <td>200 response</td>
  12192. <td>Inline</td>
  12193. </tr>
  12194. </tbody>
  12195. </table>
  12196. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12197. <p>Status Code <strong>200</strong></p>
  12198. <table>
  12199. <thead>
  12200. <tr>
  12201. <th>Name</th>
  12202. <th>Type</th>
  12203. <th>Required</th>
  12204. <th>Restrictions</th>
  12205. <th>Description</th>
  12206. </tr>
  12207. </thead>
  12208. <tbody>
  12209. <tr>
  12210. <td>» _id</td>
  12211. <td>string</td>
  12212. <td>false</td>
  12213. <td>none</td>
  12214. <td>none</td>
  12215. </tr>
  12216. </tbody>
  12217. </table>
  12218. <aside class="warning">
  12219. To perform this operation, you must be authenticated by means of one of the following methods:
  12220. UserSecurity
  12221. </aside>
  12222. <h2 id="delete_integration">delete_integration</h2>
  12223. <p><a id="opIddelete_integration"></a></p>
  12224. <blockquote>
  12225. <p>Code samples</p>
  12226. </blockquote>
  12227. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12228. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12229. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12230. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12231. </code></pre>
  12232. <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>
  12233. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12234. </span></code></pre>
  12235. <pre class="highlight tab tab-javascript"><code>
  12236. <span class="hljs-keyword">const</span> headers = {
  12237. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12238. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12239. };
  12240. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12241. {
  12242. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12243. <span class="hljs-attr">headers</span>: headers
  12244. })
  12245. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12246. <span class="hljs-keyword">return</span> res.json();
  12247. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12248. <span class="hljs-built_in">console</span>.log(body);
  12249. });
  12250. </code></pre>
  12251. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12252. <span class="hljs-keyword">const</span> headers = {
  12253. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12254. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12255. };
  12256. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12257. {
  12258. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12259. <span class="hljs-attr">headers</span>: headers
  12260. })
  12261. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12262. <span class="hljs-keyword">return</span> res.json();
  12263. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12264. <span class="hljs-built_in">console</span>.log(body);
  12265. });
  12266. </code></pre>
  12267. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12268. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12269. headers = {
  12270. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12271. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12272. }
  12273. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12274. <span class="hljs-symbol">params:</span> {
  12275. }, <span class="hljs-symbol">headers:</span> headers
  12276. p JSON.parse(result)
  12277. </code></pre>
  12278. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12279. headers = {
  12280. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12281. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12282. }
  12283. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12284. <span class="hljs-built_in">print</span>(r.json())
  12285. </code></pre>
  12286. <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>);
  12287. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12288. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12289. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12290. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12291. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12292. String inputLine;
  12293. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12294. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12295. response.append(inputLine);
  12296. }
  12297. in.close();
  12298. System.out.println(response.toString());
  12299. </code></pre>
  12300. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12301. <span class="hljs-keyword">import</span> (
  12302. <span class="hljs-string">&quot;bytes&quot;</span>
  12303. <span class="hljs-string">&quot;net/http&quot;</span>
  12304. )
  12305. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12306. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12307. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12308. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12309. }
  12310. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12311. 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)
  12312. req.Header = headers
  12313. client := &amp;http.Client{}
  12314. resp, err := client.Do(req)
  12315. <span class="hljs-comment">// ...</span>
  12316. }
  12317. </code></pre>
  12318. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12319. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12320. );
  12321. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12322. <span class="hljs-comment">// Define array of request body.</span>
  12323. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12324. <span class="hljs-keyword">try</span> {
  12325. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  12326. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12327. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12328. )
  12329. );
  12330. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12331. }
  12332. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12333. <span class="hljs-comment">// handle exception or api errors.</span>
  12334. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12335. }
  12336. <span class="hljs-comment">// ...</span>
  12337. </code></pre>
  12338. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12339. <p><em>Delete integration</em></p>
  12340. <h3 id="delete_integration-parameters">Parameters</h3>
  12341. <table>
  12342. <thead>
  12343. <tr>
  12344. <th>Name</th>
  12345. <th>In</th>
  12346. <th>Type</th>
  12347. <th>Required</th>
  12348. <th>Description</th>
  12349. </tr>
  12350. </thead>
  12351. <tbody>
  12352. <tr>
  12353. <td>board</td>
  12354. <td>path</td>
  12355. <td>string</td>
  12356. <td>true</td>
  12357. <td>the board ID</td>
  12358. </tr>
  12359. <tr>
  12360. <td>int</td>
  12361. <td>path</td>
  12362. <td>string</td>
  12363. <td>true</td>
  12364. <td>the integration ID</td>
  12365. </tr>
  12366. </tbody>
  12367. </table>
  12368. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12369. <p><strong>board</strong>: the board ID</p>
  12370. <p><strong>int</strong>: the integration ID</p>
  12371. <blockquote>
  12372. <p>Example responses</p>
  12373. </blockquote>
  12374. <blockquote>
  12375. <p>200 Response</p>
  12376. </blockquote>
  12377. <pre class="highlight tab tab-json"><code>{
  12378. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12379. }
  12380. </code></pre>
  12381. <h3 id="delete_integration-responses">Responses</h3>
  12382. <table>
  12383. <thead>
  12384. <tr>
  12385. <th>Status</th>
  12386. <th>Meaning</th>
  12387. <th>Description</th>
  12388. <th>Schema</th>
  12389. </tr>
  12390. </thead>
  12391. <tbody>
  12392. <tr>
  12393. <td>200</td>
  12394. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12395. <td>200 response</td>
  12396. <td>Inline</td>
  12397. </tr>
  12398. </tbody>
  12399. </table>
  12400. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12401. <p>Status Code <strong>200</strong></p>
  12402. <table>
  12403. <thead>
  12404. <tr>
  12405. <th>Name</th>
  12406. <th>Type</th>
  12407. <th>Required</th>
  12408. <th>Restrictions</th>
  12409. <th>Description</th>
  12410. </tr>
  12411. </thead>
  12412. <tbody>
  12413. <tr>
  12414. <td>» _id</td>
  12415. <td>string</td>
  12416. <td>false</td>
  12417. <td>none</td>
  12418. <td>none</td>
  12419. </tr>
  12420. </tbody>
  12421. </table>
  12422. <aside class="warning">
  12423. To perform this operation, you must be authenticated by means of one of the following methods:
  12424. UserSecurity
  12425. </aside>
  12426. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12427. <p><a id="opIddelete_integration_activities"></a></p>
  12428. <blockquote>
  12429. <p>Code samples</p>
  12430. </blockquote>
  12431. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12432. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12433. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12434. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12435. </code></pre>
  12436. <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>
  12437. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12438. </span></code></pre>
  12439. <pre class="highlight tab tab-javascript"><code>
  12440. <span class="hljs-keyword">const</span> headers = {
  12441. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12442. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12443. };
  12444. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12445. {
  12446. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12447. <span class="hljs-attr">headers</span>: headers
  12448. })
  12449. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12450. <span class="hljs-keyword">return</span> res.json();
  12451. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12452. <span class="hljs-built_in">console</span>.log(body);
  12453. });
  12454. </code></pre>
  12455. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12456. <span class="hljs-keyword">const</span> headers = {
  12457. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12458. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12459. };
  12460. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12461. {
  12462. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12463. <span class="hljs-attr">headers</span>: headers
  12464. })
  12465. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12466. <span class="hljs-keyword">return</span> res.json();
  12467. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12468. <span class="hljs-built_in">console</span>.log(body);
  12469. });
  12470. </code></pre>
  12471. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12472. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12473. headers = {
  12474. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12475. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12476. }
  12477. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12478. <span class="hljs-symbol">params:</span> {
  12479. }, <span class="hljs-symbol">headers:</span> headers
  12480. p JSON.parse(result)
  12481. </code></pre>
  12482. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12483. headers = {
  12484. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12485. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12486. }
  12487. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12488. <span class="hljs-built_in">print</span>(r.json())
  12489. </code></pre>
  12490. <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>);
  12491. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12492. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12493. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12494. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12495. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12496. String inputLine;
  12497. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12498. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12499. response.append(inputLine);
  12500. }
  12501. in.close();
  12502. System.out.println(response.toString());
  12503. </code></pre>
  12504. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12505. <span class="hljs-keyword">import</span> (
  12506. <span class="hljs-string">&quot;bytes&quot;</span>
  12507. <span class="hljs-string">&quot;net/http&quot;</span>
  12508. )
  12509. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12510. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12511. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12512. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12513. }
  12514. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12515. 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)
  12516. req.Header = headers
  12517. client := &amp;http.Client{}
  12518. resp, err := client.Do(req)
  12519. <span class="hljs-comment">// ...</span>
  12520. }
  12521. </code></pre>
  12522. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12523. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12524. );
  12525. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12526. <span class="hljs-comment">// Define array of request body.</span>
  12527. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12528. <span class="hljs-keyword">try</span> {
  12529. <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>(
  12530. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12531. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12532. )
  12533. );
  12534. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12535. }
  12536. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12537. <span class="hljs-comment">// handle exception or api errors.</span>
  12538. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12539. }
  12540. <span class="hljs-comment">// ...</span>
  12541. </code></pre>
  12542. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12543. <p><em>Delete subscribed activities</em></p>
  12544. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12545. <table>
  12546. <thead>
  12547. <tr>
  12548. <th>Name</th>
  12549. <th>In</th>
  12550. <th>Type</th>
  12551. <th>Required</th>
  12552. <th>Description</th>
  12553. </tr>
  12554. </thead>
  12555. <tbody>
  12556. <tr>
  12557. <td>board</td>
  12558. <td>path</td>
  12559. <td>string</td>
  12560. <td>true</td>
  12561. <td>the board ID</td>
  12562. </tr>
  12563. <tr>
  12564. <td>int</td>
  12565. <td>path</td>
  12566. <td>string</td>
  12567. <td>true</td>
  12568. <td>the integration ID</td>
  12569. </tr>
  12570. </tbody>
  12571. </table>
  12572. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12573. <p><strong>board</strong>: the board ID</p>
  12574. <p><strong>int</strong>: the integration ID</p>
  12575. <blockquote>
  12576. <p>Example responses</p>
  12577. </blockquote>
  12578. <blockquote>
  12579. <p>200 Response</p>
  12580. </blockquote>
  12581. <pre class="highlight tab tab-json"><code>{
  12582. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12583. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12584. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12585. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12586. <span class="hljs-string">&quot;string&quot;</span>
  12587. ],
  12588. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12589. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12590. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12591. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12592. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12593. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12594. }
  12595. </code></pre>
  12596. <h3 id="delete_integration_activities-responses">Responses</h3>
  12597. <table>
  12598. <thead>
  12599. <tr>
  12600. <th>Status</th>
  12601. <th>Meaning</th>
  12602. <th>Description</th>
  12603. <th>Schema</th>
  12604. </tr>
  12605. </thead>
  12606. <tbody>
  12607. <tr>
  12608. <td>200</td>
  12609. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12610. <td>200 response</td>
  12611. <td><a href="#schemaintegrations">Integrations</a></td>
  12612. </tr>
  12613. </tbody>
  12614. </table>
  12615. <aside class="warning">
  12616. To perform this operation, you must be authenticated by means of one of the following methods:
  12617. UserSecurity
  12618. </aside>
  12619. <h2 id="new_integration_activities">new_integration_activities</h2>
  12620. <p><a id="opIdnew_integration_activities"></a></p>
  12621. <blockquote>
  12622. <p>Code samples</p>
  12623. </blockquote>
  12624. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12625. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12626. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12627. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12628. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12629. </code></pre>
  12630. <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>
  12631. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12632. Accept: application/json
  12633. </span></code></pre>
  12634. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12635. &quot;activities&quot;: &quot;string&quot;
  12636. }&#x27;</span>;
  12637. <span class="hljs-keyword">const</span> headers = {
  12638. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12639. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12640. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12641. };
  12642. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12643. {
  12644. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12645. <span class="hljs-attr">body</span>: inputBody,
  12646. <span class="hljs-attr">headers</span>: headers
  12647. })
  12648. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12649. <span class="hljs-keyword">return</span> res.json();
  12650. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12651. <span class="hljs-built_in">console</span>.log(body);
  12652. });
  12653. </code></pre>
  12654. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12655. <span class="hljs-keyword">const</span> inputBody = {
  12656. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12657. };
  12658. <span class="hljs-keyword">const</span> headers = {
  12659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12662. };
  12663. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12664. {
  12665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12666. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12667. <span class="hljs-attr">headers</span>: headers
  12668. })
  12669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12670. <span class="hljs-keyword">return</span> res.json();
  12671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12672. <span class="hljs-built_in">console</span>.log(body);
  12673. });
  12674. </code></pre>
  12675. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12676. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12677. headers = {
  12678. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12679. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12680. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12681. }
  12682. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12683. <span class="hljs-symbol">params:</span> {
  12684. }, <span class="hljs-symbol">headers:</span> headers
  12685. p JSON.parse(result)
  12686. </code></pre>
  12687. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12688. headers = {
  12689. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12690. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12691. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12692. }
  12693. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12694. <span class="hljs-built_in">print</span>(r.json())
  12695. </code></pre>
  12696. <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>);
  12697. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12698. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12699. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12700. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12701. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12702. String inputLine;
  12703. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12704. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12705. response.append(inputLine);
  12706. }
  12707. in.close();
  12708. System.out.println(response.toString());
  12709. </code></pre>
  12710. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12711. <span class="hljs-keyword">import</span> (
  12712. <span class="hljs-string">&quot;bytes&quot;</span>
  12713. <span class="hljs-string">&quot;net/http&quot;</span>
  12714. )
  12715. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12716. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12717. <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>},
  12718. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12719. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12720. }
  12721. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12722. 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)
  12723. req.Header = headers
  12724. client := &amp;http.Client{}
  12725. resp, err := client.Do(req)
  12726. <span class="hljs-comment">// ...</span>
  12727. }
  12728. </code></pre>
  12729. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12730. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12731. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12732. );
  12733. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12734. <span class="hljs-comment">// Define array of request body.</span>
  12735. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12736. <span class="hljs-keyword">try</span> {
  12737. <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>(
  12738. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12739. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12740. )
  12741. );
  12742. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12743. }
  12744. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12745. <span class="hljs-comment">// handle exception or api errors.</span>
  12746. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12747. }
  12748. <span class="hljs-comment">// ...</span>
  12749. </code></pre>
  12750. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12751. <p><em>Add subscribed activities</em></p>
  12752. <blockquote>
  12753. <p>Body parameter</p>
  12754. </blockquote>
  12755. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12756. </code></pre>
  12757. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12758. <table>
  12759. <thead>
  12760. <tr>
  12761. <th>Name</th>
  12762. <th>In</th>
  12763. <th>Type</th>
  12764. <th>Required</th>
  12765. <th>Description</th>
  12766. </tr>
  12767. </thead>
  12768. <tbody>
  12769. <tr>
  12770. <td>board</td>
  12771. <td>path</td>
  12772. <td>string</td>
  12773. <td>true</td>
  12774. <td>the board ID</td>
  12775. </tr>
  12776. <tr>
  12777. <td>int</td>
  12778. <td>path</td>
  12779. <td>string</td>
  12780. <td>true</td>
  12781. <td>the integration ID</td>
  12782. </tr>
  12783. <tr>
  12784. <td>body</td>
  12785. <td>body</td>
  12786. <td>object</td>
  12787. <td>true</td>
  12788. <td>none</td>
  12789. </tr>
  12790. <tr>
  12791. <td>» activities</td>
  12792. <td>body</td>
  12793. <td>string</td>
  12794. <td>true</td>
  12795. <td>the activities value</td>
  12796. </tr>
  12797. </tbody>
  12798. </table>
  12799. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12800. <p><strong>board</strong>: the board ID</p>
  12801. <p><strong>int</strong>: the integration ID</p>
  12802. <blockquote>
  12803. <p>Example responses</p>
  12804. </blockquote>
  12805. <blockquote>
  12806. <p>200 Response</p>
  12807. </blockquote>
  12808. <pre class="highlight tab tab-json"><code>{
  12809. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12810. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12811. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12812. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12813. <span class="hljs-string">&quot;string&quot;</span>
  12814. ],
  12815. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12816. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12817. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12818. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12819. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12820. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12821. }
  12822. </code></pre>
  12823. <h3 id="new_integration_activities-responses">Responses</h3>
  12824. <table>
  12825. <thead>
  12826. <tr>
  12827. <th>Status</th>
  12828. <th>Meaning</th>
  12829. <th>Description</th>
  12830. <th>Schema</th>
  12831. </tr>
  12832. </thead>
  12833. <tbody>
  12834. <tr>
  12835. <td>200</td>
  12836. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12837. <td>200 response</td>
  12838. <td><a href="#schemaintegrations">Integrations</a></td>
  12839. </tr>
  12840. </tbody>
  12841. </table>
  12842. <aside class="warning">
  12843. To perform this operation, you must be authenticated by means of one of the following methods:
  12844. UserSecurity
  12845. </aside>
  12846. <h1 id="wekan-rest-api-lists">Lists</h1>
  12847. <h2 id="get_all_lists">get_all_lists</h2>
  12848. <p><a id="opIdget_all_lists"></a></p>
  12849. <blockquote>
  12850. <p>Code samples</p>
  12851. </blockquote>
  12852. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12853. curl -X GET /api/boards/{board}/lists \
  12854. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12855. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12856. </code></pre>
  12857. <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>
  12858. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12859. </span></code></pre>
  12860. <pre class="highlight tab tab-javascript"><code>
  12861. <span class="hljs-keyword">const</span> headers = {
  12862. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12863. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12864. };
  12865. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12866. {
  12867. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12868. <span class="hljs-attr">headers</span>: headers
  12869. })
  12870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12871. <span class="hljs-keyword">return</span> res.json();
  12872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12873. <span class="hljs-built_in">console</span>.log(body);
  12874. });
  12875. </code></pre>
  12876. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12877. <span class="hljs-keyword">const</span> headers = {
  12878. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12879. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12880. };
  12881. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12882. {
  12883. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12884. <span class="hljs-attr">headers</span>: headers
  12885. })
  12886. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12887. <span class="hljs-keyword">return</span> res.json();
  12888. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12889. <span class="hljs-built_in">console</span>.log(body);
  12890. });
  12891. </code></pre>
  12892. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12893. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12894. headers = {
  12895. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12896. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12897. }
  12898. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12899. <span class="hljs-symbol">params:</span> {
  12900. }, <span class="hljs-symbol">headers:</span> headers
  12901. p JSON.parse(result)
  12902. </code></pre>
  12903. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12904. headers = {
  12905. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12906. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12907. }
  12908. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12909. <span class="hljs-built_in">print</span>(r.json())
  12910. </code></pre>
  12911. <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>);
  12912. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12913. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12914. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12915. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12916. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12917. String inputLine;
  12918. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12919. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12920. response.append(inputLine);
  12921. }
  12922. in.close();
  12923. System.out.println(response.toString());
  12924. </code></pre>
  12925. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12926. <span class="hljs-keyword">import</span> (
  12927. <span class="hljs-string">&quot;bytes&quot;</span>
  12928. <span class="hljs-string">&quot;net/http&quot;</span>
  12929. )
  12930. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12931. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12932. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12933. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12934. }
  12935. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12936. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12937. req.Header = headers
  12938. client := &amp;http.Client{}
  12939. resp, err := client.Do(req)
  12940. <span class="hljs-comment">// ...</span>
  12941. }
  12942. </code></pre>
  12943. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12944. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12945. );
  12946. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12947. <span class="hljs-comment">// Define array of request body.</span>
  12948. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12949. <span class="hljs-keyword">try</span> {
  12950. <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>(
  12951. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12952. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12953. )
  12954. );
  12955. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12956. }
  12957. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12958. <span class="hljs-comment">// handle exception or api errors.</span>
  12959. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12960. }
  12961. <span class="hljs-comment">// ...</span>
  12962. </code></pre>
  12963. <p><code>GET /api/boards/{board}/lists</code></p>
  12964. <p><em>Get the list of Lists attached to a board</em></p>
  12965. <h3 id="get_all_lists-parameters">Parameters</h3>
  12966. <table>
  12967. <thead>
  12968. <tr>
  12969. <th>Name</th>
  12970. <th>In</th>
  12971. <th>Type</th>
  12972. <th>Required</th>
  12973. <th>Description</th>
  12974. </tr>
  12975. </thead>
  12976. <tbody>
  12977. <tr>
  12978. <td>board</td>
  12979. <td>path</td>
  12980. <td>string</td>
  12981. <td>true</td>
  12982. <td>the board ID</td>
  12983. </tr>
  12984. </tbody>
  12985. </table>
  12986. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  12987. <p><strong>board</strong>: the board ID</p>
  12988. <blockquote>
  12989. <p>Example responses</p>
  12990. </blockquote>
  12991. <blockquote>
  12992. <p>200 Response</p>
  12993. </blockquote>
  12994. <pre class="highlight tab tab-json"><code>[
  12995. {
  12996. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12997. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12998. }
  12999. ]
  13000. </code></pre>
  13001. <h3 id="get_all_lists-responses">Responses</h3>
  13002. <table>
  13003. <thead>
  13004. <tr>
  13005. <th>Status</th>
  13006. <th>Meaning</th>
  13007. <th>Description</th>
  13008. <th>Schema</th>
  13009. </tr>
  13010. </thead>
  13011. <tbody>
  13012. <tr>
  13013. <td>200</td>
  13014. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13015. <td>200 response</td>
  13016. <td>Inline</td>
  13017. </tr>
  13018. </tbody>
  13019. </table>
  13020. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  13021. <p>Status Code <strong>200</strong></p>
  13022. <table>
  13023. <thead>
  13024. <tr>
  13025. <th>Name</th>
  13026. <th>Type</th>
  13027. <th>Required</th>
  13028. <th>Restrictions</th>
  13029. <th>Description</th>
  13030. </tr>
  13031. </thead>
  13032. <tbody>
  13033. <tr>
  13034. <td>» _id</td>
  13035. <td>string</td>
  13036. <td>false</td>
  13037. <td>none</td>
  13038. <td>none</td>
  13039. </tr>
  13040. <tr>
  13041. <td>» title</td>
  13042. <td>string</td>
  13043. <td>false</td>
  13044. <td>none</td>
  13045. <td>none</td>
  13046. </tr>
  13047. </tbody>
  13048. </table>
  13049. <aside class="warning">
  13050. To perform this operation, you must be authenticated by means of one of the following methods:
  13051. UserSecurity
  13052. </aside>
  13053. <h2 id="new_list">new_list</h2>
  13054. <p><a id="opIdnew_list"></a></p>
  13055. <blockquote>
  13056. <p>Code samples</p>
  13057. </blockquote>
  13058. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13059. curl -X POST /api/boards/{board}/lists \
  13060. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13061. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13062. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13063. </code></pre>
  13064. <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>
  13065. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13066. Accept: application/json
  13067. </span></code></pre>
  13068. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13069. &quot;title&quot;: &quot;string&quot;
  13070. }&#x27;</span>;
  13071. <span class="hljs-keyword">const</span> headers = {
  13072. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13073. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13074. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13075. };
  13076. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13077. {
  13078. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13079. <span class="hljs-attr">body</span>: inputBody,
  13080. <span class="hljs-attr">headers</span>: headers
  13081. })
  13082. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13083. <span class="hljs-keyword">return</span> res.json();
  13084. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13085. <span class="hljs-built_in">console</span>.log(body);
  13086. });
  13087. </code></pre>
  13088. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13089. <span class="hljs-keyword">const</span> inputBody = {
  13090. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13091. };
  13092. <span class="hljs-keyword">const</span> headers = {
  13093. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13094. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13095. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13096. };
  13097. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13098. {
  13099. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13100. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13101. <span class="hljs-attr">headers</span>: headers
  13102. })
  13103. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13104. <span class="hljs-keyword">return</span> res.json();
  13105. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13106. <span class="hljs-built_in">console</span>.log(body);
  13107. });
  13108. </code></pre>
  13109. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13110. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13111. headers = {
  13112. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13113. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13114. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13115. }
  13116. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13117. <span class="hljs-symbol">params:</span> {
  13118. }, <span class="hljs-symbol">headers:</span> headers
  13119. p JSON.parse(result)
  13120. </code></pre>
  13121. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13122. headers = {
  13123. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13124. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13125. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13126. }
  13127. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13128. <span class="hljs-built_in">print</span>(r.json())
  13129. </code></pre>
  13130. <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>);
  13131. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13132. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13133. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13134. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13135. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13136. String inputLine;
  13137. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13138. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13139. response.append(inputLine);
  13140. }
  13141. in.close();
  13142. System.out.println(response.toString());
  13143. </code></pre>
  13144. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13145. <span class="hljs-keyword">import</span> (
  13146. <span class="hljs-string">&quot;bytes&quot;</span>
  13147. <span class="hljs-string">&quot;net/http&quot;</span>
  13148. )
  13149. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13150. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13151. <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>},
  13152. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13153. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13154. }
  13155. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13156. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13157. req.Header = headers
  13158. client := &amp;http.Client{}
  13159. resp, err := client.Do(req)
  13160. <span class="hljs-comment">// ...</span>
  13161. }
  13162. </code></pre>
  13163. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13164. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13165. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13166. );
  13167. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13168. <span class="hljs-comment">// Define array of request body.</span>
  13169. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13170. <span class="hljs-keyword">try</span> {
  13171. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, <span class="hljs-keyword">array</span>(
  13172. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13173. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13174. )
  13175. );
  13176. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13177. }
  13178. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13179. <span class="hljs-comment">// handle exception or api errors.</span>
  13180. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13181. }
  13182. <span class="hljs-comment">// ...</span>
  13183. </code></pre>
  13184. <p><code>POST /api/boards/{board}/lists</code></p>
  13185. <p><em>Add a List to a board</em></p>
  13186. <blockquote>
  13187. <p>Body parameter</p>
  13188. </blockquote>
  13189. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13190. </code></pre>
  13191. <h3 id="new_list-parameters">Parameters</h3>
  13192. <table>
  13193. <thead>
  13194. <tr>
  13195. <th>Name</th>
  13196. <th>In</th>
  13197. <th>Type</th>
  13198. <th>Required</th>
  13199. <th>Description</th>
  13200. </tr>
  13201. </thead>
  13202. <tbody>
  13203. <tr>
  13204. <td>board</td>
  13205. <td>path</td>
  13206. <td>string</td>
  13207. <td>true</td>
  13208. <td>the board ID</td>
  13209. </tr>
  13210. <tr>
  13211. <td>body</td>
  13212. <td>body</td>
  13213. <td>object</td>
  13214. <td>true</td>
  13215. <td>none</td>
  13216. </tr>
  13217. <tr>
  13218. <td>» title</td>
  13219. <td>body</td>
  13220. <td>string</td>
  13221. <td>true</td>
  13222. <td>the title of the List</td>
  13223. </tr>
  13224. </tbody>
  13225. </table>
  13226. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13227. <p><strong>board</strong>: the board ID</p>
  13228. <blockquote>
  13229. <p>Example responses</p>
  13230. </blockquote>
  13231. <blockquote>
  13232. <p>200 Response</p>
  13233. </blockquote>
  13234. <pre class="highlight tab tab-json"><code>{
  13235. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13236. }
  13237. </code></pre>
  13238. <h3 id="new_list-responses">Responses</h3>
  13239. <table>
  13240. <thead>
  13241. <tr>
  13242. <th>Status</th>
  13243. <th>Meaning</th>
  13244. <th>Description</th>
  13245. <th>Schema</th>
  13246. </tr>
  13247. </thead>
  13248. <tbody>
  13249. <tr>
  13250. <td>200</td>
  13251. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13252. <td>200 response</td>
  13253. <td>Inline</td>
  13254. </tr>
  13255. </tbody>
  13256. </table>
  13257. <h3 id="new_list-responseschema">Response Schema</h3>
  13258. <p>Status Code <strong>200</strong></p>
  13259. <table>
  13260. <thead>
  13261. <tr>
  13262. <th>Name</th>
  13263. <th>Type</th>
  13264. <th>Required</th>
  13265. <th>Restrictions</th>
  13266. <th>Description</th>
  13267. </tr>
  13268. </thead>
  13269. <tbody>
  13270. <tr>
  13271. <td>» _id</td>
  13272. <td>string</td>
  13273. <td>false</td>
  13274. <td>none</td>
  13275. <td>none</td>
  13276. </tr>
  13277. </tbody>
  13278. </table>
  13279. <aside class="warning">
  13280. To perform this operation, you must be authenticated by means of one of the following methods:
  13281. UserSecurity
  13282. </aside>
  13283. <h2 id="get_list">get_list</h2>
  13284. <p><a id="opIdget_list"></a></p>
  13285. <blockquote>
  13286. <p>Code samples</p>
  13287. </blockquote>
  13288. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13289. curl -X GET /api/boards/{board}/lists/{list} \
  13290. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13291. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13292. </code></pre>
  13293. <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>
  13294. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13295. </span></code></pre>
  13296. <pre class="highlight tab tab-javascript"><code>
  13297. <span class="hljs-keyword">const</span> headers = {
  13298. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13299. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13300. };
  13301. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13302. {
  13303. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13304. <span class="hljs-attr">headers</span>: headers
  13305. })
  13306. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13307. <span class="hljs-keyword">return</span> res.json();
  13308. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13309. <span class="hljs-built_in">console</span>.log(body);
  13310. });
  13311. </code></pre>
  13312. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13313. <span class="hljs-keyword">const</span> headers = {
  13314. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13315. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13316. };
  13317. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13318. {
  13319. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13320. <span class="hljs-attr">headers</span>: headers
  13321. })
  13322. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13323. <span class="hljs-keyword">return</span> res.json();
  13324. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13325. <span class="hljs-built_in">console</span>.log(body);
  13326. });
  13327. </code></pre>
  13328. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13329. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13330. headers = {
  13331. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13332. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13333. }
  13334. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13335. <span class="hljs-symbol">params:</span> {
  13336. }, <span class="hljs-symbol">headers:</span> headers
  13337. p JSON.parse(result)
  13338. </code></pre>
  13339. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13340. headers = {
  13341. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13342. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13343. }
  13344. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13345. <span class="hljs-built_in">print</span>(r.json())
  13346. </code></pre>
  13347. <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>);
  13348. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13349. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13350. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13351. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13352. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13353. String inputLine;
  13354. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13355. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13356. response.append(inputLine);
  13357. }
  13358. in.close();
  13359. System.out.println(response.toString());
  13360. </code></pre>
  13361. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13362. <span class="hljs-keyword">import</span> (
  13363. <span class="hljs-string">&quot;bytes&quot;</span>
  13364. <span class="hljs-string">&quot;net/http&quot;</span>
  13365. )
  13366. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13367. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13368. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13369. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13370. }
  13371. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13372. 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)
  13373. req.Header = headers
  13374. client := &amp;http.Client{}
  13375. resp, err := client.Do(req)
  13376. <span class="hljs-comment">// ...</span>
  13377. }
  13378. </code></pre>
  13379. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13380. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13381. );
  13382. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13383. <span class="hljs-comment">// Define array of request body.</span>
  13384. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13385. <span class="hljs-keyword">try</span> {
  13386. <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>(
  13387. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13388. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13389. )
  13390. );
  13391. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13392. }
  13393. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13394. <span class="hljs-comment">// handle exception or api errors.</span>
  13395. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13396. }
  13397. <span class="hljs-comment">// ...</span>
  13398. </code></pre>
  13399. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13400. <p><em>Get a List attached to a board</em></p>
  13401. <h3 id="get_list-parameters">Parameters</h3>
  13402. <table>
  13403. <thead>
  13404. <tr>
  13405. <th>Name</th>
  13406. <th>In</th>
  13407. <th>Type</th>
  13408. <th>Required</th>
  13409. <th>Description</th>
  13410. </tr>
  13411. </thead>
  13412. <tbody>
  13413. <tr>
  13414. <td>board</td>
  13415. <td>path</td>
  13416. <td>string</td>
  13417. <td>true</td>
  13418. <td>the board ID</td>
  13419. </tr>
  13420. <tr>
  13421. <td>list</td>
  13422. <td>path</td>
  13423. <td>string</td>
  13424. <td>true</td>
  13425. <td>the List ID</td>
  13426. </tr>
  13427. </tbody>
  13428. </table>
  13429. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13430. <p><strong>board</strong>: the board ID</p>
  13431. <p><strong>list</strong>: the List ID</p>
  13432. <blockquote>
  13433. <p>Example responses</p>
  13434. </blockquote>
  13435. <blockquote>
  13436. <p>200 Response</p>
  13437. </blockquote>
  13438. <pre class="highlight tab tab-json"><code>{
  13439. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13440. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13441. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13442. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13443. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13444. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13445. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13446. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13447. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13448. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13449. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13450. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13451. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13452. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13453. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13454. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13455. },
  13456. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13457. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13458. }
  13459. </code></pre>
  13460. <h3 id="get_list-responses">Responses</h3>
  13461. <table>
  13462. <thead>
  13463. <tr>
  13464. <th>Status</th>
  13465. <th>Meaning</th>
  13466. <th>Description</th>
  13467. <th>Schema</th>
  13468. </tr>
  13469. </thead>
  13470. <tbody>
  13471. <tr>
  13472. <td>200</td>
  13473. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13474. <td>200 response</td>
  13475. <td><a href="#schemalists">Lists</a></td>
  13476. </tr>
  13477. </tbody>
  13478. </table>
  13479. <aside class="warning">
  13480. To perform this operation, you must be authenticated by means of one of the following methods:
  13481. UserSecurity
  13482. </aside>
  13483. <h2 id="delete_list">delete_list</h2>
  13484. <p><a id="opIddelete_list"></a></p>
  13485. <blockquote>
  13486. <p>Code samples</p>
  13487. </blockquote>
  13488. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13489. curl -X DELETE /api/boards/{board}/lists/{list} \
  13490. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13491. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13492. </code></pre>
  13493. <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>
  13494. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13495. </span></code></pre>
  13496. <pre class="highlight tab tab-javascript"><code>
  13497. <span class="hljs-keyword">const</span> headers = {
  13498. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13499. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13500. };
  13501. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13502. {
  13503. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13504. <span class="hljs-attr">headers</span>: headers
  13505. })
  13506. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13507. <span class="hljs-keyword">return</span> res.json();
  13508. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13509. <span class="hljs-built_in">console</span>.log(body);
  13510. });
  13511. </code></pre>
  13512. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13513. <span class="hljs-keyword">const</span> headers = {
  13514. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13515. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13516. };
  13517. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13518. {
  13519. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13520. <span class="hljs-attr">headers</span>: headers
  13521. })
  13522. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13523. <span class="hljs-keyword">return</span> res.json();
  13524. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13525. <span class="hljs-built_in">console</span>.log(body);
  13526. });
  13527. </code></pre>
  13528. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13529. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13530. headers = {
  13531. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13532. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13533. }
  13534. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13535. <span class="hljs-symbol">params:</span> {
  13536. }, <span class="hljs-symbol">headers:</span> headers
  13537. p JSON.parse(result)
  13538. </code></pre>
  13539. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13540. headers = {
  13541. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13542. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13543. }
  13544. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13545. <span class="hljs-built_in">print</span>(r.json())
  13546. </code></pre>
  13547. <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>);
  13548. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13549. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13550. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13551. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13552. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13553. String inputLine;
  13554. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13555. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13556. response.append(inputLine);
  13557. }
  13558. in.close();
  13559. System.out.println(response.toString());
  13560. </code></pre>
  13561. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13562. <span class="hljs-keyword">import</span> (
  13563. <span class="hljs-string">&quot;bytes&quot;</span>
  13564. <span class="hljs-string">&quot;net/http&quot;</span>
  13565. )
  13566. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13567. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13568. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13569. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13570. }
  13571. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13572. 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)
  13573. req.Header = headers
  13574. client := &amp;http.Client{}
  13575. resp, err := client.Do(req)
  13576. <span class="hljs-comment">// ...</span>
  13577. }
  13578. </code></pre>
  13579. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13580. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13581. );
  13582. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13583. <span class="hljs-comment">// Define array of request body.</span>
  13584. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13585. <span class="hljs-keyword">try</span> {
  13586. <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>(
  13587. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13588. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13589. )
  13590. );
  13591. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13592. }
  13593. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13594. <span class="hljs-comment">// handle exception or api errors.</span>
  13595. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13596. }
  13597. <span class="hljs-comment">// ...</span>
  13598. </code></pre>
  13599. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13600. <p><em>Delete a List</em></p>
  13601. <p>This <strong>deletes</strong> a list from a board.
  13602. The list is not put in the recycle bin.</p>
  13603. <h3 id="delete_list-parameters">Parameters</h3>
  13604. <table>
  13605. <thead>
  13606. <tr>
  13607. <th>Name</th>
  13608. <th>In</th>
  13609. <th>Type</th>
  13610. <th>Required</th>
  13611. <th>Description</th>
  13612. </tr>
  13613. </thead>
  13614. <tbody>
  13615. <tr>
  13616. <td>board</td>
  13617. <td>path</td>
  13618. <td>string</td>
  13619. <td>true</td>
  13620. <td>the board ID</td>
  13621. </tr>
  13622. <tr>
  13623. <td>list</td>
  13624. <td>path</td>
  13625. <td>string</td>
  13626. <td>true</td>
  13627. <td>the ID of the list to remove</td>
  13628. </tr>
  13629. </tbody>
  13630. </table>
  13631. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13632. <p><strong>board</strong>: the board ID</p>
  13633. <p><strong>list</strong>: the ID of the list to remove</p>
  13634. <blockquote>
  13635. <p>Example responses</p>
  13636. </blockquote>
  13637. <blockquote>
  13638. <p>200 Response</p>
  13639. </blockquote>
  13640. <pre class="highlight tab tab-json"><code>{
  13641. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13642. }
  13643. </code></pre>
  13644. <h3 id="delete_list-responses">Responses</h3>
  13645. <table>
  13646. <thead>
  13647. <tr>
  13648. <th>Status</th>
  13649. <th>Meaning</th>
  13650. <th>Description</th>
  13651. <th>Schema</th>
  13652. </tr>
  13653. </thead>
  13654. <tbody>
  13655. <tr>
  13656. <td>200</td>
  13657. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13658. <td>200 response</td>
  13659. <td>Inline</td>
  13660. </tr>
  13661. </tbody>
  13662. </table>
  13663. <h3 id="delete_list-responseschema">Response Schema</h3>
  13664. <p>Status Code <strong>200</strong></p>
  13665. <table>
  13666. <thead>
  13667. <tr>
  13668. <th>Name</th>
  13669. <th>Type</th>
  13670. <th>Required</th>
  13671. <th>Restrictions</th>
  13672. <th>Description</th>
  13673. </tr>
  13674. </thead>
  13675. <tbody>
  13676. <tr>
  13677. <td>» _id</td>
  13678. <td>string</td>
  13679. <td>false</td>
  13680. <td>none</td>
  13681. <td>none</td>
  13682. </tr>
  13683. </tbody>
  13684. </table>
  13685. <aside class="warning">
  13686. To perform this operation, you must be authenticated by means of one of the following methods:
  13687. UserSecurity
  13688. </aside>
  13689. <h1 id="wekan-rest-api-users">Users</h1>
  13690. <h2 id="add_board_member">add_board_member</h2>
  13691. <p><a id="opIdadd_board_member"></a></p>
  13692. <blockquote>
  13693. <p>Code samples</p>
  13694. </blockquote>
  13695. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13696. curl -X POST /api/boards/{board}/members/{user}/add \
  13697. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13698. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13699. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13700. </code></pre>
  13701. <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>
  13702. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13703. Accept: application/json
  13704. </span></code></pre>
  13705. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13706. &quot;action&quot;: &quot;string&quot;,
  13707. &quot;isAdmin&quot;: true,
  13708. &quot;isNoComments&quot;: true,
  13709. &quot;isCommentOnly&quot;: true
  13710. }&#x27;</span>;
  13711. <span class="hljs-keyword">const</span> headers = {
  13712. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13713. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13714. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13715. };
  13716. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13717. {
  13718. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13719. <span class="hljs-attr">body</span>: inputBody,
  13720. <span class="hljs-attr">headers</span>: headers
  13721. })
  13722. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13723. <span class="hljs-keyword">return</span> res.json();
  13724. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13725. <span class="hljs-built_in">console</span>.log(body);
  13726. });
  13727. </code></pre>
  13728. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13729. <span class="hljs-keyword">const</span> inputBody = {
  13730. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13731. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13732. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13733. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13734. };
  13735. <span class="hljs-keyword">const</span> headers = {
  13736. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13737. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13738. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13739. };
  13740. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13741. {
  13742. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13743. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13744. <span class="hljs-attr">headers</span>: headers
  13745. })
  13746. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13747. <span class="hljs-keyword">return</span> res.json();
  13748. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13749. <span class="hljs-built_in">console</span>.log(body);
  13750. });
  13751. </code></pre>
  13752. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13753. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13754. headers = {
  13755. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13756. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13757. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13758. }
  13759. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13760. <span class="hljs-symbol">params:</span> {
  13761. }, <span class="hljs-symbol">headers:</span> headers
  13762. p JSON.parse(result)
  13763. </code></pre>
  13764. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13765. headers = {
  13766. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13767. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13768. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13769. }
  13770. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13771. <span class="hljs-built_in">print</span>(r.json())
  13772. </code></pre>
  13773. <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>);
  13774. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13775. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13776. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13777. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13778. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13779. String inputLine;
  13780. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13781. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13782. response.append(inputLine);
  13783. }
  13784. in.close();
  13785. System.out.println(response.toString());
  13786. </code></pre>
  13787. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13788. <span class="hljs-keyword">import</span> (
  13789. <span class="hljs-string">&quot;bytes&quot;</span>
  13790. <span class="hljs-string">&quot;net/http&quot;</span>
  13791. )
  13792. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13793. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13794. <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>},
  13795. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13796. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13797. }
  13798. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13799. 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)
  13800. req.Header = headers
  13801. client := &amp;http.Client{}
  13802. resp, err := client.Do(req)
  13803. <span class="hljs-comment">// ...</span>
  13804. }
  13805. </code></pre>
  13806. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13807. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13808. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13809. );
  13810. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13811. <span class="hljs-comment">// Define array of request body.</span>
  13812. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13813. <span class="hljs-keyword">try</span> {
  13814. <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>(
  13815. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13816. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13817. )
  13818. );
  13819. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13820. }
  13821. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13822. <span class="hljs-comment">// handle exception or api errors.</span>
  13823. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13824. }
  13825. <span class="hljs-comment">// ...</span>
  13826. </code></pre>
  13827. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13828. <p><em>Add New Board Member with Role</em></p>
  13829. <p>Only the admin user (the first user) can call the REST API.</p>
  13830. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13831. to later change the permissions.</p>
  13832. <blockquote>
  13833. <p>Body parameter</p>
  13834. </blockquote>
  13835. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13836. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13837. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13838. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13839. </code></pre>
  13840. <h3 id="add_board_member-parameters">Parameters</h3>
  13841. <table>
  13842. <thead>
  13843. <tr>
  13844. <th>Name</th>
  13845. <th>In</th>
  13846. <th>Type</th>
  13847. <th>Required</th>
  13848. <th>Description</th>
  13849. </tr>
  13850. </thead>
  13851. <tbody>
  13852. <tr>
  13853. <td>board</td>
  13854. <td>path</td>
  13855. <td>string</td>
  13856. <td>true</td>
  13857. <td>the board ID</td>
  13858. </tr>
  13859. <tr>
  13860. <td>user</td>
  13861. <td>path</td>
  13862. <td>string</td>
  13863. <td>true</td>
  13864. <td>the user ID</td>
  13865. </tr>
  13866. <tr>
  13867. <td>body</td>
  13868. <td>body</td>
  13869. <td>object</td>
  13870. <td>true</td>
  13871. <td>none</td>
  13872. </tr>
  13873. <tr>
  13874. <td>» action</td>
  13875. <td>body</td>
  13876. <td>string</td>
  13877. <td>true</td>
  13878. <td>the action value</td>
  13879. </tr>
  13880. <tr>
  13881. <td>» isAdmin</td>
  13882. <td>body</td>
  13883. <td>boolean</td>
  13884. <td>true</td>
  13885. <td>is the user an admin of the board</td>
  13886. </tr>
  13887. <tr>
  13888. <td>» isNoComments</td>
  13889. <td>body</td>
  13890. <td>boolean</td>
  13891. <td>true</td>
  13892. <td>disable comments</td>
  13893. </tr>
  13894. <tr>
  13895. <td>» isCommentOnly</td>
  13896. <td>body</td>
  13897. <td>boolean</td>
  13898. <td>true</td>
  13899. <td>only enable comments</td>
  13900. </tr>
  13901. </tbody>
  13902. </table>
  13903. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13904. <p><strong>board</strong>: the board ID</p>
  13905. <p><strong>user</strong>: the user ID</p>
  13906. <blockquote>
  13907. <p>Example responses</p>
  13908. </blockquote>
  13909. <blockquote>
  13910. <p>200 Response</p>
  13911. </blockquote>
  13912. <pre class="highlight tab tab-json"><code>{
  13913. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13914. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13915. }
  13916. </code></pre>
  13917. <h3 id="add_board_member-responses">Responses</h3>
  13918. <table>
  13919. <thead>
  13920. <tr>
  13921. <th>Status</th>
  13922. <th>Meaning</th>
  13923. <th>Description</th>
  13924. <th>Schema</th>
  13925. </tr>
  13926. </thead>
  13927. <tbody>
  13928. <tr>
  13929. <td>200</td>
  13930. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13931. <td>200 response</td>
  13932. <td>Inline</td>
  13933. </tr>
  13934. </tbody>
  13935. </table>
  13936. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13937. <p>Status Code <strong>200</strong></p>
  13938. <table>
  13939. <thead>
  13940. <tr>
  13941. <th>Name</th>
  13942. <th>Type</th>
  13943. <th>Required</th>
  13944. <th>Restrictions</th>
  13945. <th>Description</th>
  13946. </tr>
  13947. </thead>
  13948. <tbody>
  13949. <tr>
  13950. <td>» _id</td>
  13951. <td>string</td>
  13952. <td>false</td>
  13953. <td>none</td>
  13954. <td>none</td>
  13955. </tr>
  13956. <tr>
  13957. <td>» title</td>
  13958. <td>string</td>
  13959. <td>false</td>
  13960. <td>none</td>
  13961. <td>none</td>
  13962. </tr>
  13963. </tbody>
  13964. </table>
  13965. <aside class="warning">
  13966. To perform this operation, you must be authenticated by means of one of the following methods:
  13967. UserSecurity
  13968. </aside>
  13969. <h2 id="remove_board_member">remove_board_member</h2>
  13970. <p><a id="opIdremove_board_member"></a></p>
  13971. <blockquote>
  13972. <p>Code samples</p>
  13973. </blockquote>
  13974. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13975. curl -X POST /api/boards/{board}/members/{user}/remove \
  13976. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13977. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13978. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13979. </code></pre>
  13980. <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>
  13981. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13982. Accept: application/json
  13983. </span></code></pre>
  13984. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13985. &quot;action&quot;: &quot;string&quot;
  13986. }&#x27;</span>;
  13987. <span class="hljs-keyword">const</span> headers = {
  13988. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13989. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13990. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13991. };
  13992. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13993. {
  13994. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13995. <span class="hljs-attr">body</span>: inputBody,
  13996. <span class="hljs-attr">headers</span>: headers
  13997. })
  13998. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13999. <span class="hljs-keyword">return</span> res.json();
  14000. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14001. <span class="hljs-built_in">console</span>.log(body);
  14002. });
  14003. </code></pre>
  14004. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14005. <span class="hljs-keyword">const</span> inputBody = {
  14006. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14007. };
  14008. <span class="hljs-keyword">const</span> headers = {
  14009. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14010. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14011. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14012. };
  14013. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14014. {
  14015. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14016. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14017. <span class="hljs-attr">headers</span>: headers
  14018. })
  14019. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14020. <span class="hljs-keyword">return</span> res.json();
  14021. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14022. <span class="hljs-built_in">console</span>.log(body);
  14023. });
  14024. </code></pre>
  14025. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14026. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14027. headers = {
  14028. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14029. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14030. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14031. }
  14032. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14033. <span class="hljs-symbol">params:</span> {
  14034. }, <span class="hljs-symbol">headers:</span> headers
  14035. p JSON.parse(result)
  14036. </code></pre>
  14037. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14038. headers = {
  14039. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14040. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14041. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14042. }
  14043. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  14044. <span class="hljs-built_in">print</span>(r.json())
  14045. </code></pre>
  14046. <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>);
  14047. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14048. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14049. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14050. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14051. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14052. String inputLine;
  14053. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14054. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14055. response.append(inputLine);
  14056. }
  14057. in.close();
  14058. System.out.println(response.toString());
  14059. </code></pre>
  14060. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14061. <span class="hljs-keyword">import</span> (
  14062. <span class="hljs-string">&quot;bytes&quot;</span>
  14063. <span class="hljs-string">&quot;net/http&quot;</span>
  14064. )
  14065. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14066. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14067. <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>},
  14068. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14069. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14070. }
  14071. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14072. 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)
  14073. req.Header = headers
  14074. client := &amp;http.Client{}
  14075. resp, err := client.Do(req)
  14076. <span class="hljs-comment">// ...</span>
  14077. }
  14078. </code></pre>
  14079. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14080. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14081. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14082. );
  14083. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14084. <span class="hljs-comment">// Define array of request body.</span>
  14085. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14086. <span class="hljs-keyword">try</span> {
  14087. <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>(
  14088. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14089. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14090. )
  14091. );
  14092. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14093. }
  14094. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14095. <span class="hljs-comment">// handle exception or api errors.</span>
  14096. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14097. }
  14098. <span class="hljs-comment">// ...</span>
  14099. </code></pre>
  14100. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  14101. <p><em>Remove Member from Board</em></p>
  14102. <p>Only the admin user (the first user) can call the REST API.</p>
  14103. <blockquote>
  14104. <p>Body parameter</p>
  14105. </blockquote>
  14106. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14107. </code></pre>
  14108. <h3 id="remove_board_member-parameters">Parameters</h3>
  14109. <table>
  14110. <thead>
  14111. <tr>
  14112. <th>Name</th>
  14113. <th>In</th>
  14114. <th>Type</th>
  14115. <th>Required</th>
  14116. <th>Description</th>
  14117. </tr>
  14118. </thead>
  14119. <tbody>
  14120. <tr>
  14121. <td>board</td>
  14122. <td>path</td>
  14123. <td>string</td>
  14124. <td>true</td>
  14125. <td>the board ID</td>
  14126. </tr>
  14127. <tr>
  14128. <td>user</td>
  14129. <td>path</td>
  14130. <td>string</td>
  14131. <td>true</td>
  14132. <td>the user ID</td>
  14133. </tr>
  14134. <tr>
  14135. <td>body</td>
  14136. <td>body</td>
  14137. <td>object</td>
  14138. <td>true</td>
  14139. <td>none</td>
  14140. </tr>
  14141. <tr>
  14142. <td>» action</td>
  14143. <td>body</td>
  14144. <td>string</td>
  14145. <td>true</td>
  14146. <td>the action (needs to be <code>remove</code>)</td>
  14147. </tr>
  14148. </tbody>
  14149. </table>
  14150. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14151. <p><strong>board</strong>: the board ID</p>
  14152. <p><strong>user</strong>: the user ID</p>
  14153. <blockquote>
  14154. <p>Example responses</p>
  14155. </blockquote>
  14156. <blockquote>
  14157. <p>200 Response</p>
  14158. </blockquote>
  14159. <pre class="highlight tab tab-json"><code>{
  14160. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14161. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14162. }
  14163. </code></pre>
  14164. <h3 id="remove_board_member-responses">Responses</h3>
  14165. <table>
  14166. <thead>
  14167. <tr>
  14168. <th>Status</th>
  14169. <th>Meaning</th>
  14170. <th>Description</th>
  14171. <th>Schema</th>
  14172. </tr>
  14173. </thead>
  14174. <tbody>
  14175. <tr>
  14176. <td>200</td>
  14177. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14178. <td>200 response</td>
  14179. <td>Inline</td>
  14180. </tr>
  14181. </tbody>
  14182. </table>
  14183. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  14184. <p>Status Code <strong>200</strong></p>
  14185. <table>
  14186. <thead>
  14187. <tr>
  14188. <th>Name</th>
  14189. <th>Type</th>
  14190. <th>Required</th>
  14191. <th>Restrictions</th>
  14192. <th>Description</th>
  14193. </tr>
  14194. </thead>
  14195. <tbody>
  14196. <tr>
  14197. <td>» _id</td>
  14198. <td>string</td>
  14199. <td>false</td>
  14200. <td>none</td>
  14201. <td>none</td>
  14202. </tr>
  14203. <tr>
  14204. <td>» title</td>
  14205. <td>string</td>
  14206. <td>false</td>
  14207. <td>none</td>
  14208. <td>none</td>
  14209. </tr>
  14210. </tbody>
  14211. </table>
  14212. <aside class="warning">
  14213. To perform this operation, you must be authenticated by means of one of the following methods:
  14214. UserSecurity
  14215. </aside>
  14216. <h2 id="create_user_token">create_user_token</h2>
  14217. <p><a id="opIdcreate_user_token"></a></p>
  14218. <blockquote>
  14219. <p>Code samples</p>
  14220. </blockquote>
  14221. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14222. curl -X POST /api/createtoken/{user} \
  14223. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14224. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14225. </code></pre>
  14226. <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>
  14227. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14228. </span></code></pre>
  14229. <pre class="highlight tab tab-javascript"><code>
  14230. <span class="hljs-keyword">const</span> headers = {
  14231. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14232. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14233. };
  14234. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14235. {
  14236. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14237. <span class="hljs-attr">headers</span>: headers
  14238. })
  14239. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14240. <span class="hljs-keyword">return</span> res.json();
  14241. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14242. <span class="hljs-built_in">console</span>.log(body);
  14243. });
  14244. </code></pre>
  14245. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14246. <span class="hljs-keyword">const</span> headers = {
  14247. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14248. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14249. };
  14250. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14251. {
  14252. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14253. <span class="hljs-attr">headers</span>: headers
  14254. })
  14255. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14256. <span class="hljs-keyword">return</span> res.json();
  14257. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14258. <span class="hljs-built_in">console</span>.log(body);
  14259. });
  14260. </code></pre>
  14261. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14262. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14263. headers = {
  14264. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14265. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14266. }
  14267. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14268. <span class="hljs-symbol">params:</span> {
  14269. }, <span class="hljs-symbol">headers:</span> headers
  14270. p JSON.parse(result)
  14271. </code></pre>
  14272. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14273. headers = {
  14274. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14275. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14276. }
  14277. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  14278. <span class="hljs-built_in">print</span>(r.json())
  14279. </code></pre>
  14280. <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>);
  14281. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14282. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14283. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14284. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14285. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14286. String inputLine;
  14287. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14288. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14289. response.append(inputLine);
  14290. }
  14291. in.close();
  14292. System.out.println(response.toString());
  14293. </code></pre>
  14294. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14295. <span class="hljs-keyword">import</span> (
  14296. <span class="hljs-string">&quot;bytes&quot;</span>
  14297. <span class="hljs-string">&quot;net/http&quot;</span>
  14298. )
  14299. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14300. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14301. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14302. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14303. }
  14304. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14305. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  14306. req.Header = headers
  14307. client := &amp;http.Client{}
  14308. resp, err := client.Do(req)
  14309. <span class="hljs-comment">// ...</span>
  14310. }
  14311. </code></pre>
  14312. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14313. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14314. );
  14315. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14316. <span class="hljs-comment">// Define array of request body.</span>
  14317. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14318. <span class="hljs-keyword">try</span> {
  14319. <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>(
  14320. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14321. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14322. )
  14323. );
  14324. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14325. }
  14326. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14327. <span class="hljs-comment">// handle exception or api errors.</span>
  14328. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14329. }
  14330. <span class="hljs-comment">// ...</span>
  14331. </code></pre>
  14332. <p><code>POST /api/createtoken/{user}</code></p>
  14333. <p><em>Create a user token</em></p>
  14334. <p>Only the admin user (the first user) can call the REST API.</p>
  14335. <h3 id="create_user_token-parameters">Parameters</h3>
  14336. <table>
  14337. <thead>
  14338. <tr>
  14339. <th>Name</th>
  14340. <th>In</th>
  14341. <th>Type</th>
  14342. <th>Required</th>
  14343. <th>Description</th>
  14344. </tr>
  14345. </thead>
  14346. <tbody>
  14347. <tr>
  14348. <td>user</td>
  14349. <td>path</td>
  14350. <td>string</td>
  14351. <td>true</td>
  14352. <td>the ID of the user to create token for.</td>
  14353. </tr>
  14354. </tbody>
  14355. </table>
  14356. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14357. <p><strong>user</strong>: the ID of the user to create token for.</p>
  14358. <blockquote>
  14359. <p>Example responses</p>
  14360. </blockquote>
  14361. <blockquote>
  14362. <p>200 Response</p>
  14363. </blockquote>
  14364. <pre class="highlight tab tab-json"><code>{
  14365. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14366. }
  14367. </code></pre>
  14368. <h3 id="create_user_token-responses">Responses</h3>
  14369. <table>
  14370. <thead>
  14371. <tr>
  14372. <th>Status</th>
  14373. <th>Meaning</th>
  14374. <th>Description</th>
  14375. <th>Schema</th>
  14376. </tr>
  14377. </thead>
  14378. <tbody>
  14379. <tr>
  14380. <td>200</td>
  14381. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14382. <td>200 response</td>
  14383. <td>Inline</td>
  14384. </tr>
  14385. </tbody>
  14386. </table>
  14387. <h3 id="create_user_token-responseschema">Response Schema</h3>
  14388. <p>Status Code <strong>200</strong></p>
  14389. <table>
  14390. <thead>
  14391. <tr>
  14392. <th>Name</th>
  14393. <th>Type</th>
  14394. <th>Required</th>
  14395. <th>Restrictions</th>
  14396. <th>Description</th>
  14397. </tr>
  14398. </thead>
  14399. <tbody>
  14400. <tr>
  14401. <td>» _id</td>
  14402. <td>string</td>
  14403. <td>false</td>
  14404. <td>none</td>
  14405. <td>none</td>
  14406. </tr>
  14407. </tbody>
  14408. </table>
  14409. <aside class="warning">
  14410. To perform this operation, you must be authenticated by means of one of the following methods:
  14411. UserSecurity
  14412. </aside>
  14413. <h2 id="delete_user_token">delete_user_token</h2>
  14414. <p><a id="opIddelete_user_token"></a></p>
  14415. <blockquote>
  14416. <p>Code samples</p>
  14417. </blockquote>
  14418. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14419. curl -X POST /api/deletetoken \
  14420. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14421. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14422. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14423. </code></pre>
  14424. <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>
  14425. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14426. Accept: application/json
  14427. </span></code></pre>
  14428. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14429. &quot;userId&quot;: &quot;string&quot;,
  14430. &quot;token&quot;: &quot;string&quot;
  14431. }&#x27;</span>;
  14432. <span class="hljs-keyword">const</span> headers = {
  14433. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14434. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14435. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14436. };
  14437. fetch(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  14438. {
  14439. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14440. <span class="hljs-attr">body</span>: inputBody,
  14441. <span class="hljs-attr">headers</span>: headers
  14442. })
  14443. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14444. <span class="hljs-keyword">return</span> res.json();
  14445. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14446. <span class="hljs-built_in">console</span>.log(body);
  14447. });
  14448. </code></pre>
  14449. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14450. <span class="hljs-keyword">const</span> inputBody = {
  14451. <span class="hljs-string">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14452. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14453. };
  14454. <span class="hljs-keyword">const</span> headers = {
  14455. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14456. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14457. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14458. };
  14459. fetch(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  14460. {
  14461. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14462. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14463. <span class="hljs-attr">headers</span>: headers
  14464. })
  14465. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14466. <span class="hljs-keyword">return</span> res.json();
  14467. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14468. <span class="hljs-built_in">console</span>.log(body);
  14469. });
  14470. </code></pre>
  14471. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14472. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14473. headers = {
  14474. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14475. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14476. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14477. }
  14478. result = RestClient.post <span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>,
  14479. <span class="hljs-symbol">params:</span> {
  14480. }, <span class="hljs-symbol">headers:</span> headers
  14481. p JSON.parse(result)
  14482. </code></pre>
  14483. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14484. headers = {
  14485. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14486. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14487. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14488. }
  14489. r = requests.post(<span class="hljs-string">&#x27;/api/deletetoken&#x27;</span>, headers = headers)
  14490. <span class="hljs-built_in">print</span>(r.json())
  14491. </code></pre>
  14492. <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>);
  14493. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14494. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14495. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14496. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14497. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14498. String inputLine;
  14499. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14500. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14501. response.append(inputLine);
  14502. }
  14503. in.close();
  14504. System.out.println(response.toString());
  14505. </code></pre>
  14506. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14507. <span class="hljs-keyword">import</span> (
  14508. <span class="hljs-string">&quot;bytes&quot;</span>
  14509. <span class="hljs-string">&quot;net/http&quot;</span>
  14510. )
  14511. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14512. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14513. <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>},
  14514. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14515. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14516. }
  14517. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14518. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/deletetoken&quot;</span>, data)
  14519. req.Header = headers
  14520. client := &amp;http.Client{}
  14521. resp, err := client.Do(req)
  14522. <span class="hljs-comment">// ...</span>
  14523. }
  14524. </code></pre>
  14525. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14526. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14527. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14528. );
  14529. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14530. <span class="hljs-comment">// Define array of request body.</span>
  14531. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14532. <span class="hljs-keyword">try</span> {
  14533. <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>(
  14534. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14535. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14536. )
  14537. );
  14538. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14539. }
  14540. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14541. <span class="hljs-comment">// handle exception or api errors.</span>
  14542. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14543. }
  14544. <span class="hljs-comment">// ...</span>
  14545. </code></pre>
  14546. <p><code>POST /api/deletetoken</code></p>
  14547. <p><em>Delete one or all user token.</em></p>
  14548. <p>Only the admin user (the first user) can call the REST API.</p>
  14549. <blockquote>
  14550. <p>Body parameter</p>
  14551. </blockquote>
  14552. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">userId:</span> <span class="hljs-string">string</span>
  14553. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  14554. </code></pre>
  14555. <h3 id="delete_user_token-parameters">Parameters</h3>
  14556. <table>
  14557. <thead>
  14558. <tr>
  14559. <th>Name</th>
  14560. <th>In</th>
  14561. <th>Type</th>
  14562. <th>Required</th>
  14563. <th>Description</th>
  14564. </tr>
  14565. </thead>
  14566. <tbody>
  14567. <tr>
  14568. <td>body</td>
  14569. <td>body</td>
  14570. <td>object</td>
  14571. <td>true</td>
  14572. <td>none</td>
  14573. </tr>
  14574. <tr>
  14575. <td>» userId</td>
  14576. <td>body</td>
  14577. <td>string</td>
  14578. <td>true</td>
  14579. <td>the user ID</td>
  14580. </tr>
  14581. <tr>
  14582. <td>» token</td>
  14583. <td>body</td>
  14584. <td>string</td>
  14585. <td>true</td>
  14586. <td>the user hashedToken</td>
  14587. </tr>
  14588. </tbody>
  14589. </table>
  14590. <blockquote>
  14591. <p>Example responses</p>
  14592. </blockquote>
  14593. <blockquote>
  14594. <p>200 Response</p>
  14595. </blockquote>
  14596. <pre class="highlight tab tab-json"><code>{
  14597. <span class="hljs-attr">&quot;message&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14598. }
  14599. </code></pre>
  14600. <h3 id="delete_user_token-responses">Responses</h3>
  14601. <table>
  14602. <thead>
  14603. <tr>
  14604. <th>Status</th>
  14605. <th>Meaning</th>
  14606. <th>Description</th>
  14607. <th>Schema</th>
  14608. </tr>
  14609. </thead>
  14610. <tbody>
  14611. <tr>
  14612. <td>200</td>
  14613. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14614. <td>200 response</td>
  14615. <td>Inline</td>
  14616. </tr>
  14617. </tbody>
  14618. </table>
  14619. <h3 id="delete_user_token-responseschema">Response Schema</h3>
  14620. <p>Status Code <strong>200</strong></p>
  14621. <table>
  14622. <thead>
  14623. <tr>
  14624. <th>Name</th>
  14625. <th>Type</th>
  14626. <th>Required</th>
  14627. <th>Restrictions</th>
  14628. <th>Description</th>
  14629. </tr>
  14630. </thead>
  14631. <tbody>
  14632. <tr>
  14633. <td>» message</td>
  14634. <td>string</td>
  14635. <td>false</td>
  14636. <td>none</td>
  14637. <td>none</td>
  14638. </tr>
  14639. </tbody>
  14640. </table>
  14641. <aside class="warning">
  14642. To perform this operation, you must be authenticated by means of one of the following methods:
  14643. UserSecurity
  14644. </aside>
  14645. <h2 id="get_current_user">get_current_user</h2>
  14646. <p><a id="opIdget_current_user"></a></p>
  14647. <blockquote>
  14648. <p>Code samples</p>
  14649. </blockquote>
  14650. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14651. curl -X GET /api/user \
  14652. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14653. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14654. </code></pre>
  14655. <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>
  14656. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14657. </span></code></pre>
  14658. <pre class="highlight tab tab-javascript"><code>
  14659. <span class="hljs-keyword">const</span> headers = {
  14660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14662. };
  14663. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14664. {
  14665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14666. <span class="hljs-attr">headers</span>: headers
  14667. })
  14668. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14669. <span class="hljs-keyword">return</span> res.json();
  14670. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14671. <span class="hljs-built_in">console</span>.log(body);
  14672. });
  14673. </code></pre>
  14674. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14675. <span class="hljs-keyword">const</span> headers = {
  14676. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14677. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14678. };
  14679. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14680. {
  14681. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14682. <span class="hljs-attr">headers</span>: headers
  14683. })
  14684. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14685. <span class="hljs-keyword">return</span> res.json();
  14686. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14687. <span class="hljs-built_in">console</span>.log(body);
  14688. });
  14689. </code></pre>
  14690. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14691. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14692. headers = {
  14693. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14694. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14695. }
  14696. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14697. <span class="hljs-symbol">params:</span> {
  14698. }, <span class="hljs-symbol">headers:</span> headers
  14699. p JSON.parse(result)
  14700. </code></pre>
  14701. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14702. headers = {
  14703. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14704. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14705. }
  14706. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14707. <span class="hljs-built_in">print</span>(r.json())
  14708. </code></pre>
  14709. <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>);
  14710. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14711. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14712. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14713. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14714. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14715. String inputLine;
  14716. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14717. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14718. response.append(inputLine);
  14719. }
  14720. in.close();
  14721. System.out.println(response.toString());
  14722. </code></pre>
  14723. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14724. <span class="hljs-keyword">import</span> (
  14725. <span class="hljs-string">&quot;bytes&quot;</span>
  14726. <span class="hljs-string">&quot;net/http&quot;</span>
  14727. )
  14728. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14729. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14730. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14731. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14732. }
  14733. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14734. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14735. req.Header = headers
  14736. client := &amp;http.Client{}
  14737. resp, err := client.Do(req)
  14738. <span class="hljs-comment">// ...</span>
  14739. }
  14740. </code></pre>
  14741. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14742. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14743. );
  14744. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14745. <span class="hljs-comment">// Define array of request body.</span>
  14746. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14747. <span class="hljs-keyword">try</span> {
  14748. <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>(
  14749. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14750. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14751. )
  14752. );
  14753. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14754. }
  14755. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14756. <span class="hljs-comment">// handle exception or api errors.</span>
  14757. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14758. }
  14759. <span class="hljs-comment">// ...</span>
  14760. </code></pre>
  14761. <p><code>GET /api/user</code></p>
  14762. <p><em>returns the current user</em></p>
  14763. <blockquote>
  14764. <p>Example responses</p>
  14765. </blockquote>
  14766. <blockquote>
  14767. <p>200 Response</p>
  14768. </blockquote>
  14769. <pre class="highlight tab tab-json"><code>{
  14770. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14771. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14772. {
  14773. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14774. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14775. }
  14776. ],
  14777. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14778. {
  14779. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14780. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14781. }
  14782. ],
  14783. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14784. {
  14785. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14786. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14787. }
  14788. ],
  14789. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14790. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14791. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14792. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14793. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14794. <span class="hljs-string">&quot;string&quot;</span>
  14795. ],
  14796. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14797. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14798. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14799. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14800. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14801. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14802. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14803. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14804. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14805. <span class="hljs-string">&quot;string&quot;</span>
  14806. ],
  14807. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14808. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14809. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14810. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14811. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14812. {
  14813. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14814. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14815. }
  14816. ],
  14817. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  14818. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14819. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14820. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14821. <span class="hljs-string">&quot;string&quot;</span>
  14822. ],
  14823. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14824. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14825. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14826. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14827. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14828. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14829. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14830. },
  14831. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14832. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14833. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14834. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14835. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14836. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14837. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14838. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14839. },
  14840. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14841. <span class="hljs-string">&quot;string&quot;</span>
  14842. ],
  14843. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14844. }
  14845. </code></pre>
  14846. <h3 id="get_current_user-responses">Responses</h3>
  14847. <table>
  14848. <thead>
  14849. <tr>
  14850. <th>Status</th>
  14851. <th>Meaning</th>
  14852. <th>Description</th>
  14853. <th>Schema</th>
  14854. </tr>
  14855. </thead>
  14856. <tbody>
  14857. <tr>
  14858. <td>200</td>
  14859. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14860. <td>200 response</td>
  14861. <td><a href="#schemausers">Users</a></td>
  14862. </tr>
  14863. </tbody>
  14864. </table>
  14865. <aside class="warning">
  14866. To perform this operation, you must be authenticated by means of one of the following methods:
  14867. UserSecurity
  14868. </aside>
  14869. <h2 id="get_all_users">get_all_users</h2>
  14870. <p><a id="opIdget_all_users"></a></p>
  14871. <blockquote>
  14872. <p>Code samples</p>
  14873. </blockquote>
  14874. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14875. curl -X GET /api/users \
  14876. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14877. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14878. </code></pre>
  14879. <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>
  14880. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14881. </span></code></pre>
  14882. <pre class="highlight tab tab-javascript"><code>
  14883. <span class="hljs-keyword">const</span> headers = {
  14884. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14885. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14886. };
  14887. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14888. {
  14889. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14890. <span class="hljs-attr">headers</span>: headers
  14891. })
  14892. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14893. <span class="hljs-keyword">return</span> res.json();
  14894. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14895. <span class="hljs-built_in">console</span>.log(body);
  14896. });
  14897. </code></pre>
  14898. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14899. <span class="hljs-keyword">const</span> headers = {
  14900. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14901. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14902. };
  14903. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14904. {
  14905. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14906. <span class="hljs-attr">headers</span>: headers
  14907. })
  14908. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14909. <span class="hljs-keyword">return</span> res.json();
  14910. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14911. <span class="hljs-built_in">console</span>.log(body);
  14912. });
  14913. </code></pre>
  14914. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14915. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14916. headers = {
  14917. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14918. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14919. }
  14920. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14921. <span class="hljs-symbol">params:</span> {
  14922. }, <span class="hljs-symbol">headers:</span> headers
  14923. p JSON.parse(result)
  14924. </code></pre>
  14925. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14926. headers = {
  14927. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14928. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14929. }
  14930. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14931. <span class="hljs-built_in">print</span>(r.json())
  14932. </code></pre>
  14933. <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>);
  14934. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14935. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14936. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14937. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14938. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14939. String inputLine;
  14940. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14941. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14942. response.append(inputLine);
  14943. }
  14944. in.close();
  14945. System.out.println(response.toString());
  14946. </code></pre>
  14947. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14948. <span class="hljs-keyword">import</span> (
  14949. <span class="hljs-string">&quot;bytes&quot;</span>
  14950. <span class="hljs-string">&quot;net/http&quot;</span>
  14951. )
  14952. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14953. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14954. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14955. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14956. }
  14957. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14958. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14959. req.Header = headers
  14960. client := &amp;http.Client{}
  14961. resp, err := client.Do(req)
  14962. <span class="hljs-comment">// ...</span>
  14963. }
  14964. </code></pre>
  14965. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14966. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14967. );
  14968. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14969. <span class="hljs-comment">// Define array of request body.</span>
  14970. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14971. <span class="hljs-keyword">try</span> {
  14972. <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>(
  14973. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14974. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14975. )
  14976. );
  14977. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14978. }
  14979. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14980. <span class="hljs-comment">// handle exception or api errors.</span>
  14981. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14982. }
  14983. <span class="hljs-comment">// ...</span>
  14984. </code></pre>
  14985. <p><code>GET /api/users</code></p>
  14986. <p><em>return all the users</em></p>
  14987. <p>Only the admin user (the first user) can call the REST API.</p>
  14988. <blockquote>
  14989. <p>Example responses</p>
  14990. </blockquote>
  14991. <blockquote>
  14992. <p>200 Response</p>
  14993. </blockquote>
  14994. <pre class="highlight tab tab-json"><code>[
  14995. {
  14996. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14997. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14998. }
  14999. ]
  15000. </code></pre>
  15001. <h3 id="get_all_users-responses">Responses</h3>
  15002. <table>
  15003. <thead>
  15004. <tr>
  15005. <th>Status</th>
  15006. <th>Meaning</th>
  15007. <th>Description</th>
  15008. <th>Schema</th>
  15009. </tr>
  15010. </thead>
  15011. <tbody>
  15012. <tr>
  15013. <td>200</td>
  15014. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15015. <td>200 response</td>
  15016. <td>Inline</td>
  15017. </tr>
  15018. </tbody>
  15019. </table>
  15020. <h3 id="get_all_users-responseschema">Response Schema</h3>
  15021. <p>Status Code <strong>200</strong></p>
  15022. <table>
  15023. <thead>
  15024. <tr>
  15025. <th>Name</th>
  15026. <th>Type</th>
  15027. <th>Required</th>
  15028. <th>Restrictions</th>
  15029. <th>Description</th>
  15030. </tr>
  15031. </thead>
  15032. <tbody>
  15033. <tr>
  15034. <td>» _id</td>
  15035. <td>string</td>
  15036. <td>false</td>
  15037. <td>none</td>
  15038. <td>none</td>
  15039. </tr>
  15040. <tr>
  15041. <td>» username</td>
  15042. <td>string</td>
  15043. <td>false</td>
  15044. <td>none</td>
  15045. <td>none</td>
  15046. </tr>
  15047. </tbody>
  15048. </table>
  15049. <aside class="warning">
  15050. To perform this operation, you must be authenticated by means of one of the following methods:
  15051. UserSecurity
  15052. </aside>
  15053. <h2 id="new_user">new_user</h2>
  15054. <p><a id="opIdnew_user"></a></p>
  15055. <blockquote>
  15056. <p>Code samples</p>
  15057. </blockquote>
  15058. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15059. curl -X POST /api/users \
  15060. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15061. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15062. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15063. </code></pre>
  15064. <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>
  15065. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15066. Accept: application/json
  15067. </span></code></pre>
  15068. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15069. &quot;username&quot;: &quot;string&quot;,
  15070. &quot;email&quot;: &quot;string&quot;,
  15071. &quot;password&quot;: &quot;string&quot;
  15072. }&#x27;</span>;
  15073. <span class="hljs-keyword">const</span> headers = {
  15074. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15075. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15076. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15077. };
  15078. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15079. {
  15080. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15081. <span class="hljs-attr">body</span>: inputBody,
  15082. <span class="hljs-attr">headers</span>: headers
  15083. })
  15084. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15085. <span class="hljs-keyword">return</span> res.json();
  15086. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15087. <span class="hljs-built_in">console</span>.log(body);
  15088. });
  15089. </code></pre>
  15090. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15091. <span class="hljs-keyword">const</span> inputBody = {
  15092. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15093. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15094. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15095. };
  15096. <span class="hljs-keyword">const</span> headers = {
  15097. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15098. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15099. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15100. };
  15101. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15102. {
  15103. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15104. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15105. <span class="hljs-attr">headers</span>: headers
  15106. })
  15107. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15108. <span class="hljs-keyword">return</span> res.json();
  15109. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15110. <span class="hljs-built_in">console</span>.log(body);
  15111. });
  15112. </code></pre>
  15113. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15114. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15115. headers = {
  15116. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15117. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15118. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15119. }
  15120. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  15121. <span class="hljs-symbol">params:</span> {
  15122. }, <span class="hljs-symbol">headers:</span> headers
  15123. p JSON.parse(result)
  15124. </code></pre>
  15125. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15126. headers = {
  15127. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15128. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15129. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15130. }
  15131. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  15132. <span class="hljs-built_in">print</span>(r.json())
  15133. </code></pre>
  15134. <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>);
  15135. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15136. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15137. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15138. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15139. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15140. String inputLine;
  15141. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15142. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15143. response.append(inputLine);
  15144. }
  15145. in.close();
  15146. System.out.println(response.toString());
  15147. </code></pre>
  15148. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15149. <span class="hljs-keyword">import</span> (
  15150. <span class="hljs-string">&quot;bytes&quot;</span>
  15151. <span class="hljs-string">&quot;net/http&quot;</span>
  15152. )
  15153. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15154. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15155. <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>},
  15156. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15157. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15158. }
  15159. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15160. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  15161. req.Header = headers
  15162. client := &amp;http.Client{}
  15163. resp, err := client.Do(req)
  15164. <span class="hljs-comment">// ...</span>
  15165. }
  15166. </code></pre>
  15167. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15168. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15169. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15170. );
  15171. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15172. <span class="hljs-comment">// Define array of request body.</span>
  15173. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15174. <span class="hljs-keyword">try</span> {
  15175. <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>(
  15176. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15177. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15178. )
  15179. );
  15180. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15181. }
  15182. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15183. <span class="hljs-comment">// handle exception or api errors.</span>
  15184. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15185. }
  15186. <span class="hljs-comment">// ...</span>
  15187. </code></pre>
  15188. <p><code>POST /api/users</code></p>
  15189. <p><em>Create a new user</em></p>
  15190. <p>Only the admin user (the first user) can call the REST API.</p>
  15191. <blockquote>
  15192. <p>Body parameter</p>
  15193. </blockquote>
  15194. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  15195. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  15196. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  15197. </code></pre>
  15198. <h3 id="new_user-parameters">Parameters</h3>
  15199. <table>
  15200. <thead>
  15201. <tr>
  15202. <th>Name</th>
  15203. <th>In</th>
  15204. <th>Type</th>
  15205. <th>Required</th>
  15206. <th>Description</th>
  15207. </tr>
  15208. </thead>
  15209. <tbody>
  15210. <tr>
  15211. <td>body</td>
  15212. <td>body</td>
  15213. <td>object</td>
  15214. <td>true</td>
  15215. <td>none</td>
  15216. </tr>
  15217. <tr>
  15218. <td>» username</td>
  15219. <td>body</td>
  15220. <td>string</td>
  15221. <td>true</td>
  15222. <td>the new username</td>
  15223. </tr>
  15224. <tr>
  15225. <td>» email</td>
  15226. <td>body</td>
  15227. <td>string</td>
  15228. <td>true</td>
  15229. <td>the email of the new user</td>
  15230. </tr>
  15231. <tr>
  15232. <td>» password</td>
  15233. <td>body</td>
  15234. <td>string</td>
  15235. <td>true</td>
  15236. <td>the password of the new user</td>
  15237. </tr>
  15238. </tbody>
  15239. </table>
  15240. <blockquote>
  15241. <p>Example responses</p>
  15242. </blockquote>
  15243. <blockquote>
  15244. <p>200 Response</p>
  15245. </blockquote>
  15246. <pre class="highlight tab tab-json"><code>{
  15247. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15248. }
  15249. </code></pre>
  15250. <h3 id="new_user-responses">Responses</h3>
  15251. <table>
  15252. <thead>
  15253. <tr>
  15254. <th>Status</th>
  15255. <th>Meaning</th>
  15256. <th>Description</th>
  15257. <th>Schema</th>
  15258. </tr>
  15259. </thead>
  15260. <tbody>
  15261. <tr>
  15262. <td>200</td>
  15263. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15264. <td>200 response</td>
  15265. <td>Inline</td>
  15266. </tr>
  15267. </tbody>
  15268. </table>
  15269. <h3 id="new_user-responseschema">Response Schema</h3>
  15270. <p>Status Code <strong>200</strong></p>
  15271. <table>
  15272. <thead>
  15273. <tr>
  15274. <th>Name</th>
  15275. <th>Type</th>
  15276. <th>Required</th>
  15277. <th>Restrictions</th>
  15278. <th>Description</th>
  15279. </tr>
  15280. </thead>
  15281. <tbody>
  15282. <tr>
  15283. <td>» _id</td>
  15284. <td>string</td>
  15285. <td>false</td>
  15286. <td>none</td>
  15287. <td>none</td>
  15288. </tr>
  15289. </tbody>
  15290. </table>
  15291. <aside class="warning">
  15292. To perform this operation, you must be authenticated by means of one of the following methods:
  15293. UserSecurity
  15294. </aside>
  15295. <h2 id="get_user">get_user</h2>
  15296. <p><a id="opIdget_user"></a></p>
  15297. <blockquote>
  15298. <p>Code samples</p>
  15299. </blockquote>
  15300. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15301. curl -X GET /api/users/{user} \
  15302. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15303. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15304. </code></pre>
  15305. <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>
  15306. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15307. </span></code></pre>
  15308. <pre class="highlight tab tab-javascript"><code>
  15309. <span class="hljs-keyword">const</span> headers = {
  15310. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15311. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15312. };
  15313. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15314. {
  15315. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15316. <span class="hljs-attr">headers</span>: headers
  15317. })
  15318. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15319. <span class="hljs-keyword">return</span> res.json();
  15320. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15321. <span class="hljs-built_in">console</span>.log(body);
  15322. });
  15323. </code></pre>
  15324. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15325. <span class="hljs-keyword">const</span> headers = {
  15326. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15327. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15328. };
  15329. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15330. {
  15331. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15332. <span class="hljs-attr">headers</span>: headers
  15333. })
  15334. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15335. <span class="hljs-keyword">return</span> res.json();
  15336. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15337. <span class="hljs-built_in">console</span>.log(body);
  15338. });
  15339. </code></pre>
  15340. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15341. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15342. headers = {
  15343. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15344. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15345. }
  15346. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15347. <span class="hljs-symbol">params:</span> {
  15348. }, <span class="hljs-symbol">headers:</span> headers
  15349. p JSON.parse(result)
  15350. </code></pre>
  15351. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15352. headers = {
  15353. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15354. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15355. }
  15356. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15357. <span class="hljs-built_in">print</span>(r.json())
  15358. </code></pre>
  15359. <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>);
  15360. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15361. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15362. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15363. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15364. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15365. String inputLine;
  15366. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15367. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15368. response.append(inputLine);
  15369. }
  15370. in.close();
  15371. System.out.println(response.toString());
  15372. </code></pre>
  15373. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15374. <span class="hljs-keyword">import</span> (
  15375. <span class="hljs-string">&quot;bytes&quot;</span>
  15376. <span class="hljs-string">&quot;net/http&quot;</span>
  15377. )
  15378. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15379. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15380. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15381. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15382. }
  15383. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15384. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15385. req.Header = headers
  15386. client := &amp;http.Client{}
  15387. resp, err := client.Do(req)
  15388. <span class="hljs-comment">// ...</span>
  15389. }
  15390. </code></pre>
  15391. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15392. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15393. );
  15394. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15395. <span class="hljs-comment">// Define array of request body.</span>
  15396. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15397. <span class="hljs-keyword">try</span> {
  15398. <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>(
  15399. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15400. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15401. )
  15402. );
  15403. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15404. }
  15405. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15406. <span class="hljs-comment">// handle exception or api errors.</span>
  15407. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15408. }
  15409. <span class="hljs-comment">// ...</span>
  15410. </code></pre>
  15411. <p><code>GET /api/users/{user}</code></p>
  15412. <p><em>get a given user</em></p>
  15413. <p>Only the admin user (the first user) can call the REST API.</p>
  15414. <h3 id="get_user-parameters">Parameters</h3>
  15415. <table>
  15416. <thead>
  15417. <tr>
  15418. <th>Name</th>
  15419. <th>In</th>
  15420. <th>Type</th>
  15421. <th>Required</th>
  15422. <th>Description</th>
  15423. </tr>
  15424. </thead>
  15425. <tbody>
  15426. <tr>
  15427. <td>user</td>
  15428. <td>path</td>
  15429. <td>string</td>
  15430. <td>true</td>
  15431. <td>the user ID or username</td>
  15432. </tr>
  15433. </tbody>
  15434. </table>
  15435. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15436. <p><strong>user</strong>: the user ID or username</p>
  15437. <blockquote>
  15438. <p>Example responses</p>
  15439. </blockquote>
  15440. <blockquote>
  15441. <p>200 Response</p>
  15442. </blockquote>
  15443. <pre class="highlight tab tab-json"><code>{
  15444. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15445. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15446. {
  15447. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15448. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15449. }
  15450. ],
  15451. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15452. {
  15453. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15454. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15455. }
  15456. ],
  15457. <span class="hljs-attr">&quot;emails&quot;</span>: [
  15458. {
  15459. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15460. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  15461. }
  15462. ],
  15463. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15464. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15465. <span class="hljs-attr">&quot;profile&quot;</span>: {
  15466. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15467. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  15468. <span class="hljs-string">&quot;string&quot;</span>
  15469. ],
  15470. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15471. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  15472. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  15473. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  15474. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  15475. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  15476. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  15477. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15478. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  15479. <span class="hljs-string">&quot;string&quot;</span>
  15480. ],
  15481. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15482. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  15483. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  15484. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  15485. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  15486. {
  15487. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15488. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15489. }
  15490. ],
  15491. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  15492. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  15493. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  15494. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  15495. <span class="hljs-string">&quot;string&quot;</span>
  15496. ],
  15497. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15498. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  15499. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  15500. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15501. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15502. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15503. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15504. },
  15505. <span class="hljs-attr">&quot;services&quot;</span>: {},
  15506. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15507. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15508. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  15509. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  15510. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15511. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  15512. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  15513. },
  15514. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  15515. <span class="hljs-string">&quot;string&quot;</span>
  15516. ],
  15517. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15518. }
  15519. </code></pre>
  15520. <h3 id="get_user-responses">Responses</h3>
  15521. <table>
  15522. <thead>
  15523. <tr>
  15524. <th>Status</th>
  15525. <th>Meaning</th>
  15526. <th>Description</th>
  15527. <th>Schema</th>
  15528. </tr>
  15529. </thead>
  15530. <tbody>
  15531. <tr>
  15532. <td>200</td>
  15533. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15534. <td>200 response</td>
  15535. <td><a href="#schemausers">Users</a></td>
  15536. </tr>
  15537. </tbody>
  15538. </table>
  15539. <aside class="warning">
  15540. To perform this operation, you must be authenticated by means of one of the following methods:
  15541. UserSecurity
  15542. </aside>
  15543. <h2 id="edit_user">edit_user</h2>
  15544. <p><a id="opIdedit_user"></a></p>
  15545. <blockquote>
  15546. <p>Code samples</p>
  15547. </blockquote>
  15548. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15549. curl -X PUT /api/users/{user} \
  15550. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15551. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15552. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15553. </code></pre>
  15554. <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>
  15555. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15556. Accept: application/json
  15557. </span></code></pre>
  15558. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15559. &quot;action&quot;: &quot;string&quot;
  15560. }&#x27;</span>;
  15561. <span class="hljs-keyword">const</span> headers = {
  15562. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15563. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15564. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15565. };
  15566. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15567. {
  15568. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15569. <span class="hljs-attr">body</span>: inputBody,
  15570. <span class="hljs-attr">headers</span>: headers
  15571. })
  15572. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15573. <span class="hljs-keyword">return</span> res.json();
  15574. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15575. <span class="hljs-built_in">console</span>.log(body);
  15576. });
  15577. </code></pre>
  15578. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15579. <span class="hljs-keyword">const</span> inputBody = {
  15580. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15581. };
  15582. <span class="hljs-keyword">const</span> headers = {
  15583. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15584. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15585. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15586. };
  15587. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15588. {
  15589. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15590. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15591. <span class="hljs-attr">headers</span>: headers
  15592. })
  15593. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15594. <span class="hljs-keyword">return</span> res.json();
  15595. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15596. <span class="hljs-built_in">console</span>.log(body);
  15597. });
  15598. </code></pre>
  15599. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15600. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15601. headers = {
  15602. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15603. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15604. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15605. }
  15606. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15607. <span class="hljs-symbol">params:</span> {
  15608. }, <span class="hljs-symbol">headers:</span> headers
  15609. p JSON.parse(result)
  15610. </code></pre>
  15611. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15612. headers = {
  15613. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15614. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15615. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15616. }
  15617. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15618. <span class="hljs-built_in">print</span>(r.json())
  15619. </code></pre>
  15620. <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>);
  15621. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15622. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  15623. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15624. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15625. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15626. String inputLine;
  15627. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15628. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15629. response.append(inputLine);
  15630. }
  15631. in.close();
  15632. System.out.println(response.toString());
  15633. </code></pre>
  15634. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15635. <span class="hljs-keyword">import</span> (
  15636. <span class="hljs-string">&quot;bytes&quot;</span>
  15637. <span class="hljs-string">&quot;net/http&quot;</span>
  15638. )
  15639. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15640. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15641. <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>},
  15642. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15643. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15644. }
  15645. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15646. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15647. req.Header = headers
  15648. client := &amp;http.Client{}
  15649. resp, err := client.Do(req)
  15650. <span class="hljs-comment">// ...</span>
  15651. }
  15652. </code></pre>
  15653. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15654. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15655. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15656. );
  15657. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15658. <span class="hljs-comment">// Define array of request body.</span>
  15659. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15660. <span class="hljs-keyword">try</span> {
  15661. <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>(
  15662. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15663. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15664. )
  15665. );
  15666. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15667. }
  15668. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15669. <span class="hljs-comment">// handle exception or api errors.</span>
  15670. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15671. }
  15672. <span class="hljs-comment">// ...</span>
  15673. </code></pre>
  15674. <p><code>PUT /api/users/{user}</code></p>
  15675. <p><em>edit a given user</em></p>
  15676. <p>Only the admin user (the first user) can call the REST API.</p>
  15677. <p>Possible values for <em>action</em>:</p>
  15678. <ul>
  15679. <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>
  15680. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  15681. <li><code>enableLogin</code>: Enable a user</li>
  15682. </ul>
  15683. <blockquote>
  15684. <p>Body parameter</p>
  15685. </blockquote>
  15686. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  15687. </code></pre>
  15688. <h3 id="edit_user-parameters">Parameters</h3>
  15689. <table>
  15690. <thead>
  15691. <tr>
  15692. <th>Name</th>
  15693. <th>In</th>
  15694. <th>Type</th>
  15695. <th>Required</th>
  15696. <th>Description</th>
  15697. </tr>
  15698. </thead>
  15699. <tbody>
  15700. <tr>
  15701. <td>user</td>
  15702. <td>path</td>
  15703. <td>string</td>
  15704. <td>true</td>
  15705. <td>the user ID</td>
  15706. </tr>
  15707. <tr>
  15708. <td>body</td>
  15709. <td>body</td>
  15710. <td>object</td>
  15711. <td>true</td>
  15712. <td>none</td>
  15713. </tr>
  15714. <tr>
  15715. <td>» action</td>
  15716. <td>body</td>
  15717. <td>string</td>
  15718. <td>true</td>
  15719. <td>the action</td>
  15720. </tr>
  15721. </tbody>
  15722. </table>
  15723. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15724. <p><strong>user</strong>: the user ID</p>
  15725. <blockquote>
  15726. <p>Example responses</p>
  15727. </blockquote>
  15728. <blockquote>
  15729. <p>200 Response</p>
  15730. </blockquote>
  15731. <pre class="highlight tab tab-json"><code>{
  15732. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15733. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15734. }
  15735. </code></pre>
  15736. <h3 id="edit_user-responses">Responses</h3>
  15737. <table>
  15738. <thead>
  15739. <tr>
  15740. <th>Status</th>
  15741. <th>Meaning</th>
  15742. <th>Description</th>
  15743. <th>Schema</th>
  15744. </tr>
  15745. </thead>
  15746. <tbody>
  15747. <tr>
  15748. <td>200</td>
  15749. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15750. <td>200 response</td>
  15751. <td>Inline</td>
  15752. </tr>
  15753. </tbody>
  15754. </table>
  15755. <h3 id="edit_user-responseschema">Response Schema</h3>
  15756. <p>Status Code <strong>200</strong></p>
  15757. <table>
  15758. <thead>
  15759. <tr>
  15760. <th>Name</th>
  15761. <th>Type</th>
  15762. <th>Required</th>
  15763. <th>Restrictions</th>
  15764. <th>Description</th>
  15765. </tr>
  15766. </thead>
  15767. <tbody>
  15768. <tr>
  15769. <td>» _id</td>
  15770. <td>string</td>
  15771. <td>false</td>
  15772. <td>none</td>
  15773. <td>none</td>
  15774. </tr>
  15775. <tr>
  15776. <td>» title</td>
  15777. <td>string</td>
  15778. <td>false</td>
  15779. <td>none</td>
  15780. <td>none</td>
  15781. </tr>
  15782. </tbody>
  15783. </table>
  15784. <aside class="warning">
  15785. To perform this operation, you must be authenticated by means of one of the following methods:
  15786. UserSecurity
  15787. </aside>
  15788. <h2 id="delete_user">delete_user</h2>
  15789. <p><a id="opIddelete_user"></a></p>
  15790. <blockquote>
  15791. <p>Code samples</p>
  15792. </blockquote>
  15793. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15794. curl -X DELETE /api/users/{user} \
  15795. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15796. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15797. </code></pre>
  15798. <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>
  15799. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15800. </span></code></pre>
  15801. <pre class="highlight tab tab-javascript"><code>
  15802. <span class="hljs-keyword">const</span> headers = {
  15803. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15804. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15805. };
  15806. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15807. {
  15808. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15809. <span class="hljs-attr">headers</span>: headers
  15810. })
  15811. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15812. <span class="hljs-keyword">return</span> res.json();
  15813. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15814. <span class="hljs-built_in">console</span>.log(body);
  15815. });
  15816. </code></pre>
  15817. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15818. <span class="hljs-keyword">const</span> headers = {
  15819. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15820. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15821. };
  15822. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15823. {
  15824. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15825. <span class="hljs-attr">headers</span>: headers
  15826. })
  15827. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15828. <span class="hljs-keyword">return</span> res.json();
  15829. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15830. <span class="hljs-built_in">console</span>.log(body);
  15831. });
  15832. </code></pre>
  15833. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15834. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15835. headers = {
  15836. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15837. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15838. }
  15839. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15840. <span class="hljs-symbol">params:</span> {
  15841. }, <span class="hljs-symbol">headers:</span> headers
  15842. p JSON.parse(result)
  15843. </code></pre>
  15844. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15845. headers = {
  15846. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15847. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15848. }
  15849. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15850. <span class="hljs-built_in">print</span>(r.json())
  15851. </code></pre>
  15852. <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>);
  15853. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15854. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15855. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15856. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15857. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15858. String inputLine;
  15859. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15860. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15861. response.append(inputLine);
  15862. }
  15863. in.close();
  15864. System.out.println(response.toString());
  15865. </code></pre>
  15866. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15867. <span class="hljs-keyword">import</span> (
  15868. <span class="hljs-string">&quot;bytes&quot;</span>
  15869. <span class="hljs-string">&quot;net/http&quot;</span>
  15870. )
  15871. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15872. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15873. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15874. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15875. }
  15876. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15877. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15878. req.Header = headers
  15879. client := &amp;http.Client{}
  15880. resp, err := client.Do(req)
  15881. <span class="hljs-comment">// ...</span>
  15882. }
  15883. </code></pre>
  15884. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15885. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15886. );
  15887. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15888. <span class="hljs-comment">// Define array of request body.</span>
  15889. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15890. <span class="hljs-keyword">try</span> {
  15891. <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>(
  15892. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15893. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15894. )
  15895. );
  15896. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15897. }
  15898. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15899. <span class="hljs-comment">// handle exception or api errors.</span>
  15900. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15901. }
  15902. <span class="hljs-comment">// ...</span>
  15903. </code></pre>
  15904. <p><code>DELETE /api/users/{user}</code></p>
  15905. <p><em>Delete a user</em></p>
  15906. <p>Only the admin user (the first user) can call the REST API.</p>
  15907. <h3 id="delete_user-parameters">Parameters</h3>
  15908. <table>
  15909. <thead>
  15910. <tr>
  15911. <th>Name</th>
  15912. <th>In</th>
  15913. <th>Type</th>
  15914. <th>Required</th>
  15915. <th>Description</th>
  15916. </tr>
  15917. </thead>
  15918. <tbody>
  15919. <tr>
  15920. <td>user</td>
  15921. <td>path</td>
  15922. <td>string</td>
  15923. <td>true</td>
  15924. <td>the ID of the user to delete</td>
  15925. </tr>
  15926. </tbody>
  15927. </table>
  15928. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15929. <p><strong>user</strong>: the ID of the user to delete</p>
  15930. <blockquote>
  15931. <p>Example responses</p>
  15932. </blockquote>
  15933. <blockquote>
  15934. <p>200 Response</p>
  15935. </blockquote>
  15936. <pre class="highlight tab tab-json"><code>{
  15937. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15938. }
  15939. </code></pre>
  15940. <h3 id="delete_user-responses">Responses</h3>
  15941. <table>
  15942. <thead>
  15943. <tr>
  15944. <th>Status</th>
  15945. <th>Meaning</th>
  15946. <th>Description</th>
  15947. <th>Schema</th>
  15948. </tr>
  15949. </thead>
  15950. <tbody>
  15951. <tr>
  15952. <td>200</td>
  15953. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15954. <td>200 response</td>
  15955. <td>Inline</td>
  15956. </tr>
  15957. </tbody>
  15958. </table>
  15959. <h3 id="delete_user-responseschema">Response Schema</h3>
  15960. <p>Status Code <strong>200</strong></p>
  15961. <table>
  15962. <thead>
  15963. <tr>
  15964. <th>Name</th>
  15965. <th>Type</th>
  15966. <th>Required</th>
  15967. <th>Restrictions</th>
  15968. <th>Description</th>
  15969. </tr>
  15970. </thead>
  15971. <tbody>
  15972. <tr>
  15973. <td>» _id</td>
  15974. <td>string</td>
  15975. <td>false</td>
  15976. <td>none</td>
  15977. <td>none</td>
  15978. </tr>
  15979. </tbody>
  15980. </table>
  15981. <aside class="warning">
  15982. To perform this operation, you must be authenticated by means of one of the following methods:
  15983. UserSecurity
  15984. </aside>
  15985. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15986. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15987. <p><a id="opIdget_all_swimlanes"></a></p>
  15988. <blockquote>
  15989. <p>Code samples</p>
  15990. </blockquote>
  15991. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15992. curl -X GET /api/boards/{board}/swimlanes \
  15993. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15994. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15995. </code></pre>
  15996. <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>
  15997. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15998. </span></code></pre>
  15999. <pre class="highlight tab tab-javascript"><code>
  16000. <span class="hljs-keyword">const</span> headers = {
  16001. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16002. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16003. };
  16004. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16005. {
  16006. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16007. <span class="hljs-attr">headers</span>: headers
  16008. })
  16009. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16010. <span class="hljs-keyword">return</span> res.json();
  16011. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16012. <span class="hljs-built_in">console</span>.log(body);
  16013. });
  16014. </code></pre>
  16015. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16016. <span class="hljs-keyword">const</span> headers = {
  16017. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16018. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16019. };
  16020. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16021. {
  16022. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16023. <span class="hljs-attr">headers</span>: headers
  16024. })
  16025. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16026. <span class="hljs-keyword">return</span> res.json();
  16027. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16028. <span class="hljs-built_in">console</span>.log(body);
  16029. });
  16030. </code></pre>
  16031. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16032. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16033. headers = {
  16034. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16035. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16036. }
  16037. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16038. <span class="hljs-symbol">params:</span> {
  16039. }, <span class="hljs-symbol">headers:</span> headers
  16040. p JSON.parse(result)
  16041. </code></pre>
  16042. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16043. headers = {
  16044. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16045. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16046. }
  16047. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  16048. <span class="hljs-built_in">print</span>(r.json())
  16049. </code></pre>
  16050. <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>);
  16051. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16052. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  16053. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16054. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16055. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16056. String inputLine;
  16057. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16058. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16059. response.append(inputLine);
  16060. }
  16061. in.close();
  16062. System.out.println(response.toString());
  16063. </code></pre>
  16064. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16065. <span class="hljs-keyword">import</span> (
  16066. <span class="hljs-string">&quot;bytes&quot;</span>
  16067. <span class="hljs-string">&quot;net/http&quot;</span>
  16068. )
  16069. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16070. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16071. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16072. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16073. }
  16074. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16075. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  16076. req.Header = headers
  16077. client := &amp;http.Client{}
  16078. resp, err := client.Do(req)
  16079. <span class="hljs-comment">// ...</span>
  16080. }
  16081. </code></pre>
  16082. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16083. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16084. );
  16085. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16086. <span class="hljs-comment">// Define array of request body.</span>
  16087. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16088. <span class="hljs-keyword">try</span> {
  16089. <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>(
  16090. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16091. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16092. )
  16093. );
  16094. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16095. }
  16096. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16097. <span class="hljs-comment">// handle exception or api errors.</span>
  16098. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16099. }
  16100. <span class="hljs-comment">// ...</span>
  16101. </code></pre>
  16102. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  16103. <p><em>Get the list of swimlanes attached to a board</em></p>
  16104. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  16105. <table>
  16106. <thead>
  16107. <tr>
  16108. <th>Name</th>
  16109. <th>In</th>
  16110. <th>Type</th>
  16111. <th>Required</th>
  16112. <th>Description</th>
  16113. </tr>
  16114. </thead>
  16115. <tbody>
  16116. <tr>
  16117. <td>board</td>
  16118. <td>path</td>
  16119. <td>string</td>
  16120. <td>true</td>
  16121. <td>the ID of the board</td>
  16122. </tr>
  16123. </tbody>
  16124. </table>
  16125. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  16126. <p><strong>board</strong>: the ID of the board</p>
  16127. <blockquote>
  16128. <p>Example responses</p>
  16129. </blockquote>
  16130. <blockquote>
  16131. <p>200 Response</p>
  16132. </blockquote>
  16133. <pre class="highlight tab tab-json"><code>[
  16134. {
  16135. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16136. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16137. }
  16138. ]
  16139. </code></pre>
  16140. <h3 id="get_all_swimlanes-responses">Responses</h3>
  16141. <table>
  16142. <thead>
  16143. <tr>
  16144. <th>Status</th>
  16145. <th>Meaning</th>
  16146. <th>Description</th>
  16147. <th>Schema</th>
  16148. </tr>
  16149. </thead>
  16150. <tbody>
  16151. <tr>
  16152. <td>200</td>
  16153. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16154. <td>200 response</td>
  16155. <td>Inline</td>
  16156. </tr>
  16157. </tbody>
  16158. </table>
  16159. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  16160. <p>Status Code <strong>200</strong></p>
  16161. <table>
  16162. <thead>
  16163. <tr>
  16164. <th>Name</th>
  16165. <th>Type</th>
  16166. <th>Required</th>
  16167. <th>Restrictions</th>
  16168. <th>Description</th>
  16169. </tr>
  16170. </thead>
  16171. <tbody>
  16172. <tr>
  16173. <td>» _id</td>
  16174. <td>string</td>
  16175. <td>false</td>
  16176. <td>none</td>
  16177. <td>none</td>
  16178. </tr>
  16179. <tr>
  16180. <td>» title</td>
  16181. <td>string</td>
  16182. <td>false</td>
  16183. <td>none</td>
  16184. <td>none</td>
  16185. </tr>
  16186. </tbody>
  16187. </table>
  16188. <aside class="warning">
  16189. To perform this operation, you must be authenticated by means of one of the following methods:
  16190. UserSecurity
  16191. </aside>
  16192. <h2 id="new_swimlane">new_swimlane</h2>
  16193. <p><a id="opIdnew_swimlane"></a></p>
  16194. <blockquote>
  16195. <p>Code samples</p>
  16196. </blockquote>
  16197. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16198. curl -X POST /api/boards/{board}/swimlanes \
  16199. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  16200. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16201. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16202. </code></pre>
  16203. <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>
  16204. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  16205. Accept: application/json
  16206. </span></code></pre>
  16207. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  16208. &quot;title&quot;: &quot;string&quot;
  16209. }&#x27;</span>;
  16210. <span class="hljs-keyword">const</span> headers = {
  16211. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16212. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16213. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16214. };
  16215. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16216. {
  16217. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  16218. <span class="hljs-attr">body</span>: inputBody,
  16219. <span class="hljs-attr">headers</span>: headers
  16220. })
  16221. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16222. <span class="hljs-keyword">return</span> res.json();
  16223. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16224. <span class="hljs-built_in">console</span>.log(body);
  16225. });
  16226. </code></pre>
  16227. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16228. <span class="hljs-keyword">const</span> inputBody = {
  16229. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16230. };
  16231. <span class="hljs-keyword">const</span> headers = {
  16232. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16233. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16234. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16235. };
  16236. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16237. {
  16238. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  16239. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  16240. <span class="hljs-attr">headers</span>: headers
  16241. })
  16242. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16243. <span class="hljs-keyword">return</span> res.json();
  16244. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16245. <span class="hljs-built_in">console</span>.log(body);
  16246. });
  16247. </code></pre>
  16248. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16249. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16250. headers = {
  16251. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16252. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16253. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16254. }
  16255. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16256. <span class="hljs-symbol">params:</span> {
  16257. }, <span class="hljs-symbol">headers:</span> headers
  16258. p JSON.parse(result)
  16259. </code></pre>
  16260. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16261. headers = {
  16262. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16263. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16264. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16265. }
  16266. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  16267. <span class="hljs-built_in">print</span>(r.json())
  16268. </code></pre>
  16269. <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>);
  16270. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16271. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  16272. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16273. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16274. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16275. String inputLine;
  16276. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16277. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16278. response.append(inputLine);
  16279. }
  16280. in.close();
  16281. System.out.println(response.toString());
  16282. </code></pre>
  16283. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16284. <span class="hljs-keyword">import</span> (
  16285. <span class="hljs-string">&quot;bytes&quot;</span>
  16286. <span class="hljs-string">&quot;net/http&quot;</span>
  16287. )
  16288. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16289. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16290. <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>},
  16291. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16292. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16293. }
  16294. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16295. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  16296. req.Header = headers
  16297. client := &amp;http.Client{}
  16298. resp, err := client.Do(req)
  16299. <span class="hljs-comment">// ...</span>
  16300. }
  16301. </code></pre>
  16302. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16303. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16304. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16305. );
  16306. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16307. <span class="hljs-comment">// Define array of request body.</span>
  16308. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16309. <span class="hljs-keyword">try</span> {
  16310. <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>(
  16311. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16312. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16313. )
  16314. );
  16315. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16316. }
  16317. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16318. <span class="hljs-comment">// handle exception or api errors.</span>
  16319. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16320. }
  16321. <span class="hljs-comment">// ...</span>
  16322. </code></pre>
  16323. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  16324. <p><em>Add a swimlane to a board</em></p>
  16325. <blockquote>
  16326. <p>Body parameter</p>
  16327. </blockquote>
  16328. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  16329. </code></pre>
  16330. <h3 id="new_swimlane-parameters">Parameters</h3>
  16331. <table>
  16332. <thead>
  16333. <tr>
  16334. <th>Name</th>
  16335. <th>In</th>
  16336. <th>Type</th>
  16337. <th>Required</th>
  16338. <th>Description</th>
  16339. </tr>
  16340. </thead>
  16341. <tbody>
  16342. <tr>
  16343. <td>board</td>
  16344. <td>path</td>
  16345. <td>string</td>
  16346. <td>true</td>
  16347. <td>the ID of the board</td>
  16348. </tr>
  16349. <tr>
  16350. <td>body</td>
  16351. <td>body</td>
  16352. <td>object</td>
  16353. <td>true</td>
  16354. <td>none</td>
  16355. </tr>
  16356. <tr>
  16357. <td>» title</td>
  16358. <td>body</td>
  16359. <td>string</td>
  16360. <td>true</td>
  16361. <td>the new title of the swimlane</td>
  16362. </tr>
  16363. </tbody>
  16364. </table>
  16365. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16366. <p><strong>board</strong>: the ID of the board</p>
  16367. <blockquote>
  16368. <p>Example responses</p>
  16369. </blockquote>
  16370. <blockquote>
  16371. <p>200 Response</p>
  16372. </blockquote>
  16373. <pre class="highlight tab tab-json"><code>{
  16374. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16375. }
  16376. </code></pre>
  16377. <h3 id="new_swimlane-responses">Responses</h3>
  16378. <table>
  16379. <thead>
  16380. <tr>
  16381. <th>Status</th>
  16382. <th>Meaning</th>
  16383. <th>Description</th>
  16384. <th>Schema</th>
  16385. </tr>
  16386. </thead>
  16387. <tbody>
  16388. <tr>
  16389. <td>200</td>
  16390. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16391. <td>200 response</td>
  16392. <td>Inline</td>
  16393. </tr>
  16394. </tbody>
  16395. </table>
  16396. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  16397. <p>Status Code <strong>200</strong></p>
  16398. <table>
  16399. <thead>
  16400. <tr>
  16401. <th>Name</th>
  16402. <th>Type</th>
  16403. <th>Required</th>
  16404. <th>Restrictions</th>
  16405. <th>Description</th>
  16406. </tr>
  16407. </thead>
  16408. <tbody>
  16409. <tr>
  16410. <td>» _id</td>
  16411. <td>string</td>
  16412. <td>false</td>
  16413. <td>none</td>
  16414. <td>none</td>
  16415. </tr>
  16416. </tbody>
  16417. </table>
  16418. <aside class="warning">
  16419. To perform this operation, you must be authenticated by means of one of the following methods:
  16420. UserSecurity
  16421. </aside>
  16422. <h2 id="get_swimlane">get_swimlane</h2>
  16423. <p><a id="opIdget_swimlane"></a></p>
  16424. <blockquote>
  16425. <p>Code samples</p>
  16426. </blockquote>
  16427. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16428. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  16429. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16430. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16431. </code></pre>
  16432. <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>
  16433. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16434. </span></code></pre>
  16435. <pre class="highlight tab tab-javascript"><code>
  16436. <span class="hljs-keyword">const</span> headers = {
  16437. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16438. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16439. };
  16440. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16441. {
  16442. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16443. <span class="hljs-attr">headers</span>: headers
  16444. })
  16445. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16446. <span class="hljs-keyword">return</span> res.json();
  16447. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16448. <span class="hljs-built_in">console</span>.log(body);
  16449. });
  16450. </code></pre>
  16451. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16452. <span class="hljs-keyword">const</span> headers = {
  16453. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16454. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16455. };
  16456. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16457. {
  16458. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16459. <span class="hljs-attr">headers</span>: headers
  16460. })
  16461. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16462. <span class="hljs-keyword">return</span> res.json();
  16463. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16464. <span class="hljs-built_in">console</span>.log(body);
  16465. });
  16466. </code></pre>
  16467. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16468. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16469. headers = {
  16470. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16471. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16472. }
  16473. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16474. <span class="hljs-symbol">params:</span> {
  16475. }, <span class="hljs-symbol">headers:</span> headers
  16476. p JSON.parse(result)
  16477. </code></pre>
  16478. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16479. headers = {
  16480. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16481. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16482. }
  16483. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16484. <span class="hljs-built_in">print</span>(r.json())
  16485. </code></pre>
  16486. <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>);
  16487. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16488. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  16489. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16490. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16491. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16492. String inputLine;
  16493. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16494. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16495. response.append(inputLine);
  16496. }
  16497. in.close();
  16498. System.out.println(response.toString());
  16499. </code></pre>
  16500. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16501. <span class="hljs-keyword">import</span> (
  16502. <span class="hljs-string">&quot;bytes&quot;</span>
  16503. <span class="hljs-string">&quot;net/http&quot;</span>
  16504. )
  16505. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16506. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16507. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16508. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16509. }
  16510. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16511. 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)
  16512. req.Header = headers
  16513. client := &amp;http.Client{}
  16514. resp, err := client.Do(req)
  16515. <span class="hljs-comment">// ...</span>
  16516. }
  16517. </code></pre>
  16518. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16519. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16520. );
  16521. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16522. <span class="hljs-comment">// Define array of request body.</span>
  16523. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16524. <span class="hljs-keyword">try</span> {
  16525. <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>(
  16526. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16527. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16528. )
  16529. );
  16530. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16531. }
  16532. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16533. <span class="hljs-comment">// handle exception or api errors.</span>
  16534. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16535. }
  16536. <span class="hljs-comment">// ...</span>
  16537. </code></pre>
  16538. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16539. <p><em>Get a swimlane</em></p>
  16540. <h3 id="get_swimlane-parameters">Parameters</h3>
  16541. <table>
  16542. <thead>
  16543. <tr>
  16544. <th>Name</th>
  16545. <th>In</th>
  16546. <th>Type</th>
  16547. <th>Required</th>
  16548. <th>Description</th>
  16549. </tr>
  16550. </thead>
  16551. <tbody>
  16552. <tr>
  16553. <td>board</td>
  16554. <td>path</td>
  16555. <td>string</td>
  16556. <td>true</td>
  16557. <td>the ID of the board</td>
  16558. </tr>
  16559. <tr>
  16560. <td>swimlane</td>
  16561. <td>path</td>
  16562. <td>string</td>
  16563. <td>true</td>
  16564. <td>the ID of the swimlane</td>
  16565. </tr>
  16566. </tbody>
  16567. </table>
  16568. <h4 id="detailed-descriptions-50">Detailed descriptions</h4>
  16569. <p><strong>board</strong>: the ID of the board</p>
  16570. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16571. <blockquote>
  16572. <p>Example responses</p>
  16573. </blockquote>
  16574. <blockquote>
  16575. <p>200 Response</p>
  16576. </blockquote>
  16577. <pre class="highlight tab tab-json"><code>{
  16578. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16579. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16580. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16581. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16582. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16583. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16584. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  16585. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16586. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16587. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16588. }
  16589. </code></pre>
  16590. <h3 id="get_swimlane-responses">Responses</h3>
  16591. <table>
  16592. <thead>
  16593. <tr>
  16594. <th>Status</th>
  16595. <th>Meaning</th>
  16596. <th>Description</th>
  16597. <th>Schema</th>
  16598. </tr>
  16599. </thead>
  16600. <tbody>
  16601. <tr>
  16602. <td>200</td>
  16603. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16604. <td>200 response</td>
  16605. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  16606. </tr>
  16607. </tbody>
  16608. </table>
  16609. <aside class="warning">
  16610. To perform this operation, you must be authenticated by means of one of the following methods:
  16611. UserSecurity
  16612. </aside>
  16613. <h2 id="delete_swimlane">delete_swimlane</h2>
  16614. <p><a id="opIddelete_swimlane"></a></p>
  16615. <blockquote>
  16616. <p>Code samples</p>
  16617. </blockquote>
  16618. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16619. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  16620. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16621. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16622. </code></pre>
  16623. <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>
  16624. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16625. </span></code></pre>
  16626. <pre class="highlight tab tab-javascript"><code>
  16627. <span class="hljs-keyword">const</span> headers = {
  16628. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16629. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16630. };
  16631. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16632. {
  16633. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16634. <span class="hljs-attr">headers</span>: headers
  16635. })
  16636. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16637. <span class="hljs-keyword">return</span> res.json();
  16638. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16639. <span class="hljs-built_in">console</span>.log(body);
  16640. });
  16641. </code></pre>
  16642. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  16643. <span class="hljs-keyword">const</span> headers = {
  16644. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16645. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16646. };
  16647. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16648. {
  16649. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16650. <span class="hljs-attr">headers</span>: headers
  16651. })
  16652. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16653. <span class="hljs-keyword">return</span> res.json();
  16654. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16655. <span class="hljs-built_in">console</span>.log(body);
  16656. });
  16657. </code></pre>
  16658. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16659. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16660. headers = {
  16661. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16662. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16663. }
  16664. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16665. <span class="hljs-symbol">params:</span> {
  16666. }, <span class="hljs-symbol">headers:</span> headers
  16667. p JSON.parse(result)
  16668. </code></pre>
  16669. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16670. headers = {
  16671. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16672. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16673. }
  16674. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16675. <span class="hljs-built_in">print</span>(r.json())
  16676. </code></pre>
  16677. <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>);
  16678. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16679. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16680. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16681. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16682. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16683. String inputLine;
  16684. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16685. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16686. response.append(inputLine);
  16687. }
  16688. in.close();
  16689. System.out.println(response.toString());
  16690. </code></pre>
  16691. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16692. <span class="hljs-keyword">import</span> (
  16693. <span class="hljs-string">&quot;bytes&quot;</span>
  16694. <span class="hljs-string">&quot;net/http&quot;</span>
  16695. )
  16696. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16697. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16698. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16699. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16700. }
  16701. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16702. 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)
  16703. req.Header = headers
  16704. client := &amp;http.Client{}
  16705. resp, err := client.Do(req)
  16706. <span class="hljs-comment">// ...</span>
  16707. }
  16708. </code></pre>
  16709. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16710. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16711. );
  16712. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16713. <span class="hljs-comment">// Define array of request body.</span>
  16714. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16715. <span class="hljs-keyword">try</span> {
  16716. <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>(
  16717. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16718. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16719. )
  16720. );
  16721. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16722. }
  16723. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16724. <span class="hljs-comment">// handle exception or api errors.</span>
  16725. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16726. }
  16727. <span class="hljs-comment">// ...</span>
  16728. </code></pre>
  16729. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16730. <p><em>Delete a swimlane</em></p>
  16731. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16732. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16733. <table>
  16734. <thead>
  16735. <tr>
  16736. <th>Name</th>
  16737. <th>In</th>
  16738. <th>Type</th>
  16739. <th>Required</th>
  16740. <th>Description</th>
  16741. </tr>
  16742. </thead>
  16743. <tbody>
  16744. <tr>
  16745. <td>board</td>
  16746. <td>path</td>
  16747. <td>string</td>
  16748. <td>true</td>
  16749. <td>the ID of the board</td>
  16750. </tr>
  16751. <tr>
  16752. <td>swimlane</td>
  16753. <td>path</td>
  16754. <td>string</td>
  16755. <td>true</td>
  16756. <td>the ID of the swimlane</td>
  16757. </tr>
  16758. </tbody>
  16759. </table>
  16760. <h4 id="detailed-descriptions-51">Detailed descriptions</h4>
  16761. <p><strong>board</strong>: the ID of the board</p>
  16762. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16763. <blockquote>
  16764. <p>Example responses</p>
  16765. </blockquote>
  16766. <blockquote>
  16767. <p>200 Response</p>
  16768. </blockquote>
  16769. <pre class="highlight tab tab-json"><code>{
  16770. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16771. }
  16772. </code></pre>
  16773. <h3 id="delete_swimlane-responses">Responses</h3>
  16774. <table>
  16775. <thead>
  16776. <tr>
  16777. <th>Status</th>
  16778. <th>Meaning</th>
  16779. <th>Description</th>
  16780. <th>Schema</th>
  16781. </tr>
  16782. </thead>
  16783. <tbody>
  16784. <tr>
  16785. <td>200</td>
  16786. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16787. <td>200 response</td>
  16788. <td>Inline</td>
  16789. </tr>
  16790. </tbody>
  16791. </table>
  16792. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16793. <p>Status Code <strong>200</strong></p>
  16794. <table>
  16795. <thead>
  16796. <tr>
  16797. <th>Name</th>
  16798. <th>Type</th>
  16799. <th>Required</th>
  16800. <th>Restrictions</th>
  16801. <th>Description</th>
  16802. </tr>
  16803. </thead>
  16804. <tbody>
  16805. <tr>
  16806. <td>» _id</td>
  16807. <td>string</td>
  16808. <td>false</td>
  16809. <td>none</td>
  16810. <td>none</td>
  16811. </tr>
  16812. </tbody>
  16813. </table>
  16814. <aside class="warning">
  16815. To perform this operation, you must be authenticated by means of one of the following methods:
  16816. UserSecurity
  16817. </aside>
  16818. <h1 id="schemas">Schemas</h1>
  16819. <h2 id="tocs_boards">Boards</h2>
  16820. <p><a id="schemaboards"></a>
  16821. <a id="schema_Boards"></a>
  16822. <a id="tocSboards"></a>
  16823. <a id="tocsboards"></a></p>
  16824. <pre class="highlight tab tab-json"><code>{
  16825. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16826. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16827. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16828. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16829. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16830. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16831. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16832. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16833. {
  16834. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16835. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16836. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16837. }
  16838. ],
  16839. <span class="hljs-attr">&quot;members&quot;</span>: [
  16840. {
  16841. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16842. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16843. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16844. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16845. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16846. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16847. }
  16848. ],
  16849. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16850. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16851. {
  16852. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16853. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16854. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16855. }
  16856. ],
  16857. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16858. {
  16859. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16860. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16861. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16862. }
  16863. ],
  16864. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16865. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  16866. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  16867. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16868. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16869. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16870. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16871. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16872. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16873. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16874. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16875. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16876. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16877. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16878. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  16879. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16880. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16881. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16882. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16883. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16884. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16885. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16886. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16887. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  16888. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16889. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16890. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16891. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16892. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16893. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16894. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16895. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16896. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16897. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16898. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16899. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16900. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16901. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16902. }
  16903. </code></pre>
  16904. <p>This is a Board.</p>
  16905. <h3 id="properties">Properties</h3>
  16906. <table>
  16907. <thead>
  16908. <tr>
  16909. <th>Name</th>
  16910. <th>Type</th>
  16911. <th>Required</th>
  16912. <th>Restrictions</th>
  16913. <th>Description</th>
  16914. </tr>
  16915. </thead>
  16916. <tbody>
  16917. <tr>
  16918. <td>title</td>
  16919. <td>string</td>
  16920. <td>true</td>
  16921. <td>none</td>
  16922. <td>The title of the board</td>
  16923. </tr>
  16924. <tr>
  16925. <td>slug</td>
  16926. <td>string</td>
  16927. <td>true</td>
  16928. <td>none</td>
  16929. <td>The title slugified.</td>
  16930. </tr>
  16931. <tr>
  16932. <td>archived</td>
  16933. <td>boolean</td>
  16934. <td>true</td>
  16935. <td>none</td>
  16936. <td>Is the board archived?</td>
  16937. </tr>
  16938. <tr>
  16939. <td>archivedAt</td>
  16940. <td>string¦null</td>
  16941. <td>false</td>
  16942. <td>none</td>
  16943. <td>Latest archiving time of the board</td>
  16944. </tr>
  16945. <tr>
  16946. <td>createdAt</td>
  16947. <td>string</td>
  16948. <td>true</td>
  16949. <td>none</td>
  16950. <td>Creation time of the board</td>
  16951. </tr>
  16952. <tr>
  16953. <td>modifiedAt</td>
  16954. <td>string¦null</td>
  16955. <td>false</td>
  16956. <td>none</td>
  16957. <td>Last modification time of the board</td>
  16958. </tr>
  16959. <tr>
  16960. <td>stars</td>
  16961. <td>number</td>
  16962. <td>true</td>
  16963. <td>none</td>
  16964. <td>How many stars the board has</td>
  16965. </tr>
  16966. <tr>
  16967. <td>labels</td>
  16968. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16969. <td>false</td>
  16970. <td>none</td>
  16971. <td>List of labels attached to a board</td>
  16972. </tr>
  16973. <tr>
  16974. <td>members</td>
  16975. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16976. <td>true</td>
  16977. <td>none</td>
  16978. <td>List of members of a board</td>
  16979. </tr>
  16980. <tr>
  16981. <td>permission</td>
  16982. <td>string</td>
  16983. <td>true</td>
  16984. <td>none</td>
  16985. <td>visibility of the board</td>
  16986. </tr>
  16987. <tr>
  16988. <td>orgs</td>
  16989. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16990. <td>false</td>
  16991. <td>none</td>
  16992. <td>the list of organizations that a board belongs to</td>
  16993. </tr>
  16994. <tr>
  16995. <td>teams</td>
  16996. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16997. <td>false</td>
  16998. <td>none</td>
  16999. <td>the list of teams that a board belongs to</td>
  17000. </tr>
  17001. <tr>
  17002. <td>color</td>
  17003. <td>string</td>
  17004. <td>true</td>
  17005. <td>none</td>
  17006. <td>The color of the board.</td>
  17007. </tr>
  17008. <tr>
  17009. <td>allowsCardCounterList</td>
  17010. <td>boolean</td>
  17011. <td>true</td>
  17012. <td>none</td>
  17013. <td>Show card counter per list</td>
  17014. </tr>
  17015. <tr>
  17016. <td>allowsBoardMemberList</td>
  17017. <td>boolean</td>
  17018. <td>true</td>
  17019. <td>none</td>
  17020. <td>Show board member list</td>
  17021. </tr>
  17022. <tr>
  17023. <td>description</td>
  17024. <td>string¦null</td>
  17025. <td>false</td>
  17026. <td>none</td>
  17027. <td>The description of the board</td>
  17028. </tr>
  17029. <tr>
  17030. <td>subtasksDefaultBoardId</td>
  17031. <td>string¦null</td>
  17032. <td>false</td>
  17033. <td>none</td>
  17034. <td>The default board ID assigned to subtasks.</td>
  17035. </tr>
  17036. <tr>
  17037. <td>subtasksDefaultListId</td>
  17038. <td>string¦null</td>
  17039. <td>false</td>
  17040. <td>none</td>
  17041. <td>The default List ID assigned to subtasks.</td>
  17042. </tr>
  17043. <tr>
  17044. <td>dateSettingsDefaultBoardId</td>
  17045. <td>string¦null</td>
  17046. <td>false</td>
  17047. <td>none</td>
  17048. <td>none</td>
  17049. </tr>
  17050. <tr>
  17051. <td>dateSettingsDefaultListId</td>
  17052. <td>string¦null</td>
  17053. <td>false</td>
  17054. <td>none</td>
  17055. <td>none</td>
  17056. </tr>
  17057. <tr>
  17058. <td>allowsSubtasks</td>
  17059. <td>boolean</td>
  17060. <td>true</td>
  17061. <td>none</td>
  17062. <td>Does the board allows subtasks?</td>
  17063. </tr>
  17064. <tr>
  17065. <td>allowsAttachments</td>
  17066. <td>boolean</td>
  17067. <td>true</td>
  17068. <td>none</td>
  17069. <td>Does the board allows attachments?</td>
  17070. </tr>
  17071. <tr>
  17072. <td>allowsChecklists</td>
  17073. <td>boolean</td>
  17074. <td>true</td>
  17075. <td>none</td>
  17076. <td>Does the board allows checklists?</td>
  17077. </tr>
  17078. <tr>
  17079. <td>allowsComments</td>
  17080. <td>boolean</td>
  17081. <td>true</td>
  17082. <td>none</td>
  17083. <td>Does the board allows comments?</td>
  17084. </tr>
  17085. <tr>
  17086. <td>allowsDescriptionTitle</td>
  17087. <td>boolean</td>
  17088. <td>true</td>
  17089. <td>none</td>
  17090. <td>Does the board allows description title?</td>
  17091. </tr>
  17092. <tr>
  17093. <td>allowsDescriptionText</td>
  17094. <td>boolean</td>
  17095. <td>true</td>
  17096. <td>none</td>
  17097. <td>Does the board allows description text?</td>
  17098. </tr>
  17099. <tr>
  17100. <td>allowsDescriptionTextOnMinicard</td>
  17101. <td>boolean</td>
  17102. <td>true</td>
  17103. <td>none</td>
  17104. <td>Does the board allows description text on minicard?</td>
  17105. </tr>
  17106. <tr>
  17107. <td>allowsCardNumber</td>
  17108. <td>boolean</td>
  17109. <td>true</td>
  17110. <td>none</td>
  17111. <td>Does the board allows card numbers?</td>
  17112. </tr>
  17113. <tr>
  17114. <td>allowsActivities</td>
  17115. <td>boolean</td>
  17116. <td>true</td>
  17117. <td>none</td>
  17118. <td>Does the board allows comments?</td>
  17119. </tr>
  17120. <tr>
  17121. <td>allowsLabels</td>
  17122. <td>boolean</td>
  17123. <td>true</td>
  17124. <td>none</td>
  17125. <td>Does the board allows labels?</td>
  17126. </tr>
  17127. <tr>
  17128. <td>allowsCreator</td>
  17129. <td>boolean</td>
  17130. <td>true</td>
  17131. <td>none</td>
  17132. <td>Does the board allow creator?</td>
  17133. </tr>
  17134. <tr>
  17135. <td>allowsAssignee</td>
  17136. <td>boolean</td>
  17137. <td>true</td>
  17138. <td>none</td>
  17139. <td>Does the board allows assignee?</td>
  17140. </tr>
  17141. <tr>
  17142. <td>allowsMembers</td>
  17143. <td>boolean</td>
  17144. <td>true</td>
  17145. <td>none</td>
  17146. <td>Does the board allows members?</td>
  17147. </tr>
  17148. <tr>
  17149. <td>allowsRequestedBy</td>
  17150. <td>boolean</td>
  17151. <td>true</td>
  17152. <td>none</td>
  17153. <td>Does the board allows requested by?</td>
  17154. </tr>
  17155. <tr>
  17156. <td>allowsCardSortingByNumber</td>
  17157. <td>boolean</td>
  17158. <td>true</td>
  17159. <td>none</td>
  17160. <td>Does the board allows card sorting by number?</td>
  17161. </tr>
  17162. <tr>
  17163. <td>allowsShowLists</td>
  17164. <td>boolean</td>
  17165. <td>true</td>
  17166. <td>none</td>
  17167. <td>Does the board allows show lists on the card?</td>
  17168. </tr>
  17169. <tr>
  17170. <td>allowsAssignedBy</td>
  17171. <td>boolean</td>
  17172. <td>true</td>
  17173. <td>none</td>
  17174. <td>Does the board allows requested by?</td>
  17175. </tr>
  17176. <tr>
  17177. <td>allowsReceivedDate</td>
  17178. <td>boolean</td>
  17179. <td>true</td>
  17180. <td>none</td>
  17181. <td>Does the board allows received date?</td>
  17182. </tr>
  17183. <tr>
  17184. <td>allowsStartDate</td>
  17185. <td>boolean</td>
  17186. <td>true</td>
  17187. <td>none</td>
  17188. <td>Does the board allows start date?</td>
  17189. </tr>
  17190. <tr>
  17191. <td>allowsEndDate</td>
  17192. <td>boolean</td>
  17193. <td>true</td>
  17194. <td>none</td>
  17195. <td>Does the board allows end date?</td>
  17196. </tr>
  17197. <tr>
  17198. <td>allowsDueDate</td>
  17199. <td>boolean</td>
  17200. <td>true</td>
  17201. <td>none</td>
  17202. <td>Does the board allows due date?</td>
  17203. </tr>
  17204. <tr>
  17205. <td>presentParentTask</td>
  17206. <td>string¦null</td>
  17207. <td>false</td>
  17208. <td>none</td>
  17209. <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>
  17210. </tr>
  17211. <tr>
  17212. <td>receivedAt</td>
  17213. <td>string¦null</td>
  17214. <td>false</td>
  17215. <td>none</td>
  17216. <td>Date the card was received</td>
  17217. </tr>
  17218. <tr>
  17219. <td>startAt</td>
  17220. <td>string¦null</td>
  17221. <td>false</td>
  17222. <td>none</td>
  17223. <td>Starting date of the board.</td>
  17224. </tr>
  17225. <tr>
  17226. <td>dueAt</td>
  17227. <td>string¦null</td>
  17228. <td>false</td>
  17229. <td>none</td>
  17230. <td>Due date of the board.</td>
  17231. </tr>
  17232. <tr>
  17233. <td>endAt</td>
  17234. <td>string¦null</td>
  17235. <td>false</td>
  17236. <td>none</td>
  17237. <td>End date of the board.</td>
  17238. </tr>
  17239. <tr>
  17240. <td>spentTime</td>
  17241. <td>number¦null</td>
  17242. <td>false</td>
  17243. <td>none</td>
  17244. <td>Time spent in the board.</td>
  17245. </tr>
  17246. <tr>
  17247. <td>isOvertime</td>
  17248. <td>boolean¦null</td>
  17249. <td>false</td>
  17250. <td>none</td>
  17251. <td>Is the board overtimed?</td>
  17252. </tr>
  17253. <tr>
  17254. <td>type</td>
  17255. <td>string</td>
  17256. <td>true</td>
  17257. <td>none</td>
  17258. <td>The type of board<br />possible values: board, template-board, template-container</td>
  17259. </tr>
  17260. <tr>
  17261. <td>sort</td>
  17262. <td>number</td>
  17263. <td>true</td>
  17264. <td>none</td>
  17265. <td>Sort value</td>
  17266. </tr>
  17267. </tbody>
  17268. </table>
  17269. <h4 id="enumerated-values">Enumerated Values</h4>
  17270. <table>
  17271. <thead>
  17272. <tr>
  17273. <th>Property</th>
  17274. <th>Value</th>
  17275. </tr>
  17276. </thead>
  17277. <tbody>
  17278. <tr>
  17279. <td>permission</td>
  17280. <td>public</td>
  17281. </tr>
  17282. <tr>
  17283. <td>permission</td>
  17284. <td>private</td>
  17285. </tr>
  17286. <tr>
  17287. <td>color</td>
  17288. <td>belize</td>
  17289. </tr>
  17290. <tr>
  17291. <td>color</td>
  17292. <td>nephritis</td>
  17293. </tr>
  17294. <tr>
  17295. <td>color</td>
  17296. <td>pomegranate</td>
  17297. </tr>
  17298. <tr>
  17299. <td>color</td>
  17300. <td>pumpkin</td>
  17301. </tr>
  17302. <tr>
  17303. <td>color</td>
  17304. <td>wisteria</td>
  17305. </tr>
  17306. <tr>
  17307. <td>color</td>
  17308. <td>moderatepink</td>
  17309. </tr>
  17310. <tr>
  17311. <td>color</td>
  17312. <td>strongcyan</td>
  17313. </tr>
  17314. <tr>
  17315. <td>color</td>
  17316. <td>limegreen</td>
  17317. </tr>
  17318. <tr>
  17319. <td>color</td>
  17320. <td>midnight</td>
  17321. </tr>
  17322. <tr>
  17323. <td>color</td>
  17324. <td>dark</td>
  17325. </tr>
  17326. <tr>
  17327. <td>color</td>
  17328. <td>relax</td>
  17329. </tr>
  17330. <tr>
  17331. <td>color</td>
  17332. <td>corteza</td>
  17333. </tr>
  17334. <tr>
  17335. <td>color</td>
  17336. <td>clearblue</td>
  17337. </tr>
  17338. <tr>
  17339. <td>color</td>
  17340. <td>natural</td>
  17341. </tr>
  17342. <tr>
  17343. <td>color</td>
  17344. <td>modern</td>
  17345. </tr>
  17346. <tr>
  17347. <td>color</td>
  17348. <td>moderndark</td>
  17349. </tr>
  17350. <tr>
  17351. <td>color</td>
  17352. <td>exodark</td>
  17353. </tr>
  17354. <tr>
  17355. <td>presentParentTask</td>
  17356. <td>prefix-with-full-path</td>
  17357. </tr>
  17358. <tr>
  17359. <td>presentParentTask</td>
  17360. <td>prefix-with-parent</td>
  17361. </tr>
  17362. <tr>
  17363. <td>presentParentTask</td>
  17364. <td>subtext-with-full-path</td>
  17365. </tr>
  17366. <tr>
  17367. <td>presentParentTask</td>
  17368. <td>subtext-with-parent</td>
  17369. </tr>
  17370. <tr>
  17371. <td>presentParentTask</td>
  17372. <td>no-parent</td>
  17373. </tr>
  17374. <tr>
  17375. <td>type</td>
  17376. <td>board</td>
  17377. </tr>
  17378. <tr>
  17379. <td>type</td>
  17380. <td>template-board</td>
  17381. </tr>
  17382. <tr>
  17383. <td>type</td>
  17384. <td>template-container</td>
  17385. </tr>
  17386. </tbody>
  17387. </table>
  17388. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  17389. <p><a id="schemaboardslabels"></a>
  17390. <a id="schema_BoardsLabels"></a>
  17391. <a id="tocSboardslabels"></a>
  17392. <a id="tocsboardslabels"></a></p>
  17393. <pre class="highlight tab tab-json"><code>{
  17394. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17395. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17396. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  17397. }
  17398. </code></pre>
  17399. <h3 id="properties-2">Properties</h3>
  17400. <table>
  17401. <thead>
  17402. <tr>
  17403. <th>Name</th>
  17404. <th>Type</th>
  17405. <th>Required</th>
  17406. <th>Restrictions</th>
  17407. <th>Description</th>
  17408. </tr>
  17409. </thead>
  17410. <tbody>
  17411. <tr>
  17412. <td>_id</td>
  17413. <td>string</td>
  17414. <td>true</td>
  17415. <td>none</td>
  17416. <td>Unique id of a label</td>
  17417. </tr>
  17418. <tr>
  17419. <td>name</td>
  17420. <td>string</td>
  17421. <td>false</td>
  17422. <td>none</td>
  17423. <td>Name of a label</td>
  17424. </tr>
  17425. <tr>
  17426. <td>color</td>
  17427. <td>string</td>
  17428. <td>true</td>
  17429. <td>none</td>
  17430. <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>
  17431. </tr>
  17432. </tbody>
  17433. </table>
  17434. <h4 id="enumerated-values-2">Enumerated Values</h4>
  17435. <table>
  17436. <thead>
  17437. <tr>
  17438. <th>Property</th>
  17439. <th>Value</th>
  17440. </tr>
  17441. </thead>
  17442. <tbody>
  17443. <tr>
  17444. <td>color</td>
  17445. <td>white</td>
  17446. </tr>
  17447. <tr>
  17448. <td>color</td>
  17449. <td>green</td>
  17450. </tr>
  17451. <tr>
  17452. <td>color</td>
  17453. <td>yellow</td>
  17454. </tr>
  17455. <tr>
  17456. <td>color</td>
  17457. <td>orange</td>
  17458. </tr>
  17459. <tr>
  17460. <td>color</td>
  17461. <td>red</td>
  17462. </tr>
  17463. <tr>
  17464. <td>color</td>
  17465. <td>purple</td>
  17466. </tr>
  17467. <tr>
  17468. <td>color</td>
  17469. <td>blue</td>
  17470. </tr>
  17471. <tr>
  17472. <td>color</td>
  17473. <td>sky</td>
  17474. </tr>
  17475. <tr>
  17476. <td>color</td>
  17477. <td>lime</td>
  17478. </tr>
  17479. <tr>
  17480. <td>color</td>
  17481. <td>pink</td>
  17482. </tr>
  17483. <tr>
  17484. <td>color</td>
  17485. <td>black</td>
  17486. </tr>
  17487. <tr>
  17488. <td>color</td>
  17489. <td>silver</td>
  17490. </tr>
  17491. <tr>
  17492. <td>color</td>
  17493. <td>peachpuff</td>
  17494. </tr>
  17495. <tr>
  17496. <td>color</td>
  17497. <td>crimson</td>
  17498. </tr>
  17499. <tr>
  17500. <td>color</td>
  17501. <td>plum</td>
  17502. </tr>
  17503. <tr>
  17504. <td>color</td>
  17505. <td>darkgreen</td>
  17506. </tr>
  17507. <tr>
  17508. <td>color</td>
  17509. <td>slateblue</td>
  17510. </tr>
  17511. <tr>
  17512. <td>color</td>
  17513. <td>magenta</td>
  17514. </tr>
  17515. <tr>
  17516. <td>color</td>
  17517. <td>gold</td>
  17518. </tr>
  17519. <tr>
  17520. <td>color</td>
  17521. <td>navy</td>
  17522. </tr>
  17523. <tr>
  17524. <td>color</td>
  17525. <td>gray</td>
  17526. </tr>
  17527. <tr>
  17528. <td>color</td>
  17529. <td>saddlebrown</td>
  17530. </tr>
  17531. <tr>
  17532. <td>color</td>
  17533. <td>paleturquoise</td>
  17534. </tr>
  17535. <tr>
  17536. <td>color</td>
  17537. <td>mistyrose</td>
  17538. </tr>
  17539. <tr>
  17540. <td>color</td>
  17541. <td>indigo</td>
  17542. </tr>
  17543. </tbody>
  17544. </table>
  17545. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  17546. <p><a id="schemaboardsmembers"></a>
  17547. <a id="schema_BoardsMembers"></a>
  17548. <a id="tocSboardsmembers"></a>
  17549. <a id="tocsboardsmembers"></a></p>
  17550. <pre class="highlight tab tab-json"><code>{
  17551. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17552. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  17553. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  17554. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  17555. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  17556. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  17557. }
  17558. </code></pre>
  17559. <h3 id="properties-3">Properties</h3>
  17560. <table>
  17561. <thead>
  17562. <tr>
  17563. <th>Name</th>
  17564. <th>Type</th>
  17565. <th>Required</th>
  17566. <th>Restrictions</th>
  17567. <th>Description</th>
  17568. </tr>
  17569. </thead>
  17570. <tbody>
  17571. <tr>
  17572. <td>userId</td>
  17573. <td>string</td>
  17574. <td>true</td>
  17575. <td>none</td>
  17576. <td>The uniq ID of the member</td>
  17577. </tr>
  17578. <tr>
  17579. <td>isAdmin</td>
  17580. <td>boolean</td>
  17581. <td>true</td>
  17582. <td>none</td>
  17583. <td>Is the member an admin of the board?</td>
  17584. </tr>
  17585. <tr>
  17586. <td>isActive</td>
  17587. <td>boolean</td>
  17588. <td>true</td>
  17589. <td>none</td>
  17590. <td>Is the member active?</td>
  17591. </tr>
  17592. <tr>
  17593. <td>isNoComments</td>
  17594. <td>boolean</td>
  17595. <td>false</td>
  17596. <td>none</td>
  17597. <td>Is the member not allowed to make comments</td>
  17598. </tr>
  17599. <tr>
  17600. <td>isCommentOnly</td>
  17601. <td>boolean</td>
  17602. <td>false</td>
  17603. <td>none</td>
  17604. <td>Is the member only allowed to comment on the board</td>
  17605. </tr>
  17606. <tr>
  17607. <td>isWorker</td>
  17608. <td>boolean</td>
  17609. <td>false</td>
  17610. <td>none</td>
  17611. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  17612. </tr>
  17613. </tbody>
  17614. </table>
  17615. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  17616. <p><a id="schemaboardsorgs"></a>
  17617. <a id="schema_BoardsOrgs"></a>
  17618. <a id="tocSboardsorgs"></a>
  17619. <a id="tocsboardsorgs"></a></p>
  17620. <pre class="highlight tab tab-json"><code>{
  17621. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17622. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17623. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17624. }
  17625. </code></pre>
  17626. <h3 id="properties-4">Properties</h3>
  17627. <table>
  17628. <thead>
  17629. <tr>
  17630. <th>Name</th>
  17631. <th>Type</th>
  17632. <th>Required</th>
  17633. <th>Restrictions</th>
  17634. <th>Description</th>
  17635. </tr>
  17636. </thead>
  17637. <tbody>
  17638. <tr>
  17639. <td>orgId</td>
  17640. <td>string</td>
  17641. <td>true</td>
  17642. <td>none</td>
  17643. <td>The uniq ID of the organization</td>
  17644. </tr>
  17645. <tr>
  17646. <td>orgDisplayName</td>
  17647. <td>string</td>
  17648. <td>true</td>
  17649. <td>none</td>
  17650. <td>The display name of the organization</td>
  17651. </tr>
  17652. <tr>
  17653. <td>isActive</td>
  17654. <td>boolean</td>
  17655. <td>true</td>
  17656. <td>none</td>
  17657. <td>Is the organization active?</td>
  17658. </tr>
  17659. </tbody>
  17660. </table>
  17661. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  17662. <p><a id="schemaboardsteams"></a>
  17663. <a id="schema_BoardsTeams"></a>
  17664. <a id="tocSboardsteams"></a>
  17665. <a id="tocsboardsteams"></a></p>
  17666. <pre class="highlight tab tab-json"><code>{
  17667. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17668. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17669. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17670. }
  17671. </code></pre>
  17672. <h3 id="properties-5">Properties</h3>
  17673. <table>
  17674. <thead>
  17675. <tr>
  17676. <th>Name</th>
  17677. <th>Type</th>
  17678. <th>Required</th>
  17679. <th>Restrictions</th>
  17680. <th>Description</th>
  17681. </tr>
  17682. </thead>
  17683. <tbody>
  17684. <tr>
  17685. <td>teamId</td>
  17686. <td>string</td>
  17687. <td>true</td>
  17688. <td>none</td>
  17689. <td>The uniq ID of the team</td>
  17690. </tr>
  17691. <tr>
  17692. <td>teamDisplayName</td>
  17693. <td>string</td>
  17694. <td>true</td>
  17695. <td>none</td>
  17696. <td>The display name of the team</td>
  17697. </tr>
  17698. <tr>
  17699. <td>isActive</td>
  17700. <td>boolean</td>
  17701. <td>true</td>
  17702. <td>none</td>
  17703. <td>Is the team active?</td>
  17704. </tr>
  17705. </tbody>
  17706. </table>
  17707. <h2 id="tocs_cardcomments">CardComments</h2>
  17708. <p><a id="schemacardcomments"></a>
  17709. <a id="schema_CardComments"></a>
  17710. <a id="tocScardcomments"></a>
  17711. <a id="tocscardcomments"></a></p>
  17712. <pre class="highlight tab tab-json"><code>{
  17713. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17714. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17715. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17716. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17717. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17718. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17719. }
  17720. </code></pre>
  17721. <p>A comment on a card</p>
  17722. <h3 id="properties-6">Properties</h3>
  17723. <table>
  17724. <thead>
  17725. <tr>
  17726. <th>Name</th>
  17727. <th>Type</th>
  17728. <th>Required</th>
  17729. <th>Restrictions</th>
  17730. <th>Description</th>
  17731. </tr>
  17732. </thead>
  17733. <tbody>
  17734. <tr>
  17735. <td>boardId</td>
  17736. <td>string</td>
  17737. <td>true</td>
  17738. <td>none</td>
  17739. <td>the board ID</td>
  17740. </tr>
  17741. <tr>
  17742. <td>cardId</td>
  17743. <td>string</td>
  17744. <td>true</td>
  17745. <td>none</td>
  17746. <td>the card ID</td>
  17747. </tr>
  17748. <tr>
  17749. <td>text</td>
  17750. <td>string</td>
  17751. <td>true</td>
  17752. <td>none</td>
  17753. <td>the text of the comment</td>
  17754. </tr>
  17755. <tr>
  17756. <td>createdAt</td>
  17757. <td>string</td>
  17758. <td>true</td>
  17759. <td>none</td>
  17760. <td>when was the comment created</td>
  17761. </tr>
  17762. <tr>
  17763. <td>modifiedAt</td>
  17764. <td>string</td>
  17765. <td>true</td>
  17766. <td>none</td>
  17767. <td>none</td>
  17768. </tr>
  17769. <tr>
  17770. <td>userId</td>
  17771. <td>string</td>
  17772. <td>true</td>
  17773. <td>none</td>
  17774. <td>the author ID of the comment</td>
  17775. </tr>
  17776. </tbody>
  17777. </table>
  17778. <h2 id="tocs_cards">Cards</h2>
  17779. <p><a id="schemacards"></a>
  17780. <a id="schema_Cards"></a>
  17781. <a id="tocScards"></a>
  17782. <a id="tocscards"></a></p>
  17783. <pre class="highlight tab tab-json"><code>{
  17784. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17785. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17786. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17787. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17788. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17789. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17790. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17791. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17792. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17793. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17794. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17795. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17796. {}
  17797. ],
  17798. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17799. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17800. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17801. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17802. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17803. <span class="hljs-string">&quot;string&quot;</span>
  17804. ],
  17805. <span class="hljs-attr">&quot;members&quot;</span>: [
  17806. <span class="hljs-string">&quot;string&quot;</span>
  17807. ],
  17808. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17809. <span class="hljs-string">&quot;string&quot;</span>
  17810. ],
  17811. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17812. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17813. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17814. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17815. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17816. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17817. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17818. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17819. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17820. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17821. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17822. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17823. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17824. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17825. <span class="hljs-string">&quot;string&quot;</span>
  17826. ],
  17827. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17828. <span class="hljs-string">&quot;string&quot;</span>
  17829. ],
  17830. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17831. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17832. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17833. },
  17834. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17835. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17836. <span class="hljs-attr">&quot;one&quot;</span>: [
  17837. <span class="hljs-string">&quot;string&quot;</span>
  17838. ],
  17839. <span class="hljs-attr">&quot;two&quot;</span>: [
  17840. <span class="hljs-string">&quot;string&quot;</span>
  17841. ],
  17842. <span class="hljs-attr">&quot;three&quot;</span>: [
  17843. <span class="hljs-string">&quot;string&quot;</span>
  17844. ],
  17845. <span class="hljs-attr">&quot;five&quot;</span>: [
  17846. <span class="hljs-string">&quot;string&quot;</span>
  17847. ],
  17848. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17849. <span class="hljs-string">&quot;string&quot;</span>
  17850. ],
  17851. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17852. <span class="hljs-string">&quot;string&quot;</span>
  17853. ],
  17854. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17855. <span class="hljs-string">&quot;string&quot;</span>
  17856. ],
  17857. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17858. <span class="hljs-string">&quot;string&quot;</span>
  17859. ],
  17860. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17861. <span class="hljs-string">&quot;string&quot;</span>
  17862. ],
  17863. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17864. <span class="hljs-string">&quot;string&quot;</span>
  17865. ],
  17866. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17867. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17868. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17869. },
  17870. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17871. <span class="hljs-string">&quot;string&quot;</span>
  17872. ],
  17873. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17874. <span class="hljs-number">0</span>
  17875. ],
  17876. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17877. <span class="hljs-string">&quot;string&quot;</span>
  17878. ],
  17879. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17880. }
  17881. </code></pre>
  17882. <h3 id="properties-7">Properties</h3>
  17883. <table>
  17884. <thead>
  17885. <tr>
  17886. <th>Name</th>
  17887. <th>Type</th>
  17888. <th>Required</th>
  17889. <th>Restrictions</th>
  17890. <th>Description</th>
  17891. </tr>
  17892. </thead>
  17893. <tbody>
  17894. <tr>
  17895. <td>title</td>
  17896. <td>string¦null</td>
  17897. <td>false</td>
  17898. <td>none</td>
  17899. <td>the title of the card</td>
  17900. </tr>
  17901. <tr>
  17902. <td>archived</td>
  17903. <td>boolean</td>
  17904. <td>true</td>
  17905. <td>none</td>
  17906. <td>is the card archived</td>
  17907. </tr>
  17908. <tr>
  17909. <td>archivedAt</td>
  17910. <td>string¦null</td>
  17911. <td>false</td>
  17912. <td>none</td>
  17913. <td>latest archiving date</td>
  17914. </tr>
  17915. <tr>
  17916. <td>parentId</td>
  17917. <td>string¦null</td>
  17918. <td>false</td>
  17919. <td>none</td>
  17920. <td>ID of the parent card</td>
  17921. </tr>
  17922. <tr>
  17923. <td>listId</td>
  17924. <td>string¦null</td>
  17925. <td>false</td>
  17926. <td>none</td>
  17927. <td>List ID where the card is</td>
  17928. </tr>
  17929. <tr>
  17930. <td>swimlaneId</td>
  17931. <td>string</td>
  17932. <td>true</td>
  17933. <td>none</td>
  17934. <td>Swimlane ID where the card is</td>
  17935. </tr>
  17936. <tr>
  17937. <td>boardId</td>
  17938. <td>string¦null</td>
  17939. <td>false</td>
  17940. <td>none</td>
  17941. <td>Board ID of the card</td>
  17942. </tr>
  17943. <tr>
  17944. <td>coverId</td>
  17945. <td>string¦null</td>
  17946. <td>false</td>
  17947. <td>none</td>
  17948. <td>Cover ID of the card</td>
  17949. </tr>
  17950. <tr>
  17951. <td>color</td>
  17952. <td>string¦null</td>
  17953. <td>false</td>
  17954. <td>none</td>
  17955. <td>none</td>
  17956. </tr>
  17957. <tr>
  17958. <td>createdAt</td>
  17959. <td>string</td>
  17960. <td>true</td>
  17961. <td>none</td>
  17962. <td>creation date</td>
  17963. </tr>
  17964. <tr>
  17965. <td>modifiedAt</td>
  17966. <td>string</td>
  17967. <td>true</td>
  17968. <td>none</td>
  17969. <td>none</td>
  17970. </tr>
  17971. <tr>
  17972. <td>customFields</td>
  17973. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17974. <td>false</td>
  17975. <td>none</td>
  17976. <td>list of custom fields</td>
  17977. </tr>
  17978. <tr>
  17979. <td>dateLastActivity</td>
  17980. <td>string</td>
  17981. <td>true</td>
  17982. <td>none</td>
  17983. <td>Date of last activity</td>
  17984. </tr>
  17985. <tr>
  17986. <td>description</td>
  17987. <td>string¦null</td>
  17988. <td>false</td>
  17989. <td>none</td>
  17990. <td>description of the card</td>
  17991. </tr>
  17992. <tr>
  17993. <td>requestedBy</td>
  17994. <td>string¦null</td>
  17995. <td>false</td>
  17996. <td>none</td>
  17997. <td>who requested the card (ID of the user)</td>
  17998. </tr>
  17999. <tr>
  18000. <td>assignedBy</td>
  18001. <td>string¦null</td>
  18002. <td>false</td>
  18003. <td>none</td>
  18004. <td>who assigned the card (ID of the user)</td>
  18005. </tr>
  18006. <tr>
  18007. <td>labelIds</td>
  18008. <td>[string]¦null</td>
  18009. <td>false</td>
  18010. <td>none</td>
  18011. <td>list of labels ID the card has</td>
  18012. </tr>
  18013. <tr>
  18014. <td>members</td>
  18015. <td>[string]¦null</td>
  18016. <td>false</td>
  18017. <td>none</td>
  18018. <td>list of members (user IDs)</td>
  18019. </tr>
  18020. <tr>
  18021. <td>assignees</td>
  18022. <td>[string]¦null</td>
  18023. <td>false</td>
  18024. <td>none</td>
  18025. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  18026. </tr>
  18027. <tr>
  18028. <td>receivedAt</td>
  18029. <td>string¦null</td>
  18030. <td>false</td>
  18031. <td>none</td>
  18032. <td>Date the card was received</td>
  18033. </tr>
  18034. <tr>
  18035. <td>startAt</td>
  18036. <td>string¦null</td>
  18037. <td>false</td>
  18038. <td>none</td>
  18039. <td>Date the card was started to be worked on</td>
  18040. </tr>
  18041. <tr>
  18042. <td>dueAt</td>
  18043. <td>string¦null</td>
  18044. <td>false</td>
  18045. <td>none</td>
  18046. <td>Date the card is due</td>
  18047. </tr>
  18048. <tr>
  18049. <td>endAt</td>
  18050. <td>string¦null</td>
  18051. <td>false</td>
  18052. <td>none</td>
  18053. <td>Date the card ended</td>
  18054. </tr>
  18055. <tr>
  18056. <td>spentTime</td>
  18057. <td>number¦null</td>
  18058. <td>false</td>
  18059. <td>none</td>
  18060. <td>How much time has been spent on this</td>
  18061. </tr>
  18062. <tr>
  18063. <td>isOvertime</td>
  18064. <td>boolean¦null</td>
  18065. <td>false</td>
  18066. <td>none</td>
  18067. <td>is the card over time?</td>
  18068. </tr>
  18069. <tr>
  18070. <td>userId</td>
  18071. <td>string</td>
  18072. <td>true</td>
  18073. <td>none</td>
  18074. <td>user ID of the author of the card</td>
  18075. </tr>
  18076. <tr>
  18077. <td>sort</td>
  18078. <td>number¦null</td>
  18079. <td>false</td>
  18080. <td>none</td>
  18081. <td>Sort value</td>
  18082. </tr>
  18083. <tr>
  18084. <td>subtaskSort</td>
  18085. <td>number¦null</td>
  18086. <td>false</td>
  18087. <td>none</td>
  18088. <td>subtask sort value</td>
  18089. </tr>
  18090. <tr>
  18091. <td>type</td>
  18092. <td>string</td>
  18093. <td>true</td>
  18094. <td>none</td>
  18095. <td>type of the card</td>
  18096. </tr>
  18097. <tr>
  18098. <td>linkedId</td>
  18099. <td>string¦null</td>
  18100. <td>false</td>
  18101. <td>none</td>
  18102. <td>ID of the linked card</td>
  18103. </tr>
  18104. <tr>
  18105. <td>vote</td>
  18106. <td><a href="#schemacardsvote">CardsVote</a></td>
  18107. <td>false</td>
  18108. <td>none</td>
  18109. <td>none</td>
  18110. </tr>
  18111. <tr>
  18112. <td>poker</td>
  18113. <td><a href="#schemacardspoker">CardsPoker</a></td>
  18114. <td>false</td>
  18115. <td>none</td>
  18116. <td>none</td>
  18117. </tr>
  18118. <tr>
  18119. <td>targetId_gantt</td>
  18120. <td>[string]¦null</td>
  18121. <td>false</td>
  18122. <td>none</td>
  18123. <td>ID of card which is the child link in gantt view</td>
  18124. </tr>
  18125. <tr>
  18126. <td>linkType_gantt</td>
  18127. <td>[number]¦null</td>
  18128. <td>false</td>
  18129. <td>none</td>
  18130. <td>ID of card which is the parent link in gantt view</td>
  18131. </tr>
  18132. <tr>
  18133. <td>linkId_gantt</td>
  18134. <td>[string]¦null</td>
  18135. <td>false</td>
  18136. <td>none</td>
  18137. <td>ID of card which is the parent link in gantt view</td>
  18138. </tr>
  18139. <tr>
  18140. <td>cardNumber</td>
  18141. <td>number¦null</td>
  18142. <td>false</td>
  18143. <td>none</td>
  18144. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  18145. </tr>
  18146. </tbody>
  18147. </table>
  18148. <h4 id="enumerated-values-3">Enumerated Values</h4>
  18149. <table>
  18150. <thead>
  18151. <tr>
  18152. <th>Property</th>
  18153. <th>Value</th>
  18154. </tr>
  18155. </thead>
  18156. <tbody>
  18157. <tr>
  18158. <td>color</td>
  18159. <td>white</td>
  18160. </tr>
  18161. <tr>
  18162. <td>color</td>
  18163. <td>green</td>
  18164. </tr>
  18165. <tr>
  18166. <td>color</td>
  18167. <td>yellow</td>
  18168. </tr>
  18169. <tr>
  18170. <td>color</td>
  18171. <td>orange</td>
  18172. </tr>
  18173. <tr>
  18174. <td>color</td>
  18175. <td>red</td>
  18176. </tr>
  18177. <tr>
  18178. <td>color</td>
  18179. <td>purple</td>
  18180. </tr>
  18181. <tr>
  18182. <td>color</td>
  18183. <td>blue</td>
  18184. </tr>
  18185. <tr>
  18186. <td>color</td>
  18187. <td>sky</td>
  18188. </tr>
  18189. <tr>
  18190. <td>color</td>
  18191. <td>lime</td>
  18192. </tr>
  18193. <tr>
  18194. <td>color</td>
  18195. <td>pink</td>
  18196. </tr>
  18197. <tr>
  18198. <td>color</td>
  18199. <td>black</td>
  18200. </tr>
  18201. <tr>
  18202. <td>color</td>
  18203. <td>silver</td>
  18204. </tr>
  18205. <tr>
  18206. <td>color</td>
  18207. <td>peachpuff</td>
  18208. </tr>
  18209. <tr>
  18210. <td>color</td>
  18211. <td>crimson</td>
  18212. </tr>
  18213. <tr>
  18214. <td>color</td>
  18215. <td>plum</td>
  18216. </tr>
  18217. <tr>
  18218. <td>color</td>
  18219. <td>darkgreen</td>
  18220. </tr>
  18221. <tr>
  18222. <td>color</td>
  18223. <td>slateblue</td>
  18224. </tr>
  18225. <tr>
  18226. <td>color</td>
  18227. <td>magenta</td>
  18228. </tr>
  18229. <tr>
  18230. <td>color</td>
  18231. <td>gold</td>
  18232. </tr>
  18233. <tr>
  18234. <td>color</td>
  18235. <td>navy</td>
  18236. </tr>
  18237. <tr>
  18238. <td>color</td>
  18239. <td>gray</td>
  18240. </tr>
  18241. <tr>
  18242. <td>color</td>
  18243. <td>saddlebrown</td>
  18244. </tr>
  18245. <tr>
  18246. <td>color</td>
  18247. <td>paleturquoise</td>
  18248. </tr>
  18249. <tr>
  18250. <td>color</td>
  18251. <td>mistyrose</td>
  18252. </tr>
  18253. <tr>
  18254. <td>color</td>
  18255. <td>indigo</td>
  18256. </tr>
  18257. </tbody>
  18258. </table>
  18259. <h2 id="tocs_cardsvote">CardsVote</h2>
  18260. <p><a id="schemacardsvote"></a>
  18261. <a id="schema_CardsVote"></a>
  18262. <a id="tocScardsvote"></a>
  18263. <a id="tocscardsvote"></a></p>
  18264. <pre class="highlight tab tab-json"><code>{
  18265. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18266. <span class="hljs-attr">&quot;positive&quot;</span>: [
  18267. <span class="hljs-string">&quot;string&quot;</span>
  18268. ],
  18269. <span class="hljs-attr">&quot;negative&quot;</span>: [
  18270. <span class="hljs-string">&quot;string&quot;</span>
  18271. ],
  18272. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18273. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  18274. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  18275. }
  18276. </code></pre>
  18277. <h3 id="properties-8">Properties</h3>
  18278. <table>
  18279. <thead>
  18280. <tr>
  18281. <th>Name</th>
  18282. <th>Type</th>
  18283. <th>Required</th>
  18284. <th>Restrictions</th>
  18285. <th>Description</th>
  18286. </tr>
  18287. </thead>
  18288. <tbody>
  18289. <tr>
  18290. <td>question</td>
  18291. <td>string</td>
  18292. <td>true</td>
  18293. <td>none</td>
  18294. <td>none</td>
  18295. </tr>
  18296. <tr>
  18297. <td>positive</td>
  18298. <td>[string]</td>
  18299. <td>false</td>
  18300. <td>none</td>
  18301. <td>list of members (user IDs)</td>
  18302. </tr>
  18303. <tr>
  18304. <td>negative</td>
  18305. <td>[string]</td>
  18306. <td>false</td>
  18307. <td>none</td>
  18308. <td>list of members (user IDs)</td>
  18309. </tr>
  18310. <tr>
  18311. <td>end</td>
  18312. <td>string</td>
  18313. <td>false</td>
  18314. <td>none</td>
  18315. <td>none</td>
  18316. </tr>
  18317. <tr>
  18318. <td>public</td>
  18319. <td>boolean</td>
  18320. <td>true</td>
  18321. <td>none</td>
  18322. <td>none</td>
  18323. </tr>
  18324. <tr>
  18325. <td>allowNonBoardMembers</td>
  18326. <td>boolean</td>
  18327. <td>true</td>
  18328. <td>none</td>
  18329. <td>none</td>
  18330. </tr>
  18331. </tbody>
  18332. </table>
  18333. <h2 id="tocs_cardspoker">CardsPoker</h2>
  18334. <p><a id="schemacardspoker"></a>
  18335. <a id="schema_CardsPoker"></a>
  18336. <a id="tocScardspoker"></a>
  18337. <a id="tocscardspoker"></a></p>
  18338. <pre class="highlight tab tab-json"><code>{
  18339. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  18340. <span class="hljs-attr">&quot;one&quot;</span>: [
  18341. <span class="hljs-string">&quot;string&quot;</span>
  18342. ],
  18343. <span class="hljs-attr">&quot;two&quot;</span>: [
  18344. <span class="hljs-string">&quot;string&quot;</span>
  18345. ],
  18346. <span class="hljs-attr">&quot;three&quot;</span>: [
  18347. <span class="hljs-string">&quot;string&quot;</span>
  18348. ],
  18349. <span class="hljs-attr">&quot;five&quot;</span>: [
  18350. <span class="hljs-string">&quot;string&quot;</span>
  18351. ],
  18352. <span class="hljs-attr">&quot;eight&quot;</span>: [
  18353. <span class="hljs-string">&quot;string&quot;</span>
  18354. ],
  18355. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  18356. <span class="hljs-string">&quot;string&quot;</span>
  18357. ],
  18358. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  18359. <span class="hljs-string">&quot;string&quot;</span>
  18360. ],
  18361. <span class="hljs-attr">&quot;forty&quot;</span>: [
  18362. <span class="hljs-string">&quot;string&quot;</span>
  18363. ],
  18364. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  18365. <span class="hljs-string">&quot;string&quot;</span>
  18366. ],
  18367. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  18368. <span class="hljs-string">&quot;string&quot;</span>
  18369. ],
  18370. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18371. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  18372. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  18373. }
  18374. </code></pre>
  18375. <h3 id="properties-9">Properties</h3>
  18376. <table>
  18377. <thead>
  18378. <tr>
  18379. <th>Name</th>
  18380. <th>Type</th>
  18381. <th>Required</th>
  18382. <th>Restrictions</th>
  18383. <th>Description</th>
  18384. </tr>
  18385. </thead>
  18386. <tbody>
  18387. <tr>
  18388. <td>question</td>
  18389. <td>boolean</td>
  18390. <td>true</td>
  18391. <td>none</td>
  18392. <td>none</td>
  18393. </tr>
  18394. <tr>
  18395. <td>one</td>
  18396. <td>[string]</td>
  18397. <td>false</td>
  18398. <td>none</td>
  18399. <td>poker card one</td>
  18400. </tr>
  18401. <tr>
  18402. <td>two</td>
  18403. <td>[string]</td>
  18404. <td>false</td>
  18405. <td>none</td>
  18406. <td>poker card two</td>
  18407. </tr>
  18408. <tr>
  18409. <td>three</td>
  18410. <td>[string]</td>
  18411. <td>false</td>
  18412. <td>none</td>
  18413. <td>poker card three</td>
  18414. </tr>
  18415. <tr>
  18416. <td>five</td>
  18417. <td>[string]</td>
  18418. <td>false</td>
  18419. <td>none</td>
  18420. <td>poker card five</td>
  18421. </tr>
  18422. <tr>
  18423. <td>eight</td>
  18424. <td>[string]</td>
  18425. <td>false</td>
  18426. <td>none</td>
  18427. <td>poker card eight</td>
  18428. </tr>
  18429. <tr>
  18430. <td>thirteen</td>
  18431. <td>[string]</td>
  18432. <td>false</td>
  18433. <td>none</td>
  18434. <td>poker card thirteen</td>
  18435. </tr>
  18436. <tr>
  18437. <td>twenty</td>
  18438. <td>[string]</td>
  18439. <td>false</td>
  18440. <td>none</td>
  18441. <td>poker card twenty</td>
  18442. </tr>
  18443. <tr>
  18444. <td>forty</td>
  18445. <td>[string]</td>
  18446. <td>false</td>
  18447. <td>none</td>
  18448. <td>poker card forty</td>
  18449. </tr>
  18450. <tr>
  18451. <td>oneHundred</td>
  18452. <td>[string]</td>
  18453. <td>false</td>
  18454. <td>none</td>
  18455. <td>poker card oneHundred</td>
  18456. </tr>
  18457. <tr>
  18458. <td>unsure</td>
  18459. <td>[string]</td>
  18460. <td>false</td>
  18461. <td>none</td>
  18462. <td>poker card unsure</td>
  18463. </tr>
  18464. <tr>
  18465. <td>end</td>
  18466. <td>string</td>
  18467. <td>false</td>
  18468. <td>none</td>
  18469. <td>none</td>
  18470. </tr>
  18471. <tr>
  18472. <td>allowNonBoardMembers</td>
  18473. <td>boolean</td>
  18474. <td>true</td>
  18475. <td>none</td>
  18476. <td>none</td>
  18477. </tr>
  18478. <tr>
  18479. <td>estimation</td>
  18480. <td>number</td>
  18481. <td>false</td>
  18482. <td>none</td>
  18483. <td>poker estimation value</td>
  18484. </tr>
  18485. </tbody>
  18486. </table>
  18487. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  18488. <p><a id="schemacardscustomfields"></a>
  18489. <a id="schema_CardsCustomfields"></a>
  18490. <a id="tocScardscustomfields"></a>
  18491. <a id="tocscardscustomfields"></a></p>
  18492. <pre class="highlight tab tab-json"><code>{}
  18493. </code></pre>
  18494. <h3 id="properties-10">Properties</h3>
  18495. <p><em>None</em></p>
  18496. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  18497. <p><a id="schemachecklistitems"></a>
  18498. <a id="schema_ChecklistItems"></a>
  18499. <a id="tocSchecklistitems"></a>
  18500. <a id="tocschecklistitems"></a></p>
  18501. <pre class="highlight tab tab-json"><code>{
  18502. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18503. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18504. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  18505. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18506. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18507. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18508. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18509. }
  18510. </code></pre>
  18511. <p>An item in a checklist</p>
  18512. <h3 id="properties-11">Properties</h3>
  18513. <table>
  18514. <thead>
  18515. <tr>
  18516. <th>Name</th>
  18517. <th>Type</th>
  18518. <th>Required</th>
  18519. <th>Restrictions</th>
  18520. <th>Description</th>
  18521. </tr>
  18522. </thead>
  18523. <tbody>
  18524. <tr>
  18525. <td>title</td>
  18526. <td>string</td>
  18527. <td>true</td>
  18528. <td>none</td>
  18529. <td>the text of the item</td>
  18530. </tr>
  18531. <tr>
  18532. <td>sort</td>
  18533. <td>number</td>
  18534. <td>true</td>
  18535. <td>none</td>
  18536. <td>the sorting field of the item</td>
  18537. </tr>
  18538. <tr>
  18539. <td>isFinished</td>
  18540. <td>boolean</td>
  18541. <td>true</td>
  18542. <td>none</td>
  18543. <td>Is the item checked?</td>
  18544. </tr>
  18545. <tr>
  18546. <td>checklistId</td>
  18547. <td>string</td>
  18548. <td>true</td>
  18549. <td>none</td>
  18550. <td>the checklist ID the item is attached to</td>
  18551. </tr>
  18552. <tr>
  18553. <td>cardId</td>
  18554. <td>string</td>
  18555. <td>true</td>
  18556. <td>none</td>
  18557. <td>the card ID the item is attached to</td>
  18558. </tr>
  18559. <tr>
  18560. <td>createdAt</td>
  18561. <td>string¦null</td>
  18562. <td>false</td>
  18563. <td>none</td>
  18564. <td>none</td>
  18565. </tr>
  18566. <tr>
  18567. <td>modifiedAt</td>
  18568. <td>string</td>
  18569. <td>true</td>
  18570. <td>none</td>
  18571. <td>none</td>
  18572. </tr>
  18573. </tbody>
  18574. </table>
  18575. <h2 id="tocs_checklists">Checklists</h2>
  18576. <p><a id="schemachecklists"></a>
  18577. <a id="schema_Checklists"></a>
  18578. <a id="tocSchecklists"></a>
  18579. <a id="tocschecklists"></a></p>
  18580. <pre class="highlight tab tab-json"><code>{
  18581. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18582. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18583. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18584. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18585. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18586. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  18587. }
  18588. </code></pre>
  18589. <p>A Checklist</p>
  18590. <h3 id="properties-12">Properties</h3>
  18591. <table>
  18592. <thead>
  18593. <tr>
  18594. <th>Name</th>
  18595. <th>Type</th>
  18596. <th>Required</th>
  18597. <th>Restrictions</th>
  18598. <th>Description</th>
  18599. </tr>
  18600. </thead>
  18601. <tbody>
  18602. <tr>
  18603. <td>cardId</td>
  18604. <td>string</td>
  18605. <td>true</td>
  18606. <td>none</td>
  18607. <td>The ID of the card the checklist is in</td>
  18608. </tr>
  18609. <tr>
  18610. <td>title</td>
  18611. <td>string</td>
  18612. <td>true</td>
  18613. <td>none</td>
  18614. <td>the title of the checklist</td>
  18615. </tr>
  18616. <tr>
  18617. <td>finishedAt</td>
  18618. <td>string¦null</td>
  18619. <td>false</td>
  18620. <td>none</td>
  18621. <td>When was the checklist finished</td>
  18622. </tr>
  18623. <tr>
  18624. <td>createdAt</td>
  18625. <td>string</td>
  18626. <td>true</td>
  18627. <td>none</td>
  18628. <td>Creation date of the checklist</td>
  18629. </tr>
  18630. <tr>
  18631. <td>modifiedAt</td>
  18632. <td>string</td>
  18633. <td>true</td>
  18634. <td>none</td>
  18635. <td>none</td>
  18636. </tr>
  18637. <tr>
  18638. <td>sort</td>
  18639. <td>number</td>
  18640. <td>true</td>
  18641. <td>none</td>
  18642. <td>sorting value of the checklist</td>
  18643. </tr>
  18644. </tbody>
  18645. </table>
  18646. <h2 id="tocs_customfields">CustomFields</h2>
  18647. <p><a id="schemacustomfields"></a>
  18648. <a id="schema_CustomFields"></a>
  18649. <a id="tocScustomfields"></a>
  18650. <a id="tocscustomfields"></a></p>
  18651. <pre class="highlight tab tab-json"><code>{
  18652. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  18653. <span class="hljs-string">&quot;string&quot;</span>
  18654. ],
  18655. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18656. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  18657. <span class="hljs-attr">&quot;settings&quot;</span>: {
  18658. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18659. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18660. {}
  18661. ],
  18662. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18663. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18664. },
  18665. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18666. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18667. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18668. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  18669. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  18670. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18671. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18672. }
  18673. </code></pre>
  18674. <p>A custom field on a card in the board</p>
  18675. <h3 id="properties-13">Properties</h3>
  18676. <table>
  18677. <thead>
  18678. <tr>
  18679. <th>Name</th>
  18680. <th>Type</th>
  18681. <th>Required</th>
  18682. <th>Restrictions</th>
  18683. <th>Description</th>
  18684. </tr>
  18685. </thead>
  18686. <tbody>
  18687. <tr>
  18688. <td>boardIds</td>
  18689. <td>[string]</td>
  18690. <td>true</td>
  18691. <td>none</td>
  18692. <td>the ID of the board</td>
  18693. </tr>
  18694. <tr>
  18695. <td>name</td>
  18696. <td>string</td>
  18697. <td>true</td>
  18698. <td>none</td>
  18699. <td>name of the custom field</td>
  18700. </tr>
  18701. <tr>
  18702. <td>type</td>
  18703. <td>string</td>
  18704. <td>true</td>
  18705. <td>none</td>
  18706. <td>type of the custom field</td>
  18707. </tr>
  18708. <tr>
  18709. <td>settings</td>
  18710. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  18711. <td>true</td>
  18712. <td>none</td>
  18713. <td>none</td>
  18714. </tr>
  18715. <tr>
  18716. <td>showOnCard</td>
  18717. <td>boolean</td>
  18718. <td>true</td>
  18719. <td>none</td>
  18720. <td>should we show on the cards this custom field</td>
  18721. </tr>
  18722. <tr>
  18723. <td>automaticallyOnCard</td>
  18724. <td>boolean</td>
  18725. <td>true</td>
  18726. <td>none</td>
  18727. <td>should the custom fields automatically be added on cards?</td>
  18728. </tr>
  18729. <tr>
  18730. <td>alwaysOnCard</td>
  18731. <td>boolean</td>
  18732. <td>true</td>
  18733. <td>none</td>
  18734. <td>should the custom field be automatically added to all cards?</td>
  18735. </tr>
  18736. <tr>
  18737. <td>showLabelOnMiniCard</td>
  18738. <td>boolean</td>
  18739. <td>true</td>
  18740. <td>none</td>
  18741. <td>should the label of the custom field be shown on minicards?</td>
  18742. </tr>
  18743. <tr>
  18744. <td>showSumAtTopOfList</td>
  18745. <td>boolean</td>
  18746. <td>true</td>
  18747. <td>none</td>
  18748. <td>should the sum of the custom fields be shown at top of list?</td>
  18749. </tr>
  18750. <tr>
  18751. <td>createdAt</td>
  18752. <td>string¦null</td>
  18753. <td>false</td>
  18754. <td>none</td>
  18755. <td>none</td>
  18756. </tr>
  18757. <tr>
  18758. <td>modifiedAt</td>
  18759. <td>string</td>
  18760. <td>true</td>
  18761. <td>none</td>
  18762. <td>none</td>
  18763. </tr>
  18764. </tbody>
  18765. </table>
  18766. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18767. <table>
  18768. <thead>
  18769. <tr>
  18770. <th>Property</th>
  18771. <th>Value</th>
  18772. </tr>
  18773. </thead>
  18774. <tbody>
  18775. <tr>
  18776. <td>type</td>
  18777. <td>text</td>
  18778. </tr>
  18779. <tr>
  18780. <td>type</td>
  18781. <td>number</td>
  18782. </tr>
  18783. <tr>
  18784. <td>type</td>
  18785. <td>date</td>
  18786. </tr>
  18787. <tr>
  18788. <td>type</td>
  18789. <td>dropdown</td>
  18790. </tr>
  18791. <tr>
  18792. <td>type</td>
  18793. <td>checkbox</td>
  18794. </tr>
  18795. <tr>
  18796. <td>type</td>
  18797. <td>currency</td>
  18798. </tr>
  18799. <tr>
  18800. <td>type</td>
  18801. <td>stringtemplate</td>
  18802. </tr>
  18803. </tbody>
  18804. </table>
  18805. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18806. <p><a id="schemacustomfieldssettings"></a>
  18807. <a id="schema_CustomFieldsSettings"></a>
  18808. <a id="tocScustomfieldssettings"></a>
  18809. <a id="tocscustomfieldssettings"></a></p>
  18810. <pre class="highlight tab tab-json"><code>{
  18811. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18812. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18813. {}
  18814. ],
  18815. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18816. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18817. }
  18818. </code></pre>
  18819. <h3 id="properties-14">Properties</h3>
  18820. <table>
  18821. <thead>
  18822. <tr>
  18823. <th>Name</th>
  18824. <th>Type</th>
  18825. <th>Required</th>
  18826. <th>Restrictions</th>
  18827. <th>Description</th>
  18828. </tr>
  18829. </thead>
  18830. <tbody>
  18831. <tr>
  18832. <td>currencyCode</td>
  18833. <td>string</td>
  18834. <td>false</td>
  18835. <td>none</td>
  18836. <td>none</td>
  18837. </tr>
  18838. <tr>
  18839. <td>dropdownItems</td>
  18840. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18841. <td>false</td>
  18842. <td>none</td>
  18843. <td>list of drop down items objects</td>
  18844. </tr>
  18845. <tr>
  18846. <td>stringtemplateFormat</td>
  18847. <td>string</td>
  18848. <td>false</td>
  18849. <td>none</td>
  18850. <td>none</td>
  18851. </tr>
  18852. <tr>
  18853. <td>stringtemplateSeparator</td>
  18854. <td>string</td>
  18855. <td>false</td>
  18856. <td>none</td>
  18857. <td>none</td>
  18858. </tr>
  18859. </tbody>
  18860. </table>
  18861. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18862. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18863. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18864. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18865. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18866. <pre class="highlight tab tab-json"><code>{}
  18867. </code></pre>
  18868. <h3 id="properties-15">Properties</h3>
  18869. <p><em>None</em></p>
  18870. <h2 id="tocs_integrations">Integrations</h2>
  18871. <p><a id="schemaintegrations"></a>
  18872. <a id="schema_Integrations"></a>
  18873. <a id="tocSintegrations"></a>
  18874. <a id="tocsintegrations"></a></p>
  18875. <pre class="highlight tab tab-json"><code>{
  18876. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18877. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18878. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18879. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18880. <span class="hljs-string">&quot;string&quot;</span>
  18881. ],
  18882. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18883. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18884. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18885. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18886. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18887. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18888. }
  18889. </code></pre>
  18890. <p>Integration with third-party applications</p>
  18891. <h3 id="properties-16">Properties</h3>
  18892. <table>
  18893. <thead>
  18894. <tr>
  18895. <th>Name</th>
  18896. <th>Type</th>
  18897. <th>Required</th>
  18898. <th>Restrictions</th>
  18899. <th>Description</th>
  18900. </tr>
  18901. </thead>
  18902. <tbody>
  18903. <tr>
  18904. <td>enabled</td>
  18905. <td>boolean</td>
  18906. <td>true</td>
  18907. <td>none</td>
  18908. <td>is the integration enabled?</td>
  18909. </tr>
  18910. <tr>
  18911. <td>title</td>
  18912. <td>string¦null</td>
  18913. <td>false</td>
  18914. <td>none</td>
  18915. <td>name of the integration</td>
  18916. </tr>
  18917. <tr>
  18918. <td>type</td>
  18919. <td>string</td>
  18920. <td>true</td>
  18921. <td>none</td>
  18922. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18923. </tr>
  18924. <tr>
  18925. <td>activities</td>
  18926. <td>[string]</td>
  18927. <td>true</td>
  18928. <td>none</td>
  18929. <td>activities the integration gets triggered (list)</td>
  18930. </tr>
  18931. <tr>
  18932. <td>url</td>
  18933. <td>string</td>
  18934. <td>true</td>
  18935. <td>none</td>
  18936. <td>none</td>
  18937. </tr>
  18938. <tr>
  18939. <td>token</td>
  18940. <td>string¦null</td>
  18941. <td>false</td>
  18942. <td>none</td>
  18943. <td>token of the integration</td>
  18944. </tr>
  18945. <tr>
  18946. <td>boardId</td>
  18947. <td>string</td>
  18948. <td>true</td>
  18949. <td>none</td>
  18950. <td>Board ID of the integration</td>
  18951. </tr>
  18952. <tr>
  18953. <td>createdAt</td>
  18954. <td>string</td>
  18955. <td>true</td>
  18956. <td>none</td>
  18957. <td>Creation date of the integration</td>
  18958. </tr>
  18959. <tr>
  18960. <td>modifiedAt</td>
  18961. <td>string</td>
  18962. <td>true</td>
  18963. <td>none</td>
  18964. <td>none</td>
  18965. </tr>
  18966. <tr>
  18967. <td>userId</td>
  18968. <td>string</td>
  18969. <td>true</td>
  18970. <td>none</td>
  18971. <td>user ID who created the interation</td>
  18972. </tr>
  18973. </tbody>
  18974. </table>
  18975. <h2 id="tocs_lists">Lists</h2>
  18976. <p><a id="schemalists"></a>
  18977. <a id="schema_Lists"></a>
  18978. <a id="tocSlists"></a>
  18979. <a id="tocslists"></a></p>
  18980. <pre class="highlight tab tab-json"><code>{
  18981. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18982. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18983. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18984. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18985. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18986. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18987. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18988. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18989. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18990. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18991. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18992. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18993. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18994. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18995. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18996. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18997. },
  18998. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18999. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19000. }
  19001. </code></pre>
  19002. <p>A list (column) in the Wekan board.</p>
  19003. <h3 id="properties-17">Properties</h3>
  19004. <table>
  19005. <thead>
  19006. <tr>
  19007. <th>Name</th>
  19008. <th>Type</th>
  19009. <th>Required</th>
  19010. <th>Restrictions</th>
  19011. <th>Description</th>
  19012. </tr>
  19013. </thead>
  19014. <tbody>
  19015. <tr>
  19016. <td>title</td>
  19017. <td>string</td>
  19018. <td>true</td>
  19019. <td>none</td>
  19020. <td>the title of the list</td>
  19021. </tr>
  19022. <tr>
  19023. <td>starred</td>
  19024. <td>boolean¦null</td>
  19025. <td>false</td>
  19026. <td>none</td>
  19027. <td>if a list is stared<br />then we put it on the top</td>
  19028. </tr>
  19029. <tr>
  19030. <td>archived</td>
  19031. <td>boolean</td>
  19032. <td>true</td>
  19033. <td>none</td>
  19034. <td>is the list archived</td>
  19035. </tr>
  19036. <tr>
  19037. <td>archivedAt</td>
  19038. <td>string¦null</td>
  19039. <td>false</td>
  19040. <td>none</td>
  19041. <td>latest archiving date</td>
  19042. </tr>
  19043. <tr>
  19044. <td>boardId</td>
  19045. <td>string</td>
  19046. <td>true</td>
  19047. <td>none</td>
  19048. <td>the board associated to this list</td>
  19049. </tr>
  19050. <tr>
  19051. <td>swimlaneId</td>
  19052. <td>string</td>
  19053. <td>true</td>
  19054. <td>none</td>
  19055. <td>the swimlane associated to this list. Used for templates</td>
  19056. </tr>
  19057. <tr>
  19058. <td>createdAt</td>
  19059. <td>string</td>
  19060. <td>true</td>
  19061. <td>none</td>
  19062. <td>creation date</td>
  19063. </tr>
  19064. <tr>
  19065. <td>sort</td>
  19066. <td>number¦null</td>
  19067. <td>false</td>
  19068. <td>none</td>
  19069. <td>is the list sorted</td>
  19070. </tr>
  19071. <tr>
  19072. <td>width</td>
  19073. <td>string¦null</td>
  19074. <td>false</td>
  19075. <td>none</td>
  19076. <td>list width, default 270px</td>
  19077. </tr>
  19078. <tr>
  19079. <td>height</td>
  19080. <td>string¦null</td>
  19081. <td>false</td>
  19082. <td>none</td>
  19083. <td>list height</td>
  19084. </tr>
  19085. <tr>
  19086. <td>updatedAt</td>
  19087. <td>string¦null</td>
  19088. <td>false</td>
  19089. <td>none</td>
  19090. <td>last update of the list</td>
  19091. </tr>
  19092. <tr>
  19093. <td>modifiedAt</td>
  19094. <td>string</td>
  19095. <td>true</td>
  19096. <td>none</td>
  19097. <td>none</td>
  19098. </tr>
  19099. <tr>
  19100. <td>wipLimit</td>
  19101. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  19102. <td>false</td>
  19103. <td>none</td>
  19104. <td>none</td>
  19105. </tr>
  19106. <tr>
  19107. <td>color</td>
  19108. <td>string¦null</td>
  19109. <td>false</td>
  19110. <td>none</td>
  19111. <td>the color of the list</td>
  19112. </tr>
  19113. <tr>
  19114. <td>type</td>
  19115. <td>string</td>
  19116. <td>true</td>
  19117. <td>none</td>
  19118. <td>The type of list</td>
  19119. </tr>
  19120. </tbody>
  19121. </table>
  19122. <h4 id="enumerated-values-5">Enumerated Values</h4>
  19123. <table>
  19124. <thead>
  19125. <tr>
  19126. <th>Property</th>
  19127. <th>Value</th>
  19128. </tr>
  19129. </thead>
  19130. <tbody>
  19131. <tr>
  19132. <td>color</td>
  19133. <td>white</td>
  19134. </tr>
  19135. <tr>
  19136. <td>color</td>
  19137. <td>green</td>
  19138. </tr>
  19139. <tr>
  19140. <td>color</td>
  19141. <td>yellow</td>
  19142. </tr>
  19143. <tr>
  19144. <td>color</td>
  19145. <td>orange</td>
  19146. </tr>
  19147. <tr>
  19148. <td>color</td>
  19149. <td>red</td>
  19150. </tr>
  19151. <tr>
  19152. <td>color</td>
  19153. <td>purple</td>
  19154. </tr>
  19155. <tr>
  19156. <td>color</td>
  19157. <td>blue</td>
  19158. </tr>
  19159. <tr>
  19160. <td>color</td>
  19161. <td>sky</td>
  19162. </tr>
  19163. <tr>
  19164. <td>color</td>
  19165. <td>lime</td>
  19166. </tr>
  19167. <tr>
  19168. <td>color</td>
  19169. <td>pink</td>
  19170. </tr>
  19171. <tr>
  19172. <td>color</td>
  19173. <td>black</td>
  19174. </tr>
  19175. <tr>
  19176. <td>color</td>
  19177. <td>silver</td>
  19178. </tr>
  19179. <tr>
  19180. <td>color</td>
  19181. <td>peachpuff</td>
  19182. </tr>
  19183. <tr>
  19184. <td>color</td>
  19185. <td>crimson</td>
  19186. </tr>
  19187. <tr>
  19188. <td>color</td>
  19189. <td>plum</td>
  19190. </tr>
  19191. <tr>
  19192. <td>color</td>
  19193. <td>darkgreen</td>
  19194. </tr>
  19195. <tr>
  19196. <td>color</td>
  19197. <td>slateblue</td>
  19198. </tr>
  19199. <tr>
  19200. <td>color</td>
  19201. <td>magenta</td>
  19202. </tr>
  19203. <tr>
  19204. <td>color</td>
  19205. <td>gold</td>
  19206. </tr>
  19207. <tr>
  19208. <td>color</td>
  19209. <td>navy</td>
  19210. </tr>
  19211. <tr>
  19212. <td>color</td>
  19213. <td>gray</td>
  19214. </tr>
  19215. <tr>
  19216. <td>color</td>
  19217. <td>saddlebrown</td>
  19218. </tr>
  19219. <tr>
  19220. <td>color</td>
  19221. <td>paleturquoise</td>
  19222. </tr>
  19223. <tr>
  19224. <td>color</td>
  19225. <td>mistyrose</td>
  19226. </tr>
  19227. <tr>
  19228. <td>color</td>
  19229. <td>indigo</td>
  19230. </tr>
  19231. </tbody>
  19232. </table>
  19233. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  19234. <p><a id="schemalistswiplimit"></a>
  19235. <a id="schema_ListsWiplimit"></a>
  19236. <a id="tocSlistswiplimit"></a>
  19237. <a id="tocslistswiplimit"></a></p>
  19238. <pre class="highlight tab tab-json"><code>{
  19239. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  19240. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  19241. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  19242. }
  19243. </code></pre>
  19244. <h3 id="properties-18">Properties</h3>
  19245. <table>
  19246. <thead>
  19247. <tr>
  19248. <th>Name</th>
  19249. <th>Type</th>
  19250. <th>Required</th>
  19251. <th>Restrictions</th>
  19252. <th>Description</th>
  19253. </tr>
  19254. </thead>
  19255. <tbody>
  19256. <tr>
  19257. <td>value</td>
  19258. <td>number</td>
  19259. <td>true</td>
  19260. <td>none</td>
  19261. <td>value of the WIP</td>
  19262. </tr>
  19263. <tr>
  19264. <td>enabled</td>
  19265. <td>boolean</td>
  19266. <td>true</td>
  19267. <td>none</td>
  19268. <td>is the WIP enabled</td>
  19269. </tr>
  19270. <tr>
  19271. <td>soft</td>
  19272. <td>boolean</td>
  19273. <td>true</td>
  19274. <td>none</td>
  19275. <td>is the WIP a soft or hard requirement</td>
  19276. </tr>
  19277. </tbody>
  19278. </table>
  19279. <h2 id="tocs_swimlanes">Swimlanes</h2>
  19280. <p><a id="schemaswimlanes"></a>
  19281. <a id="schema_Swimlanes"></a>
  19282. <a id="tocSswimlanes"></a>
  19283. <a id="tocsswimlanes"></a></p>
  19284. <pre class="highlight tab tab-json"><code>{
  19285. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19286. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  19287. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19288. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19289. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19290. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  19291. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  19292. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19293. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19294. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19295. }
  19296. </code></pre>
  19297. <p>A swimlane is an line in the kaban board.</p>
  19298. <h3 id="properties-19">Properties</h3>
  19299. <table>
  19300. <thead>
  19301. <tr>
  19302. <th>Name</th>
  19303. <th>Type</th>
  19304. <th>Required</th>
  19305. <th>Restrictions</th>
  19306. <th>Description</th>
  19307. </tr>
  19308. </thead>
  19309. <tbody>
  19310. <tr>
  19311. <td>title</td>
  19312. <td>string</td>
  19313. <td>true</td>
  19314. <td>none</td>
  19315. <td>the title of the swimlane</td>
  19316. </tr>
  19317. <tr>
  19318. <td>archived</td>
  19319. <td>boolean</td>
  19320. <td>true</td>
  19321. <td>none</td>
  19322. <td>is the swimlane archived?</td>
  19323. </tr>
  19324. <tr>
  19325. <td>archivedAt</td>
  19326. <td>string¦null</td>
  19327. <td>false</td>
  19328. <td>none</td>
  19329. <td>latest archiving date of the swimlane</td>
  19330. </tr>
  19331. <tr>
  19332. <td>boardId</td>
  19333. <td>string</td>
  19334. <td>true</td>
  19335. <td>none</td>
  19336. <td>the ID of the board the swimlane is attached to</td>
  19337. </tr>
  19338. <tr>
  19339. <td>createdAt</td>
  19340. <td>string</td>
  19341. <td>true</td>
  19342. <td>none</td>
  19343. <td>creation date of the swimlane</td>
  19344. </tr>
  19345. <tr>
  19346. <td>sort</td>
  19347. <td>number¦null</td>
  19348. <td>false</td>
  19349. <td>none</td>
  19350. <td>the sort value of the swimlane</td>
  19351. </tr>
  19352. <tr>
  19353. <td>color</td>
  19354. <td>string¦null</td>
  19355. <td>false</td>
  19356. <td>none</td>
  19357. <td>the color of the swimlane</td>
  19358. </tr>
  19359. <tr>
  19360. <td>updatedAt</td>
  19361. <td>string¦null</td>
  19362. <td>false</td>
  19363. <td>none</td>
  19364. <td>when was the swimlane last edited</td>
  19365. </tr>
  19366. <tr>
  19367. <td>modifiedAt</td>
  19368. <td>string</td>
  19369. <td>true</td>
  19370. <td>none</td>
  19371. <td>none</td>
  19372. </tr>
  19373. <tr>
  19374. <td>type</td>
  19375. <td>string</td>
  19376. <td>true</td>
  19377. <td>none</td>
  19378. <td>The type of swimlane</td>
  19379. </tr>
  19380. </tbody>
  19381. </table>
  19382. <h4 id="enumerated-values-6">Enumerated Values</h4>
  19383. <table>
  19384. <thead>
  19385. <tr>
  19386. <th>Property</th>
  19387. <th>Value</th>
  19388. </tr>
  19389. </thead>
  19390. <tbody>
  19391. <tr>
  19392. <td>color</td>
  19393. <td>white</td>
  19394. </tr>
  19395. <tr>
  19396. <td>color</td>
  19397. <td>green</td>
  19398. </tr>
  19399. <tr>
  19400. <td>color</td>
  19401. <td>yellow</td>
  19402. </tr>
  19403. <tr>
  19404. <td>color</td>
  19405. <td>orange</td>
  19406. </tr>
  19407. <tr>
  19408. <td>color</td>
  19409. <td>red</td>
  19410. </tr>
  19411. <tr>
  19412. <td>color</td>
  19413. <td>purple</td>
  19414. </tr>
  19415. <tr>
  19416. <td>color</td>
  19417. <td>blue</td>
  19418. </tr>
  19419. <tr>
  19420. <td>color</td>
  19421. <td>sky</td>
  19422. </tr>
  19423. <tr>
  19424. <td>color</td>
  19425. <td>lime</td>
  19426. </tr>
  19427. <tr>
  19428. <td>color</td>
  19429. <td>pink</td>
  19430. </tr>
  19431. <tr>
  19432. <td>color</td>
  19433. <td>black</td>
  19434. </tr>
  19435. <tr>
  19436. <td>color</td>
  19437. <td>silver</td>
  19438. </tr>
  19439. <tr>
  19440. <td>color</td>
  19441. <td>peachpuff</td>
  19442. </tr>
  19443. <tr>
  19444. <td>color</td>
  19445. <td>crimson</td>
  19446. </tr>
  19447. <tr>
  19448. <td>color</td>
  19449. <td>plum</td>
  19450. </tr>
  19451. <tr>
  19452. <td>color</td>
  19453. <td>darkgreen</td>
  19454. </tr>
  19455. <tr>
  19456. <td>color</td>
  19457. <td>slateblue</td>
  19458. </tr>
  19459. <tr>
  19460. <td>color</td>
  19461. <td>magenta</td>
  19462. </tr>
  19463. <tr>
  19464. <td>color</td>
  19465. <td>gold</td>
  19466. </tr>
  19467. <tr>
  19468. <td>color</td>
  19469. <td>navy</td>
  19470. </tr>
  19471. <tr>
  19472. <td>color</td>
  19473. <td>gray</td>
  19474. </tr>
  19475. <tr>
  19476. <td>color</td>
  19477. <td>saddlebrown</td>
  19478. </tr>
  19479. <tr>
  19480. <td>color</td>
  19481. <td>paleturquoise</td>
  19482. </tr>
  19483. <tr>
  19484. <td>color</td>
  19485. <td>mistyrose</td>
  19486. </tr>
  19487. <tr>
  19488. <td>color</td>
  19489. <td>indigo</td>
  19490. </tr>
  19491. </tbody>
  19492. </table>
  19493. <h2 id="tocs_users">Users</h2>
  19494. <p><a id="schemausers"></a>
  19495. <a id="schema_Users"></a>
  19496. <a id="tocSusers"></a>
  19497. <a id="tocsusers"></a></p>
  19498. <pre class="highlight tab tab-json"><code>{
  19499. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19500. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  19501. {
  19502. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19503. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19504. }
  19505. ],
  19506. <span class="hljs-attr">&quot;teams&quot;</span>: [
  19507. {
  19508. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19509. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19510. }
  19511. ],
  19512. <span class="hljs-attr">&quot;emails&quot;</span>: [
  19513. {
  19514. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19515. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19516. }
  19517. ],
  19518. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19519. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19520. <span class="hljs-attr">&quot;profile&quot;</span>: {
  19521. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19522. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  19523. <span class="hljs-string">&quot;string&quot;</span>
  19524. ],
  19525. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19526. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19527. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19528. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19529. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19530. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19531. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19532. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19533. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19534. <span class="hljs-string">&quot;string&quot;</span>
  19535. ],
  19536. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19537. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19538. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19539. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19540. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19541. {
  19542. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19543. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19544. }
  19545. ],
  19546. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  19547. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19548. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19549. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19550. <span class="hljs-string">&quot;string&quot;</span>
  19551. ],
  19552. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19553. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19554. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19555. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19556. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19557. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19558. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19559. },
  19560. <span class="hljs-attr">&quot;services&quot;</span>: {},
  19561. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19562. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  19563. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  19564. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  19565. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19566. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  19567. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19568. },
  19569. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  19570. <span class="hljs-string">&quot;string&quot;</span>
  19571. ],
  19572. <span class="hljs-attr">&quot;lastConnectionDate&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19573. }
  19574. </code></pre>
  19575. <p>A User in wekan</p>
  19576. <h3 id="properties-20">Properties</h3>
  19577. <table>
  19578. <thead>
  19579. <tr>
  19580. <th>Name</th>
  19581. <th>Type</th>
  19582. <th>Required</th>
  19583. <th>Restrictions</th>
  19584. <th>Description</th>
  19585. </tr>
  19586. </thead>
  19587. <tbody>
  19588. <tr>
  19589. <td>username</td>
  19590. <td>string¦null</td>
  19591. <td>false</td>
  19592. <td>none</td>
  19593. <td>the username of the user</td>
  19594. </tr>
  19595. <tr>
  19596. <td>orgs</td>
  19597. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  19598. <td>false</td>
  19599. <td>none</td>
  19600. <td>the list of organizations that a user belongs to</td>
  19601. </tr>
  19602. <tr>
  19603. <td>teams</td>
  19604. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  19605. <td>false</td>
  19606. <td>none</td>
  19607. <td>the list of teams that a user belongs to</td>
  19608. </tr>
  19609. <tr>
  19610. <td>emails</td>
  19611. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  19612. <td>false</td>
  19613. <td>none</td>
  19614. <td>the list of emails attached to a user</td>
  19615. </tr>
  19616. <tr>
  19617. <td>createdAt</td>
  19618. <td>string</td>
  19619. <td>true</td>
  19620. <td>none</td>
  19621. <td>creation date of the user</td>
  19622. </tr>
  19623. <tr>
  19624. <td>modifiedAt</td>
  19625. <td>string</td>
  19626. <td>true</td>
  19627. <td>none</td>
  19628. <td>none</td>
  19629. </tr>
  19630. <tr>
  19631. <td>profile</td>
  19632. <td><a href="#schemausersprofile">UsersProfile</a></td>
  19633. <td>false</td>
  19634. <td>none</td>
  19635. <td>none</td>
  19636. </tr>
  19637. <tr>
  19638. <td>services</td>
  19639. <td>object¦null</td>
  19640. <td>false</td>
  19641. <td>none</td>
  19642. <td>services field of the user</td>
  19643. </tr>
  19644. <tr>
  19645. <td>heartbeat</td>
  19646. <td>string¦null</td>
  19647. <td>false</td>
  19648. <td>none</td>
  19649. <td>last time the user has been seen</td>
  19650. </tr>
  19651. <tr>
  19652. <td>isAdmin</td>
  19653. <td>boolean¦null</td>
  19654. <td>false</td>
  19655. <td>none</td>
  19656. <td>is the user an admin of the board?</td>
  19657. </tr>
  19658. <tr>
  19659. <td>createdThroughApi</td>
  19660. <td>boolean¦null</td>
  19661. <td>false</td>
  19662. <td>none</td>
  19663. <td>was the user created through the API?</td>
  19664. </tr>
  19665. <tr>
  19666. <td>loginDisabled</td>
  19667. <td>boolean¦null</td>
  19668. <td>false</td>
  19669. <td>none</td>
  19670. <td>loginDisabled field of the user</td>
  19671. </tr>
  19672. <tr>
  19673. <td>authenticationMethod</td>
  19674. <td>string</td>
  19675. <td>true</td>
  19676. <td>none</td>
  19677. <td>authentication method of the user</td>
  19678. </tr>
  19679. <tr>
  19680. <td>sessionData</td>
  19681. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  19682. <td>false</td>
  19683. <td>none</td>
  19684. <td>none</td>
  19685. </tr>
  19686. <tr>
  19687. <td>importUsernames</td>
  19688. <td>[string]¦null</td>
  19689. <td>false</td>
  19690. <td>none</td>
  19691. <td>username for imported</td>
  19692. </tr>
  19693. <tr>
  19694. <td>lastConnectionDate</td>
  19695. <td>string¦null</td>
  19696. <td>false</td>
  19697. <td>none</td>
  19698. <td>none</td>
  19699. </tr>
  19700. </tbody>
  19701. </table>
  19702. <h2 id="tocs_usersprofile">UsersProfile</h2>
  19703. <p><a id="schemausersprofile"></a>
  19704. <a id="schema_UsersProfile"></a>
  19705. <a id="tocSusersprofile"></a>
  19706. <a id="tocsusersprofile"></a></p>
  19707. <pre class="highlight tab tab-json"><code>{
  19708. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19709. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  19710. <span class="hljs-string">&quot;string&quot;</span>
  19711. ],
  19712. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19713. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19714. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19715. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19716. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19717. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19718. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19719. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19720. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19721. <span class="hljs-string">&quot;string&quot;</span>
  19722. ],
  19723. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19724. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19725. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19726. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19727. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19728. {
  19729. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19730. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19731. }
  19732. ],
  19733. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  19734. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19735. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19736. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19737. <span class="hljs-string">&quot;string&quot;</span>
  19738. ],
  19739. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19740. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19741. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19742. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19743. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19744. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19745. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19746. }
  19747. </code></pre>
  19748. <h3 id="properties-21">Properties</h3>
  19749. <table>
  19750. <thead>
  19751. <tr>
  19752. <th>Name</th>
  19753. <th>Type</th>
  19754. <th>Required</th>
  19755. <th>Restrictions</th>
  19756. <th>Description</th>
  19757. </tr>
  19758. </thead>
  19759. <tbody>
  19760. <tr>
  19761. <td>avatarUrl</td>
  19762. <td>string</td>
  19763. <td>false</td>
  19764. <td>none</td>
  19765. <td>URL of the avatar of the user</td>
  19766. </tr>
  19767. <tr>
  19768. <td>emailBuffer</td>
  19769. <td>[string]</td>
  19770. <td>false</td>
  19771. <td>none</td>
  19772. <td>list of email buffers of the user</td>
  19773. </tr>
  19774. <tr>
  19775. <td>fullname</td>
  19776. <td>string</td>
  19777. <td>false</td>
  19778. <td>none</td>
  19779. <td>full name of the user</td>
  19780. </tr>
  19781. <tr>
  19782. <td>showDesktopDragHandles</td>
  19783. <td>boolean</td>
  19784. <td>false</td>
  19785. <td>none</td>
  19786. <td>does the user want to show desktop drag handles?</td>
  19787. </tr>
  19788. <tr>
  19789. <td>hideCheckedItems</td>
  19790. <td>boolean</td>
  19791. <td>false</td>
  19792. <td>none</td>
  19793. <td>does the user want to hide checked checklist items?</td>
  19794. </tr>
  19795. <tr>
  19796. <td>cardMaximized</td>
  19797. <td>boolean</td>
  19798. <td>false</td>
  19799. <td>none</td>
  19800. <td>has user clicked maximize card?</td>
  19801. </tr>
  19802. <tr>
  19803. <td>customFieldsGrid</td>
  19804. <td>boolean</td>
  19805. <td>false</td>
  19806. <td>none</td>
  19807. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  19808. </tr>
  19809. <tr>
  19810. <td>hiddenSystemMessages</td>
  19811. <td>boolean</td>
  19812. <td>false</td>
  19813. <td>none</td>
  19814. <td>does the user want to hide system messages?</td>
  19815. </tr>
  19816. <tr>
  19817. <td>hiddenMinicardLabelText</td>
  19818. <td>boolean</td>
  19819. <td>false</td>
  19820. <td>none</td>
  19821. <td>does the user want to hide minicard label texts?</td>
  19822. </tr>
  19823. <tr>
  19824. <td>initials</td>
  19825. <td>string</td>
  19826. <td>false</td>
  19827. <td>none</td>
  19828. <td>initials of the user</td>
  19829. </tr>
  19830. <tr>
  19831. <td>invitedBoards</td>
  19832. <td>[string]</td>
  19833. <td>false</td>
  19834. <td>none</td>
  19835. <td>board IDs the user has been invited to</td>
  19836. </tr>
  19837. <tr>
  19838. <td>language</td>
  19839. <td>string</td>
  19840. <td>false</td>
  19841. <td>none</td>
  19842. <td>language of the user</td>
  19843. </tr>
  19844. <tr>
  19845. <td>moveAndCopyDialog</td>
  19846. <td>object</td>
  19847. <td>false</td>
  19848. <td>none</td>
  19849. <td>move and copy card dialog</td>
  19850. </tr>
  19851. <tr>
  19852. <td>moveChecklistDialog</td>
  19853. <td>object</td>
  19854. <td>false</td>
  19855. <td>none</td>
  19856. <td>move checklist dialog</td>
  19857. </tr>
  19858. <tr>
  19859. <td>copyChecklistDialog</td>
  19860. <td>object</td>
  19861. <td>false</td>
  19862. <td>none</td>
  19863. <td>copy checklist dialog</td>
  19864. </tr>
  19865. <tr>
  19866. <td>notifications</td>
  19867. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19868. <td>false</td>
  19869. <td>none</td>
  19870. <td>enabled notifications for the user</td>
  19871. </tr>
  19872. <tr>
  19873. <td>rescueCardDescription</td>
  19874. <td>boolean</td>
  19875. <td>false</td>
  19876. <td>none</td>
  19877. <td>show dialog for saving card description on unintentional card closing</td>
  19878. </tr>
  19879. <tr>
  19880. <td>showCardsCountAt</td>
  19881. <td>number</td>
  19882. <td>false</td>
  19883. <td>none</td>
  19884. <td>showCardCountAt field of the user</td>
  19885. </tr>
  19886. <tr>
  19887. <td>startDayOfWeek</td>
  19888. <td>number</td>
  19889. <td>false</td>
  19890. <td>none</td>
  19891. <td>startDayOfWeek field of the user</td>
  19892. </tr>
  19893. <tr>
  19894. <td>starredBoards</td>
  19895. <td>[string]</td>
  19896. <td>false</td>
  19897. <td>none</td>
  19898. <td>list of starred board IDs</td>
  19899. </tr>
  19900. <tr>
  19901. <td>icode</td>
  19902. <td>string</td>
  19903. <td>false</td>
  19904. <td>none</td>
  19905. <td>icode</td>
  19906. </tr>
  19907. <tr>
  19908. <td>boardView</td>
  19909. <td>string</td>
  19910. <td>false</td>
  19911. <td>none</td>
  19912. <td>boardView field of the user</td>
  19913. </tr>
  19914. <tr>
  19915. <td>listSortBy</td>
  19916. <td>string</td>
  19917. <td>false</td>
  19918. <td>none</td>
  19919. <td>default sort list for user</td>
  19920. </tr>
  19921. <tr>
  19922. <td>templatesBoardId</td>
  19923. <td>string</td>
  19924. <td>true</td>
  19925. <td>none</td>
  19926. <td>Reference to the templates board</td>
  19927. </tr>
  19928. <tr>
  19929. <td>cardTemplatesSwimlaneId</td>
  19930. <td>string</td>
  19931. <td>true</td>
  19932. <td>none</td>
  19933. <td>Reference to the card templates swimlane Id</td>
  19934. </tr>
  19935. <tr>
  19936. <td>listTemplatesSwimlaneId</td>
  19937. <td>string</td>
  19938. <td>true</td>
  19939. <td>none</td>
  19940. <td>Reference to the list templates swimlane Id</td>
  19941. </tr>
  19942. <tr>
  19943. <td>boardTemplatesSwimlaneId</td>
  19944. <td>string</td>
  19945. <td>true</td>
  19946. <td>none</td>
  19947. <td>Reference to the board templates swimlane Id</td>
  19948. </tr>
  19949. </tbody>
  19950. </table>
  19951. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19952. <table>
  19953. <thead>
  19954. <tr>
  19955. <th>Property</th>
  19956. <th>Value</th>
  19957. </tr>
  19958. </thead>
  19959. <tbody>
  19960. <tr>
  19961. <td>boardView</td>
  19962. <td>board-view-swimlanes</td>
  19963. </tr>
  19964. <tr>
  19965. <td>boardView</td>
  19966. <td>board-view-lists</td>
  19967. </tr>
  19968. <tr>
  19969. <td>boardView</td>
  19970. <td>board-view-cal</td>
  19971. </tr>
  19972. <tr>
  19973. <td>listSortBy</td>
  19974. <td>-modifiedat</td>
  19975. </tr>
  19976. <tr>
  19977. <td>listSortBy</td>
  19978. <td>modifiedat</td>
  19979. </tr>
  19980. <tr>
  19981. <td>listSortBy</td>
  19982. <td>-title</td>
  19983. </tr>
  19984. <tr>
  19985. <td>listSortBy</td>
  19986. <td>title</td>
  19987. </tr>
  19988. <tr>
  19989. <td>listSortBy</td>
  19990. <td>-sort</td>
  19991. </tr>
  19992. <tr>
  19993. <td>listSortBy</td>
  19994. <td>sort</td>
  19995. </tr>
  19996. </tbody>
  19997. </table>
  19998. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19999. <p><a id="schemauserssessiondata"></a>
  20000. <a id="schema_UsersSessiondata"></a>
  20001. <a id="tocSuserssessiondata"></a>
  20002. <a id="tocsuserssessiondata"></a></p>
  20003. <pre class="highlight tab tab-json"><code>{
  20004. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  20005. }
  20006. </code></pre>
  20007. <h3 id="properties-22">Properties</h3>
  20008. <table>
  20009. <thead>
  20010. <tr>
  20011. <th>Name</th>
  20012. <th>Type</th>
  20013. <th>Required</th>
  20014. <th>Restrictions</th>
  20015. <th>Description</th>
  20016. </tr>
  20017. </thead>
  20018. <tbody>
  20019. <tr>
  20020. <td>totalHits</td>
  20021. <td>number</td>
  20022. <td>false</td>
  20023. <td>none</td>
  20024. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  20025. </tr>
  20026. </tbody>
  20027. </table>
  20028. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  20029. <p><a id="schemausersorgs"></a>
  20030. <a id="schema_UsersOrgs"></a>
  20031. <a id="tocSusersorgs"></a>
  20032. <a id="tocsusersorgs"></a></p>
  20033. <pre class="highlight tab tab-json"><code>{
  20034. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20035. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20036. }
  20037. </code></pre>
  20038. <h3 id="properties-23">Properties</h3>
  20039. <table>
  20040. <thead>
  20041. <tr>
  20042. <th>Name</th>
  20043. <th>Type</th>
  20044. <th>Required</th>
  20045. <th>Restrictions</th>
  20046. <th>Description</th>
  20047. </tr>
  20048. </thead>
  20049. <tbody>
  20050. <tr>
  20051. <td>orgId</td>
  20052. <td>string</td>
  20053. <td>true</td>
  20054. <td>none</td>
  20055. <td>The uniq ID of the organization</td>
  20056. </tr>
  20057. <tr>
  20058. <td>orgDisplayName</td>
  20059. <td>string</td>
  20060. <td>true</td>
  20061. <td>none</td>
  20062. <td>The display name of the organization</td>
  20063. </tr>
  20064. </tbody>
  20065. </table>
  20066. <h2 id="tocs_usersteams">UsersTeams</h2>
  20067. <p><a id="schemausersteams"></a>
  20068. <a id="schema_UsersTeams"></a>
  20069. <a id="tocSusersteams"></a>
  20070. <a id="tocsusersteams"></a></p>
  20071. <pre class="highlight tab tab-json"><code>{
  20072. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20073. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20074. }
  20075. </code></pre>
  20076. <h3 id="properties-24">Properties</h3>
  20077. <table>
  20078. <thead>
  20079. <tr>
  20080. <th>Name</th>
  20081. <th>Type</th>
  20082. <th>Required</th>
  20083. <th>Restrictions</th>
  20084. <th>Description</th>
  20085. </tr>
  20086. </thead>
  20087. <tbody>
  20088. <tr>
  20089. <td>teamId</td>
  20090. <td>string</td>
  20091. <td>true</td>
  20092. <td>none</td>
  20093. <td>The uniq ID of the team</td>
  20094. </tr>
  20095. <tr>
  20096. <td>teamDisplayName</td>
  20097. <td>string</td>
  20098. <td>true</td>
  20099. <td>none</td>
  20100. <td>The display name of the team</td>
  20101. </tr>
  20102. </tbody>
  20103. </table>
  20104. <h2 id="tocs_usersemails">UsersEmails</h2>
  20105. <p><a id="schemausersemails"></a>
  20106. <a id="schema_UsersEmails"></a>
  20107. <a id="tocSusersemails"></a>
  20108. <a id="tocsusersemails"></a></p>
  20109. <pre class="highlight tab tab-json"><code>{
  20110. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20111. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  20112. }
  20113. </code></pre>
  20114. <h3 id="properties-25">Properties</h3>
  20115. <table>
  20116. <thead>
  20117. <tr>
  20118. <th>Name</th>
  20119. <th>Type</th>
  20120. <th>Required</th>
  20121. <th>Restrictions</th>
  20122. <th>Description</th>
  20123. </tr>
  20124. </thead>
  20125. <tbody>
  20126. <tr>
  20127. <td>address</td>
  20128. <td>string</td>
  20129. <td>true</td>
  20130. <td>none</td>
  20131. <td>The email address</td>
  20132. </tr>
  20133. <tr>
  20134. <td>verified</td>
  20135. <td>boolean</td>
  20136. <td>true</td>
  20137. <td>none</td>
  20138. <td>Has the email been verified</td>
  20139. </tr>
  20140. </tbody>
  20141. </table>
  20142. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  20143. <p><a id="schemausersprofilemoveandcopydialog"></a>
  20144. <a id="schema_UsersProfileMoveandcopydialog"></a>
  20145. <a id="tocSusersprofilemoveandcopydialog"></a>
  20146. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  20147. <pre class="highlight tab tab-json"><code>{
  20148. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20149. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20150. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20151. }
  20152. </code></pre>
  20153. <h3 id="properties-26">Properties</h3>
  20154. <table>
  20155. <thead>
  20156. <tr>
  20157. <th>Name</th>
  20158. <th>Type</th>
  20159. <th>Required</th>
  20160. <th>Restrictions</th>
  20161. <th>Description</th>
  20162. </tr>
  20163. </thead>
  20164. <tbody>
  20165. <tr>
  20166. <td>boardId</td>
  20167. <td>string</td>
  20168. <td>true</td>
  20169. <td>none</td>
  20170. <td>last selected board id</td>
  20171. </tr>
  20172. <tr>
  20173. <td>swimlaneId</td>
  20174. <td>string</td>
  20175. <td>true</td>
  20176. <td>none</td>
  20177. <td>last selected swimlane id</td>
  20178. </tr>
  20179. <tr>
  20180. <td>listId</td>
  20181. <td>string</td>
  20182. <td>true</td>
  20183. <td>none</td>
  20184. <td>last selected list id</td>
  20185. </tr>
  20186. </tbody>
  20187. </table>
  20188. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  20189. <p><a id="schemausersprofilemovechecklistdialog"></a>
  20190. <a id="schema_UsersProfileMovechecklistdialog"></a>
  20191. <a id="tocSusersprofilemovechecklistdialog"></a>
  20192. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  20193. <pre class="highlight tab tab-json"><code>{
  20194. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20195. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20196. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20197. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20198. }
  20199. </code></pre>
  20200. <h3 id="properties-27">Properties</h3>
  20201. <table>
  20202. <thead>
  20203. <tr>
  20204. <th>Name</th>
  20205. <th>Type</th>
  20206. <th>Required</th>
  20207. <th>Restrictions</th>
  20208. <th>Description</th>
  20209. </tr>
  20210. </thead>
  20211. <tbody>
  20212. <tr>
  20213. <td>boardId</td>
  20214. <td>string</td>
  20215. <td>true</td>
  20216. <td>none</td>
  20217. <td>last selected board id</td>
  20218. </tr>
  20219. <tr>
  20220. <td>swimlaneId</td>
  20221. <td>string</td>
  20222. <td>true</td>
  20223. <td>none</td>
  20224. <td>last selected swimlane id</td>
  20225. </tr>
  20226. <tr>
  20227. <td>listId</td>
  20228. <td>string</td>
  20229. <td>true</td>
  20230. <td>none</td>
  20231. <td>last selected list id</td>
  20232. </tr>
  20233. <tr>
  20234. <td>cardId</td>
  20235. <td>string</td>
  20236. <td>true</td>
  20237. <td>none</td>
  20238. <td>last selected card id</td>
  20239. </tr>
  20240. </tbody>
  20241. </table>
  20242. <h2 id="tocs_usersprofilecopychecklistdialog">UsersProfileCopychecklistdialog</h2>
  20243. <p><a id="schemausersprofilecopychecklistdialog"></a>
  20244. <a id="schema_UsersProfileCopychecklistdialog"></a>
  20245. <a id="tocSusersprofilecopychecklistdialog"></a>
  20246. <a id="tocsusersprofilecopychecklistdialog"></a></p>
  20247. <pre class="highlight tab tab-json"><code>{
  20248. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20249. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20250. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20251. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20252. }
  20253. </code></pre>
  20254. <h3 id="properties-28">Properties</h3>
  20255. <table>
  20256. <thead>
  20257. <tr>
  20258. <th>Name</th>
  20259. <th>Type</th>
  20260. <th>Required</th>
  20261. <th>Restrictions</th>
  20262. <th>Description</th>
  20263. </tr>
  20264. </thead>
  20265. <tbody>
  20266. <tr>
  20267. <td>boardId</td>
  20268. <td>string</td>
  20269. <td>true</td>
  20270. <td>none</td>
  20271. <td>last selected board id</td>
  20272. </tr>
  20273. <tr>
  20274. <td>swimlaneId</td>
  20275. <td>string</td>
  20276. <td>true</td>
  20277. <td>none</td>
  20278. <td>last selected swimlane id</td>
  20279. </tr>
  20280. <tr>
  20281. <td>listId</td>
  20282. <td>string</td>
  20283. <td>true</td>
  20284. <td>none</td>
  20285. <td>last selected list id</td>
  20286. </tr>
  20287. <tr>
  20288. <td>cardId</td>
  20289. <td>string</td>
  20290. <td>true</td>
  20291. <td>none</td>
  20292. <td>last selected card id</td>
  20293. </tr>
  20294. </tbody>
  20295. </table>
  20296. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  20297. <p><a id="schemausersprofilenotifications"></a>
  20298. <a id="schema_UsersProfileNotifications"></a>
  20299. <a id="tocSusersprofilenotifications"></a>
  20300. <a id="tocsusersprofilenotifications"></a></p>
  20301. <pre class="highlight tab tab-json"><code>{
  20302. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20303. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20304. }
  20305. </code></pre>
  20306. <h3 id="properties-29">Properties</h3>
  20307. <table>
  20308. <thead>
  20309. <tr>
  20310. <th>Name</th>
  20311. <th>Type</th>
  20312. <th>Required</th>
  20313. <th>Restrictions</th>
  20314. <th>Description</th>
  20315. </tr>
  20316. </thead>
  20317. <tbody>
  20318. <tr>
  20319. <td>activity</td>
  20320. <td>string</td>
  20321. <td>true</td>
  20322. <td>none</td>
  20323. <td>The id of the activity this notification references</td>
  20324. </tr>
  20325. <tr>
  20326. <td>read</td>
  20327. <td>string</td>
  20328. <td>false</td>
  20329. <td>none</td>
  20330. <td>the date on which this notification was read</td>
  20331. </tr>
  20332. </tbody>
  20333. </table>
  20334. <!-- Renderer: Shins v2.6.0 -->
  20335. <!-- Generator: Widdershins v4.0.1 -->
  20336. <!-- backwards compatibility -->
  20337. <!-- backwards compatibility -->
  20338. <!-- backwards compatibility -->
  20339. <!-- backwards compatibility -->
  20340. <!-- backwards compatibility -->
  20341. <!-- backwards compatibility -->
  20342. <!-- backwards compatibility -->
  20343. <!-- backwards compatibility -->
  20344. <!-- backwards compatibility -->
  20345. <!-- backwards compatibility -->
  20346. <!-- backwards compatibility -->
  20347. <!-- backwards compatibility -->
  20348. <!-- backwards compatibility -->
  20349. <!-- backwards compatibility -->
  20350. <!-- backwards compatibility -->
  20351. <!-- backwards compatibility -->
  20352. <!-- backwards compatibility -->
  20353. <!-- backwards compatibility -->
  20354. <!-- backwards compatibility -->
  20355. <!-- backwards compatibility -->
  20356. <!-- backwards compatibility -->
  20357. <!-- backwards compatibility -->
  20358. <!-- backwards compatibility -->
  20359. <!-- backwards compatibility -->
  20360. <!-- backwards compatibility -->
  20361. <!-- backwards compatibility -->
  20362. <!-- backwards compatibility -->
  20363. <!-- backwards compatibility -->
  20364. <!-- backwards compatibility -->
  20365. </div>
  20366. <div class="dark-box">
  20367. <div class="lang-selector">
  20368. <a href="#" data-language-name="shell">Shell</a>
  20369. <a href="#" data-language-name="http">HTTP</a>
  20370. <a href="#" data-language-name="javascript">JavaScript</a>
  20371. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  20372. <a href="#" data-language-name="ruby">Ruby</a>
  20373. <a href="#" data-language-name="python">Python</a>
  20374. <a href="#" data-language-name="java">Java</a>
  20375. <a href="#" data-language-name="go">Go</a>
  20376. <a href="#" data-language-name="php">PHP</a>
  20377. </div>
  20378. </div>
  20379. </div>
  20380. </body>
  20381. </html>