wekan.html 918 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API v5.55</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. </head>
  1347. <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;]">
  1348. <a href="#" id="nav-button">
  1349. <span>
  1350. NAV
  1351. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1352. </span>
  1353. </a>
  1354. <div class="toc-wrapper">
  1355. <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">
  1356. <div class="lang-selector">
  1357. <a href="#" data-language-name="shell">Shell</a>
  1358. <a href="#" data-language-name="http">HTTP</a>
  1359. <a href="#" data-language-name="javascript">JavaScript</a>
  1360. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1361. <a href="#" data-language-name="ruby">Ruby</a>
  1362. <a href="#" data-language-name="python">Python</a>
  1363. <a href="#" data-language-name="java">Java</a>
  1364. <a href="#" data-language-name="go">Go</a>
  1365. <a href="#" data-language-name="php">PHP</a>
  1366. </div>
  1367. <div class="search">
  1368. <input type="text" class="search" id="input-search" placeholder="Search">
  1369. </div>
  1370. <ul class="search-results"></ul>
  1371. <div id="toc" class="toc-list-h1">
  1372. <ul class="toc-list-h1">
  1373. <li>
  1374. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v5.55">Wekan REST API v5.55</a>
  1375. </li>
  1376. <li>
  1377. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1378. </li>
  1379. <li>
  1380. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1381. </li>
  1382. <li>
  1383. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1384. <ul class="toc-list-h2">
  1385. <li>
  1386. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1387. </li>
  1388. <li>
  1389. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1390. </li>
  1391. </ul>
  1392. </li>
  1393. <li>
  1394. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1395. <ul class="toc-list-h2">
  1396. <li>
  1397. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1398. </li>
  1399. <li>
  1400. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1401. </li>
  1402. <li>
  1403. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1404. </li>
  1405. <li>
  1406. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1407. </li>
  1408. <li>
  1409. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1410. </li>
  1411. <li>
  1412. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1413. </li>
  1414. <li>
  1415. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1416. </li>
  1417. <li>
  1418. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1419. </li>
  1420. <li>
  1421. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1422. </li>
  1423. <li>
  1424. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1425. </li>
  1426. </ul>
  1427. </li>
  1428. <li>
  1429. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1430. <ul class="toc-list-h2">
  1431. <li>
  1432. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1433. </li>
  1434. <li>
  1435. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1436. </li>
  1437. <li>
  1438. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1439. </li>
  1440. <li>
  1441. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1442. </li>
  1443. </ul>
  1444. </li>
  1445. <li>
  1446. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1447. <ul class="toc-list-h2">
  1448. <li>
  1449. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1450. </li>
  1451. <li>
  1452. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1453. </li>
  1454. <li>
  1455. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1456. </li>
  1457. </ul>
  1458. </li>
  1459. <li>
  1460. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1461. <ul class="toc-list-h2">
  1462. <li>
  1463. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1464. </li>
  1465. <li>
  1466. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1467. </li>
  1468. <li>
  1469. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1470. </li>
  1471. <li>
  1472. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1473. </li>
  1474. </ul>
  1475. </li>
  1476. <li>
  1477. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1478. <ul class="toc-list-h2">
  1479. <li>
  1480. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1481. </li>
  1482. <li>
  1483. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1484. </li>
  1485. <li>
  1486. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1487. </li>
  1488. <li>
  1489. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1490. </li>
  1491. <li>
  1492. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1493. </li>
  1494. <li>
  1495. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1499. </li>
  1500. </ul>
  1501. </li>
  1502. <li>
  1503. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1504. <ul class="toc-list-h2">
  1505. <li>
  1506. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1507. </li>
  1508. <li>
  1509. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1510. </li>
  1511. <li>
  1512. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1513. </li>
  1514. <li>
  1515. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1516. </li>
  1517. <li>
  1518. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1519. </li>
  1520. <li>
  1521. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1522. </li>
  1523. <li>
  1524. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1525. </li>
  1526. <li>
  1527. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1528. </li>
  1529. </ul>
  1530. </li>
  1531. <li>
  1532. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1533. <ul class="toc-list-h2">
  1534. <li>
  1535. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1536. </li>
  1537. <li>
  1538. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1539. </li>
  1540. <li>
  1541. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1542. </li>
  1543. <li>
  1544. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1545. </li>
  1546. <li>
  1547. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1548. </li>
  1549. <li>
  1550. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1551. </li>
  1552. <li>
  1553. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1554. </li>
  1555. </ul>
  1556. </li>
  1557. <li>
  1558. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1559. <ul class="toc-list-h2">
  1560. <li>
  1561. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1562. </li>
  1563. <li>
  1564. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1565. </li>
  1566. <li>
  1567. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1568. </li>
  1569. <li>
  1570. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1571. </li>
  1572. </ul>
  1573. </li>
  1574. <li>
  1575. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1576. <ul class="toc-list-h2">
  1577. <li>
  1578. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1579. </li>
  1580. <li>
  1581. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1582. </li>
  1583. <li>
  1584. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1585. </li>
  1586. <li>
  1587. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1588. </li>
  1589. <li>
  1590. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1591. </li>
  1592. <li>
  1593. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1594. </li>
  1595. <li>
  1596. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1597. </li>
  1598. <li>
  1599. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1600. </li>
  1601. <li>
  1602. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1603. </li>
  1604. </ul>
  1605. </li>
  1606. <li>
  1607. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1608. <ul class="toc-list-h2">
  1609. <li>
  1610. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1611. </li>
  1612. <li>
  1613. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1614. </li>
  1615. <li>
  1616. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1617. </li>
  1618. <li>
  1619. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1620. </li>
  1621. </ul>
  1622. </li>
  1623. <li>
  1624. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1625. <ul class="toc-list-h2">
  1626. <li>
  1627. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1628. </li>
  1629. <li>
  1630. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1703. </li>
  1704. </ul>
  1705. </li>
  1706. </ul>
  1707. </div>
  1708. <ul class="toc-footer">
  1709. </ul>
  1710. </div>
  1711. <div class="page-wrapper">
  1712. <div class="dark-box"></div>
  1713. <div class="content">
  1714. <h1 id="wekan-rest-api">Wekan REST API v5.55</h1>
  1715. <blockquote>
  1716. <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>
  1717. </blockquote>
  1718. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1719. <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>
  1720. <blockquote>
  1721. <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>
  1722. </blockquote>
  1723. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1724. <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>
  1725. <ul>
  1726. <li>Only call via HTTPS</li>
  1727. <li>Implement a timed authorization token expiration strategy</li>
  1728. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1729. </ul>
  1730. <h1 id="authentication">Authentication</h1>
  1731. <ul>
  1732. <li>API Key (UserSecurity)
  1733. <ul>
  1734. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1735. </ul>
  1736. </li>
  1737. </ul>
  1738. <h1 id="wekan-rest-api-login">Login</h1>
  1739. <h2 id="login">login</h2>
  1740. <p><a id="opIdlogin"></a></p>
  1741. <blockquote>
  1742. <p>Code samples</p>
  1743. </blockquote>
  1744. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1745. curl -X POST /users/login \
  1746. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1747. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1748. </code></pre>
  1749. <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>
  1750. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1751. <span class="hljs-keyword">Accept</span>: */*
  1752. </span></code></pre>
  1753. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1754. &quot;username&quot;: &quot;string&quot;,
  1755. &quot;password&quot;: &quot;pa$$word&quot;
  1756. }&#x27;</span>;
  1757. <span class="hljs-keyword">const</span> headers = {
  1758. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1759. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1760. };
  1761. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1762. {
  1763. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1764. <span class="hljs-attr">body</span>: inputBody,
  1765. <span class="hljs-attr">headers</span>: headers
  1766. })
  1767. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1768. <span class="hljs-keyword">return</span> res.json();
  1769. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1770. <span class="hljs-built_in">console</span>.log(body);
  1771. });
  1772. </code></pre>
  1773. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  1774. <span class="hljs-keyword">const</span> inputBody = {
  1775. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1776. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1777. };
  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>: <span class="hljs-built_in">JSON</span>.stringify(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-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1795. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1796. headers = {
  1797. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1798. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1799. }
  1800. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1801. <span class="hljs-symbol">params:</span> {
  1802. }, <span class="hljs-symbol">headers:</span> headers
  1803. p JSON.parse(result)
  1804. </code></pre>
  1805. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1806. headers = {
  1807. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1808. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1809. }
  1810. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1811. <span class="hljs-built_in">print</span>(r.json())
  1812. </code></pre>
  1813. <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>);
  1814. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1815. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1816. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1817. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1818. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1819. String inputLine;
  1820. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1821. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1822. response.append(inputLine);
  1823. }
  1824. in.close();
  1825. System.out.println(response.toString());
  1826. </code></pre>
  1827. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1828. <span class="hljs-keyword">import</span> (
  1829. <span class="hljs-string">&quot;bytes&quot;</span>
  1830. <span class="hljs-string">&quot;net/http&quot;</span>
  1831. )
  1832. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1833. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1834. <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>},
  1835. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1836. }
  1837. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1838. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1839. req.Header = headers
  1840. client := &amp;http.Client{}
  1841. resp, err := client.Do(req)
  1842. <span class="hljs-comment">// ...</span>
  1843. }
  1844. </code></pre>
  1845. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1846. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1847. );
  1848. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1849. <span class="hljs-comment">// Define array of request body.</span>
  1850. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1851. <span class="hljs-keyword">try</span> {
  1852. <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>(
  1853. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1854. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1855. )
  1856. );
  1857. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1858. }
  1859. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1860. <span class="hljs-comment">// handle exception or api errors.</span>
  1861. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1862. }
  1863. <span class="hljs-comment">// ...</span>
  1864. </code></pre>
  1865. <p><code>POST /users/login</code></p>
  1866. <p><em>Login with REST API</em></p>
  1867. <blockquote>
  1868. <p>Body parameter</p>
  1869. </blockquote>
  1870. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1871. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1872. </code></pre>
  1873. <h3 id="login-parameters">Parameters</h3>
  1874. <table>
  1875. <thead>
  1876. <tr>
  1877. <th>Name</th>
  1878. <th>In</th>
  1879. <th>Type</th>
  1880. <th>Required</th>
  1881. <th>Description</th>
  1882. </tr>
  1883. </thead>
  1884. <tbody>
  1885. <tr>
  1886. <td>body</td>
  1887. <td>body</td>
  1888. <td>object</td>
  1889. <td>true</td>
  1890. <td>none</td>
  1891. </tr>
  1892. <tr>
  1893. <td>» username</td>
  1894. <td>body</td>
  1895. <td>string</td>
  1896. <td>true</td>
  1897. <td>Your username</td>
  1898. </tr>
  1899. <tr>
  1900. <td>» password</td>
  1901. <td>body</td>
  1902. <td>string(password)</td>
  1903. <td>true</td>
  1904. <td>Your password</td>
  1905. </tr>
  1906. </tbody>
  1907. </table>
  1908. <blockquote>
  1909. <p>Example responses</p>
  1910. </blockquote>
  1911. <blockquote>
  1912. <p>200 Response</p>
  1913. </blockquote>
  1914. <h3 id="login-responses">Responses</h3>
  1915. <table>
  1916. <thead>
  1917. <tr>
  1918. <th>Status</th>
  1919. <th>Meaning</th>
  1920. <th>Description</th>
  1921. <th>Schema</th>
  1922. </tr>
  1923. </thead>
  1924. <tbody>
  1925. <tr>
  1926. <td>200</td>
  1927. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1928. <td>Successful authentication</td>
  1929. <td>Inline</td>
  1930. </tr>
  1931. <tr>
  1932. <td>400</td>
  1933. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1934. <td>Error in authentication</td>
  1935. <td>Inline</td>
  1936. </tr>
  1937. <tr>
  1938. <td>default</td>
  1939. <td>Default</td>
  1940. <td>Error in authentication</td>
  1941. <td>None</td>
  1942. </tr>
  1943. </tbody>
  1944. </table>
  1945. <h3 id="login-responseschema">Response Schema</h3>
  1946. <p>Status Code <strong>200</strong></p>
  1947. <table>
  1948. <thead>
  1949. <tr>
  1950. <th>Name</th>
  1951. <th>Type</th>
  1952. <th>Required</th>
  1953. <th>Restrictions</th>
  1954. <th>Description</th>
  1955. </tr>
  1956. </thead>
  1957. <tbody>
  1958. <tr>
  1959. <td>» id</td>
  1960. <td>string</td>
  1961. <td>false</td>
  1962. <td>none</td>
  1963. <td>none</td>
  1964. </tr>
  1965. <tr>
  1966. <td>» token</td>
  1967. <td>string</td>
  1968. <td>false</td>
  1969. <td>none</td>
  1970. <td>none</td>
  1971. </tr>
  1972. <tr>
  1973. <td>» tokenExpires</td>
  1974. <td>string</td>
  1975. <td>false</td>
  1976. <td>none</td>
  1977. <td>none</td>
  1978. </tr>
  1979. </tbody>
  1980. </table>
  1981. <p>Status Code <strong>400</strong></p>
  1982. <table>
  1983. <thead>
  1984. <tr>
  1985. <th>Name</th>
  1986. <th>Type</th>
  1987. <th>Required</th>
  1988. <th>Restrictions</th>
  1989. <th>Description</th>
  1990. </tr>
  1991. </thead>
  1992. <tbody>
  1993. <tr>
  1994. <td>» error</td>
  1995. <td>number</td>
  1996. <td>false</td>
  1997. <td>none</td>
  1998. <td>none</td>
  1999. </tr>
  2000. <tr>
  2001. <td>» reason</td>
  2002. <td>string</td>
  2003. <td>false</td>
  2004. <td>none</td>
  2005. <td>none</td>
  2006. </tr>
  2007. </tbody>
  2008. </table>
  2009. <aside class="success">
  2010. This operation does not require authentication
  2011. </aside>
  2012. <h2 id="register">register</h2>
  2013. <p><a id="opIdregister"></a></p>
  2014. <blockquote>
  2015. <p>Code samples</p>
  2016. </blockquote>
  2017. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2018. curl -X POST /users/register \
  2019. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2020. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2021. </code></pre>
  2022. <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>
  2023. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2024. <span class="hljs-keyword">Accept</span>: */*
  2025. </span></code></pre>
  2026. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2027. &quot;username&quot;: &quot;string&quot;,
  2028. &quot;password&quot;: &quot;pa$$word&quot;,
  2029. &quot;email&quot;: &quot;string&quot;
  2030. }&#x27;</span>;
  2031. <span class="hljs-keyword">const</span> headers = {
  2032. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2033. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2034. };
  2035. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2036. {
  2037. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2038. <span class="hljs-attr">body</span>: inputBody,
  2039. <span class="hljs-attr">headers</span>: headers
  2040. })
  2041. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2042. <span class="hljs-keyword">return</span> res.json();
  2043. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2044. <span class="hljs-built_in">console</span>.log(body);
  2045. });
  2046. </code></pre>
  2047. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2048. <span class="hljs-keyword">const</span> inputBody = {
  2049. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2050. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2051. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2052. };
  2053. <span class="hljs-keyword">const</span> headers = {
  2054. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2055. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2056. };
  2057. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2058. {
  2059. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2060. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2061. <span class="hljs-attr">headers</span>: headers
  2062. })
  2063. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2064. <span class="hljs-keyword">return</span> res.json();
  2065. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2066. <span class="hljs-built_in">console</span>.log(body);
  2067. });
  2068. </code></pre>
  2069. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2070. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2071. headers = {
  2072. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2073. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2074. }
  2075. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2076. <span class="hljs-symbol">params:</span> {
  2077. }, <span class="hljs-symbol">headers:</span> headers
  2078. p JSON.parse(result)
  2079. </code></pre>
  2080. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2081. headers = {
  2082. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2083. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2084. }
  2085. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2086. <span class="hljs-built_in">print</span>(r.json())
  2087. </code></pre>
  2088. <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>);
  2089. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2090. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2091. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2092. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2093. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2094. String inputLine;
  2095. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2096. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2097. response.append(inputLine);
  2098. }
  2099. in.close();
  2100. System.out.println(response.toString());
  2101. </code></pre>
  2102. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2103. <span class="hljs-keyword">import</span> (
  2104. <span class="hljs-string">&quot;bytes&quot;</span>
  2105. <span class="hljs-string">&quot;net/http&quot;</span>
  2106. )
  2107. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2108. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2109. <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>},
  2110. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2111. }
  2112. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2113. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2114. req.Header = headers
  2115. client := &amp;http.Client{}
  2116. resp, err := client.Do(req)
  2117. <span class="hljs-comment">// ...</span>
  2118. }
  2119. </code></pre>
  2120. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2121. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2122. );
  2123. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2124. <span class="hljs-comment">// Define array of request body.</span>
  2125. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2126. <span class="hljs-keyword">try</span> {
  2127. <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>(
  2128. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2129. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2130. )
  2131. );
  2132. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2133. }
  2134. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2135. <span class="hljs-comment">// handle exception or api errors.</span>
  2136. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2137. }
  2138. <span class="hljs-comment">// ...</span>
  2139. </code></pre>
  2140. <p><code>POST /users/register</code></p>
  2141. <p><em>Register with REST API</em></p>
  2142. <p>Notes:</p>
  2143. <ul>
  2144. <li>You will need to provide the token for any of the authenticated methods.</li>
  2145. </ul>
  2146. <blockquote>
  2147. <p>Body parameter</p>
  2148. </blockquote>
  2149. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2150. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2151. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2152. </code></pre>
  2153. <h3 id="register-parameters">Parameters</h3>
  2154. <table>
  2155. <thead>
  2156. <tr>
  2157. <th>Name</th>
  2158. <th>In</th>
  2159. <th>Type</th>
  2160. <th>Required</th>
  2161. <th>Description</th>
  2162. </tr>
  2163. </thead>
  2164. <tbody>
  2165. <tr>
  2166. <td>body</td>
  2167. <td>body</td>
  2168. <td>object</td>
  2169. <td>true</td>
  2170. <td>none</td>
  2171. </tr>
  2172. <tr>
  2173. <td>» username</td>
  2174. <td>body</td>
  2175. <td>string</td>
  2176. <td>true</td>
  2177. <td>Your username</td>
  2178. </tr>
  2179. <tr>
  2180. <td>» password</td>
  2181. <td>body</td>
  2182. <td>string(password)</td>
  2183. <td>true</td>
  2184. <td>Your password</td>
  2185. </tr>
  2186. <tr>
  2187. <td>» email</td>
  2188. <td>body</td>
  2189. <td>string</td>
  2190. <td>true</td>
  2191. <td>Your email</td>
  2192. </tr>
  2193. </tbody>
  2194. </table>
  2195. <blockquote>
  2196. <p>Example responses</p>
  2197. </blockquote>
  2198. <blockquote>
  2199. <p>200 Response</p>
  2200. </blockquote>
  2201. <h3 id="register-responses">Responses</h3>
  2202. <table>
  2203. <thead>
  2204. <tr>
  2205. <th>Status</th>
  2206. <th>Meaning</th>
  2207. <th>Description</th>
  2208. <th>Schema</th>
  2209. </tr>
  2210. </thead>
  2211. <tbody>
  2212. <tr>
  2213. <td>200</td>
  2214. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2215. <td>Successful registration</td>
  2216. <td>Inline</td>
  2217. </tr>
  2218. <tr>
  2219. <td>400</td>
  2220. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2221. <td>Error in registration</td>
  2222. <td>Inline</td>
  2223. </tr>
  2224. <tr>
  2225. <td>default</td>
  2226. <td>Default</td>
  2227. <td>Error in registration</td>
  2228. <td>None</td>
  2229. </tr>
  2230. </tbody>
  2231. </table>
  2232. <h3 id="register-responseschema">Response Schema</h3>
  2233. <p>Status Code <strong>200</strong></p>
  2234. <table>
  2235. <thead>
  2236. <tr>
  2237. <th>Name</th>
  2238. <th>Type</th>
  2239. <th>Required</th>
  2240. <th>Restrictions</th>
  2241. <th>Description</th>
  2242. </tr>
  2243. </thead>
  2244. <tbody>
  2245. <tr>
  2246. <td>» id</td>
  2247. <td>string</td>
  2248. <td>false</td>
  2249. <td>none</td>
  2250. <td>none</td>
  2251. </tr>
  2252. <tr>
  2253. <td>» token</td>
  2254. <td>string</td>
  2255. <td>false</td>
  2256. <td>none</td>
  2257. <td>none</td>
  2258. </tr>
  2259. <tr>
  2260. <td>» tokenExpires</td>
  2261. <td>string</td>
  2262. <td>false</td>
  2263. <td>none</td>
  2264. <td>none</td>
  2265. </tr>
  2266. </tbody>
  2267. </table>
  2268. <p>Status Code <strong>400</strong></p>
  2269. <table>
  2270. <thead>
  2271. <tr>
  2272. <th>Name</th>
  2273. <th>Type</th>
  2274. <th>Required</th>
  2275. <th>Restrictions</th>
  2276. <th>Description</th>
  2277. </tr>
  2278. </thead>
  2279. <tbody>
  2280. <tr>
  2281. <td>» error</td>
  2282. <td>number</td>
  2283. <td>false</td>
  2284. <td>none</td>
  2285. <td>none</td>
  2286. </tr>
  2287. <tr>
  2288. <td>» reason</td>
  2289. <td>string</td>
  2290. <td>false</td>
  2291. <td>none</td>
  2292. <td>none</td>
  2293. </tr>
  2294. </tbody>
  2295. </table>
  2296. <aside class="success">
  2297. This operation does not require authentication
  2298. </aside>
  2299. <h1 id="wekan-rest-api-boards">Boards</h1>
  2300. <h2 id="get_public_boards">get_public_boards</h2>
  2301. <p><a id="opIdget_public_boards"></a></p>
  2302. <blockquote>
  2303. <p>Code samples</p>
  2304. </blockquote>
  2305. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2306. curl -X GET /api/boards \
  2307. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2308. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2309. </code></pre>
  2310. <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>
  2311. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2312. </span></code></pre>
  2313. <pre class="highlight tab tab-javascript"><code>
  2314. <span class="hljs-keyword">const</span> headers = {
  2315. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2316. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2317. };
  2318. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2319. {
  2320. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2321. <span class="hljs-attr">headers</span>: headers
  2322. })
  2323. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2324. <span class="hljs-keyword">return</span> res.json();
  2325. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2326. <span class="hljs-built_in">console</span>.log(body);
  2327. });
  2328. </code></pre>
  2329. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2330. <span class="hljs-keyword">const</span> headers = {
  2331. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2332. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2333. };
  2334. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2335. {
  2336. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2337. <span class="hljs-attr">headers</span>: headers
  2338. })
  2339. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2340. <span class="hljs-keyword">return</span> res.json();
  2341. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2342. <span class="hljs-built_in">console</span>.log(body);
  2343. });
  2344. </code></pre>
  2345. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2346. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2347. headers = {
  2348. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2349. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2350. }
  2351. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2352. <span class="hljs-symbol">params:</span> {
  2353. }, <span class="hljs-symbol">headers:</span> headers
  2354. p JSON.parse(result)
  2355. </code></pre>
  2356. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2357. headers = {
  2358. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2359. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2360. }
  2361. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2362. <span class="hljs-built_in">print</span>(r.json())
  2363. </code></pre>
  2364. <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>);
  2365. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2366. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2367. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2368. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2369. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2370. String inputLine;
  2371. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2372. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2373. response.append(inputLine);
  2374. }
  2375. in.close();
  2376. System.out.println(response.toString());
  2377. </code></pre>
  2378. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2379. <span class="hljs-keyword">import</span> (
  2380. <span class="hljs-string">&quot;bytes&quot;</span>
  2381. <span class="hljs-string">&quot;net/http&quot;</span>
  2382. )
  2383. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2384. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2385. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2386. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2387. }
  2388. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2389. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2390. req.Header = headers
  2391. client := &amp;http.Client{}
  2392. resp, err := client.Do(req)
  2393. <span class="hljs-comment">// ...</span>
  2394. }
  2395. </code></pre>
  2396. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2397. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2398. );
  2399. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2400. <span class="hljs-comment">// Define array of request body.</span>
  2401. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2402. <span class="hljs-keyword">try</span> {
  2403. <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>(
  2404. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2405. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2406. )
  2407. );
  2408. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2409. }
  2410. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2411. <span class="hljs-comment">// handle exception or api errors.</span>
  2412. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2413. }
  2414. <span class="hljs-comment">// ...</span>
  2415. </code></pre>
  2416. <p><code>GET /api/boards</code></p>
  2417. <p><em>Get all public boards</em></p>
  2418. <blockquote>
  2419. <p>Example responses</p>
  2420. </blockquote>
  2421. <blockquote>
  2422. <p>200 Response</p>
  2423. </blockquote>
  2424. <pre class="highlight tab tab-json"><code>[
  2425. {
  2426. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2427. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2428. }
  2429. ]
  2430. </code></pre>
  2431. <h3 id="get_public_boards-responses">Responses</h3>
  2432. <table>
  2433. <thead>
  2434. <tr>
  2435. <th>Status</th>
  2436. <th>Meaning</th>
  2437. <th>Description</th>
  2438. <th>Schema</th>
  2439. </tr>
  2440. </thead>
  2441. <tbody>
  2442. <tr>
  2443. <td>200</td>
  2444. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2445. <td>200 response</td>
  2446. <td>Inline</td>
  2447. </tr>
  2448. </tbody>
  2449. </table>
  2450. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2451. <p>Status Code <strong>200</strong></p>
  2452. <table>
  2453. <thead>
  2454. <tr>
  2455. <th>Name</th>
  2456. <th>Type</th>
  2457. <th>Required</th>
  2458. <th>Restrictions</th>
  2459. <th>Description</th>
  2460. </tr>
  2461. </thead>
  2462. <tbody>
  2463. <tr>
  2464. <td>» _id</td>
  2465. <td>string</td>
  2466. <td>false</td>
  2467. <td>none</td>
  2468. <td>none</td>
  2469. </tr>
  2470. <tr>
  2471. <td>» title</td>
  2472. <td>string</td>
  2473. <td>false</td>
  2474. <td>none</td>
  2475. <td>none</td>
  2476. </tr>
  2477. </tbody>
  2478. </table>
  2479. <aside class="warning">
  2480. To perform this operation, you must be authenticated by means of one of the following methods:
  2481. UserSecurity
  2482. </aside>
  2483. <h2 id="new_board">new_board</h2>
  2484. <p><a id="opIdnew_board"></a></p>
  2485. <blockquote>
  2486. <p>Code samples</p>
  2487. </blockquote>
  2488. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2489. curl -X POST /api/boards \
  2490. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2491. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2492. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2493. </code></pre>
  2494. <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>
  2495. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2496. Accept: application/json
  2497. </span></code></pre>
  2498. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2499. &quot;title&quot;: &quot;string&quot;,
  2500. &quot;owner&quot;: &quot;string&quot;,
  2501. &quot;isAdmin&quot;: true,
  2502. &quot;isActive&quot;: true,
  2503. &quot;isNoComments&quot;: true,
  2504. &quot;isCommentOnly&quot;: true,
  2505. &quot;isWorker&quot;: true,
  2506. &quot;permission&quot;: &quot;string&quot;,
  2507. &quot;color&quot;: &quot;string&quot;
  2508. }&#x27;</span>;
  2509. <span class="hljs-keyword">const</span> headers = {
  2510. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2511. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2512. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2513. };
  2514. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2515. {
  2516. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2517. <span class="hljs-attr">body</span>: inputBody,
  2518. <span class="hljs-attr">headers</span>: headers
  2519. })
  2520. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2521. <span class="hljs-keyword">return</span> res.json();
  2522. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2523. <span class="hljs-built_in">console</span>.log(body);
  2524. });
  2525. </code></pre>
  2526. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2527. <span class="hljs-keyword">const</span> inputBody = {
  2528. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2529. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2530. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2531. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2532. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2533. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2534. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2535. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2536. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2537. };
  2538. <span class="hljs-keyword">const</span> headers = {
  2539. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2540. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2541. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2542. };
  2543. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2544. {
  2545. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2546. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2547. <span class="hljs-attr">headers</span>: headers
  2548. })
  2549. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2550. <span class="hljs-keyword">return</span> res.json();
  2551. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2552. <span class="hljs-built_in">console</span>.log(body);
  2553. });
  2554. </code></pre>
  2555. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2556. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2557. headers = {
  2558. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2559. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2560. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2561. }
  2562. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2563. <span class="hljs-symbol">params:</span> {
  2564. }, <span class="hljs-symbol">headers:</span> headers
  2565. p JSON.parse(result)
  2566. </code></pre>
  2567. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2568. headers = {
  2569. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2570. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2571. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2572. }
  2573. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2574. <span class="hljs-built_in">print</span>(r.json())
  2575. </code></pre>
  2576. <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>);
  2577. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2578. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2579. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2580. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2581. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2582. String inputLine;
  2583. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2584. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2585. response.append(inputLine);
  2586. }
  2587. in.close();
  2588. System.out.println(response.toString());
  2589. </code></pre>
  2590. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2591. <span class="hljs-keyword">import</span> (
  2592. <span class="hljs-string">&quot;bytes&quot;</span>
  2593. <span class="hljs-string">&quot;net/http&quot;</span>
  2594. )
  2595. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2596. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2597. <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>},
  2598. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2599. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2600. }
  2601. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2602. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2603. req.Header = headers
  2604. client := &amp;http.Client{}
  2605. resp, err := client.Do(req)
  2606. <span class="hljs-comment">// ...</span>
  2607. }
  2608. </code></pre>
  2609. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2610. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2611. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2612. );
  2613. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2614. <span class="hljs-comment">// Define array of request body.</span>
  2615. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2616. <span class="hljs-keyword">try</span> {
  2617. <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>(
  2618. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2619. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2620. )
  2621. );
  2622. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2623. }
  2624. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2625. <span class="hljs-comment">// handle exception or api errors.</span>
  2626. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2627. }
  2628. <span class="hljs-comment">// ...</span>
  2629. </code></pre>
  2630. <p><code>POST /api/boards</code></p>
  2631. <p><em>Create a board</em></p>
  2632. <p>This allows to create a board.</p>
  2633. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2634. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2635. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2636. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2637. <blockquote>
  2638. <p>Body parameter</p>
  2639. </blockquote>
  2640. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2641. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2642. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2643. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2644. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2645. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2646. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2647. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2648. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2649. </code></pre>
  2650. <h3 id="new_board-parameters">Parameters</h3>
  2651. <table>
  2652. <thead>
  2653. <tr>
  2654. <th>Name</th>
  2655. <th>In</th>
  2656. <th>Type</th>
  2657. <th>Required</th>
  2658. <th>Description</th>
  2659. </tr>
  2660. </thead>
  2661. <tbody>
  2662. <tr>
  2663. <td>body</td>
  2664. <td>body</td>
  2665. <td>object</td>
  2666. <td>true</td>
  2667. <td>none</td>
  2668. </tr>
  2669. <tr>
  2670. <td>» title</td>
  2671. <td>body</td>
  2672. <td>string</td>
  2673. <td>true</td>
  2674. <td>the new title of the board</td>
  2675. </tr>
  2676. <tr>
  2677. <td>» owner</td>
  2678. <td>body</td>
  2679. <td>string</td>
  2680. <td>true</td>
  2681. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2682. </tr>
  2683. <tr>
  2684. <td>» isAdmin</td>
  2685. <td>body</td>
  2686. <td>boolean</td>
  2687. <td>false</td>
  2688. <td>is the owner an admin of the board (default true)</td>
  2689. </tr>
  2690. <tr>
  2691. <td>» isActive</td>
  2692. <td>body</td>
  2693. <td>boolean</td>
  2694. <td>false</td>
  2695. <td>is the board active (default true)</td>
  2696. </tr>
  2697. <tr>
  2698. <td>» isNoComments</td>
  2699. <td>body</td>
  2700. <td>boolean</td>
  2701. <td>false</td>
  2702. <td>disable comments (default false)</td>
  2703. </tr>
  2704. <tr>
  2705. <td>» isCommentOnly</td>
  2706. <td>body</td>
  2707. <td>boolean</td>
  2708. <td>false</td>
  2709. <td>only enable comments (default false)</td>
  2710. </tr>
  2711. <tr>
  2712. <td>» isWorker</td>
  2713. <td>body</td>
  2714. <td>boolean</td>
  2715. <td>false</td>
  2716. <td>only move cards, assign himself to card and comment (default false)</td>
  2717. </tr>
  2718. <tr>
  2719. <td>» permission</td>
  2720. <td>body</td>
  2721. <td>string</td>
  2722. <td>false</td>
  2723. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2724. </tr>
  2725. <tr>
  2726. <td>» color</td>
  2727. <td>body</td>
  2728. <td>string</td>
  2729. <td>false</td>
  2730. <td>the color of the board</td>
  2731. </tr>
  2732. </tbody>
  2733. </table>
  2734. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2735. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2736. (Not username or email)</p>
  2737. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2738. want public Wekan board</p>
  2739. <blockquote>
  2740. <p>Example responses</p>
  2741. </blockquote>
  2742. <blockquote>
  2743. <p>200 Response</p>
  2744. </blockquote>
  2745. <pre class="highlight tab tab-json"><code>{
  2746. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2747. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2748. }
  2749. </code></pre>
  2750. <h3 id="new_board-responses">Responses</h3>
  2751. <table>
  2752. <thead>
  2753. <tr>
  2754. <th>Status</th>
  2755. <th>Meaning</th>
  2756. <th>Description</th>
  2757. <th>Schema</th>
  2758. </tr>
  2759. </thead>
  2760. <tbody>
  2761. <tr>
  2762. <td>200</td>
  2763. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2764. <td>200 response</td>
  2765. <td>Inline</td>
  2766. </tr>
  2767. </tbody>
  2768. </table>
  2769. <h3 id="new_board-responseschema">Response Schema</h3>
  2770. <p>Status Code <strong>200</strong></p>
  2771. <table>
  2772. <thead>
  2773. <tr>
  2774. <th>Name</th>
  2775. <th>Type</th>
  2776. <th>Required</th>
  2777. <th>Restrictions</th>
  2778. <th>Description</th>
  2779. </tr>
  2780. </thead>
  2781. <tbody>
  2782. <tr>
  2783. <td>» _id</td>
  2784. <td>string</td>
  2785. <td>false</td>
  2786. <td>none</td>
  2787. <td>none</td>
  2788. </tr>
  2789. <tr>
  2790. <td>» defaultSwimlaneId</td>
  2791. <td>string</td>
  2792. <td>false</td>
  2793. <td>none</td>
  2794. <td>none</td>
  2795. </tr>
  2796. </tbody>
  2797. </table>
  2798. <aside class="warning">
  2799. To perform this operation, you must be authenticated by means of one of the following methods:
  2800. UserSecurity
  2801. </aside>
  2802. <h2 id="get_board">get_board</h2>
  2803. <p><a id="opIdget_board"></a></p>
  2804. <blockquote>
  2805. <p>Code samples</p>
  2806. </blockquote>
  2807. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2808. curl -X GET /api/boards/{board} \
  2809. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2810. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2811. </code></pre>
  2812. <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>
  2813. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2814. </span></code></pre>
  2815. <pre class="highlight tab tab-javascript"><code>
  2816. <span class="hljs-keyword">const</span> headers = {
  2817. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2818. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2819. };
  2820. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2821. {
  2822. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2823. <span class="hljs-attr">headers</span>: headers
  2824. })
  2825. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2826. <span class="hljs-keyword">return</span> res.json();
  2827. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2828. <span class="hljs-built_in">console</span>.log(body);
  2829. });
  2830. </code></pre>
  2831. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2832. <span class="hljs-keyword">const</span> headers = {
  2833. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2834. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2835. };
  2836. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2837. {
  2838. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2839. <span class="hljs-attr">headers</span>: headers
  2840. })
  2841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2842. <span class="hljs-keyword">return</span> res.json();
  2843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2844. <span class="hljs-built_in">console</span>.log(body);
  2845. });
  2846. </code></pre>
  2847. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2848. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2849. headers = {
  2850. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2851. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2852. }
  2853. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2854. <span class="hljs-symbol">params:</span> {
  2855. }, <span class="hljs-symbol">headers:</span> headers
  2856. p JSON.parse(result)
  2857. </code></pre>
  2858. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2859. headers = {
  2860. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2861. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2862. }
  2863. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2864. <span class="hljs-built_in">print</span>(r.json())
  2865. </code></pre>
  2866. <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>);
  2867. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2868. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2869. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2870. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2871. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2872. String inputLine;
  2873. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2874. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2875. response.append(inputLine);
  2876. }
  2877. in.close();
  2878. System.out.println(response.toString());
  2879. </code></pre>
  2880. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2881. <span class="hljs-keyword">import</span> (
  2882. <span class="hljs-string">&quot;bytes&quot;</span>
  2883. <span class="hljs-string">&quot;net/http&quot;</span>
  2884. )
  2885. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2886. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2887. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2888. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2889. }
  2890. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2891. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2892. req.Header = headers
  2893. client := &amp;http.Client{}
  2894. resp, err := client.Do(req)
  2895. <span class="hljs-comment">// ...</span>
  2896. }
  2897. </code></pre>
  2898. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2899. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2900. );
  2901. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2902. <span class="hljs-comment">// Define array of request body.</span>
  2903. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2904. <span class="hljs-keyword">try</span> {
  2905. <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>(
  2906. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2907. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2908. )
  2909. );
  2910. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2911. }
  2912. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2913. <span class="hljs-comment">// handle exception or api errors.</span>
  2914. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2915. }
  2916. <span class="hljs-comment">// ...</span>
  2917. </code></pre>
  2918. <p><code>GET /api/boards/{board}</code></p>
  2919. <p><em>Get the board with that particular ID</em></p>
  2920. <h3 id="get_board-parameters">Parameters</h3>
  2921. <table>
  2922. <thead>
  2923. <tr>
  2924. <th>Name</th>
  2925. <th>In</th>
  2926. <th>Type</th>
  2927. <th>Required</th>
  2928. <th>Description</th>
  2929. </tr>
  2930. </thead>
  2931. <tbody>
  2932. <tr>
  2933. <td>board</td>
  2934. <td>path</td>
  2935. <td>string</td>
  2936. <td>true</td>
  2937. <td>the ID of the board to retrieve the data</td>
  2938. </tr>
  2939. </tbody>
  2940. </table>
  2941. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2942. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2943. <blockquote>
  2944. <p>Example responses</p>
  2945. </blockquote>
  2946. <blockquote>
  2947. <p>200 Response</p>
  2948. </blockquote>
  2949. <pre class="highlight tab tab-json"><code>{
  2950. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2951. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2952. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2953. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2954. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2955. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2956. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2957. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2958. {
  2959. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2960. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2961. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2962. }
  2963. ],
  2964. <span class="hljs-attr">&quot;members&quot;</span>: [
  2965. {
  2966. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2967. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2968. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2969. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2970. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2971. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2972. }
  2973. ],
  2974. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2975. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2976. {
  2977. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2978. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2979. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2980. }
  2981. ],
  2982. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2983. {
  2984. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2985. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2986. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2987. }
  2988. ],
  2989. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  2990. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2991. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2992. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2993. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2994. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2995. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  2996. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  2997. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  2998. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  2999. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3000. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3001. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3002. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3003. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3004. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3005. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3006. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3007. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3008. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3009. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3010. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3011. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3012. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3013. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3014. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3015. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3016. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3017. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3018. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3019. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3021. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3022. }
  3023. </code></pre>
  3024. <h3 id="get_board-responses">Responses</h3>
  3025. <table>
  3026. <thead>
  3027. <tr>
  3028. <th>Status</th>
  3029. <th>Meaning</th>
  3030. <th>Description</th>
  3031. <th>Schema</th>
  3032. </tr>
  3033. </thead>
  3034. <tbody>
  3035. <tr>
  3036. <td>200</td>
  3037. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3038. <td>200 response</td>
  3039. <td><a href="#schemaboards">Boards</a></td>
  3040. </tr>
  3041. </tbody>
  3042. </table>
  3043. <aside class="warning">
  3044. To perform this operation, you must be authenticated by means of one of the following methods:
  3045. UserSecurity
  3046. </aside>
  3047. <h2 id="delete_board">delete_board</h2>
  3048. <p><a id="opIddelete_board"></a></p>
  3049. <blockquote>
  3050. <p>Code samples</p>
  3051. </blockquote>
  3052. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3053. curl -X DELETE /api/boards/{board} \
  3054. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3055. </code></pre>
  3056. <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>
  3057. </code></pre>
  3058. <pre class="highlight tab tab-javascript"><code>
  3059. <span class="hljs-keyword">const</span> headers = {
  3060. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3061. };
  3062. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3063. {
  3064. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3065. <span class="hljs-attr">headers</span>: headers
  3066. })
  3067. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3068. <span class="hljs-keyword">return</span> res.json();
  3069. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3070. <span class="hljs-built_in">console</span>.log(body);
  3071. });
  3072. </code></pre>
  3073. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3074. <span class="hljs-keyword">const</span> headers = {
  3075. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3076. };
  3077. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3078. {
  3079. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3080. <span class="hljs-attr">headers</span>: headers
  3081. })
  3082. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3083. <span class="hljs-keyword">return</span> res.json();
  3084. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3085. <span class="hljs-built_in">console</span>.log(body);
  3086. });
  3087. </code></pre>
  3088. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3089. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3090. headers = {
  3091. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3092. }
  3093. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3094. <span class="hljs-symbol">params:</span> {
  3095. }, <span class="hljs-symbol">headers:</span> headers
  3096. p JSON.parse(result)
  3097. </code></pre>
  3098. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3099. headers = {
  3100. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3101. }
  3102. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3103. <span class="hljs-built_in">print</span>(r.json())
  3104. </code></pre>
  3105. <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>);
  3106. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3107. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3108. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3109. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3110. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3111. String inputLine;
  3112. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3113. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3114. response.append(inputLine);
  3115. }
  3116. in.close();
  3117. System.out.println(response.toString());
  3118. </code></pre>
  3119. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3120. <span class="hljs-keyword">import</span> (
  3121. <span class="hljs-string">&quot;bytes&quot;</span>
  3122. <span class="hljs-string">&quot;net/http&quot;</span>
  3123. )
  3124. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3125. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3126. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3127. }
  3128. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3129. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3130. req.Header = headers
  3131. client := &amp;http.Client{}
  3132. resp, err := client.Do(req)
  3133. <span class="hljs-comment">// ...</span>
  3134. }
  3135. </code></pre>
  3136. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3137. );
  3138. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3139. <span class="hljs-comment">// Define array of request body.</span>
  3140. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3141. <span class="hljs-keyword">try</span> {
  3142. <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>(
  3143. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3144. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3145. )
  3146. );
  3147. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3148. }
  3149. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3150. <span class="hljs-comment">// handle exception or api errors.</span>
  3151. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3152. }
  3153. <span class="hljs-comment">// ...</span>
  3154. </code></pre>
  3155. <p><code>DELETE /api/boards/{board}</code></p>
  3156. <p><em>Delete a board</em></p>
  3157. <h3 id="delete_board-parameters">Parameters</h3>
  3158. <table>
  3159. <thead>
  3160. <tr>
  3161. <th>Name</th>
  3162. <th>In</th>
  3163. <th>Type</th>
  3164. <th>Required</th>
  3165. <th>Description</th>
  3166. </tr>
  3167. </thead>
  3168. <tbody>
  3169. <tr>
  3170. <td>board</td>
  3171. <td>path</td>
  3172. <td>string</td>
  3173. <td>true</td>
  3174. <td>the ID of the board</td>
  3175. </tr>
  3176. </tbody>
  3177. </table>
  3178. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3179. <p><strong>board</strong>: the ID of the board</p>
  3180. <h3 id="delete_board-responses">Responses</h3>
  3181. <table>
  3182. <thead>
  3183. <tr>
  3184. <th>Status</th>
  3185. <th>Meaning</th>
  3186. <th>Description</th>
  3187. <th>Schema</th>
  3188. </tr>
  3189. </thead>
  3190. <tbody>
  3191. <tr>
  3192. <td>200</td>
  3193. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3194. <td>200 response</td>
  3195. <td>None</td>
  3196. </tr>
  3197. </tbody>
  3198. </table>
  3199. <aside class="warning">
  3200. To perform this operation, you must be authenticated by means of one of the following methods:
  3201. UserSecurity
  3202. </aside>
  3203. <h2 id="get_board_attachments">get_board_attachments</h2>
  3204. <p><a id="opIdget_board_attachments"></a></p>
  3205. <blockquote>
  3206. <p>Code samples</p>
  3207. </blockquote>
  3208. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3209. curl -X GET /api/boards/{board}/attachments \
  3210. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3211. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3212. </code></pre>
  3213. <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>
  3214. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3215. </span></code></pre>
  3216. <pre class="highlight tab tab-javascript"><code>
  3217. <span class="hljs-keyword">const</span> headers = {
  3218. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3219. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3220. };
  3221. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3222. {
  3223. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3224. <span class="hljs-attr">headers</span>: headers
  3225. })
  3226. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3227. <span class="hljs-keyword">return</span> res.json();
  3228. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3229. <span class="hljs-built_in">console</span>.log(body);
  3230. });
  3231. </code></pre>
  3232. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3233. <span class="hljs-keyword">const</span> headers = {
  3234. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3235. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3236. };
  3237. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3238. {
  3239. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3240. <span class="hljs-attr">headers</span>: headers
  3241. })
  3242. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3243. <span class="hljs-keyword">return</span> res.json();
  3244. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3245. <span class="hljs-built_in">console</span>.log(body);
  3246. });
  3247. </code></pre>
  3248. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3249. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3250. headers = {
  3251. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3252. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3253. }
  3254. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3255. <span class="hljs-symbol">params:</span> {
  3256. }, <span class="hljs-symbol">headers:</span> headers
  3257. p JSON.parse(result)
  3258. </code></pre>
  3259. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3260. headers = {
  3261. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3262. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3263. }
  3264. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3265. <span class="hljs-built_in">print</span>(r.json())
  3266. </code></pre>
  3267. <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>);
  3268. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3269. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3270. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3271. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3272. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3273. String inputLine;
  3274. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3275. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3276. response.append(inputLine);
  3277. }
  3278. in.close();
  3279. System.out.println(response.toString());
  3280. </code></pre>
  3281. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3282. <span class="hljs-keyword">import</span> (
  3283. <span class="hljs-string">&quot;bytes&quot;</span>
  3284. <span class="hljs-string">&quot;net/http&quot;</span>
  3285. )
  3286. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3287. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3288. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3289. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3290. }
  3291. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3292. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3293. req.Header = headers
  3294. client := &amp;http.Client{}
  3295. resp, err := client.Do(req)
  3296. <span class="hljs-comment">// ...</span>
  3297. }
  3298. </code></pre>
  3299. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3300. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3301. );
  3302. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3303. <span class="hljs-comment">// Define array of request body.</span>
  3304. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3305. <span class="hljs-keyword">try</span> {
  3306. <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>(
  3307. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3308. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3309. )
  3310. );
  3311. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3312. }
  3313. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3314. <span class="hljs-comment">// handle exception or api errors.</span>
  3315. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3316. }
  3317. <span class="hljs-comment">// ...</span>
  3318. </code></pre>
  3319. <p><code>GET /api/boards/{board}/attachments</code></p>
  3320. <p><em>Get the list of attachments of a board</em></p>
  3321. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3322. <table>
  3323. <thead>
  3324. <tr>
  3325. <th>Name</th>
  3326. <th>In</th>
  3327. <th>Type</th>
  3328. <th>Required</th>
  3329. <th>Description</th>
  3330. </tr>
  3331. </thead>
  3332. <tbody>
  3333. <tr>
  3334. <td>board</td>
  3335. <td>path</td>
  3336. <td>string</td>
  3337. <td>true</td>
  3338. <td>the board ID</td>
  3339. </tr>
  3340. </tbody>
  3341. </table>
  3342. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3343. <p><strong>board</strong>: the board ID</p>
  3344. <blockquote>
  3345. <p>Example responses</p>
  3346. </blockquote>
  3347. <blockquote>
  3348. <p>200 Response</p>
  3349. </blockquote>
  3350. <pre class="highlight tab tab-json"><code>[
  3351. {
  3352. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3353. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3354. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3355. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3356. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3357. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3358. }
  3359. ]
  3360. </code></pre>
  3361. <h3 id="get_board_attachments-responses">Responses</h3>
  3362. <table>
  3363. <thead>
  3364. <tr>
  3365. <th>Status</th>
  3366. <th>Meaning</th>
  3367. <th>Description</th>
  3368. <th>Schema</th>
  3369. </tr>
  3370. </thead>
  3371. <tbody>
  3372. <tr>
  3373. <td>200</td>
  3374. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3375. <td>200 response</td>
  3376. <td>Inline</td>
  3377. </tr>
  3378. </tbody>
  3379. </table>
  3380. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3381. <p>Status Code <strong>200</strong></p>
  3382. <table>
  3383. <thead>
  3384. <tr>
  3385. <th>Name</th>
  3386. <th>Type</th>
  3387. <th>Required</th>
  3388. <th>Restrictions</th>
  3389. <th>Description</th>
  3390. </tr>
  3391. </thead>
  3392. <tbody>
  3393. <tr>
  3394. <td>» attachmentId</td>
  3395. <td>string</td>
  3396. <td>false</td>
  3397. <td>none</td>
  3398. <td>none</td>
  3399. </tr>
  3400. <tr>
  3401. <td>» attachmentName</td>
  3402. <td>string</td>
  3403. <td>false</td>
  3404. <td>none</td>
  3405. <td>none</td>
  3406. </tr>
  3407. <tr>
  3408. <td>» attachmentType</td>
  3409. <td>string</td>
  3410. <td>false</td>
  3411. <td>none</td>
  3412. <td>none</td>
  3413. </tr>
  3414. <tr>
  3415. <td>» cardId</td>
  3416. <td>string</td>
  3417. <td>false</td>
  3418. <td>none</td>
  3419. <td>none</td>
  3420. </tr>
  3421. <tr>
  3422. <td>» listId</td>
  3423. <td>string</td>
  3424. <td>false</td>
  3425. <td>none</td>
  3426. <td>none</td>
  3427. </tr>
  3428. <tr>
  3429. <td>» swimlaneId</td>
  3430. <td>string</td>
  3431. <td>false</td>
  3432. <td>none</td>
  3433. <td>none</td>
  3434. </tr>
  3435. </tbody>
  3436. </table>
  3437. <aside class="warning">
  3438. To perform this operation, you must be authenticated by means of one of the following methods:
  3439. UserSecurity
  3440. </aside>
  3441. <h2 id="exportjson">exportJson</h2>
  3442. <p><a id="opIdexportJson"></a></p>
  3443. <blockquote>
  3444. <p>Code samples</p>
  3445. </blockquote>
  3446. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3447. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3448. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3449. </code></pre>
  3450. <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>
  3451. </code></pre>
  3452. <pre class="highlight tab tab-javascript"><code>
  3453. <span class="hljs-keyword">const</span> headers = {
  3454. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3455. };
  3456. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3457. {
  3458. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3459. <span class="hljs-attr">headers</span>: headers
  3460. })
  3461. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3462. <span class="hljs-keyword">return</span> res.json();
  3463. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3464. <span class="hljs-built_in">console</span>.log(body);
  3465. });
  3466. </code></pre>
  3467. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3468. <span class="hljs-keyword">const</span> headers = {
  3469. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3470. };
  3471. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3472. {
  3473. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3474. <span class="hljs-attr">headers</span>: headers
  3475. })
  3476. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3477. <span class="hljs-keyword">return</span> res.json();
  3478. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3479. <span class="hljs-built_in">console</span>.log(body);
  3480. });
  3481. </code></pre>
  3482. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3483. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3484. headers = {
  3485. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3486. }
  3487. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3488. <span class="hljs-symbol">params:</span> {
  3489. }, <span class="hljs-symbol">headers:</span> headers
  3490. p JSON.parse(result)
  3491. </code></pre>
  3492. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3493. headers = {
  3494. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3495. }
  3496. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3497. <span class="hljs-built_in">print</span>(r.json())
  3498. </code></pre>
  3499. <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>);
  3500. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3501. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3502. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3503. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3504. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3505. String inputLine;
  3506. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3507. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3508. response.append(inputLine);
  3509. }
  3510. in.close();
  3511. System.out.println(response.toString());
  3512. </code></pre>
  3513. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3514. <span class="hljs-keyword">import</span> (
  3515. <span class="hljs-string">&quot;bytes&quot;</span>
  3516. <span class="hljs-string">&quot;net/http&quot;</span>
  3517. )
  3518. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3519. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3520. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3521. }
  3522. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3523. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3524. req.Header = headers
  3525. client := &amp;http.Client{}
  3526. resp, err := client.Do(req)
  3527. <span class="hljs-comment">// ...</span>
  3528. }
  3529. </code></pre>
  3530. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3531. );
  3532. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3533. <span class="hljs-comment">// Define array of request body.</span>
  3534. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3535. <span class="hljs-keyword">try</span> {
  3536. <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>(
  3537. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3538. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3539. )
  3540. );
  3541. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3542. }
  3543. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3544. <span class="hljs-comment">// handle exception or api errors.</span>
  3545. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3546. }
  3547. <span class="hljs-comment">// ...</span>
  3548. </code></pre>
  3549. <p><code>GET /api/boards/{board}/export</code></p>
  3550. <p><em>This route is used to export the board to a json file format.</em></p>
  3551. <p>If user is already logged-in, pass loginToken as param
  3552. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3553. <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>
  3554. for detailed explanations</p>
  3555. <h3 id="exportjson-parameters">Parameters</h3>
  3556. <table>
  3557. <thead>
  3558. <tr>
  3559. <th>Name</th>
  3560. <th>In</th>
  3561. <th>Type</th>
  3562. <th>Required</th>
  3563. <th>Description</th>
  3564. </tr>
  3565. </thead>
  3566. <tbody>
  3567. <tr>
  3568. <td>board</td>
  3569. <td>path</td>
  3570. <td>string</td>
  3571. <td>true</td>
  3572. <td>the ID of the board we are exporting</td>
  3573. </tr>
  3574. </tbody>
  3575. </table>
  3576. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3577. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3578. <h3 id="exportjson-responses">Responses</h3>
  3579. <table>
  3580. <thead>
  3581. <tr>
  3582. <th>Status</th>
  3583. <th>Meaning</th>
  3584. <th>Description</th>
  3585. <th>Schema</th>
  3586. </tr>
  3587. </thead>
  3588. <tbody>
  3589. <tr>
  3590. <td>200</td>
  3591. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3592. <td>200 response</td>
  3593. <td>None</td>
  3594. </tr>
  3595. </tbody>
  3596. </table>
  3597. <aside class="warning">
  3598. To perform this operation, you must be authenticated by means of one of the following methods:
  3599. UserSecurity
  3600. </aside>
  3601. <h2 id="add_board_label">add_board_label</h2>
  3602. <p><a id="opIdadd_board_label"></a></p>
  3603. <blockquote>
  3604. <p>Code samples</p>
  3605. </blockquote>
  3606. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3607. curl -X PUT /api/boards/{board}/labels \
  3608. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3609. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3610. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3611. </code></pre>
  3612. <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>
  3613. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3614. Accept: application/json
  3615. </span></code></pre>
  3616. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3617. &quot;label&quot;: &quot;string&quot;
  3618. }&#x27;</span>;
  3619. <span class="hljs-keyword">const</span> headers = {
  3620. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3621. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3622. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3623. };
  3624. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3625. {
  3626. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3627. <span class="hljs-attr">body</span>: inputBody,
  3628. <span class="hljs-attr">headers</span>: headers
  3629. })
  3630. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3631. <span class="hljs-keyword">return</span> res.json();
  3632. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3633. <span class="hljs-built_in">console</span>.log(body);
  3634. });
  3635. </code></pre>
  3636. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3637. <span class="hljs-keyword">const</span> inputBody = {
  3638. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3639. };
  3640. <span class="hljs-keyword">const</span> headers = {
  3641. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3642. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3643. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3644. };
  3645. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3646. {
  3647. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3648. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3649. <span class="hljs-attr">headers</span>: headers
  3650. })
  3651. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3652. <span class="hljs-keyword">return</span> res.json();
  3653. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3654. <span class="hljs-built_in">console</span>.log(body);
  3655. });
  3656. </code></pre>
  3657. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3658. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3659. headers = {
  3660. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3661. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3662. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3663. }
  3664. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3665. <span class="hljs-symbol">params:</span> {
  3666. }, <span class="hljs-symbol">headers:</span> headers
  3667. p JSON.parse(result)
  3668. </code></pre>
  3669. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3670. headers = {
  3671. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3672. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3673. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3674. }
  3675. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3676. <span class="hljs-built_in">print</span>(r.json())
  3677. </code></pre>
  3678. <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>);
  3679. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3680. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3681. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3682. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3683. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3684. String inputLine;
  3685. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3686. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3687. response.append(inputLine);
  3688. }
  3689. in.close();
  3690. System.out.println(response.toString());
  3691. </code></pre>
  3692. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3693. <span class="hljs-keyword">import</span> (
  3694. <span class="hljs-string">&quot;bytes&quot;</span>
  3695. <span class="hljs-string">&quot;net/http&quot;</span>
  3696. )
  3697. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3698. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3699. <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>},
  3700. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3701. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3702. }
  3703. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3704. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3705. req.Header = headers
  3706. client := &amp;http.Client{}
  3707. resp, err := client.Do(req)
  3708. <span class="hljs-comment">// ...</span>
  3709. }
  3710. </code></pre>
  3711. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3712. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3713. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3714. );
  3715. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3716. <span class="hljs-comment">// Define array of request body.</span>
  3717. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3718. <span class="hljs-keyword">try</span> {
  3719. <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>(
  3720. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3721. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3722. )
  3723. );
  3724. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3725. }
  3726. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3727. <span class="hljs-comment">// handle exception or api errors.</span>
  3728. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3729. }
  3730. <span class="hljs-comment">// ...</span>
  3731. </code></pre>
  3732. <p><code>PUT /api/boards/{board}/labels</code></p>
  3733. <p><em>Add a label to a board</em></p>
  3734. <p>If the board doesn't have the name/color label, this function
  3735. adds the label to the board.</p>
  3736. <blockquote>
  3737. <p>Body parameter</p>
  3738. </blockquote>
  3739. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3740. </code></pre>
  3741. <h3 id="add_board_label-parameters">Parameters</h3>
  3742. <table>
  3743. <thead>
  3744. <tr>
  3745. <th>Name</th>
  3746. <th>In</th>
  3747. <th>Type</th>
  3748. <th>Required</th>
  3749. <th>Description</th>
  3750. </tr>
  3751. </thead>
  3752. <tbody>
  3753. <tr>
  3754. <td>board</td>
  3755. <td>path</td>
  3756. <td>string</td>
  3757. <td>true</td>
  3758. <td>the board</td>
  3759. </tr>
  3760. <tr>
  3761. <td>body</td>
  3762. <td>body</td>
  3763. <td>object</td>
  3764. <td>true</td>
  3765. <td>none</td>
  3766. </tr>
  3767. <tr>
  3768. <td>» label</td>
  3769. <td>body</td>
  3770. <td>string</td>
  3771. <td>true</td>
  3772. <td>the label value</td>
  3773. </tr>
  3774. </tbody>
  3775. </table>
  3776. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3777. <p><strong>board</strong>: the board</p>
  3778. <blockquote>
  3779. <p>Example responses</p>
  3780. </blockquote>
  3781. <blockquote>
  3782. <p>200 Response</p>
  3783. </blockquote>
  3784. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3785. </code></pre>
  3786. <h3 id="add_board_label-responses">Responses</h3>
  3787. <table>
  3788. <thead>
  3789. <tr>
  3790. <th>Status</th>
  3791. <th>Meaning</th>
  3792. <th>Description</th>
  3793. <th>Schema</th>
  3794. </tr>
  3795. </thead>
  3796. <tbody>
  3797. <tr>
  3798. <td>200</td>
  3799. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3800. <td>200 response</td>
  3801. <td>string</td>
  3802. </tr>
  3803. </tbody>
  3804. </table>
  3805. <aside class="warning">
  3806. To perform this operation, you must be authenticated by means of one of the following methods:
  3807. UserSecurity
  3808. </aside>
  3809. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3810. <p><a id="opIdset_board_member_permission"></a></p>
  3811. <blockquote>
  3812. <p>Code samples</p>
  3813. </blockquote>
  3814. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3815. curl -X POST /api/boards/{board}/members/{member} \
  3816. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3817. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3818. </code></pre>
  3819. <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>
  3820. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3821. </span></code></pre>
  3822. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3823. &quot;isAdmin&quot;: true,
  3824. &quot;isNoComments&quot;: true,
  3825. &quot;isCommentOnly&quot;: true,
  3826. &quot;isWorker&quot;: true
  3827. }&#x27;</span>;
  3828. <span class="hljs-keyword">const</span> headers = {
  3829. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3830. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3831. };
  3832. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3833. {
  3834. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3835. <span class="hljs-attr">body</span>: inputBody,
  3836. <span class="hljs-attr">headers</span>: headers
  3837. })
  3838. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3839. <span class="hljs-keyword">return</span> res.json();
  3840. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3841. <span class="hljs-built_in">console</span>.log(body);
  3842. });
  3843. </code></pre>
  3844. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3845. <span class="hljs-keyword">const</span> inputBody = {
  3846. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3847. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3848. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3849. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3850. };
  3851. <span class="hljs-keyword">const</span> headers = {
  3852. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3853. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3854. };
  3855. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3856. {
  3857. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3858. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3859. <span class="hljs-attr">headers</span>: headers
  3860. })
  3861. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3862. <span class="hljs-keyword">return</span> res.json();
  3863. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3864. <span class="hljs-built_in">console</span>.log(body);
  3865. });
  3866. </code></pre>
  3867. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3868. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3869. headers = {
  3870. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3871. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3872. }
  3873. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3874. <span class="hljs-symbol">params:</span> {
  3875. }, <span class="hljs-symbol">headers:</span> headers
  3876. p JSON.parse(result)
  3877. </code></pre>
  3878. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3879. headers = {
  3880. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3881. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3882. }
  3883. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3884. <span class="hljs-built_in">print</span>(r.json())
  3885. </code></pre>
  3886. <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>);
  3887. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3888. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3889. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3890. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3891. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3892. String inputLine;
  3893. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3894. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3895. response.append(inputLine);
  3896. }
  3897. in.close();
  3898. System.out.println(response.toString());
  3899. </code></pre>
  3900. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3901. <span class="hljs-keyword">import</span> (
  3902. <span class="hljs-string">&quot;bytes&quot;</span>
  3903. <span class="hljs-string">&quot;net/http&quot;</span>
  3904. )
  3905. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3906. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3907. <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>},
  3908. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3909. }
  3910. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3911. 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)
  3912. req.Header = headers
  3913. client := &amp;http.Client{}
  3914. resp, err := client.Do(req)
  3915. <span class="hljs-comment">// ...</span>
  3916. }
  3917. </code></pre>
  3918. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3919. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3920. );
  3921. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3922. <span class="hljs-comment">// Define array of request body.</span>
  3923. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3924. <span class="hljs-keyword">try</span> {
  3925. <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>(
  3926. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3927. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3928. )
  3929. );
  3930. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3931. }
  3932. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3933. <span class="hljs-comment">// handle exception or api errors.</span>
  3934. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3935. }
  3936. <span class="hljs-comment">// ...</span>
  3937. </code></pre>
  3938. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3939. <p><em>Change the permission of a member of a board</em></p>
  3940. <blockquote>
  3941. <p>Body parameter</p>
  3942. </blockquote>
  3943. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3944. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3945. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3946. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3947. </code></pre>
  3948. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3949. <table>
  3950. <thead>
  3951. <tr>
  3952. <th>Name</th>
  3953. <th>In</th>
  3954. <th>Type</th>
  3955. <th>Required</th>
  3956. <th>Description</th>
  3957. </tr>
  3958. </thead>
  3959. <tbody>
  3960. <tr>
  3961. <td>board</td>
  3962. <td>path</td>
  3963. <td>string</td>
  3964. <td>true</td>
  3965. <td>the ID of the board that we are changing</td>
  3966. </tr>
  3967. <tr>
  3968. <td>member</td>
  3969. <td>path</td>
  3970. <td>string</td>
  3971. <td>true</td>
  3972. <td>the ID of the user to change permissions</td>
  3973. </tr>
  3974. <tr>
  3975. <td>body</td>
  3976. <td>body</td>
  3977. <td>object</td>
  3978. <td>true</td>
  3979. <td>none</td>
  3980. </tr>
  3981. <tr>
  3982. <td>» isAdmin</td>
  3983. <td>body</td>
  3984. <td>boolean</td>
  3985. <td>true</td>
  3986. <td>admin capability</td>
  3987. </tr>
  3988. <tr>
  3989. <td>» isNoComments</td>
  3990. <td>body</td>
  3991. <td>boolean</td>
  3992. <td>true</td>
  3993. <td>NoComments capability</td>
  3994. </tr>
  3995. <tr>
  3996. <td>» isCommentOnly</td>
  3997. <td>body</td>
  3998. <td>boolean</td>
  3999. <td>true</td>
  4000. <td>CommentsOnly capability</td>
  4001. </tr>
  4002. <tr>
  4003. <td>» isWorker</td>
  4004. <td>body</td>
  4005. <td>boolean</td>
  4006. <td>true</td>
  4007. <td>Worker capability</td>
  4008. </tr>
  4009. </tbody>
  4010. </table>
  4011. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4012. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4013. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4014. <h3 id="set_board_member_permission-responses">Responses</h3>
  4015. <table>
  4016. <thead>
  4017. <tr>
  4018. <th>Status</th>
  4019. <th>Meaning</th>
  4020. <th>Description</th>
  4021. <th>Schema</th>
  4022. </tr>
  4023. </thead>
  4024. <tbody>
  4025. <tr>
  4026. <td>200</td>
  4027. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4028. <td>200 response</td>
  4029. <td>None</td>
  4030. </tr>
  4031. </tbody>
  4032. </table>
  4033. <aside class="warning">
  4034. To perform this operation, you must be authenticated by means of one of the following methods:
  4035. UserSecurity
  4036. </aside>
  4037. <h2 id="get_boards_count">get_boards_count</h2>
  4038. <p><a id="opIdget_boards_count"></a></p>
  4039. <blockquote>
  4040. <p>Code samples</p>
  4041. </blockquote>
  4042. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4043. curl -X GET /api/boards_count \
  4044. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4045. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4046. </code></pre>
  4047. <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>
  4048. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4049. </span></code></pre>
  4050. <pre class="highlight tab tab-javascript"><code>
  4051. <span class="hljs-keyword">const</span> headers = {
  4052. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4053. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4054. };
  4055. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4056. {
  4057. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4058. <span class="hljs-attr">headers</span>: headers
  4059. })
  4060. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4061. <span class="hljs-keyword">return</span> res.json();
  4062. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4063. <span class="hljs-built_in">console</span>.log(body);
  4064. });
  4065. </code></pre>
  4066. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4067. <span class="hljs-keyword">const</span> headers = {
  4068. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4069. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4070. };
  4071. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4072. {
  4073. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4074. <span class="hljs-attr">headers</span>: headers
  4075. })
  4076. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4077. <span class="hljs-keyword">return</span> res.json();
  4078. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4079. <span class="hljs-built_in">console</span>.log(body);
  4080. });
  4081. </code></pre>
  4082. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4083. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4084. headers = {
  4085. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4086. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4087. }
  4088. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4089. <span class="hljs-symbol">params:</span> {
  4090. }, <span class="hljs-symbol">headers:</span> headers
  4091. p JSON.parse(result)
  4092. </code></pre>
  4093. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4094. headers = {
  4095. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4096. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4097. }
  4098. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4099. <span class="hljs-built_in">print</span>(r.json())
  4100. </code></pre>
  4101. <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>);
  4102. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4103. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4104. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4105. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4106. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4107. String inputLine;
  4108. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4109. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4110. response.append(inputLine);
  4111. }
  4112. in.close();
  4113. System.out.println(response.toString());
  4114. </code></pre>
  4115. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4116. <span class="hljs-keyword">import</span> (
  4117. <span class="hljs-string">&quot;bytes&quot;</span>
  4118. <span class="hljs-string">&quot;net/http&quot;</span>
  4119. )
  4120. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4121. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4122. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4123. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4124. }
  4125. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4126. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4127. req.Header = headers
  4128. client := &amp;http.Client{}
  4129. resp, err := client.Do(req)
  4130. <span class="hljs-comment">// ...</span>
  4131. }
  4132. </code></pre>
  4133. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4134. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4135. );
  4136. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4137. <span class="hljs-comment">// Define array of request body.</span>
  4138. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4139. <span class="hljs-keyword">try</span> {
  4140. <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>(
  4141. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4142. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4143. )
  4144. );
  4145. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4146. }
  4147. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4148. <span class="hljs-comment">// handle exception or api errors.</span>
  4149. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4150. }
  4151. <span class="hljs-comment">// ...</span>
  4152. </code></pre>
  4153. <p><code>GET /api/boards_count</code></p>
  4154. <p><em>Get public and private boards count</em></p>
  4155. <blockquote>
  4156. <p>Example responses</p>
  4157. </blockquote>
  4158. <blockquote>
  4159. <p>200 Response</p>
  4160. </blockquote>
  4161. <pre class="highlight tab tab-json"><code>{
  4162. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4163. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4164. }
  4165. </code></pre>
  4166. <h3 id="get_boards_count-responses">Responses</h3>
  4167. <table>
  4168. <thead>
  4169. <tr>
  4170. <th>Status</th>
  4171. <th>Meaning</th>
  4172. <th>Description</th>
  4173. <th>Schema</th>
  4174. </tr>
  4175. </thead>
  4176. <tbody>
  4177. <tr>
  4178. <td>200</td>
  4179. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4180. <td>200 response</td>
  4181. <td>Inline</td>
  4182. </tr>
  4183. </tbody>
  4184. </table>
  4185. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4186. <p>Status Code <strong>200</strong></p>
  4187. <table>
  4188. <thead>
  4189. <tr>
  4190. <th>Name</th>
  4191. <th>Type</th>
  4192. <th>Required</th>
  4193. <th>Restrictions</th>
  4194. <th>Description</th>
  4195. </tr>
  4196. </thead>
  4197. <tbody>
  4198. <tr>
  4199. <td>» private</td>
  4200. <td>integer</td>
  4201. <td>false</td>
  4202. <td>none</td>
  4203. <td>none</td>
  4204. </tr>
  4205. <tr>
  4206. <td>» public</td>
  4207. <td>integer</td>
  4208. <td>false</td>
  4209. <td>none</td>
  4210. <td>none</td>
  4211. </tr>
  4212. </tbody>
  4213. </table>
  4214. <aside class="warning">
  4215. To perform this operation, you must be authenticated by means of one of the following methods:
  4216. UserSecurity
  4217. </aside>
  4218. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4219. <p><a id="opIdget_boards_from_user"></a></p>
  4220. <blockquote>
  4221. <p>Code samples</p>
  4222. </blockquote>
  4223. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4224. curl -X GET /api/users/{user}/boards \
  4225. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4226. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4227. </code></pre>
  4228. <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>
  4229. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4230. </span></code></pre>
  4231. <pre class="highlight tab tab-javascript"><code>
  4232. <span class="hljs-keyword">const</span> headers = {
  4233. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4234. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4235. };
  4236. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4237. {
  4238. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4239. <span class="hljs-attr">headers</span>: headers
  4240. })
  4241. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4242. <span class="hljs-keyword">return</span> res.json();
  4243. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4244. <span class="hljs-built_in">console</span>.log(body);
  4245. });
  4246. </code></pre>
  4247. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4248. <span class="hljs-keyword">const</span> headers = {
  4249. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4250. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4251. };
  4252. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4253. {
  4254. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4255. <span class="hljs-attr">headers</span>: headers
  4256. })
  4257. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4258. <span class="hljs-keyword">return</span> res.json();
  4259. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4260. <span class="hljs-built_in">console</span>.log(body);
  4261. });
  4262. </code></pre>
  4263. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4264. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4265. headers = {
  4266. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4267. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4268. }
  4269. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4270. <span class="hljs-symbol">params:</span> {
  4271. }, <span class="hljs-symbol">headers:</span> headers
  4272. p JSON.parse(result)
  4273. </code></pre>
  4274. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4275. headers = {
  4276. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4277. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4278. }
  4279. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4280. <span class="hljs-built_in">print</span>(r.json())
  4281. </code></pre>
  4282. <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>);
  4283. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4284. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4285. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4286. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4287. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4288. String inputLine;
  4289. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4290. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4291. response.append(inputLine);
  4292. }
  4293. in.close();
  4294. System.out.println(response.toString());
  4295. </code></pre>
  4296. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4297. <span class="hljs-keyword">import</span> (
  4298. <span class="hljs-string">&quot;bytes&quot;</span>
  4299. <span class="hljs-string">&quot;net/http&quot;</span>
  4300. )
  4301. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4302. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4303. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4304. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4305. }
  4306. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4307. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4308. req.Header = headers
  4309. client := &amp;http.Client{}
  4310. resp, err := client.Do(req)
  4311. <span class="hljs-comment">// ...</span>
  4312. }
  4313. </code></pre>
  4314. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4315. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4316. );
  4317. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4318. <span class="hljs-comment">// Define array of request body.</span>
  4319. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4320. <span class="hljs-keyword">try</span> {
  4321. <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>(
  4322. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4323. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4324. )
  4325. );
  4326. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4327. }
  4328. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4329. <span class="hljs-comment">// handle exception or api errors.</span>
  4330. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4331. }
  4332. <span class="hljs-comment">// ...</span>
  4333. </code></pre>
  4334. <p><code>GET /api/users/{user}/boards</code></p>
  4335. <p><em>Get all boards attached to a user</em></p>
  4336. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4337. <table>
  4338. <thead>
  4339. <tr>
  4340. <th>Name</th>
  4341. <th>In</th>
  4342. <th>Type</th>
  4343. <th>Required</th>
  4344. <th>Description</th>
  4345. </tr>
  4346. </thead>
  4347. <tbody>
  4348. <tr>
  4349. <td>user</td>
  4350. <td>path</td>
  4351. <td>string</td>
  4352. <td>true</td>
  4353. <td>the ID of the user to retrieve the data</td>
  4354. </tr>
  4355. </tbody>
  4356. </table>
  4357. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4358. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4359. <blockquote>
  4360. <p>Example responses</p>
  4361. </blockquote>
  4362. <blockquote>
  4363. <p>200 Response</p>
  4364. </blockquote>
  4365. <pre class="highlight tab tab-json"><code>[
  4366. {
  4367. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4368. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4369. }
  4370. ]
  4371. </code></pre>
  4372. <h3 id="get_boards_from_user-responses">Responses</h3>
  4373. <table>
  4374. <thead>
  4375. <tr>
  4376. <th>Status</th>
  4377. <th>Meaning</th>
  4378. <th>Description</th>
  4379. <th>Schema</th>
  4380. </tr>
  4381. </thead>
  4382. <tbody>
  4383. <tr>
  4384. <td>200</td>
  4385. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4386. <td>200 response</td>
  4387. <td>Inline</td>
  4388. </tr>
  4389. </tbody>
  4390. </table>
  4391. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4392. <p>Status Code <strong>200</strong></p>
  4393. <table>
  4394. <thead>
  4395. <tr>
  4396. <th>Name</th>
  4397. <th>Type</th>
  4398. <th>Required</th>
  4399. <th>Restrictions</th>
  4400. <th>Description</th>
  4401. </tr>
  4402. </thead>
  4403. <tbody>
  4404. <tr>
  4405. <td>» _id</td>
  4406. <td>string</td>
  4407. <td>false</td>
  4408. <td>none</td>
  4409. <td>none</td>
  4410. </tr>
  4411. <tr>
  4412. <td>» title</td>
  4413. <td>string</td>
  4414. <td>false</td>
  4415. <td>none</td>
  4416. <td>none</td>
  4417. </tr>
  4418. </tbody>
  4419. </table>
  4420. <aside class="warning">
  4421. To perform this operation, you must be authenticated by means of one of the following methods:
  4422. UserSecurity
  4423. </aside>
  4424. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4425. <h2 id="get_all_checklists">get_all_checklists</h2>
  4426. <p><a id="opIdget_all_checklists"></a></p>
  4427. <blockquote>
  4428. <p>Code samples</p>
  4429. </blockquote>
  4430. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4431. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4432. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4433. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4434. </code></pre>
  4435. <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>
  4436. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4437. </span></code></pre>
  4438. <pre class="highlight tab tab-javascript"><code>
  4439. <span class="hljs-keyword">const</span> headers = {
  4440. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4441. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4442. };
  4443. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4444. {
  4445. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4446. <span class="hljs-attr">headers</span>: headers
  4447. })
  4448. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4449. <span class="hljs-keyword">return</span> res.json();
  4450. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4451. <span class="hljs-built_in">console</span>.log(body);
  4452. });
  4453. </code></pre>
  4454. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4455. <span class="hljs-keyword">const</span> headers = {
  4456. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4457. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4458. };
  4459. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4460. {
  4461. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4462. <span class="hljs-attr">headers</span>: headers
  4463. })
  4464. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4465. <span class="hljs-keyword">return</span> res.json();
  4466. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4467. <span class="hljs-built_in">console</span>.log(body);
  4468. });
  4469. </code></pre>
  4470. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4471. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4472. headers = {
  4473. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4474. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4475. }
  4476. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4477. <span class="hljs-symbol">params:</span> {
  4478. }, <span class="hljs-symbol">headers:</span> headers
  4479. p JSON.parse(result)
  4480. </code></pre>
  4481. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4482. headers = {
  4483. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4484. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4485. }
  4486. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4487. <span class="hljs-built_in">print</span>(r.json())
  4488. </code></pre>
  4489. <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>);
  4490. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4491. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4492. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4493. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4494. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4495. String inputLine;
  4496. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4497. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4498. response.append(inputLine);
  4499. }
  4500. in.close();
  4501. System.out.println(response.toString());
  4502. </code></pre>
  4503. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4504. <span class="hljs-keyword">import</span> (
  4505. <span class="hljs-string">&quot;bytes&quot;</span>
  4506. <span class="hljs-string">&quot;net/http&quot;</span>
  4507. )
  4508. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4509. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4510. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4511. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4512. }
  4513. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4514. 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)
  4515. req.Header = headers
  4516. client := &amp;http.Client{}
  4517. resp, err := client.Do(req)
  4518. <span class="hljs-comment">// ...</span>
  4519. }
  4520. </code></pre>
  4521. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4522. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4523. );
  4524. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4525. <span class="hljs-comment">// Define array of request body.</span>
  4526. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4527. <span class="hljs-keyword">try</span> {
  4528. <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>(
  4529. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4530. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4531. )
  4532. );
  4533. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4534. }
  4535. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4536. <span class="hljs-comment">// handle exception or api errors.</span>
  4537. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4538. }
  4539. <span class="hljs-comment">// ...</span>
  4540. </code></pre>
  4541. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4542. <p><em>Get the list of checklists attached to a card</em></p>
  4543. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4544. <table>
  4545. <thead>
  4546. <tr>
  4547. <th>Name</th>
  4548. <th>In</th>
  4549. <th>Type</th>
  4550. <th>Required</th>
  4551. <th>Description</th>
  4552. </tr>
  4553. </thead>
  4554. <tbody>
  4555. <tr>
  4556. <td>board</td>
  4557. <td>path</td>
  4558. <td>string</td>
  4559. <td>true</td>
  4560. <td>the board ID</td>
  4561. </tr>
  4562. <tr>
  4563. <td>card</td>
  4564. <td>path</td>
  4565. <td>string</td>
  4566. <td>true</td>
  4567. <td>the card ID</td>
  4568. </tr>
  4569. </tbody>
  4570. </table>
  4571. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4572. <p><strong>board</strong>: the board ID</p>
  4573. <p><strong>card</strong>: the card ID</p>
  4574. <blockquote>
  4575. <p>Example responses</p>
  4576. </blockquote>
  4577. <blockquote>
  4578. <p>200 Response</p>
  4579. </blockquote>
  4580. <pre class="highlight tab tab-json"><code>[
  4581. {
  4582. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4583. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4584. }
  4585. ]
  4586. </code></pre>
  4587. <h3 id="get_all_checklists-responses">Responses</h3>
  4588. <table>
  4589. <thead>
  4590. <tr>
  4591. <th>Status</th>
  4592. <th>Meaning</th>
  4593. <th>Description</th>
  4594. <th>Schema</th>
  4595. </tr>
  4596. </thead>
  4597. <tbody>
  4598. <tr>
  4599. <td>200</td>
  4600. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4601. <td>200 response</td>
  4602. <td>Inline</td>
  4603. </tr>
  4604. </tbody>
  4605. </table>
  4606. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4607. <p>Status Code <strong>200</strong></p>
  4608. <table>
  4609. <thead>
  4610. <tr>
  4611. <th>Name</th>
  4612. <th>Type</th>
  4613. <th>Required</th>
  4614. <th>Restrictions</th>
  4615. <th>Description</th>
  4616. </tr>
  4617. </thead>
  4618. <tbody>
  4619. <tr>
  4620. <td>» _id</td>
  4621. <td>string</td>
  4622. <td>false</td>
  4623. <td>none</td>
  4624. <td>none</td>
  4625. </tr>
  4626. <tr>
  4627. <td>» title</td>
  4628. <td>string</td>
  4629. <td>false</td>
  4630. <td>none</td>
  4631. <td>none</td>
  4632. </tr>
  4633. </tbody>
  4634. </table>
  4635. <aside class="warning">
  4636. To perform this operation, you must be authenticated by means of one of the following methods:
  4637. UserSecurity
  4638. </aside>
  4639. <h2 id="new_checklist">new_checklist</h2>
  4640. <p><a id="opIdnew_checklist"></a></p>
  4641. <blockquote>
  4642. <p>Code samples</p>
  4643. </blockquote>
  4644. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4645. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4646. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4647. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4648. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4649. </code></pre>
  4650. <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>
  4651. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4652. Accept: application/json
  4653. </span></code></pre>
  4654. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4655. &quot;title&quot;: &quot;string&quot;,
  4656. &quot;items&quot;: &quot;string&quot;
  4657. }&#x27;</span>;
  4658. <span class="hljs-keyword">const</span> headers = {
  4659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4662. };
  4663. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4664. {
  4665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4666. <span class="hljs-attr">body</span>: inputBody,
  4667. <span class="hljs-attr">headers</span>: headers
  4668. })
  4669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4670. <span class="hljs-keyword">return</span> res.json();
  4671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4672. <span class="hljs-built_in">console</span>.log(body);
  4673. });
  4674. </code></pre>
  4675. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4676. <span class="hljs-keyword">const</span> inputBody = {
  4677. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4678. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4679. };
  4680. <span class="hljs-keyword">const</span> headers = {
  4681. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4682. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4683. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4684. };
  4685. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4686. {
  4687. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4688. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4689. <span class="hljs-attr">headers</span>: headers
  4690. })
  4691. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4692. <span class="hljs-keyword">return</span> res.json();
  4693. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4694. <span class="hljs-built_in">console</span>.log(body);
  4695. });
  4696. </code></pre>
  4697. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4698. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4699. headers = {
  4700. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4701. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4702. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4703. }
  4704. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4705. <span class="hljs-symbol">params:</span> {
  4706. }, <span class="hljs-symbol">headers:</span> headers
  4707. p JSON.parse(result)
  4708. </code></pre>
  4709. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4710. headers = {
  4711. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4712. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4713. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4714. }
  4715. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4716. <span class="hljs-built_in">print</span>(r.json())
  4717. </code></pre>
  4718. <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>);
  4719. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4720. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4721. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4722. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4723. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4724. String inputLine;
  4725. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4726. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4727. response.append(inputLine);
  4728. }
  4729. in.close();
  4730. System.out.println(response.toString());
  4731. </code></pre>
  4732. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4733. <span class="hljs-keyword">import</span> (
  4734. <span class="hljs-string">&quot;bytes&quot;</span>
  4735. <span class="hljs-string">&quot;net/http&quot;</span>
  4736. )
  4737. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4738. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4739. <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>},
  4740. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4741. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4742. }
  4743. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4744. 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)
  4745. req.Header = headers
  4746. client := &amp;http.Client{}
  4747. resp, err := client.Do(req)
  4748. <span class="hljs-comment">// ...</span>
  4749. }
  4750. </code></pre>
  4751. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4752. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4753. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4754. );
  4755. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4756. <span class="hljs-comment">// Define array of request body.</span>
  4757. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4758. <span class="hljs-keyword">try</span> {
  4759. <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>(
  4760. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4761. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4762. )
  4763. );
  4764. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4765. }
  4766. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4767. <span class="hljs-comment">// handle exception or api errors.</span>
  4768. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4769. }
  4770. <span class="hljs-comment">// ...</span>
  4771. </code></pre>
  4772. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4773. <p><em>create a new checklist</em></p>
  4774. <blockquote>
  4775. <p>Body parameter</p>
  4776. </blockquote>
  4777. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4778. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4779. </code></pre>
  4780. <h3 id="new_checklist-parameters">Parameters</h3>
  4781. <table>
  4782. <thead>
  4783. <tr>
  4784. <th>Name</th>
  4785. <th>In</th>
  4786. <th>Type</th>
  4787. <th>Required</th>
  4788. <th>Description</th>
  4789. </tr>
  4790. </thead>
  4791. <tbody>
  4792. <tr>
  4793. <td>board</td>
  4794. <td>path</td>
  4795. <td>string</td>
  4796. <td>true</td>
  4797. <td>the board ID</td>
  4798. </tr>
  4799. <tr>
  4800. <td>card</td>
  4801. <td>path</td>
  4802. <td>string</td>
  4803. <td>true</td>
  4804. <td>the card ID</td>
  4805. </tr>
  4806. <tr>
  4807. <td>body</td>
  4808. <td>body</td>
  4809. <td>object</td>
  4810. <td>true</td>
  4811. <td>none</td>
  4812. </tr>
  4813. <tr>
  4814. <td>» title</td>
  4815. <td>body</td>
  4816. <td>string</td>
  4817. <td>true</td>
  4818. <td>the title of the new checklist</td>
  4819. </tr>
  4820. <tr>
  4821. <td>» items</td>
  4822. <td>body</td>
  4823. <td>string</td>
  4824. <td>false</td>
  4825. <td>the list of items on the new checklist</td>
  4826. </tr>
  4827. </tbody>
  4828. </table>
  4829. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4830. <p><strong>board</strong>: the board ID</p>
  4831. <p><strong>card</strong>: the card ID</p>
  4832. <blockquote>
  4833. <p>Example responses</p>
  4834. </blockquote>
  4835. <blockquote>
  4836. <p>200 Response</p>
  4837. </blockquote>
  4838. <pre class="highlight tab tab-json"><code>{
  4839. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4840. }
  4841. </code></pre>
  4842. <h3 id="new_checklist-responses">Responses</h3>
  4843. <table>
  4844. <thead>
  4845. <tr>
  4846. <th>Status</th>
  4847. <th>Meaning</th>
  4848. <th>Description</th>
  4849. <th>Schema</th>
  4850. </tr>
  4851. </thead>
  4852. <tbody>
  4853. <tr>
  4854. <td>200</td>
  4855. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4856. <td>200 response</td>
  4857. <td>Inline</td>
  4858. </tr>
  4859. </tbody>
  4860. </table>
  4861. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4862. <p>Status Code <strong>200</strong></p>
  4863. <table>
  4864. <thead>
  4865. <tr>
  4866. <th>Name</th>
  4867. <th>Type</th>
  4868. <th>Required</th>
  4869. <th>Restrictions</th>
  4870. <th>Description</th>
  4871. </tr>
  4872. </thead>
  4873. <tbody>
  4874. <tr>
  4875. <td>» _id</td>
  4876. <td>string</td>
  4877. <td>false</td>
  4878. <td>none</td>
  4879. <td>none</td>
  4880. </tr>
  4881. </tbody>
  4882. </table>
  4883. <aside class="warning">
  4884. To perform this operation, you must be authenticated by means of one of the following methods:
  4885. UserSecurity
  4886. </aside>
  4887. <h2 id="get_checklist">get_checklist</h2>
  4888. <p><a id="opIdget_checklist"></a></p>
  4889. <blockquote>
  4890. <p>Code samples</p>
  4891. </blockquote>
  4892. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4893. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4894. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4895. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4896. </code></pre>
  4897. <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>
  4898. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4899. </span></code></pre>
  4900. <pre class="highlight tab tab-javascript"><code>
  4901. <span class="hljs-keyword">const</span> headers = {
  4902. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4903. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4904. };
  4905. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4906. {
  4907. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4908. <span class="hljs-attr">headers</span>: headers
  4909. })
  4910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4911. <span class="hljs-keyword">return</span> res.json();
  4912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4913. <span class="hljs-built_in">console</span>.log(body);
  4914. });
  4915. </code></pre>
  4916. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4917. <span class="hljs-keyword">const</span> headers = {
  4918. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4919. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4920. };
  4921. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4922. {
  4923. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4924. <span class="hljs-attr">headers</span>: headers
  4925. })
  4926. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4927. <span class="hljs-keyword">return</span> res.json();
  4928. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4929. <span class="hljs-built_in">console</span>.log(body);
  4930. });
  4931. </code></pre>
  4932. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4933. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4934. headers = {
  4935. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4936. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4937. }
  4938. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4939. <span class="hljs-symbol">params:</span> {
  4940. }, <span class="hljs-symbol">headers:</span> headers
  4941. p JSON.parse(result)
  4942. </code></pre>
  4943. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4944. headers = {
  4945. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4946. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4947. }
  4948. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4949. <span class="hljs-built_in">print</span>(r.json())
  4950. </code></pre>
  4951. <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>);
  4952. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4953. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4954. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4955. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4956. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4957. String inputLine;
  4958. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4959. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4960. response.append(inputLine);
  4961. }
  4962. in.close();
  4963. System.out.println(response.toString());
  4964. </code></pre>
  4965. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4966. <span class="hljs-keyword">import</span> (
  4967. <span class="hljs-string">&quot;bytes&quot;</span>
  4968. <span class="hljs-string">&quot;net/http&quot;</span>
  4969. )
  4970. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4971. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4972. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4973. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4974. }
  4975. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4976. 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)
  4977. req.Header = headers
  4978. client := &amp;http.Client{}
  4979. resp, err := client.Do(req)
  4980. <span class="hljs-comment">// ...</span>
  4981. }
  4982. </code></pre>
  4983. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4984. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4985. );
  4986. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4987. <span class="hljs-comment">// Define array of request body.</span>
  4988. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4989. <span class="hljs-keyword">try</span> {
  4990. <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>(
  4991. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4992. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4993. )
  4994. );
  4995. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4996. }
  4997. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4998. <span class="hljs-comment">// handle exception or api errors.</span>
  4999. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5000. }
  5001. <span class="hljs-comment">// ...</span>
  5002. </code></pre>
  5003. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5004. <p><em>Get a checklist</em></p>
  5005. <h3 id="get_checklist-parameters">Parameters</h3>
  5006. <table>
  5007. <thead>
  5008. <tr>
  5009. <th>Name</th>
  5010. <th>In</th>
  5011. <th>Type</th>
  5012. <th>Required</th>
  5013. <th>Description</th>
  5014. </tr>
  5015. </thead>
  5016. <tbody>
  5017. <tr>
  5018. <td>board</td>
  5019. <td>path</td>
  5020. <td>string</td>
  5021. <td>true</td>
  5022. <td>the board ID</td>
  5023. </tr>
  5024. <tr>
  5025. <td>card</td>
  5026. <td>path</td>
  5027. <td>string</td>
  5028. <td>true</td>
  5029. <td>the card ID</td>
  5030. </tr>
  5031. <tr>
  5032. <td>checklist</td>
  5033. <td>path</td>
  5034. <td>string</td>
  5035. <td>true</td>
  5036. <td>the ID of the checklist</td>
  5037. </tr>
  5038. </tbody>
  5039. </table>
  5040. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5041. <p><strong>board</strong>: the board ID</p>
  5042. <p><strong>card</strong>: the card ID</p>
  5043. <p><strong>checklist</strong>: the ID of the checklist</p>
  5044. <blockquote>
  5045. <p>Example responses</p>
  5046. </blockquote>
  5047. <blockquote>
  5048. <p>200 Response</p>
  5049. </blockquote>
  5050. <pre class="highlight tab tab-json"><code>{
  5051. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5052. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5053. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5054. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5055. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5056. <span class="hljs-attr">&quot;items&quot;</span>: [
  5057. {
  5058. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5059. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5060. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5061. }
  5062. ]
  5063. }
  5064. </code></pre>
  5065. <h3 id="get_checklist-responses">Responses</h3>
  5066. <table>
  5067. <thead>
  5068. <tr>
  5069. <th>Status</th>
  5070. <th>Meaning</th>
  5071. <th>Description</th>
  5072. <th>Schema</th>
  5073. </tr>
  5074. </thead>
  5075. <tbody>
  5076. <tr>
  5077. <td>200</td>
  5078. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5079. <td>200 response</td>
  5080. <td>Inline</td>
  5081. </tr>
  5082. </tbody>
  5083. </table>
  5084. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5085. <p>Status Code <strong>200</strong></p>
  5086. <table>
  5087. <thead>
  5088. <tr>
  5089. <th>Name</th>
  5090. <th>Type</th>
  5091. <th>Required</th>
  5092. <th>Restrictions</th>
  5093. <th>Description</th>
  5094. </tr>
  5095. </thead>
  5096. <tbody>
  5097. <tr>
  5098. <td>» cardId</td>
  5099. <td>string</td>
  5100. <td>false</td>
  5101. <td>none</td>
  5102. <td>none</td>
  5103. </tr>
  5104. <tr>
  5105. <td>» title</td>
  5106. <td>string</td>
  5107. <td>false</td>
  5108. <td>none</td>
  5109. <td>none</td>
  5110. </tr>
  5111. <tr>
  5112. <td>» finishedAt</td>
  5113. <td>string</td>
  5114. <td>false</td>
  5115. <td>none</td>
  5116. <td>none</td>
  5117. </tr>
  5118. <tr>
  5119. <td>» createdAt</td>
  5120. <td>string</td>
  5121. <td>false</td>
  5122. <td>none</td>
  5123. <td>none</td>
  5124. </tr>
  5125. <tr>
  5126. <td>» sort</td>
  5127. <td>number</td>
  5128. <td>false</td>
  5129. <td>none</td>
  5130. <td>none</td>
  5131. </tr>
  5132. <tr>
  5133. <td>» items</td>
  5134. <td>[object]</td>
  5135. <td>false</td>
  5136. <td>none</td>
  5137. <td>none</td>
  5138. </tr>
  5139. <tr>
  5140. <td>»» _id</td>
  5141. <td>string</td>
  5142. <td>false</td>
  5143. <td>none</td>
  5144. <td>none</td>
  5145. </tr>
  5146. <tr>
  5147. <td>»» title</td>
  5148. <td>string</td>
  5149. <td>false</td>
  5150. <td>none</td>
  5151. <td>none</td>
  5152. </tr>
  5153. <tr>
  5154. <td>»» isFinished</td>
  5155. <td>boolean</td>
  5156. <td>false</td>
  5157. <td>none</td>
  5158. <td>none</td>
  5159. </tr>
  5160. </tbody>
  5161. </table>
  5162. <aside class="warning">
  5163. To perform this operation, you must be authenticated by means of one of the following methods:
  5164. UserSecurity
  5165. </aside>
  5166. <h2 id="delete_checklist">delete_checklist</h2>
  5167. <p><a id="opIddelete_checklist"></a></p>
  5168. <blockquote>
  5169. <p>Code samples</p>
  5170. </blockquote>
  5171. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5172. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5173. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5174. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5175. </code></pre>
  5176. <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>
  5177. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5178. </span></code></pre>
  5179. <pre class="highlight tab tab-javascript"><code>
  5180. <span class="hljs-keyword">const</span> headers = {
  5181. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5182. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5183. };
  5184. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5185. {
  5186. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5187. <span class="hljs-attr">headers</span>: headers
  5188. })
  5189. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5190. <span class="hljs-keyword">return</span> res.json();
  5191. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5192. <span class="hljs-built_in">console</span>.log(body);
  5193. });
  5194. </code></pre>
  5195. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5196. <span class="hljs-keyword">const</span> headers = {
  5197. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5198. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5199. };
  5200. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5201. {
  5202. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5203. <span class="hljs-attr">headers</span>: headers
  5204. })
  5205. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5206. <span class="hljs-keyword">return</span> res.json();
  5207. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5208. <span class="hljs-built_in">console</span>.log(body);
  5209. });
  5210. </code></pre>
  5211. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5212. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5213. headers = {
  5214. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5215. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5216. }
  5217. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5218. <span class="hljs-symbol">params:</span> {
  5219. }, <span class="hljs-symbol">headers:</span> headers
  5220. p JSON.parse(result)
  5221. </code></pre>
  5222. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5223. headers = {
  5224. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5225. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5226. }
  5227. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5228. <span class="hljs-built_in">print</span>(r.json())
  5229. </code></pre>
  5230. <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>);
  5231. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5232. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5233. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5234. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5235. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5236. String inputLine;
  5237. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5238. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5239. response.append(inputLine);
  5240. }
  5241. in.close();
  5242. System.out.println(response.toString());
  5243. </code></pre>
  5244. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5245. <span class="hljs-keyword">import</span> (
  5246. <span class="hljs-string">&quot;bytes&quot;</span>
  5247. <span class="hljs-string">&quot;net/http&quot;</span>
  5248. )
  5249. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5250. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5251. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5252. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5253. }
  5254. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5255. 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)
  5256. req.Header = headers
  5257. client := &amp;http.Client{}
  5258. resp, err := client.Do(req)
  5259. <span class="hljs-comment">// ...</span>
  5260. }
  5261. </code></pre>
  5262. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5263. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5264. );
  5265. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5266. <span class="hljs-comment">// Define array of request body.</span>
  5267. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5268. <span class="hljs-keyword">try</span> {
  5269. <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>(
  5270. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5271. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5272. )
  5273. );
  5274. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5275. }
  5276. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5277. <span class="hljs-comment">// handle exception or api errors.</span>
  5278. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5279. }
  5280. <span class="hljs-comment">// ...</span>
  5281. </code></pre>
  5282. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5283. <p><em>Delete a checklist</em></p>
  5284. <p>The checklist will be removed, not put in the recycle bin.</p>
  5285. <h3 id="delete_checklist-parameters">Parameters</h3>
  5286. <table>
  5287. <thead>
  5288. <tr>
  5289. <th>Name</th>
  5290. <th>In</th>
  5291. <th>Type</th>
  5292. <th>Required</th>
  5293. <th>Description</th>
  5294. </tr>
  5295. </thead>
  5296. <tbody>
  5297. <tr>
  5298. <td>board</td>
  5299. <td>path</td>
  5300. <td>string</td>
  5301. <td>true</td>
  5302. <td>the board ID</td>
  5303. </tr>
  5304. <tr>
  5305. <td>card</td>
  5306. <td>path</td>
  5307. <td>string</td>
  5308. <td>true</td>
  5309. <td>the card ID</td>
  5310. </tr>
  5311. <tr>
  5312. <td>checklist</td>
  5313. <td>path</td>
  5314. <td>string</td>
  5315. <td>true</td>
  5316. <td>the ID of the checklist to remove</td>
  5317. </tr>
  5318. </tbody>
  5319. </table>
  5320. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5321. <p><strong>board</strong>: the board ID</p>
  5322. <p><strong>card</strong>: the card ID</p>
  5323. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5324. <blockquote>
  5325. <p>Example responses</p>
  5326. </blockquote>
  5327. <blockquote>
  5328. <p>200 Response</p>
  5329. </blockquote>
  5330. <pre class="highlight tab tab-json"><code>{
  5331. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5332. }
  5333. </code></pre>
  5334. <h3 id="delete_checklist-responses">Responses</h3>
  5335. <table>
  5336. <thead>
  5337. <tr>
  5338. <th>Status</th>
  5339. <th>Meaning</th>
  5340. <th>Description</th>
  5341. <th>Schema</th>
  5342. </tr>
  5343. </thead>
  5344. <tbody>
  5345. <tr>
  5346. <td>200</td>
  5347. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5348. <td>200 response</td>
  5349. <td>Inline</td>
  5350. </tr>
  5351. </tbody>
  5352. </table>
  5353. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5354. <p>Status Code <strong>200</strong></p>
  5355. <table>
  5356. <thead>
  5357. <tr>
  5358. <th>Name</th>
  5359. <th>Type</th>
  5360. <th>Required</th>
  5361. <th>Restrictions</th>
  5362. <th>Description</th>
  5363. </tr>
  5364. </thead>
  5365. <tbody>
  5366. <tr>
  5367. <td>» _id</td>
  5368. <td>string</td>
  5369. <td>false</td>
  5370. <td>none</td>
  5371. <td>none</td>
  5372. </tr>
  5373. </tbody>
  5374. </table>
  5375. <aside class="warning">
  5376. To perform this operation, you must be authenticated by means of one of the following methods:
  5377. UserSecurity
  5378. </aside>
  5379. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5380. <h2 id="get_checklist_item">get_checklist_item</h2>
  5381. <p><a id="opIdget_checklist_item"></a></p>
  5382. <blockquote>
  5383. <p>Code samples</p>
  5384. </blockquote>
  5385. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5386. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5387. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5388. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5389. </code></pre>
  5390. <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>
  5391. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5392. </span></code></pre>
  5393. <pre class="highlight tab tab-javascript"><code>
  5394. <span class="hljs-keyword">const</span> headers = {
  5395. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5396. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5397. };
  5398. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5399. {
  5400. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5401. <span class="hljs-attr">headers</span>: headers
  5402. })
  5403. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5404. <span class="hljs-keyword">return</span> res.json();
  5405. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5406. <span class="hljs-built_in">console</span>.log(body);
  5407. });
  5408. </code></pre>
  5409. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5410. <span class="hljs-keyword">const</span> headers = {
  5411. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5412. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5413. };
  5414. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5415. {
  5416. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5417. <span class="hljs-attr">headers</span>: headers
  5418. })
  5419. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5420. <span class="hljs-keyword">return</span> res.json();
  5421. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5422. <span class="hljs-built_in">console</span>.log(body);
  5423. });
  5424. </code></pre>
  5425. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5426. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5427. headers = {
  5428. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5429. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5430. }
  5431. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5432. <span class="hljs-symbol">params:</span> {
  5433. }, <span class="hljs-symbol">headers:</span> headers
  5434. p JSON.parse(result)
  5435. </code></pre>
  5436. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5437. headers = {
  5438. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5439. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5440. }
  5441. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5442. <span class="hljs-built_in">print</span>(r.json())
  5443. </code></pre>
  5444. <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>);
  5445. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5446. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5447. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5448. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5449. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5450. String inputLine;
  5451. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5452. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5453. response.append(inputLine);
  5454. }
  5455. in.close();
  5456. System.out.println(response.toString());
  5457. </code></pre>
  5458. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5459. <span class="hljs-keyword">import</span> (
  5460. <span class="hljs-string">&quot;bytes&quot;</span>
  5461. <span class="hljs-string">&quot;net/http&quot;</span>
  5462. )
  5463. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5464. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5465. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5466. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5467. }
  5468. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5469. 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)
  5470. req.Header = headers
  5471. client := &amp;http.Client{}
  5472. resp, err := client.Do(req)
  5473. <span class="hljs-comment">// ...</span>
  5474. }
  5475. </code></pre>
  5476. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5477. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5478. );
  5479. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5480. <span class="hljs-comment">// Define array of request body.</span>
  5481. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5482. <span class="hljs-keyword">try</span> {
  5483. <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>(
  5484. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5485. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5486. )
  5487. );
  5488. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5489. }
  5490. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5491. <span class="hljs-comment">// handle exception or api errors.</span>
  5492. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5493. }
  5494. <span class="hljs-comment">// ...</span>
  5495. </code></pre>
  5496. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5497. <p><em>Get a checklist item</em></p>
  5498. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5499. <table>
  5500. <thead>
  5501. <tr>
  5502. <th>Name</th>
  5503. <th>In</th>
  5504. <th>Type</th>
  5505. <th>Required</th>
  5506. <th>Description</th>
  5507. </tr>
  5508. </thead>
  5509. <tbody>
  5510. <tr>
  5511. <td>board</td>
  5512. <td>path</td>
  5513. <td>string</td>
  5514. <td>true</td>
  5515. <td>the board ID</td>
  5516. </tr>
  5517. <tr>
  5518. <td>card</td>
  5519. <td>path</td>
  5520. <td>string</td>
  5521. <td>true</td>
  5522. <td>the card ID</td>
  5523. </tr>
  5524. <tr>
  5525. <td>checklist</td>
  5526. <td>path</td>
  5527. <td>string</td>
  5528. <td>true</td>
  5529. <td>the checklist ID</td>
  5530. </tr>
  5531. <tr>
  5532. <td>item</td>
  5533. <td>path</td>
  5534. <td>string</td>
  5535. <td>true</td>
  5536. <td>the ID of the item</td>
  5537. </tr>
  5538. </tbody>
  5539. </table>
  5540. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5541. <p><strong>board</strong>: the board ID</p>
  5542. <p><strong>card</strong>: the card ID</p>
  5543. <p><strong>checklist</strong>: the checklist ID</p>
  5544. <p><strong>item</strong>: the ID of the item</p>
  5545. <blockquote>
  5546. <p>Example responses</p>
  5547. </blockquote>
  5548. <blockquote>
  5549. <p>200 Response</p>
  5550. </blockquote>
  5551. <pre class="highlight tab tab-json"><code>{
  5552. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5553. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5554. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5555. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5556. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5557. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5558. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5559. }
  5560. </code></pre>
  5561. <h3 id="get_checklist_item-responses">Responses</h3>
  5562. <table>
  5563. <thead>
  5564. <tr>
  5565. <th>Status</th>
  5566. <th>Meaning</th>
  5567. <th>Description</th>
  5568. <th>Schema</th>
  5569. </tr>
  5570. </thead>
  5571. <tbody>
  5572. <tr>
  5573. <td>200</td>
  5574. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5575. <td>200 response</td>
  5576. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5577. </tr>
  5578. </tbody>
  5579. </table>
  5580. <aside class="warning">
  5581. To perform this operation, you must be authenticated by means of one of the following methods:
  5582. UserSecurity
  5583. </aside>
  5584. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5585. <p><a id="opIdedit_checklist_item"></a></p>
  5586. <blockquote>
  5587. <p>Code samples</p>
  5588. </blockquote>
  5589. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5590. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5591. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5592. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5593. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5594. </code></pre>
  5595. <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>
  5596. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5597. Accept: application/json
  5598. </span></code></pre>
  5599. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5600. &quot;isFinished&quot;: &quot;string&quot;,
  5601. &quot;title&quot;: &quot;string&quot;
  5602. }&#x27;</span>;
  5603. <span class="hljs-keyword">const</span> headers = {
  5604. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5605. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5606. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5607. };
  5608. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5609. {
  5610. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5611. <span class="hljs-attr">body</span>: inputBody,
  5612. <span class="hljs-attr">headers</span>: headers
  5613. })
  5614. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5615. <span class="hljs-keyword">return</span> res.json();
  5616. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5617. <span class="hljs-built_in">console</span>.log(body);
  5618. });
  5619. </code></pre>
  5620. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5621. <span class="hljs-keyword">const</span> inputBody = {
  5622. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5623. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5624. };
  5625. <span class="hljs-keyword">const</span> headers = {
  5626. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5627. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5628. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5629. };
  5630. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5631. {
  5632. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5633. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5634. <span class="hljs-attr">headers</span>: headers
  5635. })
  5636. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5637. <span class="hljs-keyword">return</span> res.json();
  5638. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5639. <span class="hljs-built_in">console</span>.log(body);
  5640. });
  5641. </code></pre>
  5642. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5643. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5644. headers = {
  5645. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5646. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5647. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5648. }
  5649. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5650. <span class="hljs-symbol">params:</span> {
  5651. }, <span class="hljs-symbol">headers:</span> headers
  5652. p JSON.parse(result)
  5653. </code></pre>
  5654. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5655. headers = {
  5656. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5657. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5658. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5659. }
  5660. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5661. <span class="hljs-built_in">print</span>(r.json())
  5662. </code></pre>
  5663. <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>);
  5664. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5665. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5666. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5667. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5668. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5669. String inputLine;
  5670. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5671. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5672. response.append(inputLine);
  5673. }
  5674. in.close();
  5675. System.out.println(response.toString());
  5676. </code></pre>
  5677. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5678. <span class="hljs-keyword">import</span> (
  5679. <span class="hljs-string">&quot;bytes&quot;</span>
  5680. <span class="hljs-string">&quot;net/http&quot;</span>
  5681. )
  5682. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5683. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5684. <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>},
  5685. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5686. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5687. }
  5688. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5689. 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)
  5690. req.Header = headers
  5691. client := &amp;http.Client{}
  5692. resp, err := client.Do(req)
  5693. <span class="hljs-comment">// ...</span>
  5694. }
  5695. </code></pre>
  5696. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5697. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5698. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5699. );
  5700. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5701. <span class="hljs-comment">// Define array of request body.</span>
  5702. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5703. <span class="hljs-keyword">try</span> {
  5704. <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>(
  5705. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5706. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5707. )
  5708. );
  5709. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5710. }
  5711. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5712. <span class="hljs-comment">// handle exception or api errors.</span>
  5713. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5714. }
  5715. <span class="hljs-comment">// ...</span>
  5716. </code></pre>
  5717. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5718. <p><em>Edit a checklist item</em></p>
  5719. <blockquote>
  5720. <p>Body parameter</p>
  5721. </blockquote>
  5722. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5723. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5724. </code></pre>
  5725. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5726. <table>
  5727. <thead>
  5728. <tr>
  5729. <th>Name</th>
  5730. <th>In</th>
  5731. <th>Type</th>
  5732. <th>Required</th>
  5733. <th>Description</th>
  5734. </tr>
  5735. </thead>
  5736. <tbody>
  5737. <tr>
  5738. <td>board</td>
  5739. <td>path</td>
  5740. <td>string</td>
  5741. <td>true</td>
  5742. <td>the board ID</td>
  5743. </tr>
  5744. <tr>
  5745. <td>card</td>
  5746. <td>path</td>
  5747. <td>string</td>
  5748. <td>true</td>
  5749. <td>the card ID</td>
  5750. </tr>
  5751. <tr>
  5752. <td>checklist</td>
  5753. <td>path</td>
  5754. <td>string</td>
  5755. <td>true</td>
  5756. <td>the checklist ID</td>
  5757. </tr>
  5758. <tr>
  5759. <td>item</td>
  5760. <td>path</td>
  5761. <td>string</td>
  5762. <td>true</td>
  5763. <td>the ID of the item</td>
  5764. </tr>
  5765. <tr>
  5766. <td>body</td>
  5767. <td>body</td>
  5768. <td>object</td>
  5769. <td>false</td>
  5770. <td>none</td>
  5771. </tr>
  5772. <tr>
  5773. <td>» isFinished</td>
  5774. <td>body</td>
  5775. <td>string</td>
  5776. <td>false</td>
  5777. <td>is the item checked?</td>
  5778. </tr>
  5779. <tr>
  5780. <td>» title</td>
  5781. <td>body</td>
  5782. <td>string</td>
  5783. <td>false</td>
  5784. <td>the new text of the item</td>
  5785. </tr>
  5786. </tbody>
  5787. </table>
  5788. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5789. <p><strong>board</strong>: the board ID</p>
  5790. <p><strong>card</strong>: the card ID</p>
  5791. <p><strong>checklist</strong>: the checklist ID</p>
  5792. <p><strong>item</strong>: the ID of the item</p>
  5793. <blockquote>
  5794. <p>Example responses</p>
  5795. </blockquote>
  5796. <blockquote>
  5797. <p>200 Response</p>
  5798. </blockquote>
  5799. <pre class="highlight tab tab-json"><code>{
  5800. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5801. }
  5802. </code></pre>
  5803. <h3 id="edit_checklist_item-responses">Responses</h3>
  5804. <table>
  5805. <thead>
  5806. <tr>
  5807. <th>Status</th>
  5808. <th>Meaning</th>
  5809. <th>Description</th>
  5810. <th>Schema</th>
  5811. </tr>
  5812. </thead>
  5813. <tbody>
  5814. <tr>
  5815. <td>200</td>
  5816. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5817. <td>200 response</td>
  5818. <td>Inline</td>
  5819. </tr>
  5820. </tbody>
  5821. </table>
  5822. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5823. <p>Status Code <strong>200</strong></p>
  5824. <table>
  5825. <thead>
  5826. <tr>
  5827. <th>Name</th>
  5828. <th>Type</th>
  5829. <th>Required</th>
  5830. <th>Restrictions</th>
  5831. <th>Description</th>
  5832. </tr>
  5833. </thead>
  5834. <tbody>
  5835. <tr>
  5836. <td>» _id</td>
  5837. <td>string</td>
  5838. <td>false</td>
  5839. <td>none</td>
  5840. <td>none</td>
  5841. </tr>
  5842. </tbody>
  5843. </table>
  5844. <aside class="warning">
  5845. To perform this operation, you must be authenticated by means of one of the following methods:
  5846. UserSecurity
  5847. </aside>
  5848. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5849. <p><a id="opIddelete_checklist_item"></a></p>
  5850. <blockquote>
  5851. <p>Code samples</p>
  5852. </blockquote>
  5853. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5854. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5855. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5856. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5857. </code></pre>
  5858. <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>
  5859. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5860. </span></code></pre>
  5861. <pre class="highlight tab tab-javascript"><code>
  5862. <span class="hljs-keyword">const</span> headers = {
  5863. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5864. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5865. };
  5866. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5867. {
  5868. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5869. <span class="hljs-attr">headers</span>: headers
  5870. })
  5871. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5872. <span class="hljs-keyword">return</span> res.json();
  5873. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5874. <span class="hljs-built_in">console</span>.log(body);
  5875. });
  5876. </code></pre>
  5877. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5878. <span class="hljs-keyword">const</span> headers = {
  5879. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5880. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5881. };
  5882. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5883. {
  5884. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5885. <span class="hljs-attr">headers</span>: headers
  5886. })
  5887. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5888. <span class="hljs-keyword">return</span> res.json();
  5889. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5890. <span class="hljs-built_in">console</span>.log(body);
  5891. });
  5892. </code></pre>
  5893. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5894. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5895. headers = {
  5896. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5897. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5898. }
  5899. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5900. <span class="hljs-symbol">params:</span> {
  5901. }, <span class="hljs-symbol">headers:</span> headers
  5902. p JSON.parse(result)
  5903. </code></pre>
  5904. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5905. headers = {
  5906. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5907. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5908. }
  5909. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5910. <span class="hljs-built_in">print</span>(r.json())
  5911. </code></pre>
  5912. <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>);
  5913. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5914. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5915. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5916. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5917. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5918. String inputLine;
  5919. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5920. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5921. response.append(inputLine);
  5922. }
  5923. in.close();
  5924. System.out.println(response.toString());
  5925. </code></pre>
  5926. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5927. <span class="hljs-keyword">import</span> (
  5928. <span class="hljs-string">&quot;bytes&quot;</span>
  5929. <span class="hljs-string">&quot;net/http&quot;</span>
  5930. )
  5931. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5932. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5933. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5934. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5935. }
  5936. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5937. 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)
  5938. req.Header = headers
  5939. client := &amp;http.Client{}
  5940. resp, err := client.Do(req)
  5941. <span class="hljs-comment">// ...</span>
  5942. }
  5943. </code></pre>
  5944. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5945. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5946. );
  5947. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5948. <span class="hljs-comment">// Define array of request body.</span>
  5949. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5950. <span class="hljs-keyword">try</span> {
  5951. <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>(
  5952. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5953. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5954. )
  5955. );
  5956. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5957. }
  5958. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5959. <span class="hljs-comment">// handle exception or api errors.</span>
  5960. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5961. }
  5962. <span class="hljs-comment">// ...</span>
  5963. </code></pre>
  5964. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5965. <p><em>Delete a checklist item</em></p>
  5966. <p>Note: this operation can't be reverted.</p>
  5967. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5968. <table>
  5969. <thead>
  5970. <tr>
  5971. <th>Name</th>
  5972. <th>In</th>
  5973. <th>Type</th>
  5974. <th>Required</th>
  5975. <th>Description</th>
  5976. </tr>
  5977. </thead>
  5978. <tbody>
  5979. <tr>
  5980. <td>board</td>
  5981. <td>path</td>
  5982. <td>string</td>
  5983. <td>true</td>
  5984. <td>the board ID</td>
  5985. </tr>
  5986. <tr>
  5987. <td>card</td>
  5988. <td>path</td>
  5989. <td>string</td>
  5990. <td>true</td>
  5991. <td>the card ID</td>
  5992. </tr>
  5993. <tr>
  5994. <td>checklist</td>
  5995. <td>path</td>
  5996. <td>string</td>
  5997. <td>true</td>
  5998. <td>the checklist ID</td>
  5999. </tr>
  6000. <tr>
  6001. <td>item</td>
  6002. <td>path</td>
  6003. <td>string</td>
  6004. <td>true</td>
  6005. <td>the ID of the item to be removed</td>
  6006. </tr>
  6007. </tbody>
  6008. </table>
  6009. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6010. <p><strong>board</strong>: the board ID</p>
  6011. <p><strong>card</strong>: the card ID</p>
  6012. <p><strong>checklist</strong>: the checklist ID</p>
  6013. <p><strong>item</strong>: the ID of the item to be removed</p>
  6014. <blockquote>
  6015. <p>Example responses</p>
  6016. </blockquote>
  6017. <blockquote>
  6018. <p>200 Response</p>
  6019. </blockquote>
  6020. <pre class="highlight tab tab-json"><code>{
  6021. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6022. }
  6023. </code></pre>
  6024. <h3 id="delete_checklist_item-responses">Responses</h3>
  6025. <table>
  6026. <thead>
  6027. <tr>
  6028. <th>Status</th>
  6029. <th>Meaning</th>
  6030. <th>Description</th>
  6031. <th>Schema</th>
  6032. </tr>
  6033. </thead>
  6034. <tbody>
  6035. <tr>
  6036. <td>200</td>
  6037. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6038. <td>200 response</td>
  6039. <td>Inline</td>
  6040. </tr>
  6041. </tbody>
  6042. </table>
  6043. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6044. <p>Status Code <strong>200</strong></p>
  6045. <table>
  6046. <thead>
  6047. <tr>
  6048. <th>Name</th>
  6049. <th>Type</th>
  6050. <th>Required</th>
  6051. <th>Restrictions</th>
  6052. <th>Description</th>
  6053. </tr>
  6054. </thead>
  6055. <tbody>
  6056. <tr>
  6057. <td>» _id</td>
  6058. <td>string</td>
  6059. <td>false</td>
  6060. <td>none</td>
  6061. <td>none</td>
  6062. </tr>
  6063. </tbody>
  6064. </table>
  6065. <aside class="warning">
  6066. To perform this operation, you must be authenticated by means of one of the following methods:
  6067. UserSecurity
  6068. </aside>
  6069. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6070. <h2 id="get_all_comments">get_all_comments</h2>
  6071. <p><a id="opIdget_all_comments"></a></p>
  6072. <blockquote>
  6073. <p>Code samples</p>
  6074. </blockquote>
  6075. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6076. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6077. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6078. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6079. </code></pre>
  6080. <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>
  6081. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6082. </span></code></pre>
  6083. <pre class="highlight tab tab-javascript"><code>
  6084. <span class="hljs-keyword">const</span> headers = {
  6085. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6086. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6087. };
  6088. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6089. {
  6090. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6091. <span class="hljs-attr">headers</span>: headers
  6092. })
  6093. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6094. <span class="hljs-keyword">return</span> res.json();
  6095. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6096. <span class="hljs-built_in">console</span>.log(body);
  6097. });
  6098. </code></pre>
  6099. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6100. <span class="hljs-keyword">const</span> headers = {
  6101. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6102. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6103. };
  6104. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6105. {
  6106. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6107. <span class="hljs-attr">headers</span>: headers
  6108. })
  6109. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6110. <span class="hljs-keyword">return</span> res.json();
  6111. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6112. <span class="hljs-built_in">console</span>.log(body);
  6113. });
  6114. </code></pre>
  6115. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6116. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6117. headers = {
  6118. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6119. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6120. }
  6121. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6122. <span class="hljs-symbol">params:</span> {
  6123. }, <span class="hljs-symbol">headers:</span> headers
  6124. p JSON.parse(result)
  6125. </code></pre>
  6126. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6127. headers = {
  6128. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6129. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6130. }
  6131. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6132. <span class="hljs-built_in">print</span>(r.json())
  6133. </code></pre>
  6134. <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>);
  6135. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6136. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6137. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6138. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6139. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6140. String inputLine;
  6141. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6142. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6143. response.append(inputLine);
  6144. }
  6145. in.close();
  6146. System.out.println(response.toString());
  6147. </code></pre>
  6148. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6149. <span class="hljs-keyword">import</span> (
  6150. <span class="hljs-string">&quot;bytes&quot;</span>
  6151. <span class="hljs-string">&quot;net/http&quot;</span>
  6152. )
  6153. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6154. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6155. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6156. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6157. }
  6158. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6159. 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)
  6160. req.Header = headers
  6161. client := &amp;http.Client{}
  6162. resp, err := client.Do(req)
  6163. <span class="hljs-comment">// ...</span>
  6164. }
  6165. </code></pre>
  6166. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6167. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6168. );
  6169. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6170. <span class="hljs-comment">// Define array of request body.</span>
  6171. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6172. <span class="hljs-keyword">try</span> {
  6173. <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>(
  6174. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6175. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6176. )
  6177. );
  6178. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6179. }
  6180. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6181. <span class="hljs-comment">// handle exception or api errors.</span>
  6182. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6183. }
  6184. <span class="hljs-comment">// ...</span>
  6185. </code></pre>
  6186. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6187. <p><em>Get all comments attached to a card</em></p>
  6188. <h3 id="get_all_comments-parameters">Parameters</h3>
  6189. <table>
  6190. <thead>
  6191. <tr>
  6192. <th>Name</th>
  6193. <th>In</th>
  6194. <th>Type</th>
  6195. <th>Required</th>
  6196. <th>Description</th>
  6197. </tr>
  6198. </thead>
  6199. <tbody>
  6200. <tr>
  6201. <td>board</td>
  6202. <td>path</td>
  6203. <td>string</td>
  6204. <td>true</td>
  6205. <td>the board ID of the card</td>
  6206. </tr>
  6207. <tr>
  6208. <td>card</td>
  6209. <td>path</td>
  6210. <td>string</td>
  6211. <td>true</td>
  6212. <td>the ID of the card</td>
  6213. </tr>
  6214. </tbody>
  6215. </table>
  6216. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6217. <p><strong>board</strong>: the board ID of the card</p>
  6218. <p><strong>card</strong>: the ID of the card</p>
  6219. <blockquote>
  6220. <p>Example responses</p>
  6221. </blockquote>
  6222. <blockquote>
  6223. <p>200 Response</p>
  6224. </blockquote>
  6225. <pre class="highlight tab tab-json"><code>[
  6226. {
  6227. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6228. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6229. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6230. }
  6231. ]
  6232. </code></pre>
  6233. <h3 id="get_all_comments-responses">Responses</h3>
  6234. <table>
  6235. <thead>
  6236. <tr>
  6237. <th>Status</th>
  6238. <th>Meaning</th>
  6239. <th>Description</th>
  6240. <th>Schema</th>
  6241. </tr>
  6242. </thead>
  6243. <tbody>
  6244. <tr>
  6245. <td>200</td>
  6246. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6247. <td>200 response</td>
  6248. <td>Inline</td>
  6249. </tr>
  6250. </tbody>
  6251. </table>
  6252. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6253. <p>Status Code <strong>200</strong></p>
  6254. <table>
  6255. <thead>
  6256. <tr>
  6257. <th>Name</th>
  6258. <th>Type</th>
  6259. <th>Required</th>
  6260. <th>Restrictions</th>
  6261. <th>Description</th>
  6262. </tr>
  6263. </thead>
  6264. <tbody>
  6265. <tr>
  6266. <td>» _id</td>
  6267. <td>string</td>
  6268. <td>false</td>
  6269. <td>none</td>
  6270. <td>none</td>
  6271. </tr>
  6272. <tr>
  6273. <td>» comment</td>
  6274. <td>string</td>
  6275. <td>false</td>
  6276. <td>none</td>
  6277. <td>none</td>
  6278. </tr>
  6279. <tr>
  6280. <td>» authorId</td>
  6281. <td>string</td>
  6282. <td>false</td>
  6283. <td>none</td>
  6284. <td>none</td>
  6285. </tr>
  6286. </tbody>
  6287. </table>
  6288. <aside class="warning">
  6289. To perform this operation, you must be authenticated by means of one of the following methods:
  6290. UserSecurity
  6291. </aside>
  6292. <h2 id="new_comment">new_comment</h2>
  6293. <p><a id="opIdnew_comment"></a></p>
  6294. <blockquote>
  6295. <p>Code samples</p>
  6296. </blockquote>
  6297. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6298. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6299. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6300. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6301. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6302. </code></pre>
  6303. <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>
  6304. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6305. Accept: application/json
  6306. </span></code></pre>
  6307. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6308. &quot;authorId&quot;: &quot;string&quot;,
  6309. &quot;comment&quot;: &quot;string&quot;
  6310. }&#x27;</span>;
  6311. <span class="hljs-keyword">const</span> headers = {
  6312. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6313. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6314. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6315. };
  6316. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6317. {
  6318. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6319. <span class="hljs-attr">body</span>: inputBody,
  6320. <span class="hljs-attr">headers</span>: headers
  6321. })
  6322. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6323. <span class="hljs-keyword">return</span> res.json();
  6324. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6325. <span class="hljs-built_in">console</span>.log(body);
  6326. });
  6327. </code></pre>
  6328. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6329. <span class="hljs-keyword">const</span> inputBody = {
  6330. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6331. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6332. };
  6333. <span class="hljs-keyword">const</span> headers = {
  6334. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6335. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6336. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6337. };
  6338. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6339. {
  6340. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6341. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6342. <span class="hljs-attr">headers</span>: headers
  6343. })
  6344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6345. <span class="hljs-keyword">return</span> res.json();
  6346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6347. <span class="hljs-built_in">console</span>.log(body);
  6348. });
  6349. </code></pre>
  6350. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6351. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6352. headers = {
  6353. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6354. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6355. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6356. }
  6357. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6358. <span class="hljs-symbol">params:</span> {
  6359. }, <span class="hljs-symbol">headers:</span> headers
  6360. p JSON.parse(result)
  6361. </code></pre>
  6362. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6363. headers = {
  6364. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6365. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6366. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6367. }
  6368. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6369. <span class="hljs-built_in">print</span>(r.json())
  6370. </code></pre>
  6371. <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>);
  6372. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6373. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6374. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6375. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6376. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6377. String inputLine;
  6378. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6379. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6380. response.append(inputLine);
  6381. }
  6382. in.close();
  6383. System.out.println(response.toString());
  6384. </code></pre>
  6385. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6386. <span class="hljs-keyword">import</span> (
  6387. <span class="hljs-string">&quot;bytes&quot;</span>
  6388. <span class="hljs-string">&quot;net/http&quot;</span>
  6389. )
  6390. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6391. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6392. <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>},
  6393. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6394. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6395. }
  6396. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6397. 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)
  6398. req.Header = headers
  6399. client := &amp;http.Client{}
  6400. resp, err := client.Do(req)
  6401. <span class="hljs-comment">// ...</span>
  6402. }
  6403. </code></pre>
  6404. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6405. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6406. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6407. );
  6408. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6409. <span class="hljs-comment">// Define array of request body.</span>
  6410. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6411. <span class="hljs-keyword">try</span> {
  6412. <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>(
  6413. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6414. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6415. )
  6416. );
  6417. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6418. }
  6419. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6420. <span class="hljs-comment">// handle exception or api errors.</span>
  6421. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6422. }
  6423. <span class="hljs-comment">// ...</span>
  6424. </code></pre>
  6425. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6426. <p><em>Add a comment on a card</em></p>
  6427. <blockquote>
  6428. <p>Body parameter</p>
  6429. </blockquote>
  6430. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6431. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6432. </code></pre>
  6433. <h3 id="new_comment-parameters">Parameters</h3>
  6434. <table>
  6435. <thead>
  6436. <tr>
  6437. <th>Name</th>
  6438. <th>In</th>
  6439. <th>Type</th>
  6440. <th>Required</th>
  6441. <th>Description</th>
  6442. </tr>
  6443. </thead>
  6444. <tbody>
  6445. <tr>
  6446. <td>board</td>
  6447. <td>path</td>
  6448. <td>string</td>
  6449. <td>true</td>
  6450. <td>the board ID of the card</td>
  6451. </tr>
  6452. <tr>
  6453. <td>card</td>
  6454. <td>path</td>
  6455. <td>string</td>
  6456. <td>true</td>
  6457. <td>the ID of the card</td>
  6458. </tr>
  6459. <tr>
  6460. <td>body</td>
  6461. <td>body</td>
  6462. <td>object</td>
  6463. <td>true</td>
  6464. <td>none</td>
  6465. </tr>
  6466. <tr>
  6467. <td>» authorId</td>
  6468. <td>body</td>
  6469. <td>string</td>
  6470. <td>true</td>
  6471. <td>the user who 'posted' the comment</td>
  6472. </tr>
  6473. <tr>
  6474. <td>» comment</td>
  6475. <td>body</td>
  6476. <td>string</td>
  6477. <td>true</td>
  6478. <td>the comment value</td>
  6479. </tr>
  6480. </tbody>
  6481. </table>
  6482. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6483. <p><strong>board</strong>: the board ID of the card</p>
  6484. <p><strong>card</strong>: the ID of the card</p>
  6485. <blockquote>
  6486. <p>Example responses</p>
  6487. </blockquote>
  6488. <blockquote>
  6489. <p>200 Response</p>
  6490. </blockquote>
  6491. <pre class="highlight tab tab-json"><code>{
  6492. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6493. }
  6494. </code></pre>
  6495. <h3 id="new_comment-responses">Responses</h3>
  6496. <table>
  6497. <thead>
  6498. <tr>
  6499. <th>Status</th>
  6500. <th>Meaning</th>
  6501. <th>Description</th>
  6502. <th>Schema</th>
  6503. </tr>
  6504. </thead>
  6505. <tbody>
  6506. <tr>
  6507. <td>200</td>
  6508. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6509. <td>200 response</td>
  6510. <td>Inline</td>
  6511. </tr>
  6512. </tbody>
  6513. </table>
  6514. <h3 id="new_comment-responseschema">Response Schema</h3>
  6515. <p>Status Code <strong>200</strong></p>
  6516. <table>
  6517. <thead>
  6518. <tr>
  6519. <th>Name</th>
  6520. <th>Type</th>
  6521. <th>Required</th>
  6522. <th>Restrictions</th>
  6523. <th>Description</th>
  6524. </tr>
  6525. </thead>
  6526. <tbody>
  6527. <tr>
  6528. <td>» _id</td>
  6529. <td>string</td>
  6530. <td>false</td>
  6531. <td>none</td>
  6532. <td>none</td>
  6533. </tr>
  6534. </tbody>
  6535. </table>
  6536. <aside class="warning">
  6537. To perform this operation, you must be authenticated by means of one of the following methods:
  6538. UserSecurity
  6539. </aside>
  6540. <h2 id="get_comment">get_comment</h2>
  6541. <p><a id="opIdget_comment"></a></p>
  6542. <blockquote>
  6543. <p>Code samples</p>
  6544. </blockquote>
  6545. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6546. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6547. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6548. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6549. </code></pre>
  6550. <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>
  6551. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6552. </span></code></pre>
  6553. <pre class="highlight tab tab-javascript"><code>
  6554. <span class="hljs-keyword">const</span> headers = {
  6555. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6556. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6557. };
  6558. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6559. {
  6560. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6561. <span class="hljs-attr">headers</span>: headers
  6562. })
  6563. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6564. <span class="hljs-keyword">return</span> res.json();
  6565. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6566. <span class="hljs-built_in">console</span>.log(body);
  6567. });
  6568. </code></pre>
  6569. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6570. <span class="hljs-keyword">const</span> headers = {
  6571. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6572. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6573. };
  6574. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6575. {
  6576. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6577. <span class="hljs-attr">headers</span>: headers
  6578. })
  6579. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6580. <span class="hljs-keyword">return</span> res.json();
  6581. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6582. <span class="hljs-built_in">console</span>.log(body);
  6583. });
  6584. </code></pre>
  6585. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6586. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6587. headers = {
  6588. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6589. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6590. }
  6591. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6592. <span class="hljs-symbol">params:</span> {
  6593. }, <span class="hljs-symbol">headers:</span> headers
  6594. p JSON.parse(result)
  6595. </code></pre>
  6596. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6597. headers = {
  6598. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6599. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6600. }
  6601. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6602. <span class="hljs-built_in">print</span>(r.json())
  6603. </code></pre>
  6604. <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>);
  6605. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6606. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6607. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6608. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6609. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6610. String inputLine;
  6611. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6612. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6613. response.append(inputLine);
  6614. }
  6615. in.close();
  6616. System.out.println(response.toString());
  6617. </code></pre>
  6618. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6619. <span class="hljs-keyword">import</span> (
  6620. <span class="hljs-string">&quot;bytes&quot;</span>
  6621. <span class="hljs-string">&quot;net/http&quot;</span>
  6622. )
  6623. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6624. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6625. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6626. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6627. }
  6628. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6629. 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)
  6630. req.Header = headers
  6631. client := &amp;http.Client{}
  6632. resp, err := client.Do(req)
  6633. <span class="hljs-comment">// ...</span>
  6634. }
  6635. </code></pre>
  6636. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6637. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6638. );
  6639. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6640. <span class="hljs-comment">// Define array of request body.</span>
  6641. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6642. <span class="hljs-keyword">try</span> {
  6643. <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>(
  6644. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6645. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6646. )
  6647. );
  6648. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6649. }
  6650. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6651. <span class="hljs-comment">// handle exception or api errors.</span>
  6652. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6653. }
  6654. <span class="hljs-comment">// ...</span>
  6655. </code></pre>
  6656. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6657. <p><em>Get a comment on a card</em></p>
  6658. <h3 id="get_comment-parameters">Parameters</h3>
  6659. <table>
  6660. <thead>
  6661. <tr>
  6662. <th>Name</th>
  6663. <th>In</th>
  6664. <th>Type</th>
  6665. <th>Required</th>
  6666. <th>Description</th>
  6667. </tr>
  6668. </thead>
  6669. <tbody>
  6670. <tr>
  6671. <td>board</td>
  6672. <td>path</td>
  6673. <td>string</td>
  6674. <td>true</td>
  6675. <td>the board ID of the card</td>
  6676. </tr>
  6677. <tr>
  6678. <td>card</td>
  6679. <td>path</td>
  6680. <td>string</td>
  6681. <td>true</td>
  6682. <td>the ID of the card</td>
  6683. </tr>
  6684. <tr>
  6685. <td>comment</td>
  6686. <td>path</td>
  6687. <td>string</td>
  6688. <td>true</td>
  6689. <td>the ID of the comment to retrieve</td>
  6690. </tr>
  6691. </tbody>
  6692. </table>
  6693. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6694. <p><strong>board</strong>: the board ID of the card</p>
  6695. <p><strong>card</strong>: the ID of the card</p>
  6696. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6697. <blockquote>
  6698. <p>Example responses</p>
  6699. </blockquote>
  6700. <blockquote>
  6701. <p>200 Response</p>
  6702. </blockquote>
  6703. <pre class="highlight tab tab-json"><code>{
  6704. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6705. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6706. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6707. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6708. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6709. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6710. }
  6711. </code></pre>
  6712. <h3 id="get_comment-responses">Responses</h3>
  6713. <table>
  6714. <thead>
  6715. <tr>
  6716. <th>Status</th>
  6717. <th>Meaning</th>
  6718. <th>Description</th>
  6719. <th>Schema</th>
  6720. </tr>
  6721. </thead>
  6722. <tbody>
  6723. <tr>
  6724. <td>200</td>
  6725. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6726. <td>200 response</td>
  6727. <td><a href="#schemacardcomments">CardComments</a></td>
  6728. </tr>
  6729. </tbody>
  6730. </table>
  6731. <aside class="warning">
  6732. To perform this operation, you must be authenticated by means of one of the following methods:
  6733. UserSecurity
  6734. </aside>
  6735. <h2 id="delete_comment">delete_comment</h2>
  6736. <p><a id="opIddelete_comment"></a></p>
  6737. <blockquote>
  6738. <p>Code samples</p>
  6739. </blockquote>
  6740. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6741. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6742. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6743. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6744. </code></pre>
  6745. <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>
  6746. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6747. </span></code></pre>
  6748. <pre class="highlight tab tab-javascript"><code>
  6749. <span class="hljs-keyword">const</span> headers = {
  6750. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6751. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6752. };
  6753. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6754. {
  6755. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6756. <span class="hljs-attr">headers</span>: headers
  6757. })
  6758. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6759. <span class="hljs-keyword">return</span> res.json();
  6760. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6761. <span class="hljs-built_in">console</span>.log(body);
  6762. });
  6763. </code></pre>
  6764. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6765. <span class="hljs-keyword">const</span> headers = {
  6766. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6767. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6768. };
  6769. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6770. {
  6771. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6772. <span class="hljs-attr">headers</span>: headers
  6773. })
  6774. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6775. <span class="hljs-keyword">return</span> res.json();
  6776. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6777. <span class="hljs-built_in">console</span>.log(body);
  6778. });
  6779. </code></pre>
  6780. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6781. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6782. headers = {
  6783. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6784. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6785. }
  6786. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6787. <span class="hljs-symbol">params:</span> {
  6788. }, <span class="hljs-symbol">headers:</span> headers
  6789. p JSON.parse(result)
  6790. </code></pre>
  6791. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6792. headers = {
  6793. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6794. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6795. }
  6796. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6797. <span class="hljs-built_in">print</span>(r.json())
  6798. </code></pre>
  6799. <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>);
  6800. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6801. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6802. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6803. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6804. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6805. String inputLine;
  6806. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6807. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6808. response.append(inputLine);
  6809. }
  6810. in.close();
  6811. System.out.println(response.toString());
  6812. </code></pre>
  6813. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6814. <span class="hljs-keyword">import</span> (
  6815. <span class="hljs-string">&quot;bytes&quot;</span>
  6816. <span class="hljs-string">&quot;net/http&quot;</span>
  6817. )
  6818. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6819. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6820. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6821. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6822. }
  6823. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6824. 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)
  6825. req.Header = headers
  6826. client := &amp;http.Client{}
  6827. resp, err := client.Do(req)
  6828. <span class="hljs-comment">// ...</span>
  6829. }
  6830. </code></pre>
  6831. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6832. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6833. );
  6834. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6835. <span class="hljs-comment">// Define array of request body.</span>
  6836. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6837. <span class="hljs-keyword">try</span> {
  6838. <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>(
  6839. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6840. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6841. )
  6842. );
  6843. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6844. }
  6845. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6846. <span class="hljs-comment">// handle exception or api errors.</span>
  6847. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6848. }
  6849. <span class="hljs-comment">// ...</span>
  6850. </code></pre>
  6851. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6852. <p><em>Delete a comment on a card</em></p>
  6853. <h3 id="delete_comment-parameters">Parameters</h3>
  6854. <table>
  6855. <thead>
  6856. <tr>
  6857. <th>Name</th>
  6858. <th>In</th>
  6859. <th>Type</th>
  6860. <th>Required</th>
  6861. <th>Description</th>
  6862. </tr>
  6863. </thead>
  6864. <tbody>
  6865. <tr>
  6866. <td>board</td>
  6867. <td>path</td>
  6868. <td>string</td>
  6869. <td>true</td>
  6870. <td>the board ID of the card</td>
  6871. </tr>
  6872. <tr>
  6873. <td>card</td>
  6874. <td>path</td>
  6875. <td>string</td>
  6876. <td>true</td>
  6877. <td>the ID of the card</td>
  6878. </tr>
  6879. <tr>
  6880. <td>comment</td>
  6881. <td>path</td>
  6882. <td>string</td>
  6883. <td>true</td>
  6884. <td>the ID of the comment to delete</td>
  6885. </tr>
  6886. </tbody>
  6887. </table>
  6888. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6889. <p><strong>board</strong>: the board ID of the card</p>
  6890. <p><strong>card</strong>: the ID of the card</p>
  6891. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6892. <blockquote>
  6893. <p>Example responses</p>
  6894. </blockquote>
  6895. <blockquote>
  6896. <p>200 Response</p>
  6897. </blockquote>
  6898. <pre class="highlight tab tab-json"><code>{
  6899. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6900. }
  6901. </code></pre>
  6902. <h3 id="delete_comment-responses">Responses</h3>
  6903. <table>
  6904. <thead>
  6905. <tr>
  6906. <th>Status</th>
  6907. <th>Meaning</th>
  6908. <th>Description</th>
  6909. <th>Schema</th>
  6910. </tr>
  6911. </thead>
  6912. <tbody>
  6913. <tr>
  6914. <td>200</td>
  6915. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6916. <td>200 response</td>
  6917. <td>Inline</td>
  6918. </tr>
  6919. </tbody>
  6920. </table>
  6921. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6922. <p>Status Code <strong>200</strong></p>
  6923. <table>
  6924. <thead>
  6925. <tr>
  6926. <th>Name</th>
  6927. <th>Type</th>
  6928. <th>Required</th>
  6929. <th>Restrictions</th>
  6930. <th>Description</th>
  6931. </tr>
  6932. </thead>
  6933. <tbody>
  6934. <tr>
  6935. <td>» _id</td>
  6936. <td>string</td>
  6937. <td>false</td>
  6938. <td>none</td>
  6939. <td>none</td>
  6940. </tr>
  6941. </tbody>
  6942. </table>
  6943. <aside class="warning">
  6944. To perform this operation, you must be authenticated by means of one of the following methods:
  6945. UserSecurity
  6946. </aside>
  6947. <h1 id="wekan-rest-api-cards">Cards</h1>
  6948. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6949. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6950. <blockquote>
  6951. <p>Code samples</p>
  6952. </blockquote>
  6953. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6954. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6955. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6956. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6957. </code></pre>
  6958. <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>
  6959. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6960. </span></code></pre>
  6961. <pre class="highlight tab tab-javascript"><code>
  6962. <span class="hljs-keyword">const</span> headers = {
  6963. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6964. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6965. };
  6966. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6967. {
  6968. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6969. <span class="hljs-attr">headers</span>: headers
  6970. })
  6971. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6972. <span class="hljs-keyword">return</span> res.json();
  6973. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6974. <span class="hljs-built_in">console</span>.log(body);
  6975. });
  6976. </code></pre>
  6977. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6978. <span class="hljs-keyword">const</span> headers = {
  6979. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6980. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6981. };
  6982. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6983. {
  6984. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6985. <span class="hljs-attr">headers</span>: headers
  6986. })
  6987. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6988. <span class="hljs-keyword">return</span> res.json();
  6989. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6990. <span class="hljs-built_in">console</span>.log(body);
  6991. });
  6992. </code></pre>
  6993. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6994. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6995. headers = {
  6996. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6997. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6998. }
  6999. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7000. <span class="hljs-symbol">params:</span> {
  7001. }, <span class="hljs-symbol">headers:</span> headers
  7002. p JSON.parse(result)
  7003. </code></pre>
  7004. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7005. headers = {
  7006. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7007. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7008. }
  7009. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7010. <span class="hljs-built_in">print</span>(r.json())
  7011. </code></pre>
  7012. <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>);
  7013. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7014. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7015. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7016. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7017. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7018. String inputLine;
  7019. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7020. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7021. response.append(inputLine);
  7022. }
  7023. in.close();
  7024. System.out.println(response.toString());
  7025. </code></pre>
  7026. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7027. <span class="hljs-keyword">import</span> (
  7028. <span class="hljs-string">&quot;bytes&quot;</span>
  7029. <span class="hljs-string">&quot;net/http&quot;</span>
  7030. )
  7031. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7032. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7033. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7034. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7035. }
  7036. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7037. 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)
  7038. req.Header = headers
  7039. client := &amp;http.Client{}
  7040. resp, err := client.Do(req)
  7041. <span class="hljs-comment">// ...</span>
  7042. }
  7043. </code></pre>
  7044. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7045. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7046. );
  7047. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7048. <span class="hljs-comment">// Define array of request body.</span>
  7049. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7050. <span class="hljs-keyword">try</span> {
  7051. <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>(
  7052. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7053. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7054. )
  7055. );
  7056. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7057. }
  7058. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7059. <span class="hljs-comment">// handle exception or api errors.</span>
  7060. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7061. }
  7062. <span class="hljs-comment">// ...</span>
  7063. </code></pre>
  7064. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7065. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7066. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7067. <table>
  7068. <thead>
  7069. <tr>
  7070. <th>Name</th>
  7071. <th>In</th>
  7072. <th>Type</th>
  7073. <th>Required</th>
  7074. <th>Description</th>
  7075. </tr>
  7076. </thead>
  7077. <tbody>
  7078. <tr>
  7079. <td>board</td>
  7080. <td>path</td>
  7081. <td>string</td>
  7082. <td>true</td>
  7083. <td>the board ID</td>
  7084. </tr>
  7085. <tr>
  7086. <td>customField</td>
  7087. <td>path</td>
  7088. <td>string</td>
  7089. <td>true</td>
  7090. <td>the list ID</td>
  7091. </tr>
  7092. <tr>
  7093. <td>customFieldValue</td>
  7094. <td>path</td>
  7095. <td>string</td>
  7096. <td>true</td>
  7097. <td>the value to look for</td>
  7098. </tr>
  7099. </tbody>
  7100. </table>
  7101. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7102. <p><strong>board</strong>: the board ID</p>
  7103. <p><strong>customField</strong>: the list ID</p>
  7104. <p><strong>customFieldValue</strong>: the value to look for</p>
  7105. <blockquote>
  7106. <p>Example responses</p>
  7107. </blockquote>
  7108. <blockquote>
  7109. <p>200 Response</p>
  7110. </blockquote>
  7111. <pre class="highlight tab tab-json"><code>[
  7112. {
  7113. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7114. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7115. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7116. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7117. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7118. }
  7119. ]
  7120. </code></pre>
  7121. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7122. <table>
  7123. <thead>
  7124. <tr>
  7125. <th>Status</th>
  7126. <th>Meaning</th>
  7127. <th>Description</th>
  7128. <th>Schema</th>
  7129. </tr>
  7130. </thead>
  7131. <tbody>
  7132. <tr>
  7133. <td>200</td>
  7134. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7135. <td>200 response</td>
  7136. <td>Inline</td>
  7137. </tr>
  7138. </tbody>
  7139. </table>
  7140. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7141. <p>Status Code <strong>200</strong></p>
  7142. <table>
  7143. <thead>
  7144. <tr>
  7145. <th>Name</th>
  7146. <th>Type</th>
  7147. <th>Required</th>
  7148. <th>Restrictions</th>
  7149. <th>Description</th>
  7150. </tr>
  7151. </thead>
  7152. <tbody>
  7153. <tr>
  7154. <td>» _id</td>
  7155. <td>string</td>
  7156. <td>false</td>
  7157. <td>none</td>
  7158. <td>none</td>
  7159. </tr>
  7160. <tr>
  7161. <td>» title</td>
  7162. <td>string</td>
  7163. <td>false</td>
  7164. <td>none</td>
  7165. <td>none</td>
  7166. </tr>
  7167. <tr>
  7168. <td>» description</td>
  7169. <td>string</td>
  7170. <td>false</td>
  7171. <td>none</td>
  7172. <td>none</td>
  7173. </tr>
  7174. <tr>
  7175. <td>» listId</td>
  7176. <td>string</td>
  7177. <td>false</td>
  7178. <td>none</td>
  7179. <td>none</td>
  7180. </tr>
  7181. <tr>
  7182. <td>» swinlaneId</td>
  7183. <td>string</td>
  7184. <td>false</td>
  7185. <td>none</td>
  7186. <td>none</td>
  7187. </tr>
  7188. </tbody>
  7189. </table>
  7190. <aside class="warning">
  7191. To perform this operation, you must be authenticated by means of one of the following methods:
  7192. UserSecurity
  7193. </aside>
  7194. <h2 id="get_all_cards">get_all_cards</h2>
  7195. <p><a id="opIdget_all_cards"></a></p>
  7196. <blockquote>
  7197. <p>Code samples</p>
  7198. </blockquote>
  7199. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7200. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7201. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7202. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7203. </code></pre>
  7204. <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>
  7205. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7206. </span></code></pre>
  7207. <pre class="highlight tab tab-javascript"><code>
  7208. <span class="hljs-keyword">const</span> headers = {
  7209. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7210. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7211. };
  7212. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7213. {
  7214. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7215. <span class="hljs-attr">headers</span>: headers
  7216. })
  7217. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7218. <span class="hljs-keyword">return</span> res.json();
  7219. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7220. <span class="hljs-built_in">console</span>.log(body);
  7221. });
  7222. </code></pre>
  7223. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7224. <span class="hljs-keyword">const</span> headers = {
  7225. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7226. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7227. };
  7228. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7229. {
  7230. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7231. <span class="hljs-attr">headers</span>: headers
  7232. })
  7233. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7234. <span class="hljs-keyword">return</span> res.json();
  7235. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7236. <span class="hljs-built_in">console</span>.log(body);
  7237. });
  7238. </code></pre>
  7239. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7240. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7241. headers = {
  7242. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7243. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7244. }
  7245. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7246. <span class="hljs-symbol">params:</span> {
  7247. }, <span class="hljs-symbol">headers:</span> headers
  7248. p JSON.parse(result)
  7249. </code></pre>
  7250. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7251. headers = {
  7252. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7253. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7254. }
  7255. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7256. <span class="hljs-built_in">print</span>(r.json())
  7257. </code></pre>
  7258. <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>);
  7259. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7260. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7261. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7262. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7263. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7264. String inputLine;
  7265. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7266. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7267. response.append(inputLine);
  7268. }
  7269. in.close();
  7270. System.out.println(response.toString());
  7271. </code></pre>
  7272. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7273. <span class="hljs-keyword">import</span> (
  7274. <span class="hljs-string">&quot;bytes&quot;</span>
  7275. <span class="hljs-string">&quot;net/http&quot;</span>
  7276. )
  7277. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7278. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7279. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7280. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7281. }
  7282. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7283. 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)
  7284. req.Header = headers
  7285. client := &amp;http.Client{}
  7286. resp, err := client.Do(req)
  7287. <span class="hljs-comment">// ...</span>
  7288. }
  7289. </code></pre>
  7290. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7291. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7292. );
  7293. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7294. <span class="hljs-comment">// Define array of request body.</span>
  7295. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7296. <span class="hljs-keyword">try</span> {
  7297. <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>(
  7298. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7299. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7300. )
  7301. );
  7302. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7303. }
  7304. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7305. <span class="hljs-comment">// handle exception or api errors.</span>
  7306. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7307. }
  7308. <span class="hljs-comment">// ...</span>
  7309. </code></pre>
  7310. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7311. <p><em>Get all Cards attached to a List</em></p>
  7312. <h3 id="get_all_cards-parameters">Parameters</h3>
  7313. <table>
  7314. <thead>
  7315. <tr>
  7316. <th>Name</th>
  7317. <th>In</th>
  7318. <th>Type</th>
  7319. <th>Required</th>
  7320. <th>Description</th>
  7321. </tr>
  7322. </thead>
  7323. <tbody>
  7324. <tr>
  7325. <td>board</td>
  7326. <td>path</td>
  7327. <td>string</td>
  7328. <td>true</td>
  7329. <td>the board ID</td>
  7330. </tr>
  7331. <tr>
  7332. <td>list</td>
  7333. <td>path</td>
  7334. <td>string</td>
  7335. <td>true</td>
  7336. <td>the list ID</td>
  7337. </tr>
  7338. </tbody>
  7339. </table>
  7340. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7341. <p><strong>board</strong>: the board ID</p>
  7342. <p><strong>list</strong>: the list ID</p>
  7343. <blockquote>
  7344. <p>Example responses</p>
  7345. </blockquote>
  7346. <blockquote>
  7347. <p>200 Response</p>
  7348. </blockquote>
  7349. <pre class="highlight tab tab-json"><code>[
  7350. {
  7351. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7352. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7353. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7354. }
  7355. ]
  7356. </code></pre>
  7357. <h3 id="get_all_cards-responses">Responses</h3>
  7358. <table>
  7359. <thead>
  7360. <tr>
  7361. <th>Status</th>
  7362. <th>Meaning</th>
  7363. <th>Description</th>
  7364. <th>Schema</th>
  7365. </tr>
  7366. </thead>
  7367. <tbody>
  7368. <tr>
  7369. <td>200</td>
  7370. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7371. <td>200 response</td>
  7372. <td>Inline</td>
  7373. </tr>
  7374. </tbody>
  7375. </table>
  7376. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7377. <p>Status Code <strong>200</strong></p>
  7378. <table>
  7379. <thead>
  7380. <tr>
  7381. <th>Name</th>
  7382. <th>Type</th>
  7383. <th>Required</th>
  7384. <th>Restrictions</th>
  7385. <th>Description</th>
  7386. </tr>
  7387. </thead>
  7388. <tbody>
  7389. <tr>
  7390. <td>» _id</td>
  7391. <td>string</td>
  7392. <td>false</td>
  7393. <td>none</td>
  7394. <td>none</td>
  7395. </tr>
  7396. <tr>
  7397. <td>» title</td>
  7398. <td>string</td>
  7399. <td>false</td>
  7400. <td>none</td>
  7401. <td>none</td>
  7402. </tr>
  7403. <tr>
  7404. <td>» description</td>
  7405. <td>string</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="new_card">new_card</h2>
  7417. <p><a id="opIdnew_card"></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 POST /api/boards/{board}/lists/{list}/cards \
  7423. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7424. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7425. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7426. </code></pre>
  7427. <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>
  7428. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7429. Accept: application/json
  7430. </span></code></pre>
  7431. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7432. &quot;authorId&quot;: &quot;string&quot;,
  7433. &quot;members&quot;: &quot;string&quot;,
  7434. &quot;assignees&quot;: &quot;string&quot;,
  7435. &quot;title&quot;: &quot;string&quot;,
  7436. &quot;description&quot;: &quot;string&quot;,
  7437. &quot;swimlaneId&quot;: &quot;string&quot;
  7438. }&#x27;</span>;
  7439. <span class="hljs-keyword">const</span> headers = {
  7440. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7441. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7442. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7443. };
  7444. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7445. {
  7446. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7447. <span class="hljs-attr">body</span>: inputBody,
  7448. <span class="hljs-attr">headers</span>: headers
  7449. })
  7450. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7451. <span class="hljs-keyword">return</span> res.json();
  7452. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7453. <span class="hljs-built_in">console</span>.log(body);
  7454. });
  7455. </code></pre>
  7456. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7457. <span class="hljs-keyword">const</span> inputBody = {
  7458. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7459. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7460. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7461. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7462. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7463. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7464. };
  7465. <span class="hljs-keyword">const</span> headers = {
  7466. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7467. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7468. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7469. };
  7470. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7471. {
  7472. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7473. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7474. <span class="hljs-attr">headers</span>: headers
  7475. })
  7476. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7477. <span class="hljs-keyword">return</span> res.json();
  7478. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7479. <span class="hljs-built_in">console</span>.log(body);
  7480. });
  7481. </code></pre>
  7482. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7483. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7484. headers = {
  7485. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7486. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7487. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7488. }
  7489. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7490. <span class="hljs-symbol">params:</span> {
  7491. }, <span class="hljs-symbol">headers:</span> headers
  7492. p JSON.parse(result)
  7493. </code></pre>
  7494. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7495. headers = {
  7496. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7497. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7498. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7499. }
  7500. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7501. <span class="hljs-built_in">print</span>(r.json())
  7502. </code></pre>
  7503. <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>);
  7504. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7505. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7506. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7507. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7508. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7509. String inputLine;
  7510. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7511. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7512. response.append(inputLine);
  7513. }
  7514. in.close();
  7515. System.out.println(response.toString());
  7516. </code></pre>
  7517. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7518. <span class="hljs-keyword">import</span> (
  7519. <span class="hljs-string">&quot;bytes&quot;</span>
  7520. <span class="hljs-string">&quot;net/http&quot;</span>
  7521. )
  7522. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7523. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7524. <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>},
  7525. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7526. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7527. }
  7528. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7529. 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)
  7530. req.Header = headers
  7531. client := &amp;http.Client{}
  7532. resp, err := client.Do(req)
  7533. <span class="hljs-comment">// ...</span>
  7534. }
  7535. </code></pre>
  7536. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7537. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7538. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7539. );
  7540. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7541. <span class="hljs-comment">// Define array of request body.</span>
  7542. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7543. <span class="hljs-keyword">try</span> {
  7544. <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>(
  7545. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7546. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7547. )
  7548. );
  7549. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7550. }
  7551. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7552. <span class="hljs-comment">// handle exception or api errors.</span>
  7553. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7554. }
  7555. <span class="hljs-comment">// ...</span>
  7556. </code></pre>
  7557. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7558. <p><em>Create a new Card</em></p>
  7559. <blockquote>
  7560. <p>Body parameter</p>
  7561. </blockquote>
  7562. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7563. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7564. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7565. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7566. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7567. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7568. </code></pre>
  7569. <h3 id="new_card-parameters">Parameters</h3>
  7570. <table>
  7571. <thead>
  7572. <tr>
  7573. <th>Name</th>
  7574. <th>In</th>
  7575. <th>Type</th>
  7576. <th>Required</th>
  7577. <th>Description</th>
  7578. </tr>
  7579. </thead>
  7580. <tbody>
  7581. <tr>
  7582. <td>board</td>
  7583. <td>path</td>
  7584. <td>string</td>
  7585. <td>true</td>
  7586. <td>the board ID of the new card</td>
  7587. </tr>
  7588. <tr>
  7589. <td>list</td>
  7590. <td>path</td>
  7591. <td>string</td>
  7592. <td>true</td>
  7593. <td>the list ID of the new card</td>
  7594. </tr>
  7595. <tr>
  7596. <td>body</td>
  7597. <td>body</td>
  7598. <td>object</td>
  7599. <td>true</td>
  7600. <td>none</td>
  7601. </tr>
  7602. <tr>
  7603. <td>» authorId</td>
  7604. <td>body</td>
  7605. <td>string</td>
  7606. <td>true</td>
  7607. <td>the authorId value</td>
  7608. </tr>
  7609. <tr>
  7610. <td>» members</td>
  7611. <td>body</td>
  7612. <td>string</td>
  7613. <td>false</td>
  7614. <td>the member IDs list of the new card</td>
  7615. </tr>
  7616. <tr>
  7617. <td>» assignees</td>
  7618. <td>body</td>
  7619. <td>string</td>
  7620. <td>false</td>
  7621. <td>the array of maximum one ID of assignee of the new card</td>
  7622. </tr>
  7623. <tr>
  7624. <td>» title</td>
  7625. <td>body</td>
  7626. <td>string</td>
  7627. <td>true</td>
  7628. <td>the title of the new card</td>
  7629. </tr>
  7630. <tr>
  7631. <td>» description</td>
  7632. <td>body</td>
  7633. <td>string</td>
  7634. <td>true</td>
  7635. <td>the description of the new card</td>
  7636. </tr>
  7637. <tr>
  7638. <td>» swimlaneId</td>
  7639. <td>body</td>
  7640. <td>string</td>
  7641. <td>true</td>
  7642. <td>the swimlane ID of the new card</td>
  7643. </tr>
  7644. </tbody>
  7645. </table>
  7646. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7647. <p><strong>board</strong>: the board ID of the new card</p>
  7648. <p><strong>list</strong>: the list ID of the new card</p>
  7649. <blockquote>
  7650. <p>Example responses</p>
  7651. </blockquote>
  7652. <blockquote>
  7653. <p>200 Response</p>
  7654. </blockquote>
  7655. <pre class="highlight tab tab-json"><code>{
  7656. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7657. }
  7658. </code></pre>
  7659. <h3 id="new_card-responses">Responses</h3>
  7660. <table>
  7661. <thead>
  7662. <tr>
  7663. <th>Status</th>
  7664. <th>Meaning</th>
  7665. <th>Description</th>
  7666. <th>Schema</th>
  7667. </tr>
  7668. </thead>
  7669. <tbody>
  7670. <tr>
  7671. <td>200</td>
  7672. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7673. <td>200 response</td>
  7674. <td>Inline</td>
  7675. </tr>
  7676. </tbody>
  7677. </table>
  7678. <h3 id="new_card-responseschema">Response Schema</h3>
  7679. <p>Status Code <strong>200</strong></p>
  7680. <table>
  7681. <thead>
  7682. <tr>
  7683. <th>Name</th>
  7684. <th>Type</th>
  7685. <th>Required</th>
  7686. <th>Restrictions</th>
  7687. <th>Description</th>
  7688. </tr>
  7689. </thead>
  7690. <tbody>
  7691. <tr>
  7692. <td>» _id</td>
  7693. <td>string</td>
  7694. <td>false</td>
  7695. <td>none</td>
  7696. <td>none</td>
  7697. </tr>
  7698. </tbody>
  7699. </table>
  7700. <aside class="warning">
  7701. To perform this operation, you must be authenticated by means of one of the following methods:
  7702. UserSecurity
  7703. </aside>
  7704. <h2 id="get_card">get_card</h2>
  7705. <p><a id="opIdget_card"></a></p>
  7706. <blockquote>
  7707. <p>Code samples</p>
  7708. </blockquote>
  7709. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7710. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7711. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7712. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7713. </code></pre>
  7714. <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>
  7715. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7716. </span></code></pre>
  7717. <pre class="highlight tab tab-javascript"><code>
  7718. <span class="hljs-keyword">const</span> headers = {
  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. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7723. {
  7724. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7725. <span class="hljs-attr">headers</span>: headers
  7726. })
  7727. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7728. <span class="hljs-keyword">return</span> res.json();
  7729. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7730. <span class="hljs-built_in">console</span>.log(body);
  7731. });
  7732. </code></pre>
  7733. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7734. <span class="hljs-keyword">const</span> headers = {
  7735. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7736. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7737. };
  7738. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7739. {
  7740. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7741. <span class="hljs-attr">headers</span>: headers
  7742. })
  7743. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7744. <span class="hljs-keyword">return</span> res.json();
  7745. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7746. <span class="hljs-built_in">console</span>.log(body);
  7747. });
  7748. </code></pre>
  7749. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7750. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7751. headers = {
  7752. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7753. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7754. }
  7755. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7756. <span class="hljs-symbol">params:</span> {
  7757. }, <span class="hljs-symbol">headers:</span> headers
  7758. p JSON.parse(result)
  7759. </code></pre>
  7760. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7761. headers = {
  7762. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7763. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7764. }
  7765. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7766. <span class="hljs-built_in">print</span>(r.json())
  7767. </code></pre>
  7768. <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>);
  7769. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7770. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7771. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7772. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7773. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7774. String inputLine;
  7775. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7776. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7777. response.append(inputLine);
  7778. }
  7779. in.close();
  7780. System.out.println(response.toString());
  7781. </code></pre>
  7782. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7783. <span class="hljs-keyword">import</span> (
  7784. <span class="hljs-string">&quot;bytes&quot;</span>
  7785. <span class="hljs-string">&quot;net/http&quot;</span>
  7786. )
  7787. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7788. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7789. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7790. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7791. }
  7792. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7793. 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)
  7794. req.Header = headers
  7795. client := &amp;http.Client{}
  7796. resp, err := client.Do(req)
  7797. <span class="hljs-comment">// ...</span>
  7798. }
  7799. </code></pre>
  7800. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7801. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7802. );
  7803. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7804. <span class="hljs-comment">// Define array of request body.</span>
  7805. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7806. <span class="hljs-keyword">try</span> {
  7807. <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>(
  7808. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7809. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7810. )
  7811. );
  7812. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7813. }
  7814. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7815. <span class="hljs-comment">// handle exception or api errors.</span>
  7816. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7817. }
  7818. <span class="hljs-comment">// ...</span>
  7819. </code></pre>
  7820. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7821. <p><em>Get a Card</em></p>
  7822. <h3 id="get_card-parameters">Parameters</h3>
  7823. <table>
  7824. <thead>
  7825. <tr>
  7826. <th>Name</th>
  7827. <th>In</th>
  7828. <th>Type</th>
  7829. <th>Required</th>
  7830. <th>Description</th>
  7831. </tr>
  7832. </thead>
  7833. <tbody>
  7834. <tr>
  7835. <td>board</td>
  7836. <td>path</td>
  7837. <td>string</td>
  7838. <td>true</td>
  7839. <td>the board ID</td>
  7840. </tr>
  7841. <tr>
  7842. <td>list</td>
  7843. <td>path</td>
  7844. <td>string</td>
  7845. <td>true</td>
  7846. <td>the list ID of the card</td>
  7847. </tr>
  7848. <tr>
  7849. <td>card</td>
  7850. <td>path</td>
  7851. <td>string</td>
  7852. <td>true</td>
  7853. <td>the card ID</td>
  7854. </tr>
  7855. </tbody>
  7856. </table>
  7857. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7858. <p><strong>board</strong>: the board ID</p>
  7859. <p><strong>list</strong>: the list ID of the card</p>
  7860. <p><strong>card</strong>: the card ID</p>
  7861. <blockquote>
  7862. <p>Example responses</p>
  7863. </blockquote>
  7864. <blockquote>
  7865. <p>200 Response</p>
  7866. </blockquote>
  7867. <pre class="highlight tab tab-json"><code>{
  7868. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7869. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  7870. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7871. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7872. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7873. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7874. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7875. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7876. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  7877. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7878. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7879. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  7880. {}
  7881. ],
  7882. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7883. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7884. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7885. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7886. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  7887. <span class="hljs-string">&quot;string&quot;</span>
  7888. ],
  7889. <span class="hljs-attr">&quot;members&quot;</span>: [
  7890. <span class="hljs-string">&quot;string&quot;</span>
  7891. ],
  7892. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  7893. <span class="hljs-string">&quot;string&quot;</span>
  7894. ],
  7895. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7896. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7897. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7898. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7899. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  7900. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  7901. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7902. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  7903. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  7904. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7905. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7906. <span class="hljs-attr">&quot;vote&quot;</span>: {
  7907. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7908. <span class="hljs-attr">&quot;positive&quot;</span>: [
  7909. <span class="hljs-string">&quot;string&quot;</span>
  7910. ],
  7911. <span class="hljs-attr">&quot;negative&quot;</span>: [
  7912. <span class="hljs-string">&quot;string&quot;</span>
  7913. ],
  7914. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7915. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  7916. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  7917. },
  7918. <span class="hljs-attr">&quot;poker&quot;</span>: {
  7919. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  7920. <span class="hljs-attr">&quot;one&quot;</span>: [
  7921. <span class="hljs-string">&quot;string&quot;</span>
  7922. ],
  7923. <span class="hljs-attr">&quot;two&quot;</span>: [
  7924. <span class="hljs-string">&quot;string&quot;</span>
  7925. ],
  7926. <span class="hljs-attr">&quot;three&quot;</span>: [
  7927. <span class="hljs-string">&quot;string&quot;</span>
  7928. ],
  7929. <span class="hljs-attr">&quot;five&quot;</span>: [
  7930. <span class="hljs-string">&quot;string&quot;</span>
  7931. ],
  7932. <span class="hljs-attr">&quot;eight&quot;</span>: [
  7933. <span class="hljs-string">&quot;string&quot;</span>
  7934. ],
  7935. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  7936. <span class="hljs-string">&quot;string&quot;</span>
  7937. ],
  7938. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  7939. <span class="hljs-string">&quot;string&quot;</span>
  7940. ],
  7941. <span class="hljs-attr">&quot;forty&quot;</span>: [
  7942. <span class="hljs-string">&quot;string&quot;</span>
  7943. ],
  7944. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  7945. <span class="hljs-string">&quot;string&quot;</span>
  7946. ],
  7947. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  7948. <span class="hljs-string">&quot;string&quot;</span>
  7949. ],
  7950. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7951. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  7952. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  7953. },
  7954. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  7955. <span class="hljs-string">&quot;string&quot;</span>
  7956. ],
  7957. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  7958. <span class="hljs-number">0</span>
  7959. ],
  7960. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  7961. <span class="hljs-string">&quot;string&quot;</span>
  7962. ],
  7963. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  7964. }
  7965. </code></pre>
  7966. <h3 id="get_card-responses">Responses</h3>
  7967. <table>
  7968. <thead>
  7969. <tr>
  7970. <th>Status</th>
  7971. <th>Meaning</th>
  7972. <th>Description</th>
  7973. <th>Schema</th>
  7974. </tr>
  7975. </thead>
  7976. <tbody>
  7977. <tr>
  7978. <td>200</td>
  7979. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7980. <td>200 response</td>
  7981. <td><a href="#schemacards">Cards</a></td>
  7982. </tr>
  7983. </tbody>
  7984. </table>
  7985. <aside class="warning">
  7986. To perform this operation, you must be authenticated by means of one of the following methods:
  7987. UserSecurity
  7988. </aside>
  7989. <h2 id="edit_card">edit_card</h2>
  7990. <p><a id="opIdedit_card"></a></p>
  7991. <blockquote>
  7992. <p>Code samples</p>
  7993. </blockquote>
  7994. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7995. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  7996. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7997. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7998. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7999. </code></pre>
  8000. <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>
  8001. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8002. Accept: application/json
  8003. </span></code></pre>
  8004. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8005. &quot;title&quot;: &quot;string&quot;,
  8006. &quot;sort&quot;: &quot;string&quot;,
  8007. &quot;parentId&quot;: &quot;string&quot;,
  8008. &quot;description&quot;: &quot;string&quot;,
  8009. &quot;color&quot;: &quot;string&quot;,
  8010. &quot;vote&quot;: {},
  8011. &quot;poker&quot;: {},
  8012. &quot;labelIds&quot;: &quot;string&quot;,
  8013. &quot;requestedBy&quot;: &quot;string&quot;,
  8014. &quot;assignedBy&quot;: &quot;string&quot;,
  8015. &quot;receivedAt&quot;: &quot;string&quot;,
  8016. &quot;startAt&quot;: &quot;string&quot;,
  8017. &quot;dueAt&quot;: &quot;string&quot;,
  8018. &quot;endAt&quot;: &quot;string&quot;,
  8019. &quot;spentTime&quot;: &quot;string&quot;,
  8020. &quot;isOverTime&quot;: true,
  8021. &quot;customFields&quot;: &quot;string&quot;,
  8022. &quot;members&quot;: &quot;string&quot;,
  8023. &quot;assignees&quot;: &quot;string&quot;,
  8024. &quot;swimlaneId&quot;: &quot;string&quot;,
  8025. &quot;listId&quot;: &quot;string&quot;,
  8026. &quot;authorId&quot;: &quot;string&quot;
  8027. }&#x27;</span>;
  8028. <span class="hljs-keyword">const</span> headers = {
  8029. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8030. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8031. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8032. };
  8033. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8034. {
  8035. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8036. <span class="hljs-attr">body</span>: inputBody,
  8037. <span class="hljs-attr">headers</span>: headers
  8038. })
  8039. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8040. <span class="hljs-keyword">return</span> res.json();
  8041. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8042. <span class="hljs-built_in">console</span>.log(body);
  8043. });
  8044. </code></pre>
  8045. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8046. <span class="hljs-keyword">const</span> inputBody = {
  8047. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8048. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8049. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8050. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8051. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8052. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8053. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8054. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8055. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8056. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8057. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8058. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8059. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8060. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8061. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8062. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8063. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8064. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8065. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8066. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8067. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8068. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8069. };
  8070. <span class="hljs-keyword">const</span> headers = {
  8071. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8072. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8073. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8074. };
  8075. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8076. {
  8077. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8078. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8079. <span class="hljs-attr">headers</span>: headers
  8080. })
  8081. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8082. <span class="hljs-keyword">return</span> res.json();
  8083. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8084. <span class="hljs-built_in">console</span>.log(body);
  8085. });
  8086. </code></pre>
  8087. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8088. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8089. headers = {
  8090. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8091. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8092. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8093. }
  8094. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8095. <span class="hljs-symbol">params:</span> {
  8096. }, <span class="hljs-symbol">headers:</span> headers
  8097. p JSON.parse(result)
  8098. </code></pre>
  8099. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8100. headers = {
  8101. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8102. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8103. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8104. }
  8105. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8106. <span class="hljs-built_in">print</span>(r.json())
  8107. </code></pre>
  8108. <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>);
  8109. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8110. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8111. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8112. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8113. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8114. String inputLine;
  8115. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8116. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8117. response.append(inputLine);
  8118. }
  8119. in.close();
  8120. System.out.println(response.toString());
  8121. </code></pre>
  8122. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8123. <span class="hljs-keyword">import</span> (
  8124. <span class="hljs-string">&quot;bytes&quot;</span>
  8125. <span class="hljs-string">&quot;net/http&quot;</span>
  8126. )
  8127. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8128. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8129. <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>},
  8130. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8131. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8132. }
  8133. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8134. 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)
  8135. req.Header = headers
  8136. client := &amp;http.Client{}
  8137. resp, err := client.Do(req)
  8138. <span class="hljs-comment">// ...</span>
  8139. }
  8140. </code></pre>
  8141. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8142. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8143. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8144. );
  8145. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8146. <span class="hljs-comment">// Define array of request body.</span>
  8147. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8148. <span class="hljs-keyword">try</span> {
  8149. <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>(
  8150. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8151. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8152. )
  8153. );
  8154. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8155. }
  8156. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8157. <span class="hljs-comment">// handle exception or api errors.</span>
  8158. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8159. }
  8160. <span class="hljs-comment">// ...</span>
  8161. </code></pre>
  8162. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8163. <p><em>Edit Fields in a Card</em></p>
  8164. <p>Edit a card</p>
  8165. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8166. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8167. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8168. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8169. <code>indigo</code>:</p>
  8170. <img src="/card-colors.png" alt="Wekan card colors" />
  8171. <p>Note: setting the color to white has the same effect than removing it.</p>
  8172. <blockquote>
  8173. <p>Body parameter</p>
  8174. </blockquote>
  8175. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8176. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8177. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8178. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8179. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8180. <span class="hljs-attr">vote:</span> {}
  8181. <span class="hljs-attr">poker:</span> {}
  8182. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8183. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8184. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8185. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8186. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8187. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8188. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8189. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8190. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8191. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8192. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8193. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8194. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8195. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8196. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8197. </code></pre>
  8198. <h3 id="edit_card-parameters">Parameters</h3>
  8199. <table>
  8200. <thead>
  8201. <tr>
  8202. <th>Name</th>
  8203. <th>In</th>
  8204. <th>Type</th>
  8205. <th>Required</th>
  8206. <th>Description</th>
  8207. </tr>
  8208. </thead>
  8209. <tbody>
  8210. <tr>
  8211. <td>board</td>
  8212. <td>path</td>
  8213. <td>string</td>
  8214. <td>true</td>
  8215. <td>the board ID of the card</td>
  8216. </tr>
  8217. <tr>
  8218. <td>list</td>
  8219. <td>path</td>
  8220. <td>string</td>
  8221. <td>true</td>
  8222. <td>the list ID of the card</td>
  8223. </tr>
  8224. <tr>
  8225. <td>card</td>
  8226. <td>path</td>
  8227. <td>string</td>
  8228. <td>true</td>
  8229. <td>the ID of the card</td>
  8230. </tr>
  8231. <tr>
  8232. <td>body</td>
  8233. <td>body</td>
  8234. <td>object</td>
  8235. <td>false</td>
  8236. <td>none</td>
  8237. </tr>
  8238. <tr>
  8239. <td>» title</td>
  8240. <td>body</td>
  8241. <td>string</td>
  8242. <td>false</td>
  8243. <td>the new title of the card</td>
  8244. </tr>
  8245. <tr>
  8246. <td>» sort</td>
  8247. <td>body</td>
  8248. <td>string</td>
  8249. <td>false</td>
  8250. <td>the new sort value of the card</td>
  8251. </tr>
  8252. <tr>
  8253. <td>» parentId</td>
  8254. <td>body</td>
  8255. <td>string</td>
  8256. <td>false</td>
  8257. <td>change the parent of the card</td>
  8258. </tr>
  8259. <tr>
  8260. <td>» description</td>
  8261. <td>body</td>
  8262. <td>string</td>
  8263. <td>false</td>
  8264. <td>the new description of the card</td>
  8265. </tr>
  8266. <tr>
  8267. <td>» color</td>
  8268. <td>body</td>
  8269. <td>string</td>
  8270. <td>false</td>
  8271. <td>the new color of the card</td>
  8272. </tr>
  8273. <tr>
  8274. <td>» vote</td>
  8275. <td>body</td>
  8276. <td>object</td>
  8277. <td>false</td>
  8278. <td>the vote object</td>
  8279. </tr>
  8280. <tr>
  8281. <td>» poker</td>
  8282. <td>body</td>
  8283. <td>object</td>
  8284. <td>false</td>
  8285. <td>the poker object</td>
  8286. </tr>
  8287. <tr>
  8288. <td>» labelIds</td>
  8289. <td>body</td>
  8290. <td>string</td>
  8291. <td>false</td>
  8292. <td>the new list of label IDs attached to the card</td>
  8293. </tr>
  8294. <tr>
  8295. <td>» requestedBy</td>
  8296. <td>body</td>
  8297. <td>string</td>
  8298. <td>false</td>
  8299. <td>the new requestedBy field of the card</td>
  8300. </tr>
  8301. <tr>
  8302. <td>» assignedBy</td>
  8303. <td>body</td>
  8304. <td>string</td>
  8305. <td>false</td>
  8306. <td>the new assignedBy field of the card</td>
  8307. </tr>
  8308. <tr>
  8309. <td>» receivedAt</td>
  8310. <td>body</td>
  8311. <td>string</td>
  8312. <td>false</td>
  8313. <td>the new receivedAt field of the card</td>
  8314. </tr>
  8315. <tr>
  8316. <td>» startAt</td>
  8317. <td>body</td>
  8318. <td>string</td>
  8319. <td>false</td>
  8320. <td>the new startAt field of the card</td>
  8321. </tr>
  8322. <tr>
  8323. <td>» dueAt</td>
  8324. <td>body</td>
  8325. <td>string</td>
  8326. <td>false</td>
  8327. <td>the new dueAt field of the card</td>
  8328. </tr>
  8329. <tr>
  8330. <td>» endAt</td>
  8331. <td>body</td>
  8332. <td>string</td>
  8333. <td>false</td>
  8334. <td>the new endAt field of the card</td>
  8335. </tr>
  8336. <tr>
  8337. <td>» spentTime</td>
  8338. <td>body</td>
  8339. <td>string</td>
  8340. <td>false</td>
  8341. <td>the new spentTime field of the card</td>
  8342. </tr>
  8343. <tr>
  8344. <td>» isOverTime</td>
  8345. <td>body</td>
  8346. <td>boolean</td>
  8347. <td>false</td>
  8348. <td>the new isOverTime field of the card</td>
  8349. </tr>
  8350. <tr>
  8351. <td>» customFields</td>
  8352. <td>body</td>
  8353. <td>string</td>
  8354. <td>false</td>
  8355. <td>the new customFields value of the card</td>
  8356. </tr>
  8357. <tr>
  8358. <td>» members</td>
  8359. <td>body</td>
  8360. <td>string</td>
  8361. <td>false</td>
  8362. <td>the new list of member IDs attached to the card</td>
  8363. </tr>
  8364. <tr>
  8365. <td>» assignees</td>
  8366. <td>body</td>
  8367. <td>string</td>
  8368. <td>false</td>
  8369. <td>the array of maximum one ID of assignee attached to the card</td>
  8370. </tr>
  8371. <tr>
  8372. <td>» swimlaneId</td>
  8373. <td>body</td>
  8374. <td>string</td>
  8375. <td>false</td>
  8376. <td>the new swimlane ID of the card</td>
  8377. </tr>
  8378. <tr>
  8379. <td>» listId</td>
  8380. <td>body</td>
  8381. <td>string</td>
  8382. <td>false</td>
  8383. <td>the new list ID of the card (move operation)</td>
  8384. </tr>
  8385. <tr>
  8386. <td>» authorId</td>
  8387. <td>body</td>
  8388. <td>string</td>
  8389. <td>false</td>
  8390. <td>change the owner of the card</td>
  8391. </tr>
  8392. </tbody>
  8393. </table>
  8394. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8395. <p><strong>board</strong>: the board ID of the card</p>
  8396. <p><strong>list</strong>: the list ID of the card</p>
  8397. <p><strong>card</strong>: the ID of the card</p>
  8398. <blockquote>
  8399. <p>Example responses</p>
  8400. </blockquote>
  8401. <blockquote>
  8402. <p>200 Response</p>
  8403. </blockquote>
  8404. <pre class="highlight tab tab-json"><code>{
  8405. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8406. }
  8407. </code></pre>
  8408. <h3 id="edit_card-responses">Responses</h3>
  8409. <table>
  8410. <thead>
  8411. <tr>
  8412. <th>Status</th>
  8413. <th>Meaning</th>
  8414. <th>Description</th>
  8415. <th>Schema</th>
  8416. </tr>
  8417. </thead>
  8418. <tbody>
  8419. <tr>
  8420. <td>200</td>
  8421. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8422. <td>200 response</td>
  8423. <td>Inline</td>
  8424. </tr>
  8425. </tbody>
  8426. </table>
  8427. <h3 id="edit_card-responseschema">Response Schema</h3>
  8428. <p>Status Code <strong>200</strong></p>
  8429. <table>
  8430. <thead>
  8431. <tr>
  8432. <th>Name</th>
  8433. <th>Type</th>
  8434. <th>Required</th>
  8435. <th>Restrictions</th>
  8436. <th>Description</th>
  8437. </tr>
  8438. </thead>
  8439. <tbody>
  8440. <tr>
  8441. <td>» _id</td>
  8442. <td>string</td>
  8443. <td>false</td>
  8444. <td>none</td>
  8445. <td>none</td>
  8446. </tr>
  8447. </tbody>
  8448. </table>
  8449. <aside class="warning">
  8450. To perform this operation, you must be authenticated by means of one of the following methods:
  8451. UserSecurity
  8452. </aside>
  8453. <h2 id="delete_card">delete_card</h2>
  8454. <p><a id="opIddelete_card"></a></p>
  8455. <blockquote>
  8456. <p>Code samples</p>
  8457. </blockquote>
  8458. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8459. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8460. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8461. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8462. </code></pre>
  8463. <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>
  8464. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8465. </span></code></pre>
  8466. <pre class="highlight tab tab-javascript"><code>
  8467. <span class="hljs-keyword">const</span> headers = {
  8468. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8469. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8470. };
  8471. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8472. {
  8473. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8474. <span class="hljs-attr">headers</span>: headers
  8475. })
  8476. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8477. <span class="hljs-keyword">return</span> res.json();
  8478. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8479. <span class="hljs-built_in">console</span>.log(body);
  8480. });
  8481. </code></pre>
  8482. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8483. <span class="hljs-keyword">const</span> headers = {
  8484. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8485. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8486. };
  8487. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8488. {
  8489. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8490. <span class="hljs-attr">headers</span>: headers
  8491. })
  8492. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8493. <span class="hljs-keyword">return</span> res.json();
  8494. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8495. <span class="hljs-built_in">console</span>.log(body);
  8496. });
  8497. </code></pre>
  8498. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8499. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8500. headers = {
  8501. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8502. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8503. }
  8504. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8505. <span class="hljs-symbol">params:</span> {
  8506. }, <span class="hljs-symbol">headers:</span> headers
  8507. p JSON.parse(result)
  8508. </code></pre>
  8509. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8510. headers = {
  8511. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8512. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8513. }
  8514. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8515. <span class="hljs-built_in">print</span>(r.json())
  8516. </code></pre>
  8517. <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>);
  8518. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8519. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8520. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8521. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8522. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8523. String inputLine;
  8524. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8525. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8526. response.append(inputLine);
  8527. }
  8528. in.close();
  8529. System.out.println(response.toString());
  8530. </code></pre>
  8531. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8532. <span class="hljs-keyword">import</span> (
  8533. <span class="hljs-string">&quot;bytes&quot;</span>
  8534. <span class="hljs-string">&quot;net/http&quot;</span>
  8535. )
  8536. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8537. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8538. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8539. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8540. }
  8541. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8542. 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)
  8543. req.Header = headers
  8544. client := &amp;http.Client{}
  8545. resp, err := client.Do(req)
  8546. <span class="hljs-comment">// ...</span>
  8547. }
  8548. </code></pre>
  8549. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8550. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8551. );
  8552. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8553. <span class="hljs-comment">// Define array of request body.</span>
  8554. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8555. <span class="hljs-keyword">try</span> {
  8556. <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>(
  8557. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8558. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8559. )
  8560. );
  8561. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8562. }
  8563. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8564. <span class="hljs-comment">// handle exception or api errors.</span>
  8565. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8566. }
  8567. <span class="hljs-comment">// ...</span>
  8568. </code></pre>
  8569. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8570. <p><em>Delete a card from a board</em></p>
  8571. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8572. is not put in the recycle bin.</p>
  8573. <h3 id="delete_card-parameters">Parameters</h3>
  8574. <table>
  8575. <thead>
  8576. <tr>
  8577. <th>Name</th>
  8578. <th>In</th>
  8579. <th>Type</th>
  8580. <th>Required</th>
  8581. <th>Description</th>
  8582. </tr>
  8583. </thead>
  8584. <tbody>
  8585. <tr>
  8586. <td>board</td>
  8587. <td>path</td>
  8588. <td>string</td>
  8589. <td>true</td>
  8590. <td>the board ID of the card</td>
  8591. </tr>
  8592. <tr>
  8593. <td>list</td>
  8594. <td>path</td>
  8595. <td>string</td>
  8596. <td>true</td>
  8597. <td>the list ID of the card</td>
  8598. </tr>
  8599. <tr>
  8600. <td>card</td>
  8601. <td>path</td>
  8602. <td>string</td>
  8603. <td>true</td>
  8604. <td>the ID of the card</td>
  8605. </tr>
  8606. </tbody>
  8607. </table>
  8608. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8609. <p><strong>board</strong>: the board ID of the card</p>
  8610. <p><strong>list</strong>: the list ID of the card</p>
  8611. <p><strong>card</strong>: the ID of the card</p>
  8612. <blockquote>
  8613. <p>Example responses</p>
  8614. </blockquote>
  8615. <blockquote>
  8616. <p>200 Response</p>
  8617. </blockquote>
  8618. <pre class="highlight tab tab-json"><code>{
  8619. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8620. }
  8621. </code></pre>
  8622. <h3 id="delete_card-responses">Responses</h3>
  8623. <table>
  8624. <thead>
  8625. <tr>
  8626. <th>Status</th>
  8627. <th>Meaning</th>
  8628. <th>Description</th>
  8629. <th>Schema</th>
  8630. </tr>
  8631. </thead>
  8632. <tbody>
  8633. <tr>
  8634. <td>200</td>
  8635. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8636. <td>200 response</td>
  8637. <td>Inline</td>
  8638. </tr>
  8639. </tbody>
  8640. </table>
  8641. <h3 id="delete_card-responseschema">Response Schema</h3>
  8642. <p>Status Code <strong>200</strong></p>
  8643. <table>
  8644. <thead>
  8645. <tr>
  8646. <th>Name</th>
  8647. <th>Type</th>
  8648. <th>Required</th>
  8649. <th>Restrictions</th>
  8650. <th>Description</th>
  8651. </tr>
  8652. </thead>
  8653. <tbody>
  8654. <tr>
  8655. <td>» _id</td>
  8656. <td>string</td>
  8657. <td>false</td>
  8658. <td>none</td>
  8659. <td>none</td>
  8660. </tr>
  8661. </tbody>
  8662. </table>
  8663. <aside class="warning">
  8664. To perform this operation, you must be authenticated by means of one of the following methods:
  8665. UserSecurity
  8666. </aside>
  8667. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  8668. <p><a id="opIdget_swimlane_cards"></a></p>
  8669. <blockquote>
  8670. <p>Code samples</p>
  8671. </blockquote>
  8672. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8673. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  8674. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8675. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8676. </code></pre>
  8677. <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>
  8678. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8679. </span></code></pre>
  8680. <pre class="highlight tab tab-javascript"><code>
  8681. <span class="hljs-keyword">const</span> headers = {
  8682. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8683. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8684. };
  8685. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8686. {
  8687. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8688. <span class="hljs-attr">headers</span>: headers
  8689. })
  8690. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8691. <span class="hljs-keyword">return</span> res.json();
  8692. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8693. <span class="hljs-built_in">console</span>.log(body);
  8694. });
  8695. </code></pre>
  8696. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8697. <span class="hljs-keyword">const</span> headers = {
  8698. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8699. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8700. };
  8701. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8702. {
  8703. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8704. <span class="hljs-attr">headers</span>: headers
  8705. })
  8706. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8707. <span class="hljs-keyword">return</span> res.json();
  8708. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8709. <span class="hljs-built_in">console</span>.log(body);
  8710. });
  8711. </code></pre>
  8712. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8713. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8714. headers = {
  8715. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8716. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8717. }
  8718. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8719. <span class="hljs-symbol">params:</span> {
  8720. }, <span class="hljs-symbol">headers:</span> headers
  8721. p JSON.parse(result)
  8722. </code></pre>
  8723. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8724. headers = {
  8725. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8726. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8727. }
  8728. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  8729. <span class="hljs-built_in">print</span>(r.json())
  8730. </code></pre>
  8731. <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>);
  8732. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8733. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8734. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8735. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8736. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8737. String inputLine;
  8738. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8739. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8740. response.append(inputLine);
  8741. }
  8742. in.close();
  8743. System.out.println(response.toString());
  8744. </code></pre>
  8745. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8746. <span class="hljs-keyword">import</span> (
  8747. <span class="hljs-string">&quot;bytes&quot;</span>
  8748. <span class="hljs-string">&quot;net/http&quot;</span>
  8749. )
  8750. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8751. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8752. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8753. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8754. }
  8755. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8756. 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)
  8757. req.Header = headers
  8758. client := &amp;http.Client{}
  8759. resp, err := client.Do(req)
  8760. <span class="hljs-comment">// ...</span>
  8761. }
  8762. </code></pre>
  8763. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8764. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8765. );
  8766. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8767. <span class="hljs-comment">// Define array of request body.</span>
  8768. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8769. <span class="hljs-keyword">try</span> {
  8770. <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>(
  8771. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8772. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8773. )
  8774. );
  8775. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8776. }
  8777. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8778. <span class="hljs-comment">// handle exception or api errors.</span>
  8779. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8780. }
  8781. <span class="hljs-comment">// ...</span>
  8782. </code></pre>
  8783. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  8784. <p><em>get all cards attached to a swimlane</em></p>
  8785. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  8786. <table>
  8787. <thead>
  8788. <tr>
  8789. <th>Name</th>
  8790. <th>In</th>
  8791. <th>Type</th>
  8792. <th>Required</th>
  8793. <th>Description</th>
  8794. </tr>
  8795. </thead>
  8796. <tbody>
  8797. <tr>
  8798. <td>board</td>
  8799. <td>path</td>
  8800. <td>string</td>
  8801. <td>true</td>
  8802. <td>the board ID</td>
  8803. </tr>
  8804. <tr>
  8805. <td>swimlane</td>
  8806. <td>path</td>
  8807. <td>string</td>
  8808. <td>true</td>
  8809. <td>the swimlane ID</td>
  8810. </tr>
  8811. </tbody>
  8812. </table>
  8813. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8814. <p><strong>board</strong>: the board ID</p>
  8815. <p><strong>swimlane</strong>: the swimlane ID</p>
  8816. <blockquote>
  8817. <p>Example responses</p>
  8818. </blockquote>
  8819. <blockquote>
  8820. <p>200 Response</p>
  8821. </blockquote>
  8822. <pre class="highlight tab tab-json"><code>[
  8823. {
  8824. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8825. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8826. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8827. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8828. }
  8829. ]
  8830. </code></pre>
  8831. <h3 id="get_swimlane_cards-responses">Responses</h3>
  8832. <table>
  8833. <thead>
  8834. <tr>
  8835. <th>Status</th>
  8836. <th>Meaning</th>
  8837. <th>Description</th>
  8838. <th>Schema</th>
  8839. </tr>
  8840. </thead>
  8841. <tbody>
  8842. <tr>
  8843. <td>200</td>
  8844. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8845. <td>200 response</td>
  8846. <td>Inline</td>
  8847. </tr>
  8848. </tbody>
  8849. </table>
  8850. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  8851. <p>Status Code <strong>200</strong></p>
  8852. <table>
  8853. <thead>
  8854. <tr>
  8855. <th>Name</th>
  8856. <th>Type</th>
  8857. <th>Required</th>
  8858. <th>Restrictions</th>
  8859. <th>Description</th>
  8860. </tr>
  8861. </thead>
  8862. <tbody>
  8863. <tr>
  8864. <td>» _id</td>
  8865. <td>string</td>
  8866. <td>false</td>
  8867. <td>none</td>
  8868. <td>none</td>
  8869. </tr>
  8870. <tr>
  8871. <td>» title</td>
  8872. <td>string</td>
  8873. <td>false</td>
  8874. <td>none</td>
  8875. <td>none</td>
  8876. </tr>
  8877. <tr>
  8878. <td>» description</td>
  8879. <td>string</td>
  8880. <td>false</td>
  8881. <td>none</td>
  8882. <td>none</td>
  8883. </tr>
  8884. <tr>
  8885. <td>» listId</td>
  8886. <td>string</td>
  8887. <td>false</td>
  8888. <td>none</td>
  8889. <td>none</td>
  8890. </tr>
  8891. </tbody>
  8892. </table>
  8893. <aside class="warning">
  8894. To perform this operation, you must be authenticated by means of one of the following methods:
  8895. UserSecurity
  8896. </aside>
  8897. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  8898. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  8899. <p><a id="opIdget_all_custom_fields"></a></p>
  8900. <blockquote>
  8901. <p>Code samples</p>
  8902. </blockquote>
  8903. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8904. curl -X GET /api/boards/{board}/custom-fields \
  8905. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8906. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8907. </code></pre>
  8908. <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>
  8909. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8910. </span></code></pre>
  8911. <pre class="highlight tab tab-javascript"><code>
  8912. <span class="hljs-keyword">const</span> headers = {
  8913. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8914. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8915. };
  8916. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8917. {
  8918. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8919. <span class="hljs-attr">headers</span>: headers
  8920. })
  8921. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8922. <span class="hljs-keyword">return</span> res.json();
  8923. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8924. <span class="hljs-built_in">console</span>.log(body);
  8925. });
  8926. </code></pre>
  8927. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8928. <span class="hljs-keyword">const</span> headers = {
  8929. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8930. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8931. };
  8932. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8933. {
  8934. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8935. <span class="hljs-attr">headers</span>: headers
  8936. })
  8937. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8938. <span class="hljs-keyword">return</span> res.json();
  8939. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8940. <span class="hljs-built_in">console</span>.log(body);
  8941. });
  8942. </code></pre>
  8943. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8944. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8945. headers = {
  8946. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8947. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8948. }
  8949. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8950. <span class="hljs-symbol">params:</span> {
  8951. }, <span class="hljs-symbol">headers:</span> headers
  8952. p JSON.parse(result)
  8953. </code></pre>
  8954. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8955. headers = {
  8956. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8957. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8958. }
  8959. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  8960. <span class="hljs-built_in">print</span>(r.json())
  8961. </code></pre>
  8962. <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>);
  8963. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8964. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8965. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8966. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8967. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8968. String inputLine;
  8969. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8970. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8971. response.append(inputLine);
  8972. }
  8973. in.close();
  8974. System.out.println(response.toString());
  8975. </code></pre>
  8976. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8977. <span class="hljs-keyword">import</span> (
  8978. <span class="hljs-string">&quot;bytes&quot;</span>
  8979. <span class="hljs-string">&quot;net/http&quot;</span>
  8980. )
  8981. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8982. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8983. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8984. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8985. }
  8986. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8987. 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)
  8988. req.Header = headers
  8989. client := &amp;http.Client{}
  8990. resp, err := client.Do(req)
  8991. <span class="hljs-comment">// ...</span>
  8992. }
  8993. </code></pre>
  8994. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8995. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8996. );
  8997. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8998. <span class="hljs-comment">// Define array of request body.</span>
  8999. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9000. <span class="hljs-keyword">try</span> {
  9001. <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>(
  9002. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9003. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9004. )
  9005. );
  9006. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9007. }
  9008. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9009. <span class="hljs-comment">// handle exception or api errors.</span>
  9010. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9011. }
  9012. <span class="hljs-comment">// ...</span>
  9013. </code></pre>
  9014. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9015. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9016. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9017. <table>
  9018. <thead>
  9019. <tr>
  9020. <th>Name</th>
  9021. <th>In</th>
  9022. <th>Type</th>
  9023. <th>Required</th>
  9024. <th>Description</th>
  9025. </tr>
  9026. </thead>
  9027. <tbody>
  9028. <tr>
  9029. <td>board</td>
  9030. <td>path</td>
  9031. <td>string</td>
  9032. <td>true</td>
  9033. <td>the board value</td>
  9034. </tr>
  9035. </tbody>
  9036. </table>
  9037. <blockquote>
  9038. <p>Example responses</p>
  9039. </blockquote>
  9040. <blockquote>
  9041. <p>200 Response</p>
  9042. </blockquote>
  9043. <pre class="highlight tab tab-json"><code>[
  9044. {
  9045. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9046. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9047. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9048. }
  9049. ]
  9050. </code></pre>
  9051. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9052. <table>
  9053. <thead>
  9054. <tr>
  9055. <th>Status</th>
  9056. <th>Meaning</th>
  9057. <th>Description</th>
  9058. <th>Schema</th>
  9059. </tr>
  9060. </thead>
  9061. <tbody>
  9062. <tr>
  9063. <td>200</td>
  9064. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9065. <td>200 response</td>
  9066. <td>Inline</td>
  9067. </tr>
  9068. </tbody>
  9069. </table>
  9070. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9071. <p>Status Code <strong>200</strong></p>
  9072. <table>
  9073. <thead>
  9074. <tr>
  9075. <th>Name</th>
  9076. <th>Type</th>
  9077. <th>Required</th>
  9078. <th>Restrictions</th>
  9079. <th>Description</th>
  9080. </tr>
  9081. </thead>
  9082. <tbody>
  9083. <tr>
  9084. <td>» _id</td>
  9085. <td>string</td>
  9086. <td>false</td>
  9087. <td>none</td>
  9088. <td>none</td>
  9089. </tr>
  9090. <tr>
  9091. <td>» name</td>
  9092. <td>string</td>
  9093. <td>false</td>
  9094. <td>none</td>
  9095. <td>none</td>
  9096. </tr>
  9097. <tr>
  9098. <td>» type</td>
  9099. <td>string</td>
  9100. <td>false</td>
  9101. <td>none</td>
  9102. <td>none</td>
  9103. </tr>
  9104. </tbody>
  9105. </table>
  9106. <aside class="warning">
  9107. To perform this operation, you must be authenticated by means of one of the following methods:
  9108. UserSecurity
  9109. </aside>
  9110. <h2 id="new_custom_field">new_custom_field</h2>
  9111. <p><a id="opIdnew_custom_field"></a></p>
  9112. <blockquote>
  9113. <p>Code samples</p>
  9114. </blockquote>
  9115. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9116. curl -X POST /api/boards/{board}/custom-fields \
  9117. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9118. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9119. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9120. </code></pre>
  9121. <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>
  9122. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9123. Accept: application/json
  9124. </span></code></pre>
  9125. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9126. &quot;name&quot;: &quot;string&quot;,
  9127. &quot;type&quot;: &quot;string&quot;,
  9128. &quot;settings&quot;: &quot;string&quot;,
  9129. &quot;showOnCard&quot;: true,
  9130. &quot;automaticallyOnCard&quot;: true,
  9131. &quot;showLabelOnMiniCard&quot;: true,
  9132. &quot;authorId&quot;: &quot;string&quot;
  9133. }&#x27;</span>;
  9134. <span class="hljs-keyword">const</span> headers = {
  9135. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9136. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9137. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9138. };
  9139. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9140. {
  9141. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9142. <span class="hljs-attr">body</span>: inputBody,
  9143. <span class="hljs-attr">headers</span>: headers
  9144. })
  9145. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9146. <span class="hljs-keyword">return</span> res.json();
  9147. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9148. <span class="hljs-built_in">console</span>.log(body);
  9149. });
  9150. </code></pre>
  9151. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9152. <span class="hljs-keyword">const</span> inputBody = {
  9153. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9154. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9155. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9156. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9157. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9158. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9159. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9160. };
  9161. <span class="hljs-keyword">const</span> headers = {
  9162. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9163. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9164. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9165. };
  9166. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9167. {
  9168. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9169. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9170. <span class="hljs-attr">headers</span>: headers
  9171. })
  9172. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9173. <span class="hljs-keyword">return</span> res.json();
  9174. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9175. <span class="hljs-built_in">console</span>.log(body);
  9176. });
  9177. </code></pre>
  9178. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9179. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9180. headers = {
  9181. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9182. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9183. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9184. }
  9185. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9186. <span class="hljs-symbol">params:</span> {
  9187. }, <span class="hljs-symbol">headers:</span> headers
  9188. p JSON.parse(result)
  9189. </code></pre>
  9190. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9191. headers = {
  9192. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9193. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9194. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9195. }
  9196. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9197. <span class="hljs-built_in">print</span>(r.json())
  9198. </code></pre>
  9199. <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>);
  9200. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9201. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9202. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9203. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9204. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9205. String inputLine;
  9206. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9207. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9208. response.append(inputLine);
  9209. }
  9210. in.close();
  9211. System.out.println(response.toString());
  9212. </code></pre>
  9213. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9214. <span class="hljs-keyword">import</span> (
  9215. <span class="hljs-string">&quot;bytes&quot;</span>
  9216. <span class="hljs-string">&quot;net/http&quot;</span>
  9217. )
  9218. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9219. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9220. <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>},
  9221. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9222. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9223. }
  9224. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9225. 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)
  9226. req.Header = headers
  9227. client := &amp;http.Client{}
  9228. resp, err := client.Do(req)
  9229. <span class="hljs-comment">// ...</span>
  9230. }
  9231. </code></pre>
  9232. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9233. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9234. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9235. );
  9236. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9237. <span class="hljs-comment">// Define array of request body.</span>
  9238. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9239. <span class="hljs-keyword">try</span> {
  9240. <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>(
  9241. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9242. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9243. )
  9244. );
  9245. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9246. }
  9247. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9248. <span class="hljs-comment">// handle exception or api errors.</span>
  9249. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9250. }
  9251. <span class="hljs-comment">// ...</span>
  9252. </code></pre>
  9253. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9254. <p><em>Create a Custom Field</em></p>
  9255. <blockquote>
  9256. <p>Body parameter</p>
  9257. </blockquote>
  9258. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9259. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9260. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9261. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9262. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9263. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9264. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9265. </code></pre>
  9266. <h3 id="new_custom_field-parameters">Parameters</h3>
  9267. <table>
  9268. <thead>
  9269. <tr>
  9270. <th>Name</th>
  9271. <th>In</th>
  9272. <th>Type</th>
  9273. <th>Required</th>
  9274. <th>Description</th>
  9275. </tr>
  9276. </thead>
  9277. <tbody>
  9278. <tr>
  9279. <td>board</td>
  9280. <td>path</td>
  9281. <td>string</td>
  9282. <td>true</td>
  9283. <td>the board value</td>
  9284. </tr>
  9285. <tr>
  9286. <td>body</td>
  9287. <td>body</td>
  9288. <td>object</td>
  9289. <td>true</td>
  9290. <td>none</td>
  9291. </tr>
  9292. <tr>
  9293. <td>» name</td>
  9294. <td>body</td>
  9295. <td>string</td>
  9296. <td>true</td>
  9297. <td>the name of the custom field</td>
  9298. </tr>
  9299. <tr>
  9300. <td>» type</td>
  9301. <td>body</td>
  9302. <td>string</td>
  9303. <td>true</td>
  9304. <td>the type of the custom field</td>
  9305. </tr>
  9306. <tr>
  9307. <td>» settings</td>
  9308. <td>body</td>
  9309. <td>string</td>
  9310. <td>true</td>
  9311. <td>the settings object of the custom field</td>
  9312. </tr>
  9313. <tr>
  9314. <td>» showOnCard</td>
  9315. <td>body</td>
  9316. <td>boolean</td>
  9317. <td>true</td>
  9318. <td>should we show the custom field on cards?</td>
  9319. </tr>
  9320. <tr>
  9321. <td>» automaticallyOnCard</td>
  9322. <td>body</td>
  9323. <td>boolean</td>
  9324. <td>true</td>
  9325. <td>should the custom fields automatically be added on cards?</td>
  9326. </tr>
  9327. <tr>
  9328. <td>» showLabelOnMiniCard</td>
  9329. <td>body</td>
  9330. <td>boolean</td>
  9331. <td>true</td>
  9332. <td>should the label of the custom field be shown on minicards?</td>
  9333. </tr>
  9334. <tr>
  9335. <td>» authorId</td>
  9336. <td>body</td>
  9337. <td>string</td>
  9338. <td>true</td>
  9339. <td>the authorId value</td>
  9340. </tr>
  9341. </tbody>
  9342. </table>
  9343. <blockquote>
  9344. <p>Example responses</p>
  9345. </blockquote>
  9346. <blockquote>
  9347. <p>200 Response</p>
  9348. </blockquote>
  9349. <pre class="highlight tab tab-json"><code>{
  9350. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9351. }
  9352. </code></pre>
  9353. <h3 id="new_custom_field-responses">Responses</h3>
  9354. <table>
  9355. <thead>
  9356. <tr>
  9357. <th>Status</th>
  9358. <th>Meaning</th>
  9359. <th>Description</th>
  9360. <th>Schema</th>
  9361. </tr>
  9362. </thead>
  9363. <tbody>
  9364. <tr>
  9365. <td>200</td>
  9366. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9367. <td>200 response</td>
  9368. <td>Inline</td>
  9369. </tr>
  9370. </tbody>
  9371. </table>
  9372. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9373. <p>Status Code <strong>200</strong></p>
  9374. <table>
  9375. <thead>
  9376. <tr>
  9377. <th>Name</th>
  9378. <th>Type</th>
  9379. <th>Required</th>
  9380. <th>Restrictions</th>
  9381. <th>Description</th>
  9382. </tr>
  9383. </thead>
  9384. <tbody>
  9385. <tr>
  9386. <td>» _id</td>
  9387. <td>string</td>
  9388. <td>false</td>
  9389. <td>none</td>
  9390. <td>none</td>
  9391. </tr>
  9392. </tbody>
  9393. </table>
  9394. <aside class="warning">
  9395. To perform this operation, you must be authenticated by means of one of the following methods:
  9396. UserSecurity
  9397. </aside>
  9398. <h2 id="get_custom_field">get_custom_field</h2>
  9399. <p><a id="opIdget_custom_field"></a></p>
  9400. <blockquote>
  9401. <p>Code samples</p>
  9402. </blockquote>
  9403. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9404. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9405. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9406. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9407. </code></pre>
  9408. <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>
  9409. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9410. </span></code></pre>
  9411. <pre class="highlight tab tab-javascript"><code>
  9412. <span class="hljs-keyword">const</span> headers = {
  9413. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9414. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9415. };
  9416. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9417. {
  9418. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9419. <span class="hljs-attr">headers</span>: headers
  9420. })
  9421. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9422. <span class="hljs-keyword">return</span> res.json();
  9423. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9424. <span class="hljs-built_in">console</span>.log(body);
  9425. });
  9426. </code></pre>
  9427. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9428. <span class="hljs-keyword">const</span> headers = {
  9429. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9430. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9431. };
  9432. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9433. {
  9434. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9435. <span class="hljs-attr">headers</span>: headers
  9436. })
  9437. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9438. <span class="hljs-keyword">return</span> res.json();
  9439. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9440. <span class="hljs-built_in">console</span>.log(body);
  9441. });
  9442. </code></pre>
  9443. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9444. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9445. headers = {
  9446. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9447. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9448. }
  9449. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9450. <span class="hljs-symbol">params:</span> {
  9451. }, <span class="hljs-symbol">headers:</span> headers
  9452. p JSON.parse(result)
  9453. </code></pre>
  9454. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9455. headers = {
  9456. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9457. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9458. }
  9459. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9460. <span class="hljs-built_in">print</span>(r.json())
  9461. </code></pre>
  9462. <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>);
  9463. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9464. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9465. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9466. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9467. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9468. String inputLine;
  9469. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9470. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9471. response.append(inputLine);
  9472. }
  9473. in.close();
  9474. System.out.println(response.toString());
  9475. </code></pre>
  9476. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9477. <span class="hljs-keyword">import</span> (
  9478. <span class="hljs-string">&quot;bytes&quot;</span>
  9479. <span class="hljs-string">&quot;net/http&quot;</span>
  9480. )
  9481. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9482. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9483. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9484. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9485. }
  9486. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9487. 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)
  9488. req.Header = headers
  9489. client := &amp;http.Client{}
  9490. resp, err := client.Do(req)
  9491. <span class="hljs-comment">// ...</span>
  9492. }
  9493. </code></pre>
  9494. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9495. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9496. );
  9497. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9498. <span class="hljs-comment">// Define array of request body.</span>
  9499. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9500. <span class="hljs-keyword">try</span> {
  9501. <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>(
  9502. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9503. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9504. )
  9505. );
  9506. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9507. }
  9508. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9509. <span class="hljs-comment">// handle exception or api errors.</span>
  9510. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9511. }
  9512. <span class="hljs-comment">// ...</span>
  9513. </code></pre>
  9514. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9515. <p><em>Get a Custom Fields attached to a board</em></p>
  9516. <h3 id="get_custom_field-parameters">Parameters</h3>
  9517. <table>
  9518. <thead>
  9519. <tr>
  9520. <th>Name</th>
  9521. <th>In</th>
  9522. <th>Type</th>
  9523. <th>Required</th>
  9524. <th>Description</th>
  9525. </tr>
  9526. </thead>
  9527. <tbody>
  9528. <tr>
  9529. <td>board</td>
  9530. <td>path</td>
  9531. <td>string</td>
  9532. <td>true</td>
  9533. <td>the board value</td>
  9534. </tr>
  9535. <tr>
  9536. <td>customField</td>
  9537. <td>path</td>
  9538. <td>string</td>
  9539. <td>true</td>
  9540. <td>the ID of the custom field</td>
  9541. </tr>
  9542. </tbody>
  9543. </table>
  9544. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9545. <p><strong>customField</strong>: the ID of the custom field</p>
  9546. <blockquote>
  9547. <p>Example responses</p>
  9548. </blockquote>
  9549. <blockquote>
  9550. <p>200 Response</p>
  9551. </blockquote>
  9552. <pre class="highlight tab tab-json"><code>[
  9553. {
  9554. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9555. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9556. }
  9557. ]
  9558. </code></pre>
  9559. <h3 id="get_custom_field-responses">Responses</h3>
  9560. <table>
  9561. <thead>
  9562. <tr>
  9563. <th>Status</th>
  9564. <th>Meaning</th>
  9565. <th>Description</th>
  9566. <th>Schema</th>
  9567. </tr>
  9568. </thead>
  9569. <tbody>
  9570. <tr>
  9571. <td>200</td>
  9572. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9573. <td>200 response</td>
  9574. <td>Inline</td>
  9575. </tr>
  9576. </tbody>
  9577. </table>
  9578. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  9579. <p>Status Code <strong>200</strong></p>
  9580. <table>
  9581. <thead>
  9582. <tr>
  9583. <th>Name</th>
  9584. <th>Type</th>
  9585. <th>Required</th>
  9586. <th>Restrictions</th>
  9587. <th>Description</th>
  9588. </tr>
  9589. </thead>
  9590. <tbody>
  9591. <tr>
  9592. <td>» _id</td>
  9593. <td>string</td>
  9594. <td>false</td>
  9595. <td>none</td>
  9596. <td>none</td>
  9597. </tr>
  9598. <tr>
  9599. <td>» boardIds</td>
  9600. <td>string</td>
  9601. <td>false</td>
  9602. <td>none</td>
  9603. <td>none</td>
  9604. </tr>
  9605. </tbody>
  9606. </table>
  9607. <aside class="warning">
  9608. To perform this operation, you must be authenticated by means of one of the following methods:
  9609. UserSecurity
  9610. </aside>
  9611. <h2 id="edit_custom_field">edit_custom_field</h2>
  9612. <p><a id="opIdedit_custom_field"></a></p>
  9613. <blockquote>
  9614. <p>Code samples</p>
  9615. </blockquote>
  9616. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9617. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  9618. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9619. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9620. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9621. </code></pre>
  9622. <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>
  9623. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9624. Accept: application/json
  9625. </span></code></pre>
  9626. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9627. &quot;name&quot;: &quot;string&quot;,
  9628. &quot;type&quot;: &quot;string&quot;,
  9629. &quot;settings&quot;: &quot;string&quot;,
  9630. &quot;showOnCard&quot;: true,
  9631. &quot;automaticallyOnCard&quot;: true,
  9632. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  9633. &quot;showLabelOnMiniCard&quot;: true
  9634. }&#x27;</span>;
  9635. <span class="hljs-keyword">const</span> headers = {
  9636. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9637. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9638. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9639. };
  9640. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9641. {
  9642. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9643. <span class="hljs-attr">body</span>: inputBody,
  9644. <span class="hljs-attr">headers</span>: headers
  9645. })
  9646. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9647. <span class="hljs-keyword">return</span> res.json();
  9648. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9649. <span class="hljs-built_in">console</span>.log(body);
  9650. });
  9651. </code></pre>
  9652. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9653. <span class="hljs-keyword">const</span> inputBody = {
  9654. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9655. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9656. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9657. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9658. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9659. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9660. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>
  9661. };
  9662. <span class="hljs-keyword">const</span> headers = {
  9663. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9664. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9665. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9666. };
  9667. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9668. {
  9669. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9670. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9671. <span class="hljs-attr">headers</span>: headers
  9672. })
  9673. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9674. <span class="hljs-keyword">return</span> res.json();
  9675. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9676. <span class="hljs-built_in">console</span>.log(body);
  9677. });
  9678. </code></pre>
  9679. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9680. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9681. headers = {
  9682. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9683. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9684. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9685. }
  9686. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9687. <span class="hljs-symbol">params:</span> {
  9688. }, <span class="hljs-symbol">headers:</span> headers
  9689. p JSON.parse(result)
  9690. </code></pre>
  9691. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9692. headers = {
  9693. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9694. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9695. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9696. }
  9697. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9698. <span class="hljs-built_in">print</span>(r.json())
  9699. </code></pre>
  9700. <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>);
  9701. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9702. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  9703. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9704. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9705. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9706. String inputLine;
  9707. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9708. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9709. response.append(inputLine);
  9710. }
  9711. in.close();
  9712. System.out.println(response.toString());
  9713. </code></pre>
  9714. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9715. <span class="hljs-keyword">import</span> (
  9716. <span class="hljs-string">&quot;bytes&quot;</span>
  9717. <span class="hljs-string">&quot;net/http&quot;</span>
  9718. )
  9719. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9720. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9721. <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>},
  9722. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9723. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9724. }
  9725. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9726. 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)
  9727. req.Header = headers
  9728. client := &amp;http.Client{}
  9729. resp, err := client.Do(req)
  9730. <span class="hljs-comment">// ...</span>
  9731. }
  9732. </code></pre>
  9733. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9734. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9735. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9736. );
  9737. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9738. <span class="hljs-comment">// Define array of request body.</span>
  9739. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9740. <span class="hljs-keyword">try</span> {
  9741. <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>(
  9742. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9743. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9744. )
  9745. );
  9746. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9747. }
  9748. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9749. <span class="hljs-comment">// handle exception or api errors.</span>
  9750. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9751. }
  9752. <span class="hljs-comment">// ...</span>
  9753. </code></pre>
  9754. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  9755. <p><em>Update a Custom Field</em></p>
  9756. <blockquote>
  9757. <p>Body parameter</p>
  9758. </blockquote>
  9759. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9760. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9761. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9762. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9763. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9764. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  9765. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9766. </code></pre>
  9767. <h3 id="edit_custom_field-parameters">Parameters</h3>
  9768. <table>
  9769. <thead>
  9770. <tr>
  9771. <th>Name</th>
  9772. <th>In</th>
  9773. <th>Type</th>
  9774. <th>Required</th>
  9775. <th>Description</th>
  9776. </tr>
  9777. </thead>
  9778. <tbody>
  9779. <tr>
  9780. <td>board</td>
  9781. <td>path</td>
  9782. <td>string</td>
  9783. <td>true</td>
  9784. <td>the board value</td>
  9785. </tr>
  9786. <tr>
  9787. <td>customField</td>
  9788. <td>path</td>
  9789. <td>string</td>
  9790. <td>true</td>
  9791. <td>the customField value</td>
  9792. </tr>
  9793. <tr>
  9794. <td>body</td>
  9795. <td>body</td>
  9796. <td>object</td>
  9797. <td>true</td>
  9798. <td>none</td>
  9799. </tr>
  9800. <tr>
  9801. <td>» name</td>
  9802. <td>body</td>
  9803. <td>string</td>
  9804. <td>true</td>
  9805. <td>the name of the custom field</td>
  9806. </tr>
  9807. <tr>
  9808. <td>» type</td>
  9809. <td>body</td>
  9810. <td>string</td>
  9811. <td>true</td>
  9812. <td>the type of the custom field</td>
  9813. </tr>
  9814. <tr>
  9815. <td>» settings</td>
  9816. <td>body</td>
  9817. <td>string</td>
  9818. <td>true</td>
  9819. <td>the settings object of the custom field</td>
  9820. </tr>
  9821. <tr>
  9822. <td>» showOnCard</td>
  9823. <td>body</td>
  9824. <td>boolean</td>
  9825. <td>true</td>
  9826. <td>should we show the custom field on cards</td>
  9827. </tr>
  9828. <tr>
  9829. <td>» automaticallyOnCard</td>
  9830. <td>body</td>
  9831. <td>boolean</td>
  9832. <td>true</td>
  9833. <td>should the custom fields automatically be added on cards</td>
  9834. </tr>
  9835. <tr>
  9836. <td>» alwaysOnCard</td>
  9837. <td>body</td>
  9838. <td>string</td>
  9839. <td>true</td>
  9840. <td>the alwaysOnCard value</td>
  9841. </tr>
  9842. <tr>
  9843. <td>» showLabelOnMiniCard</td>
  9844. <td>body</td>
  9845. <td>boolean</td>
  9846. <td>true</td>
  9847. <td>should the label of the custom field be shown on minicards</td>
  9848. </tr>
  9849. </tbody>
  9850. </table>
  9851. <blockquote>
  9852. <p>Example responses</p>
  9853. </blockquote>
  9854. <blockquote>
  9855. <p>200 Response</p>
  9856. </blockquote>
  9857. <pre class="highlight tab tab-json"><code>{
  9858. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9859. }
  9860. </code></pre>
  9861. <h3 id="edit_custom_field-responses">Responses</h3>
  9862. <table>
  9863. <thead>
  9864. <tr>
  9865. <th>Status</th>
  9866. <th>Meaning</th>
  9867. <th>Description</th>
  9868. <th>Schema</th>
  9869. </tr>
  9870. </thead>
  9871. <tbody>
  9872. <tr>
  9873. <td>200</td>
  9874. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9875. <td>200 response</td>
  9876. <td>Inline</td>
  9877. </tr>
  9878. </tbody>
  9879. </table>
  9880. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  9881. <p>Status Code <strong>200</strong></p>
  9882. <table>
  9883. <thead>
  9884. <tr>
  9885. <th>Name</th>
  9886. <th>Type</th>
  9887. <th>Required</th>
  9888. <th>Restrictions</th>
  9889. <th>Description</th>
  9890. </tr>
  9891. </thead>
  9892. <tbody>
  9893. <tr>
  9894. <td>» _id</td>
  9895. <td>string</td>
  9896. <td>false</td>
  9897. <td>none</td>
  9898. <td>none</td>
  9899. </tr>
  9900. </tbody>
  9901. </table>
  9902. <aside class="warning">
  9903. To perform this operation, you must be authenticated by means of one of the following methods:
  9904. UserSecurity
  9905. </aside>
  9906. <h2 id="delete_custom_field">delete_custom_field</h2>
  9907. <p><a id="opIddelete_custom_field"></a></p>
  9908. <blockquote>
  9909. <p>Code samples</p>
  9910. </blockquote>
  9911. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9912. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  9913. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9914. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9915. </code></pre>
  9916. <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>
  9917. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9918. </span></code></pre>
  9919. <pre class="highlight tab tab-javascript"><code>
  9920. <span class="hljs-keyword">const</span> headers = {
  9921. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9922. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9923. };
  9924. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9925. {
  9926. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9927. <span class="hljs-attr">headers</span>: headers
  9928. })
  9929. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9930. <span class="hljs-keyword">return</span> res.json();
  9931. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9932. <span class="hljs-built_in">console</span>.log(body);
  9933. });
  9934. </code></pre>
  9935. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9936. <span class="hljs-keyword">const</span> headers = {
  9937. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9938. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9939. };
  9940. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9941. {
  9942. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9943. <span class="hljs-attr">headers</span>: headers
  9944. })
  9945. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9946. <span class="hljs-keyword">return</span> res.json();
  9947. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9948. <span class="hljs-built_in">console</span>.log(body);
  9949. });
  9950. </code></pre>
  9951. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9952. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9953. headers = {
  9954. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9955. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9956. }
  9957. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9958. <span class="hljs-symbol">params:</span> {
  9959. }, <span class="hljs-symbol">headers:</span> headers
  9960. p JSON.parse(result)
  9961. </code></pre>
  9962. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9963. headers = {
  9964. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9965. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9966. }
  9967. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9968. <span class="hljs-built_in">print</span>(r.json())
  9969. </code></pre>
  9970. <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>);
  9971. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9972. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  9973. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9974. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9975. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9976. String inputLine;
  9977. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9978. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9979. response.append(inputLine);
  9980. }
  9981. in.close();
  9982. System.out.println(response.toString());
  9983. </code></pre>
  9984. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9985. <span class="hljs-keyword">import</span> (
  9986. <span class="hljs-string">&quot;bytes&quot;</span>
  9987. <span class="hljs-string">&quot;net/http&quot;</span>
  9988. )
  9989. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9990. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9991. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9992. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9993. }
  9994. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9995. 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)
  9996. req.Header = headers
  9997. client := &amp;http.Client{}
  9998. resp, err := client.Do(req)
  9999. <span class="hljs-comment">// ...</span>
  10000. }
  10001. </code></pre>
  10002. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10003. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10004. );
  10005. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10006. <span class="hljs-comment">// Define array of request body.</span>
  10007. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10008. <span class="hljs-keyword">try</span> {
  10009. <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>(
  10010. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10011. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10012. )
  10013. );
  10014. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10015. }
  10016. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10017. <span class="hljs-comment">// handle exception or api errors.</span>
  10018. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10019. }
  10020. <span class="hljs-comment">// ...</span>
  10021. </code></pre>
  10022. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10023. <p><em>Delete a Custom Fields attached to a board</em></p>
  10024. <p>The Custom Field can't be retrieved after this operation</p>
  10025. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10026. <table>
  10027. <thead>
  10028. <tr>
  10029. <th>Name</th>
  10030. <th>In</th>
  10031. <th>Type</th>
  10032. <th>Required</th>
  10033. <th>Description</th>
  10034. </tr>
  10035. </thead>
  10036. <tbody>
  10037. <tr>
  10038. <td>board</td>
  10039. <td>path</td>
  10040. <td>string</td>
  10041. <td>true</td>
  10042. <td>the board value</td>
  10043. </tr>
  10044. <tr>
  10045. <td>customField</td>
  10046. <td>path</td>
  10047. <td>string</td>
  10048. <td>true</td>
  10049. <td>the ID of the custom field</td>
  10050. </tr>
  10051. </tbody>
  10052. </table>
  10053. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  10054. <p><strong>customField</strong>: the ID of the custom field</p>
  10055. <blockquote>
  10056. <p>Example responses</p>
  10057. </blockquote>
  10058. <blockquote>
  10059. <p>200 Response</p>
  10060. </blockquote>
  10061. <pre class="highlight tab tab-json"><code>{
  10062. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10063. }
  10064. </code></pre>
  10065. <h3 id="delete_custom_field-responses">Responses</h3>
  10066. <table>
  10067. <thead>
  10068. <tr>
  10069. <th>Status</th>
  10070. <th>Meaning</th>
  10071. <th>Description</th>
  10072. <th>Schema</th>
  10073. </tr>
  10074. </thead>
  10075. <tbody>
  10076. <tr>
  10077. <td>200</td>
  10078. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10079. <td>200 response</td>
  10080. <td>Inline</td>
  10081. </tr>
  10082. </tbody>
  10083. </table>
  10084. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10085. <p>Status Code <strong>200</strong></p>
  10086. <table>
  10087. <thead>
  10088. <tr>
  10089. <th>Name</th>
  10090. <th>Type</th>
  10091. <th>Required</th>
  10092. <th>Restrictions</th>
  10093. <th>Description</th>
  10094. </tr>
  10095. </thead>
  10096. <tbody>
  10097. <tr>
  10098. <td>» _id</td>
  10099. <td>string</td>
  10100. <td>false</td>
  10101. <td>none</td>
  10102. <td>none</td>
  10103. </tr>
  10104. </tbody>
  10105. </table>
  10106. <aside class="warning">
  10107. To perform this operation, you must be authenticated by means of one of the following methods:
  10108. UserSecurity
  10109. </aside>
  10110. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10111. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10112. <blockquote>
  10113. <p>Code samples</p>
  10114. </blockquote>
  10115. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10116. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10117. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10118. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10119. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10120. </code></pre>
  10121. <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>
  10122. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10123. Accept: application/json
  10124. </span></code></pre>
  10125. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10126. &quot;items&quot;: &quot;string&quot;
  10127. }&#x27;</span>;
  10128. <span class="hljs-keyword">const</span> headers = {
  10129. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10130. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10131. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10132. };
  10133. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10134. {
  10135. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10136. <span class="hljs-attr">body</span>: inputBody,
  10137. <span class="hljs-attr">headers</span>: headers
  10138. })
  10139. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10140. <span class="hljs-keyword">return</span> res.json();
  10141. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10142. <span class="hljs-built_in">console</span>.log(body);
  10143. });
  10144. </code></pre>
  10145. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10146. <span class="hljs-keyword">const</span> inputBody = {
  10147. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10148. };
  10149. <span class="hljs-keyword">const</span> headers = {
  10150. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10151. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10152. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10153. };
  10154. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10155. {
  10156. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10157. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10158. <span class="hljs-attr">headers</span>: headers
  10159. })
  10160. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10161. <span class="hljs-keyword">return</span> res.json();
  10162. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10163. <span class="hljs-built_in">console</span>.log(body);
  10164. });
  10165. </code></pre>
  10166. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10167. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10168. headers = {
  10169. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10170. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10171. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10172. }
  10173. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10174. <span class="hljs-symbol">params:</span> {
  10175. }, <span class="hljs-symbol">headers:</span> headers
  10176. p JSON.parse(result)
  10177. </code></pre>
  10178. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10179. headers = {
  10180. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10181. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10182. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10183. }
  10184. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10185. <span class="hljs-built_in">print</span>(r.json())
  10186. </code></pre>
  10187. <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>);
  10188. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10189. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10190. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10191. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10192. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10193. String inputLine;
  10194. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10195. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10196. response.append(inputLine);
  10197. }
  10198. in.close();
  10199. System.out.println(response.toString());
  10200. </code></pre>
  10201. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10202. <span class="hljs-keyword">import</span> (
  10203. <span class="hljs-string">&quot;bytes&quot;</span>
  10204. <span class="hljs-string">&quot;net/http&quot;</span>
  10205. )
  10206. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10207. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10208. <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>},
  10209. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10210. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10211. }
  10212. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10213. 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)
  10214. req.Header = headers
  10215. client := &amp;http.Client{}
  10216. resp, err := client.Do(req)
  10217. <span class="hljs-comment">// ...</span>
  10218. }
  10219. </code></pre>
  10220. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10221. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10222. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10223. );
  10224. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10225. <span class="hljs-comment">// Define array of request body.</span>
  10226. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10227. <span class="hljs-keyword">try</span> {
  10228. <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>(
  10229. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10230. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10231. )
  10232. );
  10233. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10234. }
  10235. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10236. <span class="hljs-comment">// handle exception or api errors.</span>
  10237. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10238. }
  10239. <span class="hljs-comment">// ...</span>
  10240. </code></pre>
  10241. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10242. <p><em>Update a Custom Field's dropdown items</em></p>
  10243. <blockquote>
  10244. <p>Body parameter</p>
  10245. </blockquote>
  10246. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10247. </code></pre>
  10248. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10249. <table>
  10250. <thead>
  10251. <tr>
  10252. <th>Name</th>
  10253. <th>In</th>
  10254. <th>Type</th>
  10255. <th>Required</th>
  10256. <th>Description</th>
  10257. </tr>
  10258. </thead>
  10259. <tbody>
  10260. <tr>
  10261. <td>board</td>
  10262. <td>path</td>
  10263. <td>string</td>
  10264. <td>true</td>
  10265. <td>the board value</td>
  10266. </tr>
  10267. <tr>
  10268. <td>customField</td>
  10269. <td>path</td>
  10270. <td>string</td>
  10271. <td>true</td>
  10272. <td>the customField value</td>
  10273. </tr>
  10274. <tr>
  10275. <td>body</td>
  10276. <td>body</td>
  10277. <td>object</td>
  10278. <td>false</td>
  10279. <td>none</td>
  10280. </tr>
  10281. <tr>
  10282. <td>» items</td>
  10283. <td>body</td>
  10284. <td>string</td>
  10285. <td>false</td>
  10286. <td>names of the custom field</td>
  10287. </tr>
  10288. </tbody>
  10289. </table>
  10290. <blockquote>
  10291. <p>Example responses</p>
  10292. </blockquote>
  10293. <blockquote>
  10294. <p>200 Response</p>
  10295. </blockquote>
  10296. <pre class="highlight tab tab-json"><code>{
  10297. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10298. }
  10299. </code></pre>
  10300. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10301. <table>
  10302. <thead>
  10303. <tr>
  10304. <th>Status</th>
  10305. <th>Meaning</th>
  10306. <th>Description</th>
  10307. <th>Schema</th>
  10308. </tr>
  10309. </thead>
  10310. <tbody>
  10311. <tr>
  10312. <td>200</td>
  10313. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10314. <td>200 response</td>
  10315. <td>Inline</td>
  10316. </tr>
  10317. </tbody>
  10318. </table>
  10319. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10320. <p>Status Code <strong>200</strong></p>
  10321. <table>
  10322. <thead>
  10323. <tr>
  10324. <th>Name</th>
  10325. <th>Type</th>
  10326. <th>Required</th>
  10327. <th>Restrictions</th>
  10328. <th>Description</th>
  10329. </tr>
  10330. </thead>
  10331. <tbody>
  10332. <tr>
  10333. <td>» _id</td>
  10334. <td>string</td>
  10335. <td>false</td>
  10336. <td>none</td>
  10337. <td>none</td>
  10338. </tr>
  10339. </tbody>
  10340. </table>
  10341. <aside class="warning">
  10342. To perform this operation, you must be authenticated by means of one of the following methods:
  10343. UserSecurity
  10344. </aside>
  10345. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10346. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10347. <blockquote>
  10348. <p>Code samples</p>
  10349. </blockquote>
  10350. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10351. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10352. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10353. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10354. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10355. </code></pre>
  10356. <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>
  10357. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10358. Accept: application/json
  10359. </span></code></pre>
  10360. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10361. &quot;name&quot;: &quot;string&quot;
  10362. }&#x27;</span>;
  10363. <span class="hljs-keyword">const</span> headers = {
  10364. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10365. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10366. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10367. };
  10368. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10369. {
  10370. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10371. <span class="hljs-attr">body</span>: inputBody,
  10372. <span class="hljs-attr">headers</span>: headers
  10373. })
  10374. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10375. <span class="hljs-keyword">return</span> res.json();
  10376. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10377. <span class="hljs-built_in">console</span>.log(body);
  10378. });
  10379. </code></pre>
  10380. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10381. <span class="hljs-keyword">const</span> inputBody = {
  10382. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10383. };
  10384. <span class="hljs-keyword">const</span> headers = {
  10385. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10386. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10387. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10388. };
  10389. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10390. {
  10391. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10392. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10393. <span class="hljs-attr">headers</span>: headers
  10394. })
  10395. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10396. <span class="hljs-keyword">return</span> res.json();
  10397. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10398. <span class="hljs-built_in">console</span>.log(body);
  10399. });
  10400. </code></pre>
  10401. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10402. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10403. headers = {
  10404. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10405. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10406. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10407. }
  10408. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10409. <span class="hljs-symbol">params:</span> {
  10410. }, <span class="hljs-symbol">headers:</span> headers
  10411. p JSON.parse(result)
  10412. </code></pre>
  10413. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10414. headers = {
  10415. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10416. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10417. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10418. }
  10419. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10420. <span class="hljs-built_in">print</span>(r.json())
  10421. </code></pre>
  10422. <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>);
  10423. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10424. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10425. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10426. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10427. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10428. String inputLine;
  10429. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10430. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10431. response.append(inputLine);
  10432. }
  10433. in.close();
  10434. System.out.println(response.toString());
  10435. </code></pre>
  10436. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10437. <span class="hljs-keyword">import</span> (
  10438. <span class="hljs-string">&quot;bytes&quot;</span>
  10439. <span class="hljs-string">&quot;net/http&quot;</span>
  10440. )
  10441. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10442. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10443. <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>},
  10444. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10445. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10446. }
  10447. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10448. 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)
  10449. req.Header = headers
  10450. client := &amp;http.Client{}
  10451. resp, err := client.Do(req)
  10452. <span class="hljs-comment">// ...</span>
  10453. }
  10454. </code></pre>
  10455. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10456. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10457. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10458. );
  10459. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10460. <span class="hljs-comment">// Define array of request body.</span>
  10461. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10462. <span class="hljs-keyword">try</span> {
  10463. <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>(
  10464. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10465. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10466. )
  10467. );
  10468. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10469. }
  10470. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10471. <span class="hljs-comment">// handle exception or api errors.</span>
  10472. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10473. }
  10474. <span class="hljs-comment">// ...</span>
  10475. </code></pre>
  10476. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10477. <p><em>Update a Custom Field's dropdown item</em></p>
  10478. <blockquote>
  10479. <p>Body parameter</p>
  10480. </blockquote>
  10481. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10482. </code></pre>
  10483. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10484. <table>
  10485. <thead>
  10486. <tr>
  10487. <th>Name</th>
  10488. <th>In</th>
  10489. <th>Type</th>
  10490. <th>Required</th>
  10491. <th>Description</th>
  10492. </tr>
  10493. </thead>
  10494. <tbody>
  10495. <tr>
  10496. <td>board</td>
  10497. <td>path</td>
  10498. <td>string</td>
  10499. <td>true</td>
  10500. <td>the board value</td>
  10501. </tr>
  10502. <tr>
  10503. <td>customField</td>
  10504. <td>path</td>
  10505. <td>string</td>
  10506. <td>true</td>
  10507. <td>the customField value</td>
  10508. </tr>
  10509. <tr>
  10510. <td>dropdownItem</td>
  10511. <td>path</td>
  10512. <td>string</td>
  10513. <td>true</td>
  10514. <td>the dropdownItem value</td>
  10515. </tr>
  10516. <tr>
  10517. <td>body</td>
  10518. <td>body</td>
  10519. <td>object</td>
  10520. <td>true</td>
  10521. <td>none</td>
  10522. </tr>
  10523. <tr>
  10524. <td>» name</td>
  10525. <td>body</td>
  10526. <td>string</td>
  10527. <td>true</td>
  10528. <td>names of the custom field</td>
  10529. </tr>
  10530. </tbody>
  10531. </table>
  10532. <blockquote>
  10533. <p>Example responses</p>
  10534. </blockquote>
  10535. <blockquote>
  10536. <p>200 Response</p>
  10537. </blockquote>
  10538. <pre class="highlight tab tab-json"><code>{
  10539. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10540. }
  10541. </code></pre>
  10542. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10543. <table>
  10544. <thead>
  10545. <tr>
  10546. <th>Status</th>
  10547. <th>Meaning</th>
  10548. <th>Description</th>
  10549. <th>Schema</th>
  10550. </tr>
  10551. </thead>
  10552. <tbody>
  10553. <tr>
  10554. <td>200</td>
  10555. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10556. <td>200 response</td>
  10557. <td>Inline</td>
  10558. </tr>
  10559. </tbody>
  10560. </table>
  10561. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10562. <p>Status Code <strong>200</strong></p>
  10563. <table>
  10564. <thead>
  10565. <tr>
  10566. <th>Name</th>
  10567. <th>Type</th>
  10568. <th>Required</th>
  10569. <th>Restrictions</th>
  10570. <th>Description</th>
  10571. </tr>
  10572. </thead>
  10573. <tbody>
  10574. <tr>
  10575. <td>» _id</td>
  10576. <td>string</td>
  10577. <td>false</td>
  10578. <td>none</td>
  10579. <td>none</td>
  10580. </tr>
  10581. </tbody>
  10582. </table>
  10583. <aside class="warning">
  10584. To perform this operation, you must be authenticated by means of one of the following methods:
  10585. UserSecurity
  10586. </aside>
  10587. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  10588. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  10589. <blockquote>
  10590. <p>Code samples</p>
  10591. </blockquote>
  10592. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10593. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10594. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10595. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10596. </code></pre>
  10597. <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>
  10598. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10599. </span></code></pre>
  10600. <pre class="highlight tab tab-javascript"><code>
  10601. <span class="hljs-keyword">const</span> headers = {
  10602. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10603. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10604. };
  10605. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10606. {
  10607. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10608. <span class="hljs-attr">headers</span>: headers
  10609. })
  10610. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10611. <span class="hljs-keyword">return</span> res.json();
  10612. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10613. <span class="hljs-built_in">console</span>.log(body);
  10614. });
  10615. </code></pre>
  10616. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10617. <span class="hljs-keyword">const</span> headers = {
  10618. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10619. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10620. };
  10621. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10622. {
  10623. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10624. <span class="hljs-attr">headers</span>: headers
  10625. })
  10626. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10627. <span class="hljs-keyword">return</span> res.json();
  10628. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10629. <span class="hljs-built_in">console</span>.log(body);
  10630. });
  10631. </code></pre>
  10632. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10633. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10634. headers = {
  10635. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10636. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10637. }
  10638. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10639. <span class="hljs-symbol">params:</span> {
  10640. }, <span class="hljs-symbol">headers:</span> headers
  10641. p JSON.parse(result)
  10642. </code></pre>
  10643. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10644. headers = {
  10645. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10646. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10647. }
  10648. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10649. <span class="hljs-built_in">print</span>(r.json())
  10650. </code></pre>
  10651. <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>);
  10652. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10653. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10654. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10655. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10656. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10657. String inputLine;
  10658. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10659. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10660. response.append(inputLine);
  10661. }
  10662. in.close();
  10663. System.out.println(response.toString());
  10664. </code></pre>
  10665. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10666. <span class="hljs-keyword">import</span> (
  10667. <span class="hljs-string">&quot;bytes&quot;</span>
  10668. <span class="hljs-string">&quot;net/http&quot;</span>
  10669. )
  10670. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10671. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10672. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10673. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10674. }
  10675. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10676. 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)
  10677. req.Header = headers
  10678. client := &amp;http.Client{}
  10679. resp, err := client.Do(req)
  10680. <span class="hljs-comment">// ...</span>
  10681. }
  10682. </code></pre>
  10683. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10684. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10685. );
  10686. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10687. <span class="hljs-comment">// Define array of request body.</span>
  10688. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10689. <span class="hljs-keyword">try</span> {
  10690. <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>(
  10691. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10692. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10693. )
  10694. );
  10695. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10696. }
  10697. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10698. <span class="hljs-comment">// handle exception or api errors.</span>
  10699. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10700. }
  10701. <span class="hljs-comment">// ...</span>
  10702. </code></pre>
  10703. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10704. <p><em>Update a Custom Field's dropdown items</em></p>
  10705. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  10706. <table>
  10707. <thead>
  10708. <tr>
  10709. <th>Name</th>
  10710. <th>In</th>
  10711. <th>Type</th>
  10712. <th>Required</th>
  10713. <th>Description</th>
  10714. </tr>
  10715. </thead>
  10716. <tbody>
  10717. <tr>
  10718. <td>board</td>
  10719. <td>path</td>
  10720. <td>string</td>
  10721. <td>true</td>
  10722. <td>the board value</td>
  10723. </tr>
  10724. <tr>
  10725. <td>customField</td>
  10726. <td>path</td>
  10727. <td>string</td>
  10728. <td>true</td>
  10729. <td>the customField value</td>
  10730. </tr>
  10731. <tr>
  10732. <td>dropdownItem</td>
  10733. <td>path</td>
  10734. <td>string</td>
  10735. <td>true</td>
  10736. <td>the dropdownItem value</td>
  10737. </tr>
  10738. </tbody>
  10739. </table>
  10740. <blockquote>
  10741. <p>Example responses</p>
  10742. </blockquote>
  10743. <blockquote>
  10744. <p>200 Response</p>
  10745. </blockquote>
  10746. <pre class="highlight tab tab-json"><code>{
  10747. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10748. }
  10749. </code></pre>
  10750. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  10751. <table>
  10752. <thead>
  10753. <tr>
  10754. <th>Status</th>
  10755. <th>Meaning</th>
  10756. <th>Description</th>
  10757. <th>Schema</th>
  10758. </tr>
  10759. </thead>
  10760. <tbody>
  10761. <tr>
  10762. <td>200</td>
  10763. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10764. <td>200 response</td>
  10765. <td>Inline</td>
  10766. </tr>
  10767. </tbody>
  10768. </table>
  10769. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10770. <p>Status Code <strong>200</strong></p>
  10771. <table>
  10772. <thead>
  10773. <tr>
  10774. <th>Name</th>
  10775. <th>Type</th>
  10776. <th>Required</th>
  10777. <th>Restrictions</th>
  10778. <th>Description</th>
  10779. </tr>
  10780. </thead>
  10781. <tbody>
  10782. <tr>
  10783. <td>» _id</td>
  10784. <td>string</td>
  10785. <td>false</td>
  10786. <td>none</td>
  10787. <td>none</td>
  10788. </tr>
  10789. </tbody>
  10790. </table>
  10791. <aside class="warning">
  10792. To perform this operation, you must be authenticated by means of one of the following methods:
  10793. UserSecurity
  10794. </aside>
  10795. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  10796. <h2 id="get_all_integrations">get_all_integrations</h2>
  10797. <p><a id="opIdget_all_integrations"></a></p>
  10798. <blockquote>
  10799. <p>Code samples</p>
  10800. </blockquote>
  10801. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10802. curl -X GET /api/boards/{board}/integrations \
  10803. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10804. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10805. </code></pre>
  10806. <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>
  10807. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10808. </span></code></pre>
  10809. <pre class="highlight tab tab-javascript"><code>
  10810. <span class="hljs-keyword">const</span> headers = {
  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}/integrations&#x27;</span>,
  10815. {
  10816. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10817. <span class="hljs-attr">headers</span>: headers
  10818. })
  10819. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10820. <span class="hljs-keyword">return</span> res.json();
  10821. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10822. <span class="hljs-built_in">console</span>.log(body);
  10823. });
  10824. </code></pre>
  10825. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10826. <span class="hljs-keyword">const</span> headers = {
  10827. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10828. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10829. };
  10830. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10831. {
  10832. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10833. <span class="hljs-attr">headers</span>: headers
  10834. })
  10835. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10836. <span class="hljs-keyword">return</span> res.json();
  10837. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10838. <span class="hljs-built_in">console</span>.log(body);
  10839. });
  10840. </code></pre>
  10841. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10842. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10843. headers = {
  10844. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10845. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10846. }
  10847. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10848. <span class="hljs-symbol">params:</span> {
  10849. }, <span class="hljs-symbol">headers:</span> headers
  10850. p JSON.parse(result)
  10851. </code></pre>
  10852. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10853. headers = {
  10854. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10855. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10856. }
  10857. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  10858. <span class="hljs-built_in">print</span>(r.json())
  10859. </code></pre>
  10860. <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>);
  10861. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10862. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10863. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10864. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10865. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10866. String inputLine;
  10867. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10868. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10869. response.append(inputLine);
  10870. }
  10871. in.close();
  10872. System.out.println(response.toString());
  10873. </code></pre>
  10874. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10875. <span class="hljs-keyword">import</span> (
  10876. <span class="hljs-string">&quot;bytes&quot;</span>
  10877. <span class="hljs-string">&quot;net/http&quot;</span>
  10878. )
  10879. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10880. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10881. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10882. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10883. }
  10884. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10885. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  10886. req.Header = headers
  10887. client := &amp;http.Client{}
  10888. resp, err := client.Do(req)
  10889. <span class="hljs-comment">// ...</span>
  10890. }
  10891. </code></pre>
  10892. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10893. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10894. );
  10895. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10896. <span class="hljs-comment">// Define array of request body.</span>
  10897. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10898. <span class="hljs-keyword">try</span> {
  10899. <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>(
  10900. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10901. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10902. )
  10903. );
  10904. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10905. }
  10906. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10907. <span class="hljs-comment">// handle exception or api errors.</span>
  10908. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10909. }
  10910. <span class="hljs-comment">// ...</span>
  10911. </code></pre>
  10912. <p><code>GET /api/boards/{board}/integrations</code></p>
  10913. <p><em>Get all integrations in board</em></p>
  10914. <h3 id="get_all_integrations-parameters">Parameters</h3>
  10915. <table>
  10916. <thead>
  10917. <tr>
  10918. <th>Name</th>
  10919. <th>In</th>
  10920. <th>Type</th>
  10921. <th>Required</th>
  10922. <th>Description</th>
  10923. </tr>
  10924. </thead>
  10925. <tbody>
  10926. <tr>
  10927. <td>board</td>
  10928. <td>path</td>
  10929. <td>string</td>
  10930. <td>true</td>
  10931. <td>the board ID</td>
  10932. </tr>
  10933. </tbody>
  10934. </table>
  10935. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  10936. <p><strong>board</strong>: the board ID</p>
  10937. <blockquote>
  10938. <p>Example responses</p>
  10939. </blockquote>
  10940. <blockquote>
  10941. <p>200 Response</p>
  10942. </blockquote>
  10943. <pre class="highlight tab tab-json"><code>[
  10944. {
  10945. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  10946. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10947. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10948. <span class="hljs-attr">&quot;activities&quot;</span>: [
  10949. <span class="hljs-string">&quot;string&quot;</span>
  10950. ],
  10951. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10952. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10953. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10954. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10955. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10956. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10957. }
  10958. ]
  10959. </code></pre>
  10960. <h3 id="get_all_integrations-responses">Responses</h3>
  10961. <table>
  10962. <thead>
  10963. <tr>
  10964. <th>Status</th>
  10965. <th>Meaning</th>
  10966. <th>Description</th>
  10967. <th>Schema</th>
  10968. </tr>
  10969. </thead>
  10970. <tbody>
  10971. <tr>
  10972. <td>200</td>
  10973. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10974. <td>200 response</td>
  10975. <td>Inline</td>
  10976. </tr>
  10977. </tbody>
  10978. </table>
  10979. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  10980. <p>Status Code <strong>200</strong></p>
  10981. <table>
  10982. <thead>
  10983. <tr>
  10984. <th>Name</th>
  10985. <th>Type</th>
  10986. <th>Required</th>
  10987. <th>Restrictions</th>
  10988. <th>Description</th>
  10989. </tr>
  10990. </thead>
  10991. <tbody>
  10992. <tr>
  10993. <td><em>anonymous</em></td>
  10994. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  10995. <td>false</td>
  10996. <td>none</td>
  10997. <td>[Integration with third-party applications]</td>
  10998. </tr>
  10999. <tr>
  11000. <td>» enabled</td>
  11001. <td>boolean</td>
  11002. <td>true</td>
  11003. <td>none</td>
  11004. <td>is the integration enabled?</td>
  11005. </tr>
  11006. <tr>
  11007. <td>» title</td>
  11008. <td>string¦null</td>
  11009. <td>false</td>
  11010. <td>none</td>
  11011. <td>name of the integration</td>
  11012. </tr>
  11013. <tr>
  11014. <td>» type</td>
  11015. <td>string</td>
  11016. <td>true</td>
  11017. <td>none</td>
  11018. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11019. </tr>
  11020. <tr>
  11021. <td>» activities</td>
  11022. <td>[string]</td>
  11023. <td>true</td>
  11024. <td>none</td>
  11025. <td>activities the integration gets triggered (list)</td>
  11026. </tr>
  11027. <tr>
  11028. <td>» url</td>
  11029. <td>string</td>
  11030. <td>true</td>
  11031. <td>none</td>
  11032. <td>none</td>
  11033. </tr>
  11034. <tr>
  11035. <td>» token</td>
  11036. <td>string¦null</td>
  11037. <td>false</td>
  11038. <td>none</td>
  11039. <td>token of the integration</td>
  11040. </tr>
  11041. <tr>
  11042. <td>» boardId</td>
  11043. <td>string</td>
  11044. <td>true</td>
  11045. <td>none</td>
  11046. <td>Board ID of the integration</td>
  11047. </tr>
  11048. <tr>
  11049. <td>» createdAt</td>
  11050. <td>string</td>
  11051. <td>true</td>
  11052. <td>none</td>
  11053. <td>Creation date of the integration</td>
  11054. </tr>
  11055. <tr>
  11056. <td>» modifiedAt</td>
  11057. <td>string</td>
  11058. <td>true</td>
  11059. <td>none</td>
  11060. <td>none</td>
  11061. </tr>
  11062. <tr>
  11063. <td>» userId</td>
  11064. <td>string</td>
  11065. <td>true</td>
  11066. <td>none</td>
  11067. <td>user ID who created the interation</td>
  11068. </tr>
  11069. </tbody>
  11070. </table>
  11071. <aside class="warning">
  11072. To perform this operation, you must be authenticated by means of one of the following methods:
  11073. UserSecurity
  11074. </aside>
  11075. <h2 id="new_integration">new_integration</h2>
  11076. <p><a id="opIdnew_integration"></a></p>
  11077. <blockquote>
  11078. <p>Code samples</p>
  11079. </blockquote>
  11080. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11081. curl -X POST /api/boards/{board}/integrations \
  11082. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11083. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11084. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11085. </code></pre>
  11086. <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>
  11087. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11088. Accept: application/json
  11089. </span></code></pre>
  11090. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11091. &quot;url&quot;: &quot;string&quot;
  11092. }&#x27;</span>;
  11093. <span class="hljs-keyword">const</span> headers = {
  11094. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11095. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11096. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11097. };
  11098. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11099. {
  11100. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11101. <span class="hljs-attr">body</span>: inputBody,
  11102. <span class="hljs-attr">headers</span>: headers
  11103. })
  11104. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11105. <span class="hljs-keyword">return</span> res.json();
  11106. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11107. <span class="hljs-built_in">console</span>.log(body);
  11108. });
  11109. </code></pre>
  11110. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11111. <span class="hljs-keyword">const</span> inputBody = {
  11112. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11113. };
  11114. <span class="hljs-keyword">const</span> headers = {
  11115. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11116. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11117. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11118. };
  11119. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11120. {
  11121. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11122. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11123. <span class="hljs-attr">headers</span>: headers
  11124. })
  11125. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11126. <span class="hljs-keyword">return</span> res.json();
  11127. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11128. <span class="hljs-built_in">console</span>.log(body);
  11129. });
  11130. </code></pre>
  11131. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11132. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11133. headers = {
  11134. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11135. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11136. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11137. }
  11138. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11139. <span class="hljs-symbol">params:</span> {
  11140. }, <span class="hljs-symbol">headers:</span> headers
  11141. p JSON.parse(result)
  11142. </code></pre>
  11143. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11144. headers = {
  11145. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11146. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11147. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11148. }
  11149. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11150. <span class="hljs-built_in">print</span>(r.json())
  11151. </code></pre>
  11152. <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>);
  11153. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11154. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11155. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11156. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11157. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11158. String inputLine;
  11159. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11160. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11161. response.append(inputLine);
  11162. }
  11163. in.close();
  11164. System.out.println(response.toString());
  11165. </code></pre>
  11166. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11167. <span class="hljs-keyword">import</span> (
  11168. <span class="hljs-string">&quot;bytes&quot;</span>
  11169. <span class="hljs-string">&quot;net/http&quot;</span>
  11170. )
  11171. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11172. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11173. <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>},
  11174. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11175. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11176. }
  11177. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11178. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11179. req.Header = headers
  11180. client := &amp;http.Client{}
  11181. resp, err := client.Do(req)
  11182. <span class="hljs-comment">// ...</span>
  11183. }
  11184. </code></pre>
  11185. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11186. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11187. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11188. );
  11189. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11190. <span class="hljs-comment">// Define array of request body.</span>
  11191. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11192. <span class="hljs-keyword">try</span> {
  11193. <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>(
  11194. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11195. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11196. )
  11197. );
  11198. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11199. }
  11200. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11201. <span class="hljs-comment">// handle exception or api errors.</span>
  11202. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11203. }
  11204. <span class="hljs-comment">// ...</span>
  11205. </code></pre>
  11206. <p><code>POST /api/boards/{board}/integrations</code></p>
  11207. <p><em>Create a new integration</em></p>
  11208. <blockquote>
  11209. <p>Body parameter</p>
  11210. </blockquote>
  11211. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11212. </code></pre>
  11213. <h3 id="new_integration-parameters">Parameters</h3>
  11214. <table>
  11215. <thead>
  11216. <tr>
  11217. <th>Name</th>
  11218. <th>In</th>
  11219. <th>Type</th>
  11220. <th>Required</th>
  11221. <th>Description</th>
  11222. </tr>
  11223. </thead>
  11224. <tbody>
  11225. <tr>
  11226. <td>board</td>
  11227. <td>path</td>
  11228. <td>string</td>
  11229. <td>true</td>
  11230. <td>the board ID</td>
  11231. </tr>
  11232. <tr>
  11233. <td>body</td>
  11234. <td>body</td>
  11235. <td>object</td>
  11236. <td>true</td>
  11237. <td>none</td>
  11238. </tr>
  11239. <tr>
  11240. <td>» url</td>
  11241. <td>body</td>
  11242. <td>string</td>
  11243. <td>true</td>
  11244. <td>the URL of the integration</td>
  11245. </tr>
  11246. </tbody>
  11247. </table>
  11248. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  11249. <p><strong>board</strong>: the board ID</p>
  11250. <blockquote>
  11251. <p>Example responses</p>
  11252. </blockquote>
  11253. <blockquote>
  11254. <p>200 Response</p>
  11255. </blockquote>
  11256. <pre class="highlight tab tab-json"><code>{
  11257. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11258. }
  11259. </code></pre>
  11260. <h3 id="new_integration-responses">Responses</h3>
  11261. <table>
  11262. <thead>
  11263. <tr>
  11264. <th>Status</th>
  11265. <th>Meaning</th>
  11266. <th>Description</th>
  11267. <th>Schema</th>
  11268. </tr>
  11269. </thead>
  11270. <tbody>
  11271. <tr>
  11272. <td>200</td>
  11273. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11274. <td>200 response</td>
  11275. <td>Inline</td>
  11276. </tr>
  11277. </tbody>
  11278. </table>
  11279. <h3 id="new_integration-responseschema">Response Schema</h3>
  11280. <p>Status Code <strong>200</strong></p>
  11281. <table>
  11282. <thead>
  11283. <tr>
  11284. <th>Name</th>
  11285. <th>Type</th>
  11286. <th>Required</th>
  11287. <th>Restrictions</th>
  11288. <th>Description</th>
  11289. </tr>
  11290. </thead>
  11291. <tbody>
  11292. <tr>
  11293. <td>» _id</td>
  11294. <td>string</td>
  11295. <td>false</td>
  11296. <td>none</td>
  11297. <td>none</td>
  11298. </tr>
  11299. </tbody>
  11300. </table>
  11301. <aside class="warning">
  11302. To perform this operation, you must be authenticated by means of one of the following methods:
  11303. UserSecurity
  11304. </aside>
  11305. <h2 id="get_integration">get_integration</h2>
  11306. <p><a id="opIdget_integration"></a></p>
  11307. <blockquote>
  11308. <p>Code samples</p>
  11309. </blockquote>
  11310. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11311. curl -X GET /api/boards/{board}/integrations/{int} \
  11312. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11313. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11314. </code></pre>
  11315. <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>
  11316. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11317. </span></code></pre>
  11318. <pre class="highlight tab tab-javascript"><code>
  11319. <span class="hljs-keyword">const</span> headers = {
  11320. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11321. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11322. };
  11323. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11324. {
  11325. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11326. <span class="hljs-attr">headers</span>: headers
  11327. })
  11328. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11329. <span class="hljs-keyword">return</span> res.json();
  11330. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11331. <span class="hljs-built_in">console</span>.log(body);
  11332. });
  11333. </code></pre>
  11334. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11335. <span class="hljs-keyword">const</span> headers = {
  11336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11338. };
  11339. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11340. {
  11341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11342. <span class="hljs-attr">headers</span>: headers
  11343. })
  11344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11345. <span class="hljs-keyword">return</span> res.json();
  11346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11347. <span class="hljs-built_in">console</span>.log(body);
  11348. });
  11349. </code></pre>
  11350. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11351. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11352. headers = {
  11353. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11354. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11355. }
  11356. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11357. <span class="hljs-symbol">params:</span> {
  11358. }, <span class="hljs-symbol">headers:</span> headers
  11359. p JSON.parse(result)
  11360. </code></pre>
  11361. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11362. headers = {
  11363. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11364. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11365. }
  11366. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11367. <span class="hljs-built_in">print</span>(r.json())
  11368. </code></pre>
  11369. <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>);
  11370. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11371. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11372. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11373. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11374. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11375. String inputLine;
  11376. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11377. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11378. response.append(inputLine);
  11379. }
  11380. in.close();
  11381. System.out.println(response.toString());
  11382. </code></pre>
  11383. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11384. <span class="hljs-keyword">import</span> (
  11385. <span class="hljs-string">&quot;bytes&quot;</span>
  11386. <span class="hljs-string">&quot;net/http&quot;</span>
  11387. )
  11388. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11389. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11390. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11391. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11392. }
  11393. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11394. 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)
  11395. req.Header = headers
  11396. client := &amp;http.Client{}
  11397. resp, err := client.Do(req)
  11398. <span class="hljs-comment">// ...</span>
  11399. }
  11400. </code></pre>
  11401. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11402. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11403. );
  11404. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11405. <span class="hljs-comment">// Define array of request body.</span>
  11406. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11407. <span class="hljs-keyword">try</span> {
  11408. <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>(
  11409. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11410. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11411. )
  11412. );
  11413. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11414. }
  11415. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11416. <span class="hljs-comment">// handle exception or api errors.</span>
  11417. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11418. }
  11419. <span class="hljs-comment">// ...</span>
  11420. </code></pre>
  11421. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11422. <p><em>Get a single integration in board</em></p>
  11423. <h3 id="get_integration-parameters">Parameters</h3>
  11424. <table>
  11425. <thead>
  11426. <tr>
  11427. <th>Name</th>
  11428. <th>In</th>
  11429. <th>Type</th>
  11430. <th>Required</th>
  11431. <th>Description</th>
  11432. </tr>
  11433. </thead>
  11434. <tbody>
  11435. <tr>
  11436. <td>board</td>
  11437. <td>path</td>
  11438. <td>string</td>
  11439. <td>true</td>
  11440. <td>the board ID</td>
  11441. </tr>
  11442. <tr>
  11443. <td>int</td>
  11444. <td>path</td>
  11445. <td>string</td>
  11446. <td>true</td>
  11447. <td>the integration ID</td>
  11448. </tr>
  11449. </tbody>
  11450. </table>
  11451. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11452. <p><strong>board</strong>: the board ID</p>
  11453. <p><strong>int</strong>: the integration ID</p>
  11454. <blockquote>
  11455. <p>Example responses</p>
  11456. </blockquote>
  11457. <blockquote>
  11458. <p>200 Response</p>
  11459. </blockquote>
  11460. <pre class="highlight tab tab-json"><code>{
  11461. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11462. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11463. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11464. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11465. <span class="hljs-string">&quot;string&quot;</span>
  11466. ],
  11467. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11468. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11469. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11470. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11471. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11472. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11473. }
  11474. </code></pre>
  11475. <h3 id="get_integration-responses">Responses</h3>
  11476. <table>
  11477. <thead>
  11478. <tr>
  11479. <th>Status</th>
  11480. <th>Meaning</th>
  11481. <th>Description</th>
  11482. <th>Schema</th>
  11483. </tr>
  11484. </thead>
  11485. <tbody>
  11486. <tr>
  11487. <td>200</td>
  11488. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11489. <td>200 response</td>
  11490. <td><a href="#schemaintegrations">Integrations</a></td>
  11491. </tr>
  11492. </tbody>
  11493. </table>
  11494. <aside class="warning">
  11495. To perform this operation, you must be authenticated by means of one of the following methods:
  11496. UserSecurity
  11497. </aside>
  11498. <h2 id="edit_integration">edit_integration</h2>
  11499. <p><a id="opIdedit_integration"></a></p>
  11500. <blockquote>
  11501. <p>Code samples</p>
  11502. </blockquote>
  11503. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11504. curl -X PUT /api/boards/{board}/integrations/{int} \
  11505. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11506. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11507. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11508. </code></pre>
  11509. <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>
  11510. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11511. Accept: application/json
  11512. </span></code></pre>
  11513. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11514. &quot;enabled&quot;: &quot;string&quot;,
  11515. &quot;title&quot;: &quot;string&quot;,
  11516. &quot;url&quot;: &quot;string&quot;,
  11517. &quot;token&quot;: &quot;string&quot;,
  11518. &quot;activities&quot;: &quot;string&quot;
  11519. }&#x27;</span>;
  11520. <span class="hljs-keyword">const</span> headers = {
  11521. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11522. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11523. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11524. };
  11525. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11526. {
  11527. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11528. <span class="hljs-attr">body</span>: inputBody,
  11529. <span class="hljs-attr">headers</span>: headers
  11530. })
  11531. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11532. <span class="hljs-keyword">return</span> res.json();
  11533. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11534. <span class="hljs-built_in">console</span>.log(body);
  11535. });
  11536. </code></pre>
  11537. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11538. <span class="hljs-keyword">const</span> inputBody = {
  11539. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11540. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11541. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11542. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11543. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11544. };
  11545. <span class="hljs-keyword">const</span> headers = {
  11546. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11547. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11548. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11549. };
  11550. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11551. {
  11552. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11553. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11554. <span class="hljs-attr">headers</span>: headers
  11555. })
  11556. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11557. <span class="hljs-keyword">return</span> res.json();
  11558. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11559. <span class="hljs-built_in">console</span>.log(body);
  11560. });
  11561. </code></pre>
  11562. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11563. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11564. headers = {
  11565. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11566. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11567. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11568. }
  11569. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11570. <span class="hljs-symbol">params:</span> {
  11571. }, <span class="hljs-symbol">headers:</span> headers
  11572. p JSON.parse(result)
  11573. </code></pre>
  11574. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11575. headers = {
  11576. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11577. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11578. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11579. }
  11580. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11581. <span class="hljs-built_in">print</span>(r.json())
  11582. </code></pre>
  11583. <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>);
  11584. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11585. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11586. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11587. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11588. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11589. String inputLine;
  11590. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11591. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11592. response.append(inputLine);
  11593. }
  11594. in.close();
  11595. System.out.println(response.toString());
  11596. </code></pre>
  11597. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11598. <span class="hljs-keyword">import</span> (
  11599. <span class="hljs-string">&quot;bytes&quot;</span>
  11600. <span class="hljs-string">&quot;net/http&quot;</span>
  11601. )
  11602. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11603. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11604. <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>},
  11605. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11606. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11607. }
  11608. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11609. 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)
  11610. req.Header = headers
  11611. client := &amp;http.Client{}
  11612. resp, err := client.Do(req)
  11613. <span class="hljs-comment">// ...</span>
  11614. }
  11615. </code></pre>
  11616. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11617. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11618. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11619. );
  11620. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11621. <span class="hljs-comment">// Define array of request body.</span>
  11622. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11623. <span class="hljs-keyword">try</span> {
  11624. <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>(
  11625. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11626. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11627. )
  11628. );
  11629. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11630. }
  11631. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11632. <span class="hljs-comment">// handle exception or api errors.</span>
  11633. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11634. }
  11635. <span class="hljs-comment">// ...</span>
  11636. </code></pre>
  11637. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  11638. <p><em>Edit integration data</em></p>
  11639. <blockquote>
  11640. <p>Body parameter</p>
  11641. </blockquote>
  11642. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  11643. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11644. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11645. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  11646. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  11647. </code></pre>
  11648. <h3 id="edit_integration-parameters">Parameters</h3>
  11649. <table>
  11650. <thead>
  11651. <tr>
  11652. <th>Name</th>
  11653. <th>In</th>
  11654. <th>Type</th>
  11655. <th>Required</th>
  11656. <th>Description</th>
  11657. </tr>
  11658. </thead>
  11659. <tbody>
  11660. <tr>
  11661. <td>board</td>
  11662. <td>path</td>
  11663. <td>string</td>
  11664. <td>true</td>
  11665. <td>the board ID</td>
  11666. </tr>
  11667. <tr>
  11668. <td>int</td>
  11669. <td>path</td>
  11670. <td>string</td>
  11671. <td>true</td>
  11672. <td>the integration ID</td>
  11673. </tr>
  11674. <tr>
  11675. <td>body</td>
  11676. <td>body</td>
  11677. <td>object</td>
  11678. <td>false</td>
  11679. <td>none</td>
  11680. </tr>
  11681. <tr>
  11682. <td>» enabled</td>
  11683. <td>body</td>
  11684. <td>string</td>
  11685. <td>false</td>
  11686. <td>is the integration enabled?</td>
  11687. </tr>
  11688. <tr>
  11689. <td>» title</td>
  11690. <td>body</td>
  11691. <td>string</td>
  11692. <td>false</td>
  11693. <td>new name of the integration</td>
  11694. </tr>
  11695. <tr>
  11696. <td>» url</td>
  11697. <td>body</td>
  11698. <td>string</td>
  11699. <td>false</td>
  11700. <td>new URL of the integration</td>
  11701. </tr>
  11702. <tr>
  11703. <td>» token</td>
  11704. <td>body</td>
  11705. <td>string</td>
  11706. <td>false</td>
  11707. <td>new token of the integration</td>
  11708. </tr>
  11709. <tr>
  11710. <td>» activities</td>
  11711. <td>body</td>
  11712. <td>string</td>
  11713. <td>false</td>
  11714. <td>new list of activities of the integration</td>
  11715. </tr>
  11716. </tbody>
  11717. </table>
  11718. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11719. <p><strong>board</strong>: the board ID</p>
  11720. <p><strong>int</strong>: the integration ID</p>
  11721. <blockquote>
  11722. <p>Example responses</p>
  11723. </blockquote>
  11724. <blockquote>
  11725. <p>200 Response</p>
  11726. </blockquote>
  11727. <pre class="highlight tab tab-json"><code>{
  11728. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11729. }
  11730. </code></pre>
  11731. <h3 id="edit_integration-responses">Responses</h3>
  11732. <table>
  11733. <thead>
  11734. <tr>
  11735. <th>Status</th>
  11736. <th>Meaning</th>
  11737. <th>Description</th>
  11738. <th>Schema</th>
  11739. </tr>
  11740. </thead>
  11741. <tbody>
  11742. <tr>
  11743. <td>200</td>
  11744. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11745. <td>200 response</td>
  11746. <td>Inline</td>
  11747. </tr>
  11748. </tbody>
  11749. </table>
  11750. <h3 id="edit_integration-responseschema">Response Schema</h3>
  11751. <p>Status Code <strong>200</strong></p>
  11752. <table>
  11753. <thead>
  11754. <tr>
  11755. <th>Name</th>
  11756. <th>Type</th>
  11757. <th>Required</th>
  11758. <th>Restrictions</th>
  11759. <th>Description</th>
  11760. </tr>
  11761. </thead>
  11762. <tbody>
  11763. <tr>
  11764. <td>» _id</td>
  11765. <td>string</td>
  11766. <td>false</td>
  11767. <td>none</td>
  11768. <td>none</td>
  11769. </tr>
  11770. </tbody>
  11771. </table>
  11772. <aside class="warning">
  11773. To perform this operation, you must be authenticated by means of one of the following methods:
  11774. UserSecurity
  11775. </aside>
  11776. <h2 id="delete_integration">delete_integration</h2>
  11777. <p><a id="opIddelete_integration"></a></p>
  11778. <blockquote>
  11779. <p>Code samples</p>
  11780. </blockquote>
  11781. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11782. curl -X DELETE /api/boards/{board}/integrations/{int} \
  11783. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11784. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11785. </code></pre>
  11786. <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>
  11787. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11788. </span></code></pre>
  11789. <pre class="highlight tab tab-javascript"><code>
  11790. <span class="hljs-keyword">const</span> headers = {
  11791. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11792. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11793. };
  11794. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11795. {
  11796. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11797. <span class="hljs-attr">headers</span>: headers
  11798. })
  11799. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11800. <span class="hljs-keyword">return</span> res.json();
  11801. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11802. <span class="hljs-built_in">console</span>.log(body);
  11803. });
  11804. </code></pre>
  11805. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11806. <span class="hljs-keyword">const</span> headers = {
  11807. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11808. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11809. };
  11810. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11811. {
  11812. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11813. <span class="hljs-attr">headers</span>: headers
  11814. })
  11815. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11816. <span class="hljs-keyword">return</span> res.json();
  11817. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11818. <span class="hljs-built_in">console</span>.log(body);
  11819. });
  11820. </code></pre>
  11821. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11822. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11823. headers = {
  11824. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11825. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11826. }
  11827. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11828. <span class="hljs-symbol">params:</span> {
  11829. }, <span class="hljs-symbol">headers:</span> headers
  11830. p JSON.parse(result)
  11831. </code></pre>
  11832. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11833. headers = {
  11834. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11835. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11836. }
  11837. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11838. <span class="hljs-built_in">print</span>(r.json())
  11839. </code></pre>
  11840. <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>);
  11841. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11842. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11843. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11844. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11845. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11846. String inputLine;
  11847. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11848. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11849. response.append(inputLine);
  11850. }
  11851. in.close();
  11852. System.out.println(response.toString());
  11853. </code></pre>
  11854. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11855. <span class="hljs-keyword">import</span> (
  11856. <span class="hljs-string">&quot;bytes&quot;</span>
  11857. <span class="hljs-string">&quot;net/http&quot;</span>
  11858. )
  11859. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11860. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11861. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11862. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11863. }
  11864. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11865. 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)
  11866. req.Header = headers
  11867. client := &amp;http.Client{}
  11868. resp, err := client.Do(req)
  11869. <span class="hljs-comment">// ...</span>
  11870. }
  11871. </code></pre>
  11872. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11873. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11874. );
  11875. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11876. <span class="hljs-comment">// Define array of request body.</span>
  11877. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11878. <span class="hljs-keyword">try</span> {
  11879. <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>(
  11880. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11881. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11882. )
  11883. );
  11884. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11885. }
  11886. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11887. <span class="hljs-comment">// handle exception or api errors.</span>
  11888. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11889. }
  11890. <span class="hljs-comment">// ...</span>
  11891. </code></pre>
  11892. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  11893. <p><em>Delete integration</em></p>
  11894. <h3 id="delete_integration-parameters">Parameters</h3>
  11895. <table>
  11896. <thead>
  11897. <tr>
  11898. <th>Name</th>
  11899. <th>In</th>
  11900. <th>Type</th>
  11901. <th>Required</th>
  11902. <th>Description</th>
  11903. </tr>
  11904. </thead>
  11905. <tbody>
  11906. <tr>
  11907. <td>board</td>
  11908. <td>path</td>
  11909. <td>string</td>
  11910. <td>true</td>
  11911. <td>the board ID</td>
  11912. </tr>
  11913. <tr>
  11914. <td>int</td>
  11915. <td>path</td>
  11916. <td>string</td>
  11917. <td>true</td>
  11918. <td>the integration ID</td>
  11919. </tr>
  11920. </tbody>
  11921. </table>
  11922. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11923. <p><strong>board</strong>: the board ID</p>
  11924. <p><strong>int</strong>: the integration ID</p>
  11925. <blockquote>
  11926. <p>Example responses</p>
  11927. </blockquote>
  11928. <blockquote>
  11929. <p>200 Response</p>
  11930. </blockquote>
  11931. <pre class="highlight tab tab-json"><code>{
  11932. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11933. }
  11934. </code></pre>
  11935. <h3 id="delete_integration-responses">Responses</h3>
  11936. <table>
  11937. <thead>
  11938. <tr>
  11939. <th>Status</th>
  11940. <th>Meaning</th>
  11941. <th>Description</th>
  11942. <th>Schema</th>
  11943. </tr>
  11944. </thead>
  11945. <tbody>
  11946. <tr>
  11947. <td>200</td>
  11948. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11949. <td>200 response</td>
  11950. <td>Inline</td>
  11951. </tr>
  11952. </tbody>
  11953. </table>
  11954. <h3 id="delete_integration-responseschema">Response Schema</h3>
  11955. <p>Status Code <strong>200</strong></p>
  11956. <table>
  11957. <thead>
  11958. <tr>
  11959. <th>Name</th>
  11960. <th>Type</th>
  11961. <th>Required</th>
  11962. <th>Restrictions</th>
  11963. <th>Description</th>
  11964. </tr>
  11965. </thead>
  11966. <tbody>
  11967. <tr>
  11968. <td>» _id</td>
  11969. <td>string</td>
  11970. <td>false</td>
  11971. <td>none</td>
  11972. <td>none</td>
  11973. </tr>
  11974. </tbody>
  11975. </table>
  11976. <aside class="warning">
  11977. To perform this operation, you must be authenticated by means of one of the following methods:
  11978. UserSecurity
  11979. </aside>
  11980. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  11981. <p><a id="opIddelete_integration_activities"></a></p>
  11982. <blockquote>
  11983. <p>Code samples</p>
  11984. </blockquote>
  11985. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11986. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  11987. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11988. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11989. </code></pre>
  11990. <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>
  11991. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11992. </span></code></pre>
  11993. <pre class="highlight tab tab-javascript"><code>
  11994. <span class="hljs-keyword">const</span> headers = {
  11995. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11996. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11997. };
  11998. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  11999. {
  12000. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12001. <span class="hljs-attr">headers</span>: headers
  12002. })
  12003. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12004. <span class="hljs-keyword">return</span> res.json();
  12005. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12006. <span class="hljs-built_in">console</span>.log(body);
  12007. });
  12008. </code></pre>
  12009. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12010. <span class="hljs-keyword">const</span> headers = {
  12011. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12012. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12013. };
  12014. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12015. {
  12016. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12017. <span class="hljs-attr">headers</span>: headers
  12018. })
  12019. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12020. <span class="hljs-keyword">return</span> res.json();
  12021. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12022. <span class="hljs-built_in">console</span>.log(body);
  12023. });
  12024. </code></pre>
  12025. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12026. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12027. headers = {
  12028. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12029. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12030. }
  12031. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12032. <span class="hljs-symbol">params:</span> {
  12033. }, <span class="hljs-symbol">headers:</span> headers
  12034. p JSON.parse(result)
  12035. </code></pre>
  12036. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12037. headers = {
  12038. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12039. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12040. }
  12041. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12042. <span class="hljs-built_in">print</span>(r.json())
  12043. </code></pre>
  12044. <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>);
  12045. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12046. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12047. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12048. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12049. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12050. String inputLine;
  12051. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12052. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12053. response.append(inputLine);
  12054. }
  12055. in.close();
  12056. System.out.println(response.toString());
  12057. </code></pre>
  12058. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12059. <span class="hljs-keyword">import</span> (
  12060. <span class="hljs-string">&quot;bytes&quot;</span>
  12061. <span class="hljs-string">&quot;net/http&quot;</span>
  12062. )
  12063. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12064. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12065. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12066. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12067. }
  12068. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12069. 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)
  12070. req.Header = headers
  12071. client := &amp;http.Client{}
  12072. resp, err := client.Do(req)
  12073. <span class="hljs-comment">// ...</span>
  12074. }
  12075. </code></pre>
  12076. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12077. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12078. );
  12079. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12080. <span class="hljs-comment">// Define array of request body.</span>
  12081. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12082. <span class="hljs-keyword">try</span> {
  12083. <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>(
  12084. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12085. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12086. )
  12087. );
  12088. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12089. }
  12090. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12091. <span class="hljs-comment">// handle exception or api errors.</span>
  12092. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12093. }
  12094. <span class="hljs-comment">// ...</span>
  12095. </code></pre>
  12096. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12097. <p><em>Delete subscribed activities</em></p>
  12098. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12099. <table>
  12100. <thead>
  12101. <tr>
  12102. <th>Name</th>
  12103. <th>In</th>
  12104. <th>Type</th>
  12105. <th>Required</th>
  12106. <th>Description</th>
  12107. </tr>
  12108. </thead>
  12109. <tbody>
  12110. <tr>
  12111. <td>board</td>
  12112. <td>path</td>
  12113. <td>string</td>
  12114. <td>true</td>
  12115. <td>the board ID</td>
  12116. </tr>
  12117. <tr>
  12118. <td>int</td>
  12119. <td>path</td>
  12120. <td>string</td>
  12121. <td>true</td>
  12122. <td>the integration ID</td>
  12123. </tr>
  12124. </tbody>
  12125. </table>
  12126. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12127. <p><strong>board</strong>: the board ID</p>
  12128. <p><strong>int</strong>: the integration ID</p>
  12129. <blockquote>
  12130. <p>Example responses</p>
  12131. </blockquote>
  12132. <blockquote>
  12133. <p>200 Response</p>
  12134. </blockquote>
  12135. <pre class="highlight tab tab-json"><code>{
  12136. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12137. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12138. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12139. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12140. <span class="hljs-string">&quot;string&quot;</span>
  12141. ],
  12142. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12143. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12144. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12145. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12146. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12147. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12148. }
  12149. </code></pre>
  12150. <h3 id="delete_integration_activities-responses">Responses</h3>
  12151. <table>
  12152. <thead>
  12153. <tr>
  12154. <th>Status</th>
  12155. <th>Meaning</th>
  12156. <th>Description</th>
  12157. <th>Schema</th>
  12158. </tr>
  12159. </thead>
  12160. <tbody>
  12161. <tr>
  12162. <td>200</td>
  12163. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12164. <td>200 response</td>
  12165. <td><a href="#schemaintegrations">Integrations</a></td>
  12166. </tr>
  12167. </tbody>
  12168. </table>
  12169. <aside class="warning">
  12170. To perform this operation, you must be authenticated by means of one of the following methods:
  12171. UserSecurity
  12172. </aside>
  12173. <h2 id="new_integration_activities">new_integration_activities</h2>
  12174. <p><a id="opIdnew_integration_activities"></a></p>
  12175. <blockquote>
  12176. <p>Code samples</p>
  12177. </blockquote>
  12178. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12179. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12180. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12181. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12182. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12183. </code></pre>
  12184. <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>
  12185. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12186. Accept: application/json
  12187. </span></code></pre>
  12188. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12189. &quot;activities&quot;: &quot;string&quot;
  12190. }&#x27;</span>;
  12191. <span class="hljs-keyword">const</span> headers = {
  12192. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12193. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12194. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12195. };
  12196. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12197. {
  12198. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12199. <span class="hljs-attr">body</span>: inputBody,
  12200. <span class="hljs-attr">headers</span>: headers
  12201. })
  12202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12203. <span class="hljs-keyword">return</span> res.json();
  12204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12205. <span class="hljs-built_in">console</span>.log(body);
  12206. });
  12207. </code></pre>
  12208. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12209. <span class="hljs-keyword">const</span> inputBody = {
  12210. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12211. };
  12212. <span class="hljs-keyword">const</span> headers = {
  12213. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12214. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12215. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12216. };
  12217. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12218. {
  12219. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12220. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12221. <span class="hljs-attr">headers</span>: headers
  12222. })
  12223. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12224. <span class="hljs-keyword">return</span> res.json();
  12225. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12226. <span class="hljs-built_in">console</span>.log(body);
  12227. });
  12228. </code></pre>
  12229. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12230. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12231. headers = {
  12232. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12233. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12234. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12235. }
  12236. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12237. <span class="hljs-symbol">params:</span> {
  12238. }, <span class="hljs-symbol">headers:</span> headers
  12239. p JSON.parse(result)
  12240. </code></pre>
  12241. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12242. headers = {
  12243. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12244. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12245. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12246. }
  12247. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12248. <span class="hljs-built_in">print</span>(r.json())
  12249. </code></pre>
  12250. <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>);
  12251. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12252. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12253. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12254. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12255. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12256. String inputLine;
  12257. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12258. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12259. response.append(inputLine);
  12260. }
  12261. in.close();
  12262. System.out.println(response.toString());
  12263. </code></pre>
  12264. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12265. <span class="hljs-keyword">import</span> (
  12266. <span class="hljs-string">&quot;bytes&quot;</span>
  12267. <span class="hljs-string">&quot;net/http&quot;</span>
  12268. )
  12269. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12270. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12271. <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>},
  12272. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12273. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12274. }
  12275. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12276. 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)
  12277. req.Header = headers
  12278. client := &amp;http.Client{}
  12279. resp, err := client.Do(req)
  12280. <span class="hljs-comment">// ...</span>
  12281. }
  12282. </code></pre>
  12283. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12284. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12285. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12286. );
  12287. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12288. <span class="hljs-comment">// Define array of request body.</span>
  12289. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12290. <span class="hljs-keyword">try</span> {
  12291. <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>(
  12292. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12293. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12294. )
  12295. );
  12296. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12297. }
  12298. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12299. <span class="hljs-comment">// handle exception or api errors.</span>
  12300. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12301. }
  12302. <span class="hljs-comment">// ...</span>
  12303. </code></pre>
  12304. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12305. <p><em>Add subscribed activities</em></p>
  12306. <blockquote>
  12307. <p>Body parameter</p>
  12308. </blockquote>
  12309. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12310. </code></pre>
  12311. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12312. <table>
  12313. <thead>
  12314. <tr>
  12315. <th>Name</th>
  12316. <th>In</th>
  12317. <th>Type</th>
  12318. <th>Required</th>
  12319. <th>Description</th>
  12320. </tr>
  12321. </thead>
  12322. <tbody>
  12323. <tr>
  12324. <td>board</td>
  12325. <td>path</td>
  12326. <td>string</td>
  12327. <td>true</td>
  12328. <td>the board ID</td>
  12329. </tr>
  12330. <tr>
  12331. <td>int</td>
  12332. <td>path</td>
  12333. <td>string</td>
  12334. <td>true</td>
  12335. <td>the integration ID</td>
  12336. </tr>
  12337. <tr>
  12338. <td>body</td>
  12339. <td>body</td>
  12340. <td>object</td>
  12341. <td>true</td>
  12342. <td>none</td>
  12343. </tr>
  12344. <tr>
  12345. <td>» activities</td>
  12346. <td>body</td>
  12347. <td>string</td>
  12348. <td>true</td>
  12349. <td>the activities value</td>
  12350. </tr>
  12351. </tbody>
  12352. </table>
  12353. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12354. <p><strong>board</strong>: the board ID</p>
  12355. <p><strong>int</strong>: the integration ID</p>
  12356. <blockquote>
  12357. <p>Example responses</p>
  12358. </blockquote>
  12359. <blockquote>
  12360. <p>200 Response</p>
  12361. </blockquote>
  12362. <pre class="highlight tab tab-json"><code>{
  12363. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12364. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12365. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12366. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12367. <span class="hljs-string">&quot;string&quot;</span>
  12368. ],
  12369. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12370. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12371. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12372. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12373. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12374. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12375. }
  12376. </code></pre>
  12377. <h3 id="new_integration_activities-responses">Responses</h3>
  12378. <table>
  12379. <thead>
  12380. <tr>
  12381. <th>Status</th>
  12382. <th>Meaning</th>
  12383. <th>Description</th>
  12384. <th>Schema</th>
  12385. </tr>
  12386. </thead>
  12387. <tbody>
  12388. <tr>
  12389. <td>200</td>
  12390. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12391. <td>200 response</td>
  12392. <td><a href="#schemaintegrations">Integrations</a></td>
  12393. </tr>
  12394. </tbody>
  12395. </table>
  12396. <aside class="warning">
  12397. To perform this operation, you must be authenticated by means of one of the following methods:
  12398. UserSecurity
  12399. </aside>
  12400. <h1 id="wekan-rest-api-lists">Lists</h1>
  12401. <h2 id="get_all_lists">get_all_lists</h2>
  12402. <p><a id="opIdget_all_lists"></a></p>
  12403. <blockquote>
  12404. <p>Code samples</p>
  12405. </blockquote>
  12406. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12407. curl -X GET /api/boards/{board}/lists \
  12408. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12409. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12410. </code></pre>
  12411. <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>
  12412. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12413. </span></code></pre>
  12414. <pre class="highlight tab tab-javascript"><code>
  12415. <span class="hljs-keyword">const</span> headers = {
  12416. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12417. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12418. };
  12419. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12420. {
  12421. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12422. <span class="hljs-attr">headers</span>: headers
  12423. })
  12424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12425. <span class="hljs-keyword">return</span> res.json();
  12426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12427. <span class="hljs-built_in">console</span>.log(body);
  12428. });
  12429. </code></pre>
  12430. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12431. <span class="hljs-keyword">const</span> headers = {
  12432. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12433. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12434. };
  12435. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12436. {
  12437. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12438. <span class="hljs-attr">headers</span>: headers
  12439. })
  12440. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12441. <span class="hljs-keyword">return</span> res.json();
  12442. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12443. <span class="hljs-built_in">console</span>.log(body);
  12444. });
  12445. </code></pre>
  12446. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12447. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12448. headers = {
  12449. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12450. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12451. }
  12452. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12453. <span class="hljs-symbol">params:</span> {
  12454. }, <span class="hljs-symbol">headers:</span> headers
  12455. p JSON.parse(result)
  12456. </code></pre>
  12457. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12458. headers = {
  12459. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12460. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12461. }
  12462. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12463. <span class="hljs-built_in">print</span>(r.json())
  12464. </code></pre>
  12465. <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>);
  12466. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12467. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12468. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12469. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12470. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12471. String inputLine;
  12472. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12473. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12474. response.append(inputLine);
  12475. }
  12476. in.close();
  12477. System.out.println(response.toString());
  12478. </code></pre>
  12479. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12480. <span class="hljs-keyword">import</span> (
  12481. <span class="hljs-string">&quot;bytes&quot;</span>
  12482. <span class="hljs-string">&quot;net/http&quot;</span>
  12483. )
  12484. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12485. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12486. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12487. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12488. }
  12489. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12490. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12491. req.Header = headers
  12492. client := &amp;http.Client{}
  12493. resp, err := client.Do(req)
  12494. <span class="hljs-comment">// ...</span>
  12495. }
  12496. </code></pre>
  12497. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12498. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12499. );
  12500. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12501. <span class="hljs-comment">// Define array of request body.</span>
  12502. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12503. <span class="hljs-keyword">try</span> {
  12504. <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>(
  12505. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12506. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12507. )
  12508. );
  12509. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12510. }
  12511. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12512. <span class="hljs-comment">// handle exception or api errors.</span>
  12513. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12514. }
  12515. <span class="hljs-comment">// ...</span>
  12516. </code></pre>
  12517. <p><code>GET /api/boards/{board}/lists</code></p>
  12518. <p><em>Get the list of Lists attached to a board</em></p>
  12519. <h3 id="get_all_lists-parameters">Parameters</h3>
  12520. <table>
  12521. <thead>
  12522. <tr>
  12523. <th>Name</th>
  12524. <th>In</th>
  12525. <th>Type</th>
  12526. <th>Required</th>
  12527. <th>Description</th>
  12528. </tr>
  12529. </thead>
  12530. <tbody>
  12531. <tr>
  12532. <td>board</td>
  12533. <td>path</td>
  12534. <td>string</td>
  12535. <td>true</td>
  12536. <td>the board ID</td>
  12537. </tr>
  12538. </tbody>
  12539. </table>
  12540. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12541. <p><strong>board</strong>: the board ID</p>
  12542. <blockquote>
  12543. <p>Example responses</p>
  12544. </blockquote>
  12545. <blockquote>
  12546. <p>200 Response</p>
  12547. </blockquote>
  12548. <pre class="highlight tab tab-json"><code>[
  12549. {
  12550. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12551. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12552. }
  12553. ]
  12554. </code></pre>
  12555. <h3 id="get_all_lists-responses">Responses</h3>
  12556. <table>
  12557. <thead>
  12558. <tr>
  12559. <th>Status</th>
  12560. <th>Meaning</th>
  12561. <th>Description</th>
  12562. <th>Schema</th>
  12563. </tr>
  12564. </thead>
  12565. <tbody>
  12566. <tr>
  12567. <td>200</td>
  12568. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12569. <td>200 response</td>
  12570. <td>Inline</td>
  12571. </tr>
  12572. </tbody>
  12573. </table>
  12574. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12575. <p>Status Code <strong>200</strong></p>
  12576. <table>
  12577. <thead>
  12578. <tr>
  12579. <th>Name</th>
  12580. <th>Type</th>
  12581. <th>Required</th>
  12582. <th>Restrictions</th>
  12583. <th>Description</th>
  12584. </tr>
  12585. </thead>
  12586. <tbody>
  12587. <tr>
  12588. <td>» _id</td>
  12589. <td>string</td>
  12590. <td>false</td>
  12591. <td>none</td>
  12592. <td>none</td>
  12593. </tr>
  12594. <tr>
  12595. <td>» title</td>
  12596. <td>string</td>
  12597. <td>false</td>
  12598. <td>none</td>
  12599. <td>none</td>
  12600. </tr>
  12601. </tbody>
  12602. </table>
  12603. <aside class="warning">
  12604. To perform this operation, you must be authenticated by means of one of the following methods:
  12605. UserSecurity
  12606. </aside>
  12607. <h2 id="new_list">new_list</h2>
  12608. <p><a id="opIdnew_list"></a></p>
  12609. <blockquote>
  12610. <p>Code samples</p>
  12611. </blockquote>
  12612. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12613. curl -X POST /api/boards/{board}/lists \
  12614. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12615. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12616. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12617. </code></pre>
  12618. <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>
  12619. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12620. Accept: application/json
  12621. </span></code></pre>
  12622. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12623. &quot;title&quot;: &quot;string&quot;
  12624. }&#x27;</span>;
  12625. <span class="hljs-keyword">const</span> headers = {
  12626. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12627. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12628. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12629. };
  12630. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12631. {
  12632. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12633. <span class="hljs-attr">body</span>: inputBody,
  12634. <span class="hljs-attr">headers</span>: headers
  12635. })
  12636. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12637. <span class="hljs-keyword">return</span> res.json();
  12638. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12639. <span class="hljs-built_in">console</span>.log(body);
  12640. });
  12641. </code></pre>
  12642. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12643. <span class="hljs-keyword">const</span> inputBody = {
  12644. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12645. };
  12646. <span class="hljs-keyword">const</span> headers = {
  12647. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12648. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12649. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12650. };
  12651. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12652. {
  12653. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12654. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12655. <span class="hljs-attr">headers</span>: headers
  12656. })
  12657. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12658. <span class="hljs-keyword">return</span> res.json();
  12659. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12660. <span class="hljs-built_in">console</span>.log(body);
  12661. });
  12662. </code></pre>
  12663. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12664. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12665. headers = {
  12666. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12667. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12668. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12669. }
  12670. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12671. <span class="hljs-symbol">params:</span> {
  12672. }, <span class="hljs-symbol">headers:</span> headers
  12673. p JSON.parse(result)
  12674. </code></pre>
  12675. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12676. headers = {
  12677. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12678. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12679. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12680. }
  12681. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12682. <span class="hljs-built_in">print</span>(r.json())
  12683. </code></pre>
  12684. <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>);
  12685. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12686. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12687. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12688. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12689. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12690. String inputLine;
  12691. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12692. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12693. response.append(inputLine);
  12694. }
  12695. in.close();
  12696. System.out.println(response.toString());
  12697. </code></pre>
  12698. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12699. <span class="hljs-keyword">import</span> (
  12700. <span class="hljs-string">&quot;bytes&quot;</span>
  12701. <span class="hljs-string">&quot;net/http&quot;</span>
  12702. )
  12703. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12704. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12705. <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>},
  12706. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12707. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12708. }
  12709. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12710. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12711. req.Header = headers
  12712. client := &amp;http.Client{}
  12713. resp, err := client.Do(req)
  12714. <span class="hljs-comment">// ...</span>
  12715. }
  12716. </code></pre>
  12717. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12718. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12719. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12720. );
  12721. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12722. <span class="hljs-comment">// Define array of request body.</span>
  12723. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12724. <span class="hljs-keyword">try</span> {
  12725. <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>(
  12726. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12727. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12728. )
  12729. );
  12730. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12731. }
  12732. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12733. <span class="hljs-comment">// handle exception or api errors.</span>
  12734. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12735. }
  12736. <span class="hljs-comment">// ...</span>
  12737. </code></pre>
  12738. <p><code>POST /api/boards/{board}/lists</code></p>
  12739. <p><em>Add a List to a board</em></p>
  12740. <blockquote>
  12741. <p>Body parameter</p>
  12742. </blockquote>
  12743. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12744. </code></pre>
  12745. <h3 id="new_list-parameters">Parameters</h3>
  12746. <table>
  12747. <thead>
  12748. <tr>
  12749. <th>Name</th>
  12750. <th>In</th>
  12751. <th>Type</th>
  12752. <th>Required</th>
  12753. <th>Description</th>
  12754. </tr>
  12755. </thead>
  12756. <tbody>
  12757. <tr>
  12758. <td>board</td>
  12759. <td>path</td>
  12760. <td>string</td>
  12761. <td>true</td>
  12762. <td>the board ID</td>
  12763. </tr>
  12764. <tr>
  12765. <td>body</td>
  12766. <td>body</td>
  12767. <td>object</td>
  12768. <td>true</td>
  12769. <td>none</td>
  12770. </tr>
  12771. <tr>
  12772. <td>» title</td>
  12773. <td>body</td>
  12774. <td>string</td>
  12775. <td>true</td>
  12776. <td>the title of the List</td>
  12777. </tr>
  12778. </tbody>
  12779. </table>
  12780. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12781. <p><strong>board</strong>: the board ID</p>
  12782. <blockquote>
  12783. <p>Example responses</p>
  12784. </blockquote>
  12785. <blockquote>
  12786. <p>200 Response</p>
  12787. </blockquote>
  12788. <pre class="highlight tab tab-json"><code>{
  12789. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12790. }
  12791. </code></pre>
  12792. <h3 id="new_list-responses">Responses</h3>
  12793. <table>
  12794. <thead>
  12795. <tr>
  12796. <th>Status</th>
  12797. <th>Meaning</th>
  12798. <th>Description</th>
  12799. <th>Schema</th>
  12800. </tr>
  12801. </thead>
  12802. <tbody>
  12803. <tr>
  12804. <td>200</td>
  12805. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12806. <td>200 response</td>
  12807. <td>Inline</td>
  12808. </tr>
  12809. </tbody>
  12810. </table>
  12811. <h3 id="new_list-responseschema">Response Schema</h3>
  12812. <p>Status Code <strong>200</strong></p>
  12813. <table>
  12814. <thead>
  12815. <tr>
  12816. <th>Name</th>
  12817. <th>Type</th>
  12818. <th>Required</th>
  12819. <th>Restrictions</th>
  12820. <th>Description</th>
  12821. </tr>
  12822. </thead>
  12823. <tbody>
  12824. <tr>
  12825. <td>» _id</td>
  12826. <td>string</td>
  12827. <td>false</td>
  12828. <td>none</td>
  12829. <td>none</td>
  12830. </tr>
  12831. </tbody>
  12832. </table>
  12833. <aside class="warning">
  12834. To perform this operation, you must be authenticated by means of one of the following methods:
  12835. UserSecurity
  12836. </aside>
  12837. <h2 id="get_list">get_list</h2>
  12838. <p><a id="opIdget_list"></a></p>
  12839. <blockquote>
  12840. <p>Code samples</p>
  12841. </blockquote>
  12842. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12843. curl -X GET /api/boards/{board}/lists/{list} \
  12844. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12845. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12846. </code></pre>
  12847. <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>
  12848. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12849. </span></code></pre>
  12850. <pre class="highlight tab tab-javascript"><code>
  12851. <span class="hljs-keyword">const</span> headers = {
  12852. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12853. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12854. };
  12855. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12856. {
  12857. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12858. <span class="hljs-attr">headers</span>: headers
  12859. })
  12860. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12861. <span class="hljs-keyword">return</span> res.json();
  12862. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12863. <span class="hljs-built_in">console</span>.log(body);
  12864. });
  12865. </code></pre>
  12866. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12867. <span class="hljs-keyword">const</span> headers = {
  12868. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12869. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12870. };
  12871. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12872. {
  12873. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12874. <span class="hljs-attr">headers</span>: headers
  12875. })
  12876. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12877. <span class="hljs-keyword">return</span> res.json();
  12878. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12879. <span class="hljs-built_in">console</span>.log(body);
  12880. });
  12881. </code></pre>
  12882. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12883. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12884. headers = {
  12885. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12886. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12887. }
  12888. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12889. <span class="hljs-symbol">params:</span> {
  12890. }, <span class="hljs-symbol">headers:</span> headers
  12891. p JSON.parse(result)
  12892. </code></pre>
  12893. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12894. headers = {
  12895. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12896. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12897. }
  12898. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  12899. <span class="hljs-built_in">print</span>(r.json())
  12900. </code></pre>
  12901. <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>);
  12902. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12903. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12904. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12905. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12906. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12907. String inputLine;
  12908. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12909. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12910. response.append(inputLine);
  12911. }
  12912. in.close();
  12913. System.out.println(response.toString());
  12914. </code></pre>
  12915. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12916. <span class="hljs-keyword">import</span> (
  12917. <span class="hljs-string">&quot;bytes&quot;</span>
  12918. <span class="hljs-string">&quot;net/http&quot;</span>
  12919. )
  12920. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12921. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12922. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12923. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12924. }
  12925. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12926. 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)
  12927. req.Header = headers
  12928. client := &amp;http.Client{}
  12929. resp, err := client.Do(req)
  12930. <span class="hljs-comment">// ...</span>
  12931. }
  12932. </code></pre>
  12933. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12934. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12935. );
  12936. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12937. <span class="hljs-comment">// Define array of request body.</span>
  12938. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12939. <span class="hljs-keyword">try</span> {
  12940. <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>(
  12941. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12942. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12943. )
  12944. );
  12945. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12946. }
  12947. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12948. <span class="hljs-comment">// handle exception or api errors.</span>
  12949. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12950. }
  12951. <span class="hljs-comment">// ...</span>
  12952. </code></pre>
  12953. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  12954. <p><em>Get a List attached to a board</em></p>
  12955. <h3 id="get_list-parameters">Parameters</h3>
  12956. <table>
  12957. <thead>
  12958. <tr>
  12959. <th>Name</th>
  12960. <th>In</th>
  12961. <th>Type</th>
  12962. <th>Required</th>
  12963. <th>Description</th>
  12964. </tr>
  12965. </thead>
  12966. <tbody>
  12967. <tr>
  12968. <td>board</td>
  12969. <td>path</td>
  12970. <td>string</td>
  12971. <td>true</td>
  12972. <td>the board ID</td>
  12973. </tr>
  12974. <tr>
  12975. <td>list</td>
  12976. <td>path</td>
  12977. <td>string</td>
  12978. <td>true</td>
  12979. <td>the List ID</td>
  12980. </tr>
  12981. </tbody>
  12982. </table>
  12983. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  12984. <p><strong>board</strong>: the board ID</p>
  12985. <p><strong>list</strong>: the List ID</p>
  12986. <blockquote>
  12987. <p>Example responses</p>
  12988. </blockquote>
  12989. <blockquote>
  12990. <p>200 Response</p>
  12991. </blockquote>
  12992. <pre class="highlight tab tab-json"><code>{
  12993. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12994. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  12995. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  12996. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12997. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12998. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12999. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13000. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13001. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13002. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13003. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13004. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13005. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13006. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13007. },
  13008. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13009. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13010. }
  13011. </code></pre>
  13012. <h3 id="get_list-responses">Responses</h3>
  13013. <table>
  13014. <thead>
  13015. <tr>
  13016. <th>Status</th>
  13017. <th>Meaning</th>
  13018. <th>Description</th>
  13019. <th>Schema</th>
  13020. </tr>
  13021. </thead>
  13022. <tbody>
  13023. <tr>
  13024. <td>200</td>
  13025. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13026. <td>200 response</td>
  13027. <td><a href="#schemalists">Lists</a></td>
  13028. </tr>
  13029. </tbody>
  13030. </table>
  13031. <aside class="warning">
  13032. To perform this operation, you must be authenticated by means of one of the following methods:
  13033. UserSecurity
  13034. </aside>
  13035. <h2 id="delete_list">delete_list</h2>
  13036. <p><a id="opIddelete_list"></a></p>
  13037. <blockquote>
  13038. <p>Code samples</p>
  13039. </blockquote>
  13040. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13041. curl -X DELETE /api/boards/{board}/lists/{list} \
  13042. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13043. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13044. </code></pre>
  13045. <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>
  13046. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13047. </span></code></pre>
  13048. <pre class="highlight tab tab-javascript"><code>
  13049. <span class="hljs-keyword">const</span> headers = {
  13050. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13051. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13052. };
  13053. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13054. {
  13055. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13056. <span class="hljs-attr">headers</span>: headers
  13057. })
  13058. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13059. <span class="hljs-keyword">return</span> res.json();
  13060. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13061. <span class="hljs-built_in">console</span>.log(body);
  13062. });
  13063. </code></pre>
  13064. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13065. <span class="hljs-keyword">const</span> headers = {
  13066. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13067. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13068. };
  13069. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13070. {
  13071. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13072. <span class="hljs-attr">headers</span>: headers
  13073. })
  13074. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13075. <span class="hljs-keyword">return</span> res.json();
  13076. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13077. <span class="hljs-built_in">console</span>.log(body);
  13078. });
  13079. </code></pre>
  13080. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13081. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13082. headers = {
  13083. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13084. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13085. }
  13086. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13087. <span class="hljs-symbol">params:</span> {
  13088. }, <span class="hljs-symbol">headers:</span> headers
  13089. p JSON.parse(result)
  13090. </code></pre>
  13091. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13092. headers = {
  13093. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13094. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13095. }
  13096. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13097. <span class="hljs-built_in">print</span>(r.json())
  13098. </code></pre>
  13099. <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>);
  13100. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13101. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13102. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13103. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13104. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13105. String inputLine;
  13106. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13107. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13108. response.append(inputLine);
  13109. }
  13110. in.close();
  13111. System.out.println(response.toString());
  13112. </code></pre>
  13113. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13114. <span class="hljs-keyword">import</span> (
  13115. <span class="hljs-string">&quot;bytes&quot;</span>
  13116. <span class="hljs-string">&quot;net/http&quot;</span>
  13117. )
  13118. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13119. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13120. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13121. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13122. }
  13123. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13124. 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)
  13125. req.Header = headers
  13126. client := &amp;http.Client{}
  13127. resp, err := client.Do(req)
  13128. <span class="hljs-comment">// ...</span>
  13129. }
  13130. </code></pre>
  13131. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13132. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13133. );
  13134. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13135. <span class="hljs-comment">// Define array of request body.</span>
  13136. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13137. <span class="hljs-keyword">try</span> {
  13138. <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>(
  13139. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13140. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13141. )
  13142. );
  13143. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13144. }
  13145. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13146. <span class="hljs-comment">// handle exception or api errors.</span>
  13147. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13148. }
  13149. <span class="hljs-comment">// ...</span>
  13150. </code></pre>
  13151. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13152. <p><em>Delete a List</em></p>
  13153. <p>This <strong>deletes</strong> a list from a board.
  13154. The list is not put in the recycle bin.</p>
  13155. <h3 id="delete_list-parameters">Parameters</h3>
  13156. <table>
  13157. <thead>
  13158. <tr>
  13159. <th>Name</th>
  13160. <th>In</th>
  13161. <th>Type</th>
  13162. <th>Required</th>
  13163. <th>Description</th>
  13164. </tr>
  13165. </thead>
  13166. <tbody>
  13167. <tr>
  13168. <td>board</td>
  13169. <td>path</td>
  13170. <td>string</td>
  13171. <td>true</td>
  13172. <td>the board ID</td>
  13173. </tr>
  13174. <tr>
  13175. <td>list</td>
  13176. <td>path</td>
  13177. <td>string</td>
  13178. <td>true</td>
  13179. <td>the ID of the list to remove</td>
  13180. </tr>
  13181. </tbody>
  13182. </table>
  13183. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13184. <p><strong>board</strong>: the board ID</p>
  13185. <p><strong>list</strong>: the ID of the list to remove</p>
  13186. <blockquote>
  13187. <p>Example responses</p>
  13188. </blockquote>
  13189. <blockquote>
  13190. <p>200 Response</p>
  13191. </blockquote>
  13192. <pre class="highlight tab tab-json"><code>{
  13193. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13194. }
  13195. </code></pre>
  13196. <h3 id="delete_list-responses">Responses</h3>
  13197. <table>
  13198. <thead>
  13199. <tr>
  13200. <th>Status</th>
  13201. <th>Meaning</th>
  13202. <th>Description</th>
  13203. <th>Schema</th>
  13204. </tr>
  13205. </thead>
  13206. <tbody>
  13207. <tr>
  13208. <td>200</td>
  13209. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13210. <td>200 response</td>
  13211. <td>Inline</td>
  13212. </tr>
  13213. </tbody>
  13214. </table>
  13215. <h3 id="delete_list-responseschema">Response Schema</h3>
  13216. <p>Status Code <strong>200</strong></p>
  13217. <table>
  13218. <thead>
  13219. <tr>
  13220. <th>Name</th>
  13221. <th>Type</th>
  13222. <th>Required</th>
  13223. <th>Restrictions</th>
  13224. <th>Description</th>
  13225. </tr>
  13226. </thead>
  13227. <tbody>
  13228. <tr>
  13229. <td>» _id</td>
  13230. <td>string</td>
  13231. <td>false</td>
  13232. <td>none</td>
  13233. <td>none</td>
  13234. </tr>
  13235. </tbody>
  13236. </table>
  13237. <aside class="warning">
  13238. To perform this operation, you must be authenticated by means of one of the following methods:
  13239. UserSecurity
  13240. </aside>
  13241. <h1 id="wekan-rest-api-users">Users</h1>
  13242. <h2 id="add_board_member">add_board_member</h2>
  13243. <p><a id="opIdadd_board_member"></a></p>
  13244. <blockquote>
  13245. <p>Code samples</p>
  13246. </blockquote>
  13247. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13248. curl -X POST /api/boards/{board}/members/{user}/add \
  13249. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13250. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13251. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13252. </code></pre>
  13253. <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>
  13254. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13255. Accept: application/json
  13256. </span></code></pre>
  13257. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13258. &quot;action&quot;: &quot;string&quot;,
  13259. &quot;isAdmin&quot;: true,
  13260. &quot;isNoComments&quot;: true,
  13261. &quot;isCommentOnly&quot;: true
  13262. }&#x27;</span>;
  13263. <span class="hljs-keyword">const</span> headers = {
  13264. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13265. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13266. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13267. };
  13268. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13269. {
  13270. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13271. <span class="hljs-attr">body</span>: inputBody,
  13272. <span class="hljs-attr">headers</span>: headers
  13273. })
  13274. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13275. <span class="hljs-keyword">return</span> res.json();
  13276. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13277. <span class="hljs-built_in">console</span>.log(body);
  13278. });
  13279. </code></pre>
  13280. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13281. <span class="hljs-keyword">const</span> inputBody = {
  13282. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13283. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13284. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13285. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13286. };
  13287. <span class="hljs-keyword">const</span> headers = {
  13288. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13289. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13290. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13291. };
  13292. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13293. {
  13294. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13295. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13296. <span class="hljs-attr">headers</span>: headers
  13297. })
  13298. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13299. <span class="hljs-keyword">return</span> res.json();
  13300. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13301. <span class="hljs-built_in">console</span>.log(body);
  13302. });
  13303. </code></pre>
  13304. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13305. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13306. headers = {
  13307. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13308. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13309. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13310. }
  13311. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13312. <span class="hljs-symbol">params:</span> {
  13313. }, <span class="hljs-symbol">headers:</span> headers
  13314. p JSON.parse(result)
  13315. </code></pre>
  13316. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13317. headers = {
  13318. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13319. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13320. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13321. }
  13322. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13323. <span class="hljs-built_in">print</span>(r.json())
  13324. </code></pre>
  13325. <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>);
  13326. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13327. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13328. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13329. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13330. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13331. String inputLine;
  13332. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13333. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13334. response.append(inputLine);
  13335. }
  13336. in.close();
  13337. System.out.println(response.toString());
  13338. </code></pre>
  13339. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13340. <span class="hljs-keyword">import</span> (
  13341. <span class="hljs-string">&quot;bytes&quot;</span>
  13342. <span class="hljs-string">&quot;net/http&quot;</span>
  13343. )
  13344. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13345. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13346. <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>},
  13347. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13348. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13349. }
  13350. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13351. 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)
  13352. req.Header = headers
  13353. client := &amp;http.Client{}
  13354. resp, err := client.Do(req)
  13355. <span class="hljs-comment">// ...</span>
  13356. }
  13357. </code></pre>
  13358. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13359. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13360. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13361. );
  13362. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13363. <span class="hljs-comment">// Define array of request body.</span>
  13364. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13365. <span class="hljs-keyword">try</span> {
  13366. <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>(
  13367. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13368. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13369. )
  13370. );
  13371. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13372. }
  13373. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13374. <span class="hljs-comment">// handle exception or api errors.</span>
  13375. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13376. }
  13377. <span class="hljs-comment">// ...</span>
  13378. </code></pre>
  13379. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13380. <p><em>Add New Board Member with Role</em></p>
  13381. <p>Only the admin user (the first user) can call the REST API.</p>
  13382. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13383. to later change the permissions.</p>
  13384. <blockquote>
  13385. <p>Body parameter</p>
  13386. </blockquote>
  13387. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13388. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13389. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13390. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13391. </code></pre>
  13392. <h3 id="add_board_member-parameters">Parameters</h3>
  13393. <table>
  13394. <thead>
  13395. <tr>
  13396. <th>Name</th>
  13397. <th>In</th>
  13398. <th>Type</th>
  13399. <th>Required</th>
  13400. <th>Description</th>
  13401. </tr>
  13402. </thead>
  13403. <tbody>
  13404. <tr>
  13405. <td>board</td>
  13406. <td>path</td>
  13407. <td>string</td>
  13408. <td>true</td>
  13409. <td>the board ID</td>
  13410. </tr>
  13411. <tr>
  13412. <td>user</td>
  13413. <td>path</td>
  13414. <td>string</td>
  13415. <td>true</td>
  13416. <td>the user ID</td>
  13417. </tr>
  13418. <tr>
  13419. <td>body</td>
  13420. <td>body</td>
  13421. <td>object</td>
  13422. <td>true</td>
  13423. <td>none</td>
  13424. </tr>
  13425. <tr>
  13426. <td>» action</td>
  13427. <td>body</td>
  13428. <td>string</td>
  13429. <td>true</td>
  13430. <td>the action value</td>
  13431. </tr>
  13432. <tr>
  13433. <td>» isAdmin</td>
  13434. <td>body</td>
  13435. <td>boolean</td>
  13436. <td>true</td>
  13437. <td>is the user an admin of the board</td>
  13438. </tr>
  13439. <tr>
  13440. <td>» isNoComments</td>
  13441. <td>body</td>
  13442. <td>boolean</td>
  13443. <td>true</td>
  13444. <td>disable comments</td>
  13445. </tr>
  13446. <tr>
  13447. <td>» isCommentOnly</td>
  13448. <td>body</td>
  13449. <td>boolean</td>
  13450. <td>true</td>
  13451. <td>only enable comments</td>
  13452. </tr>
  13453. </tbody>
  13454. </table>
  13455. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13456. <p><strong>board</strong>: the board ID</p>
  13457. <p><strong>user</strong>: the user ID</p>
  13458. <blockquote>
  13459. <p>Example responses</p>
  13460. </blockquote>
  13461. <blockquote>
  13462. <p>200 Response</p>
  13463. </blockquote>
  13464. <pre class="highlight tab tab-json"><code>{
  13465. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13466. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13467. }
  13468. </code></pre>
  13469. <h3 id="add_board_member-responses">Responses</h3>
  13470. <table>
  13471. <thead>
  13472. <tr>
  13473. <th>Status</th>
  13474. <th>Meaning</th>
  13475. <th>Description</th>
  13476. <th>Schema</th>
  13477. </tr>
  13478. </thead>
  13479. <tbody>
  13480. <tr>
  13481. <td>200</td>
  13482. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13483. <td>200 response</td>
  13484. <td>Inline</td>
  13485. </tr>
  13486. </tbody>
  13487. </table>
  13488. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13489. <p>Status Code <strong>200</strong></p>
  13490. <table>
  13491. <thead>
  13492. <tr>
  13493. <th>Name</th>
  13494. <th>Type</th>
  13495. <th>Required</th>
  13496. <th>Restrictions</th>
  13497. <th>Description</th>
  13498. </tr>
  13499. </thead>
  13500. <tbody>
  13501. <tr>
  13502. <td>» _id</td>
  13503. <td>string</td>
  13504. <td>false</td>
  13505. <td>none</td>
  13506. <td>none</td>
  13507. </tr>
  13508. <tr>
  13509. <td>» title</td>
  13510. <td>string</td>
  13511. <td>false</td>
  13512. <td>none</td>
  13513. <td>none</td>
  13514. </tr>
  13515. </tbody>
  13516. </table>
  13517. <aside class="warning">
  13518. To perform this operation, you must be authenticated by means of one of the following methods:
  13519. UserSecurity
  13520. </aside>
  13521. <h2 id="remove_board_member">remove_board_member</h2>
  13522. <p><a id="opIdremove_board_member"></a></p>
  13523. <blockquote>
  13524. <p>Code samples</p>
  13525. </blockquote>
  13526. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13527. curl -X POST /api/boards/{board}/members/{user}/remove \
  13528. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13529. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13530. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13531. </code></pre>
  13532. <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>
  13533. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13534. Accept: application/json
  13535. </span></code></pre>
  13536. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13537. &quot;action&quot;: &quot;string&quot;
  13538. }&#x27;</span>;
  13539. <span class="hljs-keyword">const</span> headers = {
  13540. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  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. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13545. {
  13546. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13547. <span class="hljs-attr">body</span>: inputBody,
  13548. <span class="hljs-attr">headers</span>: headers
  13549. })
  13550. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13551. <span class="hljs-keyword">return</span> res.json();
  13552. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13553. <span class="hljs-built_in">console</span>.log(body);
  13554. });
  13555. </code></pre>
  13556. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13557. <span class="hljs-keyword">const</span> inputBody = {
  13558. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13559. };
  13560. <span class="hljs-keyword">const</span> headers = {
  13561. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13562. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13563. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13564. };
  13565. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13566. {
  13567. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13568. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13569. <span class="hljs-attr">headers</span>: headers
  13570. })
  13571. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13572. <span class="hljs-keyword">return</span> res.json();
  13573. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13574. <span class="hljs-built_in">console</span>.log(body);
  13575. });
  13576. </code></pre>
  13577. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13578. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13579. headers = {
  13580. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13581. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13582. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13583. }
  13584. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13585. <span class="hljs-symbol">params:</span> {
  13586. }, <span class="hljs-symbol">headers:</span> headers
  13587. p JSON.parse(result)
  13588. </code></pre>
  13589. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13590. headers = {
  13591. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13592. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13593. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13594. }
  13595. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  13596. <span class="hljs-built_in">print</span>(r.json())
  13597. </code></pre>
  13598. <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>);
  13599. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13600. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13601. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13602. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13603. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13604. String inputLine;
  13605. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13606. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13607. response.append(inputLine);
  13608. }
  13609. in.close();
  13610. System.out.println(response.toString());
  13611. </code></pre>
  13612. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13613. <span class="hljs-keyword">import</span> (
  13614. <span class="hljs-string">&quot;bytes&quot;</span>
  13615. <span class="hljs-string">&quot;net/http&quot;</span>
  13616. )
  13617. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13618. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13619. <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>},
  13620. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13621. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13622. }
  13623. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13624. 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)
  13625. req.Header = headers
  13626. client := &amp;http.Client{}
  13627. resp, err := client.Do(req)
  13628. <span class="hljs-comment">// ...</span>
  13629. }
  13630. </code></pre>
  13631. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13632. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13633. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13634. );
  13635. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13636. <span class="hljs-comment">// Define array of request body.</span>
  13637. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13638. <span class="hljs-keyword">try</span> {
  13639. <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>(
  13640. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13641. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13642. )
  13643. );
  13644. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13645. }
  13646. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13647. <span class="hljs-comment">// handle exception or api errors.</span>
  13648. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13649. }
  13650. <span class="hljs-comment">// ...</span>
  13651. </code></pre>
  13652. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  13653. <p><em>Remove Member from Board</em></p>
  13654. <p>Only the admin user (the first user) can call the REST API.</p>
  13655. <blockquote>
  13656. <p>Body parameter</p>
  13657. </blockquote>
  13658. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13659. </code></pre>
  13660. <h3 id="remove_board_member-parameters">Parameters</h3>
  13661. <table>
  13662. <thead>
  13663. <tr>
  13664. <th>Name</th>
  13665. <th>In</th>
  13666. <th>Type</th>
  13667. <th>Required</th>
  13668. <th>Description</th>
  13669. </tr>
  13670. </thead>
  13671. <tbody>
  13672. <tr>
  13673. <td>board</td>
  13674. <td>path</td>
  13675. <td>string</td>
  13676. <td>true</td>
  13677. <td>the board ID</td>
  13678. </tr>
  13679. <tr>
  13680. <td>user</td>
  13681. <td>path</td>
  13682. <td>string</td>
  13683. <td>true</td>
  13684. <td>the user ID</td>
  13685. </tr>
  13686. <tr>
  13687. <td>body</td>
  13688. <td>body</td>
  13689. <td>object</td>
  13690. <td>true</td>
  13691. <td>none</td>
  13692. </tr>
  13693. <tr>
  13694. <td>» action</td>
  13695. <td>body</td>
  13696. <td>string</td>
  13697. <td>true</td>
  13698. <td>the action (needs to be <code>remove</code>)</td>
  13699. </tr>
  13700. </tbody>
  13701. </table>
  13702. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13703. <p><strong>board</strong>: the board ID</p>
  13704. <p><strong>user</strong>: the user ID</p>
  13705. <blockquote>
  13706. <p>Example responses</p>
  13707. </blockquote>
  13708. <blockquote>
  13709. <p>200 Response</p>
  13710. </blockquote>
  13711. <pre class="highlight tab tab-json"><code>{
  13712. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13713. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13714. }
  13715. </code></pre>
  13716. <h3 id="remove_board_member-responses">Responses</h3>
  13717. <table>
  13718. <thead>
  13719. <tr>
  13720. <th>Status</th>
  13721. <th>Meaning</th>
  13722. <th>Description</th>
  13723. <th>Schema</th>
  13724. </tr>
  13725. </thead>
  13726. <tbody>
  13727. <tr>
  13728. <td>200</td>
  13729. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13730. <td>200 response</td>
  13731. <td>Inline</td>
  13732. </tr>
  13733. </tbody>
  13734. </table>
  13735. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  13736. <p>Status Code <strong>200</strong></p>
  13737. <table>
  13738. <thead>
  13739. <tr>
  13740. <th>Name</th>
  13741. <th>Type</th>
  13742. <th>Required</th>
  13743. <th>Restrictions</th>
  13744. <th>Description</th>
  13745. </tr>
  13746. </thead>
  13747. <tbody>
  13748. <tr>
  13749. <td>» _id</td>
  13750. <td>string</td>
  13751. <td>false</td>
  13752. <td>none</td>
  13753. <td>none</td>
  13754. </tr>
  13755. <tr>
  13756. <td>» title</td>
  13757. <td>string</td>
  13758. <td>false</td>
  13759. <td>none</td>
  13760. <td>none</td>
  13761. </tr>
  13762. </tbody>
  13763. </table>
  13764. <aside class="warning">
  13765. To perform this operation, you must be authenticated by means of one of the following methods:
  13766. UserSecurity
  13767. </aside>
  13768. <h2 id="create_user_token">create_user_token</h2>
  13769. <p><a id="opIdcreate_user_token"></a></p>
  13770. <blockquote>
  13771. <p>Code samples</p>
  13772. </blockquote>
  13773. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13774. curl -X POST /api/createtoken/{user} \
  13775. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13776. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13777. </code></pre>
  13778. <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>
  13779. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13780. </span></code></pre>
  13781. <pre class="highlight tab tab-javascript"><code>
  13782. <span class="hljs-keyword">const</span> headers = {
  13783. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13784. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13785. };
  13786. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13787. {
  13788. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13789. <span class="hljs-attr">headers</span>: headers
  13790. })
  13791. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13792. <span class="hljs-keyword">return</span> res.json();
  13793. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13794. <span class="hljs-built_in">console</span>.log(body);
  13795. });
  13796. </code></pre>
  13797. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13798. <span class="hljs-keyword">const</span> headers = {
  13799. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13800. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13801. };
  13802. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13803. {
  13804. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13805. <span class="hljs-attr">headers</span>: headers
  13806. })
  13807. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13808. <span class="hljs-keyword">return</span> res.json();
  13809. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13810. <span class="hljs-built_in">console</span>.log(body);
  13811. });
  13812. </code></pre>
  13813. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13814. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13815. headers = {
  13816. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13817. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13818. }
  13819. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13820. <span class="hljs-symbol">params:</span> {
  13821. }, <span class="hljs-symbol">headers:</span> headers
  13822. p JSON.parse(result)
  13823. </code></pre>
  13824. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13825. headers = {
  13826. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13827. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13828. }
  13829. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  13830. <span class="hljs-built_in">print</span>(r.json())
  13831. </code></pre>
  13832. <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>);
  13833. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13834. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13835. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13836. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13837. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13838. String inputLine;
  13839. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13840. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13841. response.append(inputLine);
  13842. }
  13843. in.close();
  13844. System.out.println(response.toString());
  13845. </code></pre>
  13846. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13847. <span class="hljs-keyword">import</span> (
  13848. <span class="hljs-string">&quot;bytes&quot;</span>
  13849. <span class="hljs-string">&quot;net/http&quot;</span>
  13850. )
  13851. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13852. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13853. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13854. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13855. }
  13856. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13857. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  13858. req.Header = headers
  13859. client := &amp;http.Client{}
  13860. resp, err := client.Do(req)
  13861. <span class="hljs-comment">// ...</span>
  13862. }
  13863. </code></pre>
  13864. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13865. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13866. );
  13867. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13868. <span class="hljs-comment">// Define array of request body.</span>
  13869. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13870. <span class="hljs-keyword">try</span> {
  13871. <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>(
  13872. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13873. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13874. )
  13875. );
  13876. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13877. }
  13878. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13879. <span class="hljs-comment">// handle exception or api errors.</span>
  13880. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13881. }
  13882. <span class="hljs-comment">// ...</span>
  13883. </code></pre>
  13884. <p><code>POST /api/createtoken/{user}</code></p>
  13885. <p><em>Create a user token</em></p>
  13886. <p>Only the admin user (the first user) can call the REST API.</p>
  13887. <h3 id="create_user_token-parameters">Parameters</h3>
  13888. <table>
  13889. <thead>
  13890. <tr>
  13891. <th>Name</th>
  13892. <th>In</th>
  13893. <th>Type</th>
  13894. <th>Required</th>
  13895. <th>Description</th>
  13896. </tr>
  13897. </thead>
  13898. <tbody>
  13899. <tr>
  13900. <td>user</td>
  13901. <td>path</td>
  13902. <td>string</td>
  13903. <td>true</td>
  13904. <td>the ID of the user to create token for.</td>
  13905. </tr>
  13906. </tbody>
  13907. </table>
  13908. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13909. <p><strong>user</strong>: the ID of the user to create token for.</p>
  13910. <blockquote>
  13911. <p>Example responses</p>
  13912. </blockquote>
  13913. <blockquote>
  13914. <p>200 Response</p>
  13915. </blockquote>
  13916. <pre class="highlight tab tab-json"><code>{
  13917. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13918. }
  13919. </code></pre>
  13920. <h3 id="create_user_token-responses">Responses</h3>
  13921. <table>
  13922. <thead>
  13923. <tr>
  13924. <th>Status</th>
  13925. <th>Meaning</th>
  13926. <th>Description</th>
  13927. <th>Schema</th>
  13928. </tr>
  13929. </thead>
  13930. <tbody>
  13931. <tr>
  13932. <td>200</td>
  13933. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13934. <td>200 response</td>
  13935. <td>Inline</td>
  13936. </tr>
  13937. </tbody>
  13938. </table>
  13939. <h3 id="create_user_token-responseschema">Response Schema</h3>
  13940. <p>Status Code <strong>200</strong></p>
  13941. <table>
  13942. <thead>
  13943. <tr>
  13944. <th>Name</th>
  13945. <th>Type</th>
  13946. <th>Required</th>
  13947. <th>Restrictions</th>
  13948. <th>Description</th>
  13949. </tr>
  13950. </thead>
  13951. <tbody>
  13952. <tr>
  13953. <td>» _id</td>
  13954. <td>string</td>
  13955. <td>false</td>
  13956. <td>none</td>
  13957. <td>none</td>
  13958. </tr>
  13959. </tbody>
  13960. </table>
  13961. <aside class="warning">
  13962. To perform this operation, you must be authenticated by means of one of the following methods:
  13963. UserSecurity
  13964. </aside>
  13965. <h2 id="get_current_user">get_current_user</h2>
  13966. <p><a id="opIdget_current_user"></a></p>
  13967. <blockquote>
  13968. <p>Code samples</p>
  13969. </blockquote>
  13970. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13971. curl -X GET /api/user \
  13972. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13973. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13974. </code></pre>
  13975. <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>
  13976. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13977. </span></code></pre>
  13978. <pre class="highlight tab tab-javascript"><code>
  13979. <span class="hljs-keyword">const</span> headers = {
  13980. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13981. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13982. };
  13983. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  13984. {
  13985. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13986. <span class="hljs-attr">headers</span>: headers
  13987. })
  13988. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13989. <span class="hljs-keyword">return</span> res.json();
  13990. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13991. <span class="hljs-built_in">console</span>.log(body);
  13992. });
  13993. </code></pre>
  13994. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13995. <span class="hljs-keyword">const</span> headers = {
  13996. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13997. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13998. };
  13999. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14000. {
  14001. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14002. <span class="hljs-attr">headers</span>: headers
  14003. })
  14004. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14005. <span class="hljs-keyword">return</span> res.json();
  14006. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14007. <span class="hljs-built_in">console</span>.log(body);
  14008. });
  14009. </code></pre>
  14010. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14011. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14012. headers = {
  14013. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14014. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14015. }
  14016. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14017. <span class="hljs-symbol">params:</span> {
  14018. }, <span class="hljs-symbol">headers:</span> headers
  14019. p JSON.parse(result)
  14020. </code></pre>
  14021. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14022. headers = {
  14023. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14024. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14025. }
  14026. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14027. <span class="hljs-built_in">print</span>(r.json())
  14028. </code></pre>
  14029. <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>);
  14030. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14031. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14032. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14033. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14034. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14035. String inputLine;
  14036. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14037. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14038. response.append(inputLine);
  14039. }
  14040. in.close();
  14041. System.out.println(response.toString());
  14042. </code></pre>
  14043. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14044. <span class="hljs-keyword">import</span> (
  14045. <span class="hljs-string">&quot;bytes&quot;</span>
  14046. <span class="hljs-string">&quot;net/http&quot;</span>
  14047. )
  14048. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14049. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14050. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14051. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14052. }
  14053. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14054. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14055. req.Header = headers
  14056. client := &amp;http.Client{}
  14057. resp, err := client.Do(req)
  14058. <span class="hljs-comment">// ...</span>
  14059. }
  14060. </code></pre>
  14061. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14062. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14063. );
  14064. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14065. <span class="hljs-comment">// Define array of request body.</span>
  14066. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14067. <span class="hljs-keyword">try</span> {
  14068. <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>(
  14069. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14070. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14071. )
  14072. );
  14073. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14074. }
  14075. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14076. <span class="hljs-comment">// handle exception or api errors.</span>
  14077. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14078. }
  14079. <span class="hljs-comment">// ...</span>
  14080. </code></pre>
  14081. <p><code>GET /api/user</code></p>
  14082. <p><em>returns the current user</em></p>
  14083. <blockquote>
  14084. <p>Example responses</p>
  14085. </blockquote>
  14086. <blockquote>
  14087. <p>200 Response</p>
  14088. </blockquote>
  14089. <pre class="highlight tab tab-json"><code>{
  14090. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14091. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14092. {
  14093. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14094. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14095. }
  14096. ],
  14097. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14098. {
  14099. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14100. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14101. }
  14102. ],
  14103. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14104. {
  14105. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14106. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14107. }
  14108. ],
  14109. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14110. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14111. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14112. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14113. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14114. <span class="hljs-string">&quot;string&quot;</span>
  14115. ],
  14116. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14117. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14118. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14119. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14120. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14121. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14122. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14123. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14124. <span class="hljs-string">&quot;string&quot;</span>
  14125. ],
  14126. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14127. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14128. {
  14129. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14130. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14131. }
  14132. ],
  14133. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14134. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14135. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14136. <span class="hljs-string">&quot;string&quot;</span>
  14137. ],
  14138. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14139. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14140. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14141. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14142. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14143. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14144. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14145. },
  14146. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14147. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14148. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14149. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14150. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14151. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14152. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14153. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14154. },
  14155. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14156. <span class="hljs-string">&quot;string&quot;</span>
  14157. ]
  14158. }
  14159. </code></pre>
  14160. <h3 id="get_current_user-responses">Responses</h3>
  14161. <table>
  14162. <thead>
  14163. <tr>
  14164. <th>Status</th>
  14165. <th>Meaning</th>
  14166. <th>Description</th>
  14167. <th>Schema</th>
  14168. </tr>
  14169. </thead>
  14170. <tbody>
  14171. <tr>
  14172. <td>200</td>
  14173. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14174. <td>200 response</td>
  14175. <td><a href="#schemausers">Users</a></td>
  14176. </tr>
  14177. </tbody>
  14178. </table>
  14179. <aside class="warning">
  14180. To perform this operation, you must be authenticated by means of one of the following methods:
  14181. UserSecurity
  14182. </aside>
  14183. <h2 id="get_all_users">get_all_users</h2>
  14184. <p><a id="opIdget_all_users"></a></p>
  14185. <blockquote>
  14186. <p>Code samples</p>
  14187. </blockquote>
  14188. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14189. curl -X GET /api/users \
  14190. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14191. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14192. </code></pre>
  14193. <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>
  14194. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14195. </span></code></pre>
  14196. <pre class="highlight tab tab-javascript"><code>
  14197. <span class="hljs-keyword">const</span> headers = {
  14198. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14199. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14200. };
  14201. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14202. {
  14203. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14204. <span class="hljs-attr">headers</span>: headers
  14205. })
  14206. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14207. <span class="hljs-keyword">return</span> res.json();
  14208. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14209. <span class="hljs-built_in">console</span>.log(body);
  14210. });
  14211. </code></pre>
  14212. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14213. <span class="hljs-keyword">const</span> headers = {
  14214. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14215. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14216. };
  14217. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14218. {
  14219. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14220. <span class="hljs-attr">headers</span>: headers
  14221. })
  14222. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14223. <span class="hljs-keyword">return</span> res.json();
  14224. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14225. <span class="hljs-built_in">console</span>.log(body);
  14226. });
  14227. </code></pre>
  14228. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14229. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14230. headers = {
  14231. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14232. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14233. }
  14234. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14235. <span class="hljs-symbol">params:</span> {
  14236. }, <span class="hljs-symbol">headers:</span> headers
  14237. p JSON.parse(result)
  14238. </code></pre>
  14239. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14240. headers = {
  14241. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14242. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14243. }
  14244. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14245. <span class="hljs-built_in">print</span>(r.json())
  14246. </code></pre>
  14247. <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>);
  14248. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14249. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14250. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14251. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14252. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14253. String inputLine;
  14254. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14255. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14256. response.append(inputLine);
  14257. }
  14258. in.close();
  14259. System.out.println(response.toString());
  14260. </code></pre>
  14261. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14262. <span class="hljs-keyword">import</span> (
  14263. <span class="hljs-string">&quot;bytes&quot;</span>
  14264. <span class="hljs-string">&quot;net/http&quot;</span>
  14265. )
  14266. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14267. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14268. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14269. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14270. }
  14271. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14272. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14273. req.Header = headers
  14274. client := &amp;http.Client{}
  14275. resp, err := client.Do(req)
  14276. <span class="hljs-comment">// ...</span>
  14277. }
  14278. </code></pre>
  14279. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14280. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14281. );
  14282. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14283. <span class="hljs-comment">// Define array of request body.</span>
  14284. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14285. <span class="hljs-keyword">try</span> {
  14286. <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>(
  14287. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14288. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14289. )
  14290. );
  14291. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14292. }
  14293. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14294. <span class="hljs-comment">// handle exception or api errors.</span>
  14295. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14296. }
  14297. <span class="hljs-comment">// ...</span>
  14298. </code></pre>
  14299. <p><code>GET /api/users</code></p>
  14300. <p><em>return all the users</em></p>
  14301. <p>Only the admin user (the first user) can call the REST API.</p>
  14302. <blockquote>
  14303. <p>Example responses</p>
  14304. </blockquote>
  14305. <blockquote>
  14306. <p>200 Response</p>
  14307. </blockquote>
  14308. <pre class="highlight tab tab-json"><code>[
  14309. {
  14310. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14311. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14312. }
  14313. ]
  14314. </code></pre>
  14315. <h3 id="get_all_users-responses">Responses</h3>
  14316. <table>
  14317. <thead>
  14318. <tr>
  14319. <th>Status</th>
  14320. <th>Meaning</th>
  14321. <th>Description</th>
  14322. <th>Schema</th>
  14323. </tr>
  14324. </thead>
  14325. <tbody>
  14326. <tr>
  14327. <td>200</td>
  14328. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14329. <td>200 response</td>
  14330. <td>Inline</td>
  14331. </tr>
  14332. </tbody>
  14333. </table>
  14334. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14335. <p>Status Code <strong>200</strong></p>
  14336. <table>
  14337. <thead>
  14338. <tr>
  14339. <th>Name</th>
  14340. <th>Type</th>
  14341. <th>Required</th>
  14342. <th>Restrictions</th>
  14343. <th>Description</th>
  14344. </tr>
  14345. </thead>
  14346. <tbody>
  14347. <tr>
  14348. <td>» _id</td>
  14349. <td>string</td>
  14350. <td>false</td>
  14351. <td>none</td>
  14352. <td>none</td>
  14353. </tr>
  14354. <tr>
  14355. <td>» username</td>
  14356. <td>string</td>
  14357. <td>false</td>
  14358. <td>none</td>
  14359. <td>none</td>
  14360. </tr>
  14361. </tbody>
  14362. </table>
  14363. <aside class="warning">
  14364. To perform this operation, you must be authenticated by means of one of the following methods:
  14365. UserSecurity
  14366. </aside>
  14367. <h2 id="new_user">new_user</h2>
  14368. <p><a id="opIdnew_user"></a></p>
  14369. <blockquote>
  14370. <p>Code samples</p>
  14371. </blockquote>
  14372. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14373. curl -X POST /api/users \
  14374. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14375. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14376. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14377. </code></pre>
  14378. <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>
  14379. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14380. Accept: application/json
  14381. </span></code></pre>
  14382. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14383. &quot;username&quot;: &quot;string&quot;,
  14384. &quot;email&quot;: &quot;string&quot;,
  14385. &quot;password&quot;: &quot;string&quot;
  14386. }&#x27;</span>;
  14387. <span class="hljs-keyword">const</span> headers = {
  14388. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14389. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14390. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14391. };
  14392. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14393. {
  14394. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14395. <span class="hljs-attr">body</span>: inputBody,
  14396. <span class="hljs-attr">headers</span>: headers
  14397. })
  14398. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14399. <span class="hljs-keyword">return</span> res.json();
  14400. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14401. <span class="hljs-built_in">console</span>.log(body);
  14402. });
  14403. </code></pre>
  14404. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14405. <span class="hljs-keyword">const</span> inputBody = {
  14406. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14407. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14408. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14409. };
  14410. <span class="hljs-keyword">const</span> headers = {
  14411. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14412. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14413. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14414. };
  14415. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14416. {
  14417. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14418. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14419. <span class="hljs-attr">headers</span>: headers
  14420. })
  14421. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14422. <span class="hljs-keyword">return</span> res.json();
  14423. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14424. <span class="hljs-built_in">console</span>.log(body);
  14425. });
  14426. </code></pre>
  14427. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14428. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14429. headers = {
  14430. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14431. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14432. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14433. }
  14434. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14435. <span class="hljs-symbol">params:</span> {
  14436. }, <span class="hljs-symbol">headers:</span> headers
  14437. p JSON.parse(result)
  14438. </code></pre>
  14439. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14440. headers = {
  14441. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14442. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14443. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14444. }
  14445. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14446. <span class="hljs-built_in">print</span>(r.json())
  14447. </code></pre>
  14448. <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>);
  14449. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14450. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14451. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14452. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14453. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14454. String inputLine;
  14455. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14456. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14457. response.append(inputLine);
  14458. }
  14459. in.close();
  14460. System.out.println(response.toString());
  14461. </code></pre>
  14462. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14463. <span class="hljs-keyword">import</span> (
  14464. <span class="hljs-string">&quot;bytes&quot;</span>
  14465. <span class="hljs-string">&quot;net/http&quot;</span>
  14466. )
  14467. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14468. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14469. <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>},
  14470. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14471. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14472. }
  14473. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14474. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14475. req.Header = headers
  14476. client := &amp;http.Client{}
  14477. resp, err := client.Do(req)
  14478. <span class="hljs-comment">// ...</span>
  14479. }
  14480. </code></pre>
  14481. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14482. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14483. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14484. );
  14485. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14486. <span class="hljs-comment">// Define array of request body.</span>
  14487. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14488. <span class="hljs-keyword">try</span> {
  14489. <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>(
  14490. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14491. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14492. )
  14493. );
  14494. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14495. }
  14496. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14497. <span class="hljs-comment">// handle exception or api errors.</span>
  14498. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14499. }
  14500. <span class="hljs-comment">// ...</span>
  14501. </code></pre>
  14502. <p><code>POST /api/users</code></p>
  14503. <p><em>Create a new user</em></p>
  14504. <p>Only the admin user (the first user) can call the REST API.</p>
  14505. <blockquote>
  14506. <p>Body parameter</p>
  14507. </blockquote>
  14508. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14509. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14510. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14511. </code></pre>
  14512. <h3 id="new_user-parameters">Parameters</h3>
  14513. <table>
  14514. <thead>
  14515. <tr>
  14516. <th>Name</th>
  14517. <th>In</th>
  14518. <th>Type</th>
  14519. <th>Required</th>
  14520. <th>Description</th>
  14521. </tr>
  14522. </thead>
  14523. <tbody>
  14524. <tr>
  14525. <td>body</td>
  14526. <td>body</td>
  14527. <td>object</td>
  14528. <td>true</td>
  14529. <td>none</td>
  14530. </tr>
  14531. <tr>
  14532. <td>» username</td>
  14533. <td>body</td>
  14534. <td>string</td>
  14535. <td>true</td>
  14536. <td>the new username</td>
  14537. </tr>
  14538. <tr>
  14539. <td>» email</td>
  14540. <td>body</td>
  14541. <td>string</td>
  14542. <td>true</td>
  14543. <td>the email of the new user</td>
  14544. </tr>
  14545. <tr>
  14546. <td>» password</td>
  14547. <td>body</td>
  14548. <td>string</td>
  14549. <td>true</td>
  14550. <td>the password of the new user</td>
  14551. </tr>
  14552. </tbody>
  14553. </table>
  14554. <blockquote>
  14555. <p>Example responses</p>
  14556. </blockquote>
  14557. <blockquote>
  14558. <p>200 Response</p>
  14559. </blockquote>
  14560. <pre class="highlight tab tab-json"><code>{
  14561. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14562. }
  14563. </code></pre>
  14564. <h3 id="new_user-responses">Responses</h3>
  14565. <table>
  14566. <thead>
  14567. <tr>
  14568. <th>Status</th>
  14569. <th>Meaning</th>
  14570. <th>Description</th>
  14571. <th>Schema</th>
  14572. </tr>
  14573. </thead>
  14574. <tbody>
  14575. <tr>
  14576. <td>200</td>
  14577. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14578. <td>200 response</td>
  14579. <td>Inline</td>
  14580. </tr>
  14581. </tbody>
  14582. </table>
  14583. <h3 id="new_user-responseschema">Response Schema</h3>
  14584. <p>Status Code <strong>200</strong></p>
  14585. <table>
  14586. <thead>
  14587. <tr>
  14588. <th>Name</th>
  14589. <th>Type</th>
  14590. <th>Required</th>
  14591. <th>Restrictions</th>
  14592. <th>Description</th>
  14593. </tr>
  14594. </thead>
  14595. <tbody>
  14596. <tr>
  14597. <td>» _id</td>
  14598. <td>string</td>
  14599. <td>false</td>
  14600. <td>none</td>
  14601. <td>none</td>
  14602. </tr>
  14603. </tbody>
  14604. </table>
  14605. <aside class="warning">
  14606. To perform this operation, you must be authenticated by means of one of the following methods:
  14607. UserSecurity
  14608. </aside>
  14609. <h2 id="get_user">get_user</h2>
  14610. <p><a id="opIdget_user"></a></p>
  14611. <blockquote>
  14612. <p>Code samples</p>
  14613. </blockquote>
  14614. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14615. curl -X GET /api/users/{user} \
  14616. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14617. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14618. </code></pre>
  14619. <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>
  14620. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14621. </span></code></pre>
  14622. <pre class="highlight tab tab-javascript"><code>
  14623. <span class="hljs-keyword">const</span> headers = {
  14624. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14625. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14626. };
  14627. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14628. {
  14629. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14630. <span class="hljs-attr">headers</span>: headers
  14631. })
  14632. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14633. <span class="hljs-keyword">return</span> res.json();
  14634. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14635. <span class="hljs-built_in">console</span>.log(body);
  14636. });
  14637. </code></pre>
  14638. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14639. <span class="hljs-keyword">const</span> headers = {
  14640. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14641. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14642. };
  14643. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14644. {
  14645. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14646. <span class="hljs-attr">headers</span>: headers
  14647. })
  14648. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14649. <span class="hljs-keyword">return</span> res.json();
  14650. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14651. <span class="hljs-built_in">console</span>.log(body);
  14652. });
  14653. </code></pre>
  14654. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14655. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14656. headers = {
  14657. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14658. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14659. }
  14660. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14661. <span class="hljs-symbol">params:</span> {
  14662. }, <span class="hljs-symbol">headers:</span> headers
  14663. p JSON.parse(result)
  14664. </code></pre>
  14665. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14666. headers = {
  14667. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14668. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14669. }
  14670. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14671. <span class="hljs-built_in">print</span>(r.json())
  14672. </code></pre>
  14673. <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>);
  14674. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14675. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14676. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14677. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14678. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14679. String inputLine;
  14680. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14681. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14682. response.append(inputLine);
  14683. }
  14684. in.close();
  14685. System.out.println(response.toString());
  14686. </code></pre>
  14687. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14688. <span class="hljs-keyword">import</span> (
  14689. <span class="hljs-string">&quot;bytes&quot;</span>
  14690. <span class="hljs-string">&quot;net/http&quot;</span>
  14691. )
  14692. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14693. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14694. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14695. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14696. }
  14697. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14698. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14699. req.Header = headers
  14700. client := &amp;http.Client{}
  14701. resp, err := client.Do(req)
  14702. <span class="hljs-comment">// ...</span>
  14703. }
  14704. </code></pre>
  14705. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14706. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14707. );
  14708. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14709. <span class="hljs-comment">// Define array of request body.</span>
  14710. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14711. <span class="hljs-keyword">try</span> {
  14712. <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>(
  14713. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14714. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14715. )
  14716. );
  14717. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14718. }
  14719. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14720. <span class="hljs-comment">// handle exception or api errors.</span>
  14721. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14722. }
  14723. <span class="hljs-comment">// ...</span>
  14724. </code></pre>
  14725. <p><code>GET /api/users/{user}</code></p>
  14726. <p><em>get a given user</em></p>
  14727. <p>Only the admin user (the first user) can call the REST API.</p>
  14728. <h3 id="get_user-parameters">Parameters</h3>
  14729. <table>
  14730. <thead>
  14731. <tr>
  14732. <th>Name</th>
  14733. <th>In</th>
  14734. <th>Type</th>
  14735. <th>Required</th>
  14736. <th>Description</th>
  14737. </tr>
  14738. </thead>
  14739. <tbody>
  14740. <tr>
  14741. <td>user</td>
  14742. <td>path</td>
  14743. <td>string</td>
  14744. <td>true</td>
  14745. <td>the user ID or username</td>
  14746. </tr>
  14747. </tbody>
  14748. </table>
  14749. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14750. <p><strong>user</strong>: the user ID or username</p>
  14751. <blockquote>
  14752. <p>Example responses</p>
  14753. </blockquote>
  14754. <blockquote>
  14755. <p>200 Response</p>
  14756. </blockquote>
  14757. <pre class="highlight tab tab-json"><code>{
  14758. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14759. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14760. {
  14761. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14762. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14763. }
  14764. ],
  14765. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14766. {
  14767. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14768. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14769. }
  14770. ],
  14771. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14772. {
  14773. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14774. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14775. }
  14776. ],
  14777. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14778. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14779. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14780. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14781. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14782. <span class="hljs-string">&quot;string&quot;</span>
  14783. ],
  14784. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14785. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14786. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14787. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14788. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14789. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14790. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14791. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14792. <span class="hljs-string">&quot;string&quot;</span>
  14793. ],
  14794. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14795. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14796. {
  14797. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14798. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14799. }
  14800. ],
  14801. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14802. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14803. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14804. <span class="hljs-string">&quot;string&quot;</span>
  14805. ],
  14806. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14807. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14808. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14809. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14810. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14811. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14812. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14813. },
  14814. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14815. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14816. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14817. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14818. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14819. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14820. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14821. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14822. },
  14823. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14824. <span class="hljs-string">&quot;string&quot;</span>
  14825. ]
  14826. }
  14827. </code></pre>
  14828. <h3 id="get_user-responses">Responses</h3>
  14829. <table>
  14830. <thead>
  14831. <tr>
  14832. <th>Status</th>
  14833. <th>Meaning</th>
  14834. <th>Description</th>
  14835. <th>Schema</th>
  14836. </tr>
  14837. </thead>
  14838. <tbody>
  14839. <tr>
  14840. <td>200</td>
  14841. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14842. <td>200 response</td>
  14843. <td><a href="#schemausers">Users</a></td>
  14844. </tr>
  14845. </tbody>
  14846. </table>
  14847. <aside class="warning">
  14848. To perform this operation, you must be authenticated by means of one of the following methods:
  14849. UserSecurity
  14850. </aside>
  14851. <h2 id="edit_user">edit_user</h2>
  14852. <p><a id="opIdedit_user"></a></p>
  14853. <blockquote>
  14854. <p>Code samples</p>
  14855. </blockquote>
  14856. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14857. curl -X PUT /api/users/{user} \
  14858. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14859. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14860. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14861. </code></pre>
  14862. <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>
  14863. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14864. Accept: application/json
  14865. </span></code></pre>
  14866. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14867. &quot;action&quot;: &quot;string&quot;
  14868. }&#x27;</span>;
  14869. <span class="hljs-keyword">const</span> headers = {
  14870. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14871. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14872. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14873. };
  14874. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14875. {
  14876. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14877. <span class="hljs-attr">body</span>: inputBody,
  14878. <span class="hljs-attr">headers</span>: headers
  14879. })
  14880. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14881. <span class="hljs-keyword">return</span> res.json();
  14882. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14883. <span class="hljs-built_in">console</span>.log(body);
  14884. });
  14885. </code></pre>
  14886. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14887. <span class="hljs-keyword">const</span> inputBody = {
  14888. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14889. };
  14890. <span class="hljs-keyword">const</span> headers = {
  14891. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14892. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14893. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14894. };
  14895. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14896. {
  14897. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14898. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14899. <span class="hljs-attr">headers</span>: headers
  14900. })
  14901. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14902. <span class="hljs-keyword">return</span> res.json();
  14903. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14904. <span class="hljs-built_in">console</span>.log(body);
  14905. });
  14906. </code></pre>
  14907. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14908. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14909. headers = {
  14910. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14911. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14912. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14913. }
  14914. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14915. <span class="hljs-symbol">params:</span> {
  14916. }, <span class="hljs-symbol">headers:</span> headers
  14917. p JSON.parse(result)
  14918. </code></pre>
  14919. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14920. headers = {
  14921. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14922. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14923. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14924. }
  14925. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14926. <span class="hljs-built_in">print</span>(r.json())
  14927. </code></pre>
  14928. <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>);
  14929. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14930. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14931. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14932. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14933. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14934. String inputLine;
  14935. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14936. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14937. response.append(inputLine);
  14938. }
  14939. in.close();
  14940. System.out.println(response.toString());
  14941. </code></pre>
  14942. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14943. <span class="hljs-keyword">import</span> (
  14944. <span class="hljs-string">&quot;bytes&quot;</span>
  14945. <span class="hljs-string">&quot;net/http&quot;</span>
  14946. )
  14947. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14948. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14949. <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>},
  14950. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14951. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14952. }
  14953. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14954. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14955. req.Header = headers
  14956. client := &amp;http.Client{}
  14957. resp, err := client.Do(req)
  14958. <span class="hljs-comment">// ...</span>
  14959. }
  14960. </code></pre>
  14961. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14962. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14963. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14964. );
  14965. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14966. <span class="hljs-comment">// Define array of request body.</span>
  14967. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14968. <span class="hljs-keyword">try</span> {
  14969. <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>(
  14970. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14971. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14972. )
  14973. );
  14974. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14975. }
  14976. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14977. <span class="hljs-comment">// handle exception or api errors.</span>
  14978. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14979. }
  14980. <span class="hljs-comment">// ...</span>
  14981. </code></pre>
  14982. <p><code>PUT /api/users/{user}</code></p>
  14983. <p><em>edit a given user</em></p>
  14984. <p>Only the admin user (the first user) can call the REST API.</p>
  14985. <p>Possible values for <em>action</em>:</p>
  14986. <ul>
  14987. <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>
  14988. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  14989. <li><code>enableLogin</code>: Enable a user</li>
  14990. </ul>
  14991. <blockquote>
  14992. <p>Body parameter</p>
  14993. </blockquote>
  14994. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14995. </code></pre>
  14996. <h3 id="edit_user-parameters">Parameters</h3>
  14997. <table>
  14998. <thead>
  14999. <tr>
  15000. <th>Name</th>
  15001. <th>In</th>
  15002. <th>Type</th>
  15003. <th>Required</th>
  15004. <th>Description</th>
  15005. </tr>
  15006. </thead>
  15007. <tbody>
  15008. <tr>
  15009. <td>user</td>
  15010. <td>path</td>
  15011. <td>string</td>
  15012. <td>true</td>
  15013. <td>the user ID</td>
  15014. </tr>
  15015. <tr>
  15016. <td>body</td>
  15017. <td>body</td>
  15018. <td>object</td>
  15019. <td>true</td>
  15020. <td>none</td>
  15021. </tr>
  15022. <tr>
  15023. <td>» action</td>
  15024. <td>body</td>
  15025. <td>string</td>
  15026. <td>true</td>
  15027. <td>the action</td>
  15028. </tr>
  15029. </tbody>
  15030. </table>
  15031. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  15032. <p><strong>user</strong>: the user ID</p>
  15033. <blockquote>
  15034. <p>Example responses</p>
  15035. </blockquote>
  15036. <blockquote>
  15037. <p>200 Response</p>
  15038. </blockquote>
  15039. <pre class="highlight tab tab-json"><code>{
  15040. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15041. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15042. }
  15043. </code></pre>
  15044. <h3 id="edit_user-responses">Responses</h3>
  15045. <table>
  15046. <thead>
  15047. <tr>
  15048. <th>Status</th>
  15049. <th>Meaning</th>
  15050. <th>Description</th>
  15051. <th>Schema</th>
  15052. </tr>
  15053. </thead>
  15054. <tbody>
  15055. <tr>
  15056. <td>200</td>
  15057. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15058. <td>200 response</td>
  15059. <td>Inline</td>
  15060. </tr>
  15061. </tbody>
  15062. </table>
  15063. <h3 id="edit_user-responseschema">Response Schema</h3>
  15064. <p>Status Code <strong>200</strong></p>
  15065. <table>
  15066. <thead>
  15067. <tr>
  15068. <th>Name</th>
  15069. <th>Type</th>
  15070. <th>Required</th>
  15071. <th>Restrictions</th>
  15072. <th>Description</th>
  15073. </tr>
  15074. </thead>
  15075. <tbody>
  15076. <tr>
  15077. <td>» _id</td>
  15078. <td>string</td>
  15079. <td>false</td>
  15080. <td>none</td>
  15081. <td>none</td>
  15082. </tr>
  15083. <tr>
  15084. <td>» title</td>
  15085. <td>string</td>
  15086. <td>false</td>
  15087. <td>none</td>
  15088. <td>none</td>
  15089. </tr>
  15090. </tbody>
  15091. </table>
  15092. <aside class="warning">
  15093. To perform this operation, you must be authenticated by means of one of the following methods:
  15094. UserSecurity
  15095. </aside>
  15096. <h2 id="delete_user">delete_user</h2>
  15097. <p><a id="opIddelete_user"></a></p>
  15098. <blockquote>
  15099. <p>Code samples</p>
  15100. </blockquote>
  15101. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15102. curl -X DELETE /api/users/{user} \
  15103. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15104. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15105. </code></pre>
  15106. <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>
  15107. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15108. </span></code></pre>
  15109. <pre class="highlight tab tab-javascript"><code>
  15110. <span class="hljs-keyword">const</span> headers = {
  15111. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15112. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15113. };
  15114. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15115. {
  15116. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15117. <span class="hljs-attr">headers</span>: headers
  15118. })
  15119. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15120. <span class="hljs-keyword">return</span> res.json();
  15121. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15122. <span class="hljs-built_in">console</span>.log(body);
  15123. });
  15124. </code></pre>
  15125. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15126. <span class="hljs-keyword">const</span> headers = {
  15127. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15128. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15129. };
  15130. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15131. {
  15132. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15133. <span class="hljs-attr">headers</span>: headers
  15134. })
  15135. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15136. <span class="hljs-keyword">return</span> res.json();
  15137. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15138. <span class="hljs-built_in">console</span>.log(body);
  15139. });
  15140. </code></pre>
  15141. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15142. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15143. headers = {
  15144. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15145. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15146. }
  15147. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15148. <span class="hljs-symbol">params:</span> {
  15149. }, <span class="hljs-symbol">headers:</span> headers
  15150. p JSON.parse(result)
  15151. </code></pre>
  15152. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15153. headers = {
  15154. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15155. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15156. }
  15157. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15158. <span class="hljs-built_in">print</span>(r.json())
  15159. </code></pre>
  15160. <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>);
  15161. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15162. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15163. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15164. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15165. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15166. String inputLine;
  15167. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15168. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15169. response.append(inputLine);
  15170. }
  15171. in.close();
  15172. System.out.println(response.toString());
  15173. </code></pre>
  15174. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15175. <span class="hljs-keyword">import</span> (
  15176. <span class="hljs-string">&quot;bytes&quot;</span>
  15177. <span class="hljs-string">&quot;net/http&quot;</span>
  15178. )
  15179. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15180. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15181. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15182. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15183. }
  15184. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15185. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15186. req.Header = headers
  15187. client := &amp;http.Client{}
  15188. resp, err := client.Do(req)
  15189. <span class="hljs-comment">// ...</span>
  15190. }
  15191. </code></pre>
  15192. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15193. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15194. );
  15195. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15196. <span class="hljs-comment">// Define array of request body.</span>
  15197. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15198. <span class="hljs-keyword">try</span> {
  15199. <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>(
  15200. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15201. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15202. )
  15203. );
  15204. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15205. }
  15206. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15207. <span class="hljs-comment">// handle exception or api errors.</span>
  15208. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15209. }
  15210. <span class="hljs-comment">// ...</span>
  15211. </code></pre>
  15212. <p><code>DELETE /api/users/{user}</code></p>
  15213. <p><em>Delete a user</em></p>
  15214. <p>Only the admin user (the first user) can call the REST API.</p>
  15215. <h3 id="delete_user-parameters">Parameters</h3>
  15216. <table>
  15217. <thead>
  15218. <tr>
  15219. <th>Name</th>
  15220. <th>In</th>
  15221. <th>Type</th>
  15222. <th>Required</th>
  15223. <th>Description</th>
  15224. </tr>
  15225. </thead>
  15226. <tbody>
  15227. <tr>
  15228. <td>user</td>
  15229. <td>path</td>
  15230. <td>string</td>
  15231. <td>true</td>
  15232. <td>the ID of the user to delete</td>
  15233. </tr>
  15234. </tbody>
  15235. </table>
  15236. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15237. <p><strong>user</strong>: the ID of the user to delete</p>
  15238. <blockquote>
  15239. <p>Example responses</p>
  15240. </blockquote>
  15241. <blockquote>
  15242. <p>200 Response</p>
  15243. </blockquote>
  15244. <pre class="highlight tab tab-json"><code>{
  15245. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15246. }
  15247. </code></pre>
  15248. <h3 id="delete_user-responses">Responses</h3>
  15249. <table>
  15250. <thead>
  15251. <tr>
  15252. <th>Status</th>
  15253. <th>Meaning</th>
  15254. <th>Description</th>
  15255. <th>Schema</th>
  15256. </tr>
  15257. </thead>
  15258. <tbody>
  15259. <tr>
  15260. <td>200</td>
  15261. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15262. <td>200 response</td>
  15263. <td>Inline</td>
  15264. </tr>
  15265. </tbody>
  15266. </table>
  15267. <h3 id="delete_user-responseschema">Response Schema</h3>
  15268. <p>Status Code <strong>200</strong></p>
  15269. <table>
  15270. <thead>
  15271. <tr>
  15272. <th>Name</th>
  15273. <th>Type</th>
  15274. <th>Required</th>
  15275. <th>Restrictions</th>
  15276. <th>Description</th>
  15277. </tr>
  15278. </thead>
  15279. <tbody>
  15280. <tr>
  15281. <td>» _id</td>
  15282. <td>string</td>
  15283. <td>false</td>
  15284. <td>none</td>
  15285. <td>none</td>
  15286. </tr>
  15287. </tbody>
  15288. </table>
  15289. <aside class="warning">
  15290. To perform this operation, you must be authenticated by means of one of the following methods:
  15291. UserSecurity
  15292. </aside>
  15293. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15294. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15295. <p><a id="opIdget_all_swimlanes"></a></p>
  15296. <blockquote>
  15297. <p>Code samples</p>
  15298. </blockquote>
  15299. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15300. curl -X GET /api/boards/{board}/swimlanes \
  15301. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15302. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15303. </code></pre>
  15304. <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>
  15305. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15306. </span></code></pre>
  15307. <pre class="highlight tab tab-javascript"><code>
  15308. <span class="hljs-keyword">const</span> headers = {
  15309. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15310. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15311. };
  15312. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15313. {
  15314. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15315. <span class="hljs-attr">headers</span>: headers
  15316. })
  15317. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15318. <span class="hljs-keyword">return</span> res.json();
  15319. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15320. <span class="hljs-built_in">console</span>.log(body);
  15321. });
  15322. </code></pre>
  15323. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15324. <span class="hljs-keyword">const</span> headers = {
  15325. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15326. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15327. };
  15328. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15329. {
  15330. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15331. <span class="hljs-attr">headers</span>: headers
  15332. })
  15333. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15334. <span class="hljs-keyword">return</span> res.json();
  15335. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15336. <span class="hljs-built_in">console</span>.log(body);
  15337. });
  15338. </code></pre>
  15339. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15340. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15341. headers = {
  15342. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15343. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15344. }
  15345. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15346. <span class="hljs-symbol">params:</span> {
  15347. }, <span class="hljs-symbol">headers:</span> headers
  15348. p JSON.parse(result)
  15349. </code></pre>
  15350. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15351. headers = {
  15352. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15353. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15354. }
  15355. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15356. <span class="hljs-built_in">print</span>(r.json())
  15357. </code></pre>
  15358. <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>);
  15359. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15360. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15361. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15362. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15363. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15364. String inputLine;
  15365. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15366. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15367. response.append(inputLine);
  15368. }
  15369. in.close();
  15370. System.out.println(response.toString());
  15371. </code></pre>
  15372. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15373. <span class="hljs-keyword">import</span> (
  15374. <span class="hljs-string">&quot;bytes&quot;</span>
  15375. <span class="hljs-string">&quot;net/http&quot;</span>
  15376. )
  15377. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15378. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15379. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15380. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15381. }
  15382. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15383. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15384. req.Header = headers
  15385. client := &amp;http.Client{}
  15386. resp, err := client.Do(req)
  15387. <span class="hljs-comment">// ...</span>
  15388. }
  15389. </code></pre>
  15390. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15391. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15392. );
  15393. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15394. <span class="hljs-comment">// Define array of request body.</span>
  15395. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15396. <span class="hljs-keyword">try</span> {
  15397. <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>(
  15398. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15399. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15400. )
  15401. );
  15402. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15403. }
  15404. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15405. <span class="hljs-comment">// handle exception or api errors.</span>
  15406. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15407. }
  15408. <span class="hljs-comment">// ...</span>
  15409. </code></pre>
  15410. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15411. <p><em>Get the list of swimlanes attached to a board</em></p>
  15412. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15413. <table>
  15414. <thead>
  15415. <tr>
  15416. <th>Name</th>
  15417. <th>In</th>
  15418. <th>Type</th>
  15419. <th>Required</th>
  15420. <th>Description</th>
  15421. </tr>
  15422. </thead>
  15423. <tbody>
  15424. <tr>
  15425. <td>board</td>
  15426. <td>path</td>
  15427. <td>string</td>
  15428. <td>true</td>
  15429. <td>the ID of the board</td>
  15430. </tr>
  15431. </tbody>
  15432. </table>
  15433. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15434. <p><strong>board</strong>: the ID of the board</p>
  15435. <blockquote>
  15436. <p>Example responses</p>
  15437. </blockquote>
  15438. <blockquote>
  15439. <p>200 Response</p>
  15440. </blockquote>
  15441. <pre class="highlight tab tab-json"><code>[
  15442. {
  15443. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15444. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15445. }
  15446. ]
  15447. </code></pre>
  15448. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15449. <table>
  15450. <thead>
  15451. <tr>
  15452. <th>Status</th>
  15453. <th>Meaning</th>
  15454. <th>Description</th>
  15455. <th>Schema</th>
  15456. </tr>
  15457. </thead>
  15458. <tbody>
  15459. <tr>
  15460. <td>200</td>
  15461. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15462. <td>200 response</td>
  15463. <td>Inline</td>
  15464. </tr>
  15465. </tbody>
  15466. </table>
  15467. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15468. <p>Status Code <strong>200</strong></p>
  15469. <table>
  15470. <thead>
  15471. <tr>
  15472. <th>Name</th>
  15473. <th>Type</th>
  15474. <th>Required</th>
  15475. <th>Restrictions</th>
  15476. <th>Description</th>
  15477. </tr>
  15478. </thead>
  15479. <tbody>
  15480. <tr>
  15481. <td>» _id</td>
  15482. <td>string</td>
  15483. <td>false</td>
  15484. <td>none</td>
  15485. <td>none</td>
  15486. </tr>
  15487. <tr>
  15488. <td>» title</td>
  15489. <td>string</td>
  15490. <td>false</td>
  15491. <td>none</td>
  15492. <td>none</td>
  15493. </tr>
  15494. </tbody>
  15495. </table>
  15496. <aside class="warning">
  15497. To perform this operation, you must be authenticated by means of one of the following methods:
  15498. UserSecurity
  15499. </aside>
  15500. <h2 id="new_swimlane">new_swimlane</h2>
  15501. <p><a id="opIdnew_swimlane"></a></p>
  15502. <blockquote>
  15503. <p>Code samples</p>
  15504. </blockquote>
  15505. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15506. curl -X POST /api/boards/{board}/swimlanes \
  15507. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15508. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15509. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15510. </code></pre>
  15511. <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>
  15512. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15513. Accept: application/json
  15514. </span></code></pre>
  15515. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15516. &quot;title&quot;: &quot;string&quot;
  15517. }&#x27;</span>;
  15518. <span class="hljs-keyword">const</span> headers = {
  15519. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15520. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15521. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15522. };
  15523. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15524. {
  15525. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15526. <span class="hljs-attr">body</span>: inputBody,
  15527. <span class="hljs-attr">headers</span>: headers
  15528. })
  15529. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15530. <span class="hljs-keyword">return</span> res.json();
  15531. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15532. <span class="hljs-built_in">console</span>.log(body);
  15533. });
  15534. </code></pre>
  15535. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15536. <span class="hljs-keyword">const</span> inputBody = {
  15537. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15538. };
  15539. <span class="hljs-keyword">const</span> headers = {
  15540. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15541. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15542. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15543. };
  15544. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15545. {
  15546. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15547. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15548. <span class="hljs-attr">headers</span>: headers
  15549. })
  15550. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15551. <span class="hljs-keyword">return</span> res.json();
  15552. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15553. <span class="hljs-built_in">console</span>.log(body);
  15554. });
  15555. </code></pre>
  15556. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15557. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15558. headers = {
  15559. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15560. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15561. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15562. }
  15563. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15564. <span class="hljs-symbol">params:</span> {
  15565. }, <span class="hljs-symbol">headers:</span> headers
  15566. p JSON.parse(result)
  15567. </code></pre>
  15568. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15569. headers = {
  15570. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15571. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15572. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15573. }
  15574. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15575. <span class="hljs-built_in">print</span>(r.json())
  15576. </code></pre>
  15577. <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>);
  15578. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15579. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15580. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15581. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15582. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15583. String inputLine;
  15584. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15585. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15586. response.append(inputLine);
  15587. }
  15588. in.close();
  15589. System.out.println(response.toString());
  15590. </code></pre>
  15591. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15592. <span class="hljs-keyword">import</span> (
  15593. <span class="hljs-string">&quot;bytes&quot;</span>
  15594. <span class="hljs-string">&quot;net/http&quot;</span>
  15595. )
  15596. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15597. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15598. <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>},
  15599. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15600. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15601. }
  15602. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15603. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15604. req.Header = headers
  15605. client := &amp;http.Client{}
  15606. resp, err := client.Do(req)
  15607. <span class="hljs-comment">// ...</span>
  15608. }
  15609. </code></pre>
  15610. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15611. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15612. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15613. );
  15614. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15615. <span class="hljs-comment">// Define array of request body.</span>
  15616. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15617. <span class="hljs-keyword">try</span> {
  15618. <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>(
  15619. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15620. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15621. )
  15622. );
  15623. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15624. }
  15625. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15626. <span class="hljs-comment">// handle exception or api errors.</span>
  15627. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15628. }
  15629. <span class="hljs-comment">// ...</span>
  15630. </code></pre>
  15631. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  15632. <p><em>Add a swimlane to a board</em></p>
  15633. <blockquote>
  15634. <p>Body parameter</p>
  15635. </blockquote>
  15636. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15637. </code></pre>
  15638. <h3 id="new_swimlane-parameters">Parameters</h3>
  15639. <table>
  15640. <thead>
  15641. <tr>
  15642. <th>Name</th>
  15643. <th>In</th>
  15644. <th>Type</th>
  15645. <th>Required</th>
  15646. <th>Description</th>
  15647. </tr>
  15648. </thead>
  15649. <tbody>
  15650. <tr>
  15651. <td>board</td>
  15652. <td>path</td>
  15653. <td>string</td>
  15654. <td>true</td>
  15655. <td>the ID of the board</td>
  15656. </tr>
  15657. <tr>
  15658. <td>body</td>
  15659. <td>body</td>
  15660. <td>object</td>
  15661. <td>true</td>
  15662. <td>none</td>
  15663. </tr>
  15664. <tr>
  15665. <td>» title</td>
  15666. <td>body</td>
  15667. <td>string</td>
  15668. <td>true</td>
  15669. <td>the new title of the swimlane</td>
  15670. </tr>
  15671. </tbody>
  15672. </table>
  15673. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15674. <p><strong>board</strong>: the ID of the board</p>
  15675. <blockquote>
  15676. <p>Example responses</p>
  15677. </blockquote>
  15678. <blockquote>
  15679. <p>200 Response</p>
  15680. </blockquote>
  15681. <pre class="highlight tab tab-json"><code>{
  15682. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15683. }
  15684. </code></pre>
  15685. <h3 id="new_swimlane-responses">Responses</h3>
  15686. <table>
  15687. <thead>
  15688. <tr>
  15689. <th>Status</th>
  15690. <th>Meaning</th>
  15691. <th>Description</th>
  15692. <th>Schema</th>
  15693. </tr>
  15694. </thead>
  15695. <tbody>
  15696. <tr>
  15697. <td>200</td>
  15698. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15699. <td>200 response</td>
  15700. <td>Inline</td>
  15701. </tr>
  15702. </tbody>
  15703. </table>
  15704. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15705. <p>Status Code <strong>200</strong></p>
  15706. <table>
  15707. <thead>
  15708. <tr>
  15709. <th>Name</th>
  15710. <th>Type</th>
  15711. <th>Required</th>
  15712. <th>Restrictions</th>
  15713. <th>Description</th>
  15714. </tr>
  15715. </thead>
  15716. <tbody>
  15717. <tr>
  15718. <td>» _id</td>
  15719. <td>string</td>
  15720. <td>false</td>
  15721. <td>none</td>
  15722. <td>none</td>
  15723. </tr>
  15724. </tbody>
  15725. </table>
  15726. <aside class="warning">
  15727. To perform this operation, you must be authenticated by means of one of the following methods:
  15728. UserSecurity
  15729. </aside>
  15730. <h2 id="get_swimlane">get_swimlane</h2>
  15731. <p><a id="opIdget_swimlane"></a></p>
  15732. <blockquote>
  15733. <p>Code samples</p>
  15734. </blockquote>
  15735. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15736. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15737. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15738. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15739. </code></pre>
  15740. <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>
  15741. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15742. </span></code></pre>
  15743. <pre class="highlight tab tab-javascript"><code>
  15744. <span class="hljs-keyword">const</span> headers = {
  15745. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15746. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15747. };
  15748. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15749. {
  15750. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15751. <span class="hljs-attr">headers</span>: headers
  15752. })
  15753. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15754. <span class="hljs-keyword">return</span> res.json();
  15755. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15756. <span class="hljs-built_in">console</span>.log(body);
  15757. });
  15758. </code></pre>
  15759. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15760. <span class="hljs-keyword">const</span> headers = {
  15761. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15762. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15763. };
  15764. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15765. {
  15766. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15767. <span class="hljs-attr">headers</span>: headers
  15768. })
  15769. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15770. <span class="hljs-keyword">return</span> res.json();
  15771. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15772. <span class="hljs-built_in">console</span>.log(body);
  15773. });
  15774. </code></pre>
  15775. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15776. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15777. headers = {
  15778. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15779. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15780. }
  15781. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15782. <span class="hljs-symbol">params:</span> {
  15783. }, <span class="hljs-symbol">headers:</span> headers
  15784. p JSON.parse(result)
  15785. </code></pre>
  15786. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15787. headers = {
  15788. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15789. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15790. }
  15791. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15792. <span class="hljs-built_in">print</span>(r.json())
  15793. </code></pre>
  15794. <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>);
  15795. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15796. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15797. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15798. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15799. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15800. String inputLine;
  15801. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15802. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15803. response.append(inputLine);
  15804. }
  15805. in.close();
  15806. System.out.println(response.toString());
  15807. </code></pre>
  15808. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15809. <span class="hljs-keyword">import</span> (
  15810. <span class="hljs-string">&quot;bytes&quot;</span>
  15811. <span class="hljs-string">&quot;net/http&quot;</span>
  15812. )
  15813. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15814. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15815. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15816. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15817. }
  15818. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15819. 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)
  15820. req.Header = headers
  15821. client := &amp;http.Client{}
  15822. resp, err := client.Do(req)
  15823. <span class="hljs-comment">// ...</span>
  15824. }
  15825. </code></pre>
  15826. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15827. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15828. );
  15829. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15830. <span class="hljs-comment">// Define array of request body.</span>
  15831. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15832. <span class="hljs-keyword">try</span> {
  15833. <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>(
  15834. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15835. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15836. )
  15837. );
  15838. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15839. }
  15840. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15841. <span class="hljs-comment">// handle exception or api errors.</span>
  15842. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15843. }
  15844. <span class="hljs-comment">// ...</span>
  15845. </code></pre>
  15846. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15847. <p><em>Get a swimlane</em></p>
  15848. <h3 id="get_swimlane-parameters">Parameters</h3>
  15849. <table>
  15850. <thead>
  15851. <tr>
  15852. <th>Name</th>
  15853. <th>In</th>
  15854. <th>Type</th>
  15855. <th>Required</th>
  15856. <th>Description</th>
  15857. </tr>
  15858. </thead>
  15859. <tbody>
  15860. <tr>
  15861. <td>board</td>
  15862. <td>path</td>
  15863. <td>string</td>
  15864. <td>true</td>
  15865. <td>the ID of the board</td>
  15866. </tr>
  15867. <tr>
  15868. <td>swimlane</td>
  15869. <td>path</td>
  15870. <td>string</td>
  15871. <td>true</td>
  15872. <td>the ID of the swimlane</td>
  15873. </tr>
  15874. </tbody>
  15875. </table>
  15876. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15877. <p><strong>board</strong>: the ID of the board</p>
  15878. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15879. <blockquote>
  15880. <p>Example responses</p>
  15881. </blockquote>
  15882. <blockquote>
  15883. <p>200 Response</p>
  15884. </blockquote>
  15885. <pre class="highlight tab tab-json"><code>{
  15886. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15887. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15888. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15889. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15890. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15891. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15892. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15893. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15894. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15895. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15896. }
  15897. </code></pre>
  15898. <h3 id="get_swimlane-responses">Responses</h3>
  15899. <table>
  15900. <thead>
  15901. <tr>
  15902. <th>Status</th>
  15903. <th>Meaning</th>
  15904. <th>Description</th>
  15905. <th>Schema</th>
  15906. </tr>
  15907. </thead>
  15908. <tbody>
  15909. <tr>
  15910. <td>200</td>
  15911. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15912. <td>200 response</td>
  15913. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15914. </tr>
  15915. </tbody>
  15916. </table>
  15917. <aside class="warning">
  15918. To perform this operation, you must be authenticated by means of one of the following methods:
  15919. UserSecurity
  15920. </aside>
  15921. <h2 id="delete_swimlane">delete_swimlane</h2>
  15922. <p><a id="opIddelete_swimlane"></a></p>
  15923. <blockquote>
  15924. <p>Code samples</p>
  15925. </blockquote>
  15926. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15927. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15928. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15929. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15930. </code></pre>
  15931. <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>
  15932. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15933. </span></code></pre>
  15934. <pre class="highlight tab tab-javascript"><code>
  15935. <span class="hljs-keyword">const</span> headers = {
  15936. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15937. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15938. };
  15939. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15940. {
  15941. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15942. <span class="hljs-attr">headers</span>: headers
  15943. })
  15944. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15945. <span class="hljs-keyword">return</span> res.json();
  15946. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15947. <span class="hljs-built_in">console</span>.log(body);
  15948. });
  15949. </code></pre>
  15950. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15951. <span class="hljs-keyword">const</span> headers = {
  15952. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15953. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15954. };
  15955. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15956. {
  15957. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15958. <span class="hljs-attr">headers</span>: headers
  15959. })
  15960. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15961. <span class="hljs-keyword">return</span> res.json();
  15962. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15963. <span class="hljs-built_in">console</span>.log(body);
  15964. });
  15965. </code></pre>
  15966. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15967. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15968. headers = {
  15969. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15970. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15971. }
  15972. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15973. <span class="hljs-symbol">params:</span> {
  15974. }, <span class="hljs-symbol">headers:</span> headers
  15975. p JSON.parse(result)
  15976. </code></pre>
  15977. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15978. headers = {
  15979. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15980. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15981. }
  15982. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15983. <span class="hljs-built_in">print</span>(r.json())
  15984. </code></pre>
  15985. <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>);
  15986. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15987. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15988. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15989. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15990. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15991. String inputLine;
  15992. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15993. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15994. response.append(inputLine);
  15995. }
  15996. in.close();
  15997. System.out.println(response.toString());
  15998. </code></pre>
  15999. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16000. <span class="hljs-keyword">import</span> (
  16001. <span class="hljs-string">&quot;bytes&quot;</span>
  16002. <span class="hljs-string">&quot;net/http&quot;</span>
  16003. )
  16004. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16005. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16006. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16007. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16008. }
  16009. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16010. 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)
  16011. req.Header = headers
  16012. client := &amp;http.Client{}
  16013. resp, err := client.Do(req)
  16014. <span class="hljs-comment">// ...</span>
  16015. }
  16016. </code></pre>
  16017. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16018. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16019. );
  16020. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16021. <span class="hljs-comment">// Define array of request body.</span>
  16022. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16023. <span class="hljs-keyword">try</span> {
  16024. <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>(
  16025. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16026. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16027. )
  16028. );
  16029. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16030. }
  16031. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16032. <span class="hljs-comment">// handle exception or api errors.</span>
  16033. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16034. }
  16035. <span class="hljs-comment">// ...</span>
  16036. </code></pre>
  16037. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16038. <p><em>Delete a swimlane</em></p>
  16039. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16040. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16041. <table>
  16042. <thead>
  16043. <tr>
  16044. <th>Name</th>
  16045. <th>In</th>
  16046. <th>Type</th>
  16047. <th>Required</th>
  16048. <th>Description</th>
  16049. </tr>
  16050. </thead>
  16051. <tbody>
  16052. <tr>
  16053. <td>board</td>
  16054. <td>path</td>
  16055. <td>string</td>
  16056. <td>true</td>
  16057. <td>the ID of the board</td>
  16058. </tr>
  16059. <tr>
  16060. <td>swimlane</td>
  16061. <td>path</td>
  16062. <td>string</td>
  16063. <td>true</td>
  16064. <td>the ID of the swimlane</td>
  16065. </tr>
  16066. </tbody>
  16067. </table>
  16068. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16069. <p><strong>board</strong>: the ID of the board</p>
  16070. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16071. <blockquote>
  16072. <p>Example responses</p>
  16073. </blockquote>
  16074. <blockquote>
  16075. <p>200 Response</p>
  16076. </blockquote>
  16077. <pre class="highlight tab tab-json"><code>{
  16078. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16079. }
  16080. </code></pre>
  16081. <h3 id="delete_swimlane-responses">Responses</h3>
  16082. <table>
  16083. <thead>
  16084. <tr>
  16085. <th>Status</th>
  16086. <th>Meaning</th>
  16087. <th>Description</th>
  16088. <th>Schema</th>
  16089. </tr>
  16090. </thead>
  16091. <tbody>
  16092. <tr>
  16093. <td>200</td>
  16094. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16095. <td>200 response</td>
  16096. <td>Inline</td>
  16097. </tr>
  16098. </tbody>
  16099. </table>
  16100. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16101. <p>Status Code <strong>200</strong></p>
  16102. <table>
  16103. <thead>
  16104. <tr>
  16105. <th>Name</th>
  16106. <th>Type</th>
  16107. <th>Required</th>
  16108. <th>Restrictions</th>
  16109. <th>Description</th>
  16110. </tr>
  16111. </thead>
  16112. <tbody>
  16113. <tr>
  16114. <td>» _id</td>
  16115. <td>string</td>
  16116. <td>false</td>
  16117. <td>none</td>
  16118. <td>none</td>
  16119. </tr>
  16120. </tbody>
  16121. </table>
  16122. <aside class="warning">
  16123. To perform this operation, you must be authenticated by means of one of the following methods:
  16124. UserSecurity
  16125. </aside>
  16126. <h1 id="schemas">Schemas</h1>
  16127. <h2 id="tocs_boards">Boards</h2>
  16128. <p><a id="schemaboards"></a>
  16129. <a id="schema_Boards"></a>
  16130. <a id="tocSboards"></a>
  16131. <a id="tocsboards"></a></p>
  16132. <pre class="highlight tab tab-json"><code>{
  16133. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16134. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16135. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16136. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16137. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16138. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16139. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16140. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16141. {
  16142. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16143. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16144. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16145. }
  16146. ],
  16147. <span class="hljs-attr">&quot;members&quot;</span>: [
  16148. {
  16149. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16150. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16151. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16152. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16153. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16154. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16155. }
  16156. ],
  16157. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16158. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16159. {
  16160. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16161. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16162. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16163. }
  16164. ],
  16165. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16166. {
  16167. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16168. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16169. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16170. }
  16171. ],
  16172. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16173. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16174. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16175. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16176. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16177. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16178. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16179. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16180. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16181. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16182. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16183. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16184. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16185. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16186. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16187. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16188. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16189. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16190. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16191. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16192. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16193. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16194. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16195. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16196. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16197. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16198. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16199. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16200. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16201. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16202. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16203. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16204. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16205. }
  16206. </code></pre>
  16207. <p>This is a Board.</p>
  16208. <h3 id="properties">Properties</h3>
  16209. <table>
  16210. <thead>
  16211. <tr>
  16212. <th>Name</th>
  16213. <th>Type</th>
  16214. <th>Required</th>
  16215. <th>Restrictions</th>
  16216. <th>Description</th>
  16217. </tr>
  16218. </thead>
  16219. <tbody>
  16220. <tr>
  16221. <td>title</td>
  16222. <td>string</td>
  16223. <td>true</td>
  16224. <td>none</td>
  16225. <td>The title of the board</td>
  16226. </tr>
  16227. <tr>
  16228. <td>slug</td>
  16229. <td>string</td>
  16230. <td>true</td>
  16231. <td>none</td>
  16232. <td>The title slugified.</td>
  16233. </tr>
  16234. <tr>
  16235. <td>archived</td>
  16236. <td>boolean</td>
  16237. <td>true</td>
  16238. <td>none</td>
  16239. <td>Is the board archived?</td>
  16240. </tr>
  16241. <tr>
  16242. <td>archivedAt</td>
  16243. <td>string¦null</td>
  16244. <td>false</td>
  16245. <td>none</td>
  16246. <td>Latest archiving time of the board</td>
  16247. </tr>
  16248. <tr>
  16249. <td>createdAt</td>
  16250. <td>string</td>
  16251. <td>true</td>
  16252. <td>none</td>
  16253. <td>Creation time of the board</td>
  16254. </tr>
  16255. <tr>
  16256. <td>modifiedAt</td>
  16257. <td>string¦null</td>
  16258. <td>false</td>
  16259. <td>none</td>
  16260. <td>Last modification time of the board</td>
  16261. </tr>
  16262. <tr>
  16263. <td>stars</td>
  16264. <td>number</td>
  16265. <td>true</td>
  16266. <td>none</td>
  16267. <td>How many stars the board has</td>
  16268. </tr>
  16269. <tr>
  16270. <td>labels</td>
  16271. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16272. <td>false</td>
  16273. <td>none</td>
  16274. <td>List of labels attached to a board</td>
  16275. </tr>
  16276. <tr>
  16277. <td>members</td>
  16278. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16279. <td>true</td>
  16280. <td>none</td>
  16281. <td>List of members of a board</td>
  16282. </tr>
  16283. <tr>
  16284. <td>permission</td>
  16285. <td>string</td>
  16286. <td>true</td>
  16287. <td>none</td>
  16288. <td>visibility of the board</td>
  16289. </tr>
  16290. <tr>
  16291. <td>orgs</td>
  16292. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16293. <td>false</td>
  16294. <td>none</td>
  16295. <td>the list of organizations that a board belongs to</td>
  16296. </tr>
  16297. <tr>
  16298. <td>teams</td>
  16299. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16300. <td>false</td>
  16301. <td>none</td>
  16302. <td>the list of teams that a board belongs to</td>
  16303. </tr>
  16304. <tr>
  16305. <td>color</td>
  16306. <td>string</td>
  16307. <td>true</td>
  16308. <td>none</td>
  16309. <td>The color of the board.</td>
  16310. </tr>
  16311. <tr>
  16312. <td>description</td>
  16313. <td>string¦null</td>
  16314. <td>false</td>
  16315. <td>none</td>
  16316. <td>The description of the board</td>
  16317. </tr>
  16318. <tr>
  16319. <td>subtasksDefaultBoardId</td>
  16320. <td>string¦null</td>
  16321. <td>false</td>
  16322. <td>none</td>
  16323. <td>The default board ID assigned to subtasks.</td>
  16324. </tr>
  16325. <tr>
  16326. <td>subtasksDefaultListId</td>
  16327. <td>string¦null</td>
  16328. <td>false</td>
  16329. <td>none</td>
  16330. <td>The default List ID assigned to subtasks.</td>
  16331. </tr>
  16332. <tr>
  16333. <td>dateSettingsDefaultBoardId</td>
  16334. <td>string¦null</td>
  16335. <td>false</td>
  16336. <td>none</td>
  16337. <td>none</td>
  16338. </tr>
  16339. <tr>
  16340. <td>dateSettingsDefaultListId</td>
  16341. <td>string¦null</td>
  16342. <td>false</td>
  16343. <td>none</td>
  16344. <td>none</td>
  16345. </tr>
  16346. <tr>
  16347. <td>allowsSubtasks</td>
  16348. <td>boolean</td>
  16349. <td>true</td>
  16350. <td>none</td>
  16351. <td>Does the board allows subtasks?</td>
  16352. </tr>
  16353. <tr>
  16354. <td>allowsAttachments</td>
  16355. <td>boolean</td>
  16356. <td>true</td>
  16357. <td>none</td>
  16358. <td>Does the board allows attachments?</td>
  16359. </tr>
  16360. <tr>
  16361. <td>allowsChecklists</td>
  16362. <td>boolean</td>
  16363. <td>true</td>
  16364. <td>none</td>
  16365. <td>Does the board allows checklists?</td>
  16366. </tr>
  16367. <tr>
  16368. <td>allowsComments</td>
  16369. <td>boolean</td>
  16370. <td>true</td>
  16371. <td>none</td>
  16372. <td>Does the board allows comments?</td>
  16373. </tr>
  16374. <tr>
  16375. <td>allowsDescriptionTitle</td>
  16376. <td>boolean</td>
  16377. <td>true</td>
  16378. <td>none</td>
  16379. <td>Does the board allows description title?</td>
  16380. </tr>
  16381. <tr>
  16382. <td>allowsDescriptionText</td>
  16383. <td>boolean</td>
  16384. <td>true</td>
  16385. <td>none</td>
  16386. <td>Does the board allows description text?</td>
  16387. </tr>
  16388. <tr>
  16389. <td>allowsCardNumber</td>
  16390. <td>boolean</td>
  16391. <td>true</td>
  16392. <td>none</td>
  16393. <td>Does the board allows card numbers?</td>
  16394. </tr>
  16395. <tr>
  16396. <td>allowsActivities</td>
  16397. <td>boolean</td>
  16398. <td>true</td>
  16399. <td>none</td>
  16400. <td>Does the board allows comments?</td>
  16401. </tr>
  16402. <tr>
  16403. <td>allowsLabels</td>
  16404. <td>boolean</td>
  16405. <td>true</td>
  16406. <td>none</td>
  16407. <td>Does the board allows labels?</td>
  16408. </tr>
  16409. <tr>
  16410. <td>allowsCreator</td>
  16411. <td>boolean</td>
  16412. <td>true</td>
  16413. <td>none</td>
  16414. <td>Does the board allow creator?</td>
  16415. </tr>
  16416. <tr>
  16417. <td>allowsAssignee</td>
  16418. <td>boolean</td>
  16419. <td>true</td>
  16420. <td>none</td>
  16421. <td>Does the board allows assignee?</td>
  16422. </tr>
  16423. <tr>
  16424. <td>allowsMembers</td>
  16425. <td>boolean</td>
  16426. <td>true</td>
  16427. <td>none</td>
  16428. <td>Does the board allows members?</td>
  16429. </tr>
  16430. <tr>
  16431. <td>allowsRequestedBy</td>
  16432. <td>boolean</td>
  16433. <td>true</td>
  16434. <td>none</td>
  16435. <td>Does the board allows requested by?</td>
  16436. </tr>
  16437. <tr>
  16438. <td>allowsCardSortingByNumber</td>
  16439. <td>boolean</td>
  16440. <td>true</td>
  16441. <td>none</td>
  16442. <td>Does the board allows card sorting by number?</td>
  16443. </tr>
  16444. <tr>
  16445. <td>allowsAssignedBy</td>
  16446. <td>boolean</td>
  16447. <td>true</td>
  16448. <td>none</td>
  16449. <td>Does the board allows requested by?</td>
  16450. </tr>
  16451. <tr>
  16452. <td>allowsReceivedDate</td>
  16453. <td>boolean</td>
  16454. <td>true</td>
  16455. <td>none</td>
  16456. <td>Does the board allows received date?</td>
  16457. </tr>
  16458. <tr>
  16459. <td>allowsStartDate</td>
  16460. <td>boolean</td>
  16461. <td>true</td>
  16462. <td>none</td>
  16463. <td>Does the board allows start date?</td>
  16464. </tr>
  16465. <tr>
  16466. <td>allowsEndDate</td>
  16467. <td>boolean</td>
  16468. <td>true</td>
  16469. <td>none</td>
  16470. <td>Does the board allows end date?</td>
  16471. </tr>
  16472. <tr>
  16473. <td>allowsDueDate</td>
  16474. <td>boolean</td>
  16475. <td>true</td>
  16476. <td>none</td>
  16477. <td>Does the board allows due date?</td>
  16478. </tr>
  16479. <tr>
  16480. <td>presentParentTask</td>
  16481. <td>string¦null</td>
  16482. <td>false</td>
  16483. <td>none</td>
  16484. <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>
  16485. </tr>
  16486. <tr>
  16487. <td>startAt</td>
  16488. <td>string¦null</td>
  16489. <td>false</td>
  16490. <td>none</td>
  16491. <td>Starting date of the board.</td>
  16492. </tr>
  16493. <tr>
  16494. <td>dueAt</td>
  16495. <td>string¦null</td>
  16496. <td>false</td>
  16497. <td>none</td>
  16498. <td>Due date of the board.</td>
  16499. </tr>
  16500. <tr>
  16501. <td>endAt</td>
  16502. <td>string¦null</td>
  16503. <td>false</td>
  16504. <td>none</td>
  16505. <td>End date of the board.</td>
  16506. </tr>
  16507. <tr>
  16508. <td>spentTime</td>
  16509. <td>number¦null</td>
  16510. <td>false</td>
  16511. <td>none</td>
  16512. <td>Time spent in the board.</td>
  16513. </tr>
  16514. <tr>
  16515. <td>isOvertime</td>
  16516. <td>boolean¦null</td>
  16517. <td>false</td>
  16518. <td>none</td>
  16519. <td>Is the board overtimed?</td>
  16520. </tr>
  16521. <tr>
  16522. <td>type</td>
  16523. <td>string</td>
  16524. <td>true</td>
  16525. <td>none</td>
  16526. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16527. </tr>
  16528. <tr>
  16529. <td>sort</td>
  16530. <td>number</td>
  16531. <td>true</td>
  16532. <td>none</td>
  16533. <td>Sort value</td>
  16534. </tr>
  16535. </tbody>
  16536. </table>
  16537. <h4 id="enumerated-values">Enumerated Values</h4>
  16538. <table>
  16539. <thead>
  16540. <tr>
  16541. <th>Property</th>
  16542. <th>Value</th>
  16543. </tr>
  16544. </thead>
  16545. <tbody>
  16546. <tr>
  16547. <td>permission</td>
  16548. <td>public</td>
  16549. </tr>
  16550. <tr>
  16551. <td>permission</td>
  16552. <td>private</td>
  16553. </tr>
  16554. <tr>
  16555. <td>color</td>
  16556. <td>belize</td>
  16557. </tr>
  16558. <tr>
  16559. <td>color</td>
  16560. <td>nephritis</td>
  16561. </tr>
  16562. <tr>
  16563. <td>color</td>
  16564. <td>pomegranate</td>
  16565. </tr>
  16566. <tr>
  16567. <td>color</td>
  16568. <td>pumpkin</td>
  16569. </tr>
  16570. <tr>
  16571. <td>color</td>
  16572. <td>wisteria</td>
  16573. </tr>
  16574. <tr>
  16575. <td>color</td>
  16576. <td>moderatepink</td>
  16577. </tr>
  16578. <tr>
  16579. <td>color</td>
  16580. <td>strongcyan</td>
  16581. </tr>
  16582. <tr>
  16583. <td>color</td>
  16584. <td>limegreen</td>
  16585. </tr>
  16586. <tr>
  16587. <td>color</td>
  16588. <td>midnight</td>
  16589. </tr>
  16590. <tr>
  16591. <td>color</td>
  16592. <td>dark</td>
  16593. </tr>
  16594. <tr>
  16595. <td>color</td>
  16596. <td>relax</td>
  16597. </tr>
  16598. <tr>
  16599. <td>color</td>
  16600. <td>corteza</td>
  16601. </tr>
  16602. <tr>
  16603. <td>color</td>
  16604. <td>clearblue</td>
  16605. </tr>
  16606. <tr>
  16607. <td>color</td>
  16608. <td>natural</td>
  16609. </tr>
  16610. <tr>
  16611. <td>color</td>
  16612. <td>modern</td>
  16613. </tr>
  16614. <tr>
  16615. <td>color</td>
  16616. <td>moderndark</td>
  16617. </tr>
  16618. <tr>
  16619. <td>presentParentTask</td>
  16620. <td>prefix-with-full-path</td>
  16621. </tr>
  16622. <tr>
  16623. <td>presentParentTask</td>
  16624. <td>prefix-with-parent</td>
  16625. </tr>
  16626. <tr>
  16627. <td>presentParentTask</td>
  16628. <td>subtext-with-full-path</td>
  16629. </tr>
  16630. <tr>
  16631. <td>presentParentTask</td>
  16632. <td>subtext-with-parent</td>
  16633. </tr>
  16634. <tr>
  16635. <td>presentParentTask</td>
  16636. <td>no-parent</td>
  16637. </tr>
  16638. <tr>
  16639. <td>type</td>
  16640. <td>board</td>
  16641. </tr>
  16642. <tr>
  16643. <td>type</td>
  16644. <td>template-board</td>
  16645. </tr>
  16646. <tr>
  16647. <td>type</td>
  16648. <td>template-container</td>
  16649. </tr>
  16650. </tbody>
  16651. </table>
  16652. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16653. <p><a id="schemaboardslabels"></a>
  16654. <a id="schema_BoardsLabels"></a>
  16655. <a id="tocSboardslabels"></a>
  16656. <a id="tocsboardslabels"></a></p>
  16657. <pre class="highlight tab tab-json"><code>{
  16658. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16659. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16660. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16661. }
  16662. </code></pre>
  16663. <h3 id="properties-2">Properties</h3>
  16664. <table>
  16665. <thead>
  16666. <tr>
  16667. <th>Name</th>
  16668. <th>Type</th>
  16669. <th>Required</th>
  16670. <th>Restrictions</th>
  16671. <th>Description</th>
  16672. </tr>
  16673. </thead>
  16674. <tbody>
  16675. <tr>
  16676. <td>_id</td>
  16677. <td>string</td>
  16678. <td>true</td>
  16679. <td>none</td>
  16680. <td>Unique id of a label</td>
  16681. </tr>
  16682. <tr>
  16683. <td>name</td>
  16684. <td>string</td>
  16685. <td>false</td>
  16686. <td>none</td>
  16687. <td>Name of a label</td>
  16688. </tr>
  16689. <tr>
  16690. <td>color</td>
  16691. <td>string</td>
  16692. <td>true</td>
  16693. <td>none</td>
  16694. <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>
  16695. </tr>
  16696. </tbody>
  16697. </table>
  16698. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16699. <table>
  16700. <thead>
  16701. <tr>
  16702. <th>Property</th>
  16703. <th>Value</th>
  16704. </tr>
  16705. </thead>
  16706. <tbody>
  16707. <tr>
  16708. <td>color</td>
  16709. <td>white</td>
  16710. </tr>
  16711. <tr>
  16712. <td>color</td>
  16713. <td>green</td>
  16714. </tr>
  16715. <tr>
  16716. <td>color</td>
  16717. <td>yellow</td>
  16718. </tr>
  16719. <tr>
  16720. <td>color</td>
  16721. <td>orange</td>
  16722. </tr>
  16723. <tr>
  16724. <td>color</td>
  16725. <td>red</td>
  16726. </tr>
  16727. <tr>
  16728. <td>color</td>
  16729. <td>purple</td>
  16730. </tr>
  16731. <tr>
  16732. <td>color</td>
  16733. <td>blue</td>
  16734. </tr>
  16735. <tr>
  16736. <td>color</td>
  16737. <td>sky</td>
  16738. </tr>
  16739. <tr>
  16740. <td>color</td>
  16741. <td>lime</td>
  16742. </tr>
  16743. <tr>
  16744. <td>color</td>
  16745. <td>pink</td>
  16746. </tr>
  16747. <tr>
  16748. <td>color</td>
  16749. <td>black</td>
  16750. </tr>
  16751. <tr>
  16752. <td>color</td>
  16753. <td>silver</td>
  16754. </tr>
  16755. <tr>
  16756. <td>color</td>
  16757. <td>peachpuff</td>
  16758. </tr>
  16759. <tr>
  16760. <td>color</td>
  16761. <td>crimson</td>
  16762. </tr>
  16763. <tr>
  16764. <td>color</td>
  16765. <td>plum</td>
  16766. </tr>
  16767. <tr>
  16768. <td>color</td>
  16769. <td>darkgreen</td>
  16770. </tr>
  16771. <tr>
  16772. <td>color</td>
  16773. <td>slateblue</td>
  16774. </tr>
  16775. <tr>
  16776. <td>color</td>
  16777. <td>magenta</td>
  16778. </tr>
  16779. <tr>
  16780. <td>color</td>
  16781. <td>gold</td>
  16782. </tr>
  16783. <tr>
  16784. <td>color</td>
  16785. <td>navy</td>
  16786. </tr>
  16787. <tr>
  16788. <td>color</td>
  16789. <td>gray</td>
  16790. </tr>
  16791. <tr>
  16792. <td>color</td>
  16793. <td>saddlebrown</td>
  16794. </tr>
  16795. <tr>
  16796. <td>color</td>
  16797. <td>paleturquoise</td>
  16798. </tr>
  16799. <tr>
  16800. <td>color</td>
  16801. <td>mistyrose</td>
  16802. </tr>
  16803. <tr>
  16804. <td>color</td>
  16805. <td>indigo</td>
  16806. </tr>
  16807. </tbody>
  16808. </table>
  16809. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16810. <p><a id="schemaboardsmembers"></a>
  16811. <a id="schema_BoardsMembers"></a>
  16812. <a id="tocSboardsmembers"></a>
  16813. <a id="tocsboardsmembers"></a></p>
  16814. <pre class="highlight tab tab-json"><code>{
  16815. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16816. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16817. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16818. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16819. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16820. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16821. }
  16822. </code></pre>
  16823. <h3 id="properties-3">Properties</h3>
  16824. <table>
  16825. <thead>
  16826. <tr>
  16827. <th>Name</th>
  16828. <th>Type</th>
  16829. <th>Required</th>
  16830. <th>Restrictions</th>
  16831. <th>Description</th>
  16832. </tr>
  16833. </thead>
  16834. <tbody>
  16835. <tr>
  16836. <td>userId</td>
  16837. <td>string</td>
  16838. <td>true</td>
  16839. <td>none</td>
  16840. <td>The uniq ID of the member</td>
  16841. </tr>
  16842. <tr>
  16843. <td>isAdmin</td>
  16844. <td>boolean</td>
  16845. <td>true</td>
  16846. <td>none</td>
  16847. <td>Is the member an admin of the board?</td>
  16848. </tr>
  16849. <tr>
  16850. <td>isActive</td>
  16851. <td>boolean</td>
  16852. <td>true</td>
  16853. <td>none</td>
  16854. <td>Is the member active?</td>
  16855. </tr>
  16856. <tr>
  16857. <td>isNoComments</td>
  16858. <td>boolean</td>
  16859. <td>false</td>
  16860. <td>none</td>
  16861. <td>Is the member not allowed to make comments</td>
  16862. </tr>
  16863. <tr>
  16864. <td>isCommentOnly</td>
  16865. <td>boolean</td>
  16866. <td>false</td>
  16867. <td>none</td>
  16868. <td>Is the member only allowed to comment on the board</td>
  16869. </tr>
  16870. <tr>
  16871. <td>isWorker</td>
  16872. <td>boolean</td>
  16873. <td>false</td>
  16874. <td>none</td>
  16875. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16876. </tr>
  16877. </tbody>
  16878. </table>
  16879. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16880. <p><a id="schemaboardsorgs"></a>
  16881. <a id="schema_BoardsOrgs"></a>
  16882. <a id="tocSboardsorgs"></a>
  16883. <a id="tocsboardsorgs"></a></p>
  16884. <pre class="highlight tab tab-json"><code>{
  16885. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16886. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16887. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16888. }
  16889. </code></pre>
  16890. <h3 id="properties-4">Properties</h3>
  16891. <table>
  16892. <thead>
  16893. <tr>
  16894. <th>Name</th>
  16895. <th>Type</th>
  16896. <th>Required</th>
  16897. <th>Restrictions</th>
  16898. <th>Description</th>
  16899. </tr>
  16900. </thead>
  16901. <tbody>
  16902. <tr>
  16903. <td>orgId</td>
  16904. <td>string</td>
  16905. <td>true</td>
  16906. <td>none</td>
  16907. <td>The uniq ID of the organization</td>
  16908. </tr>
  16909. <tr>
  16910. <td>orgDisplayName</td>
  16911. <td>string</td>
  16912. <td>true</td>
  16913. <td>none</td>
  16914. <td>The display name of the organization</td>
  16915. </tr>
  16916. <tr>
  16917. <td>isActive</td>
  16918. <td>boolean</td>
  16919. <td>true</td>
  16920. <td>none</td>
  16921. <td>Is the organization active?</td>
  16922. </tr>
  16923. </tbody>
  16924. </table>
  16925. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16926. <p><a id="schemaboardsteams"></a>
  16927. <a id="schema_BoardsTeams"></a>
  16928. <a id="tocSboardsteams"></a>
  16929. <a id="tocsboardsteams"></a></p>
  16930. <pre class="highlight tab tab-json"><code>{
  16931. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16932. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16933. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16934. }
  16935. </code></pre>
  16936. <h3 id="properties-5">Properties</h3>
  16937. <table>
  16938. <thead>
  16939. <tr>
  16940. <th>Name</th>
  16941. <th>Type</th>
  16942. <th>Required</th>
  16943. <th>Restrictions</th>
  16944. <th>Description</th>
  16945. </tr>
  16946. </thead>
  16947. <tbody>
  16948. <tr>
  16949. <td>teamId</td>
  16950. <td>string</td>
  16951. <td>true</td>
  16952. <td>none</td>
  16953. <td>The uniq ID of the team</td>
  16954. </tr>
  16955. <tr>
  16956. <td>teamDisplayName</td>
  16957. <td>string</td>
  16958. <td>true</td>
  16959. <td>none</td>
  16960. <td>The display name of the team</td>
  16961. </tr>
  16962. <tr>
  16963. <td>isActive</td>
  16964. <td>boolean</td>
  16965. <td>true</td>
  16966. <td>none</td>
  16967. <td>Is the team active?</td>
  16968. </tr>
  16969. </tbody>
  16970. </table>
  16971. <h2 id="tocs_cardcomments">CardComments</h2>
  16972. <p><a id="schemacardcomments"></a>
  16973. <a id="schema_CardComments"></a>
  16974. <a id="tocScardcomments"></a>
  16975. <a id="tocscardcomments"></a></p>
  16976. <pre class="highlight tab tab-json"><code>{
  16977. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16978. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16979. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16980. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16981. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16982. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16983. }
  16984. </code></pre>
  16985. <p>A comment on a card</p>
  16986. <h3 id="properties-6">Properties</h3>
  16987. <table>
  16988. <thead>
  16989. <tr>
  16990. <th>Name</th>
  16991. <th>Type</th>
  16992. <th>Required</th>
  16993. <th>Restrictions</th>
  16994. <th>Description</th>
  16995. </tr>
  16996. </thead>
  16997. <tbody>
  16998. <tr>
  16999. <td>boardId</td>
  17000. <td>string</td>
  17001. <td>true</td>
  17002. <td>none</td>
  17003. <td>the board ID</td>
  17004. </tr>
  17005. <tr>
  17006. <td>cardId</td>
  17007. <td>string</td>
  17008. <td>true</td>
  17009. <td>none</td>
  17010. <td>the card ID</td>
  17011. </tr>
  17012. <tr>
  17013. <td>text</td>
  17014. <td>string</td>
  17015. <td>true</td>
  17016. <td>none</td>
  17017. <td>the text of the comment</td>
  17018. </tr>
  17019. <tr>
  17020. <td>createdAt</td>
  17021. <td>string</td>
  17022. <td>true</td>
  17023. <td>none</td>
  17024. <td>when was the comment created</td>
  17025. </tr>
  17026. <tr>
  17027. <td>modifiedAt</td>
  17028. <td>string</td>
  17029. <td>true</td>
  17030. <td>none</td>
  17031. <td>none</td>
  17032. </tr>
  17033. <tr>
  17034. <td>userId</td>
  17035. <td>string</td>
  17036. <td>true</td>
  17037. <td>none</td>
  17038. <td>the author ID of the comment</td>
  17039. </tr>
  17040. </tbody>
  17041. </table>
  17042. <h2 id="tocs_cards">Cards</h2>
  17043. <p><a id="schemacards"></a>
  17044. <a id="schema_Cards"></a>
  17045. <a id="tocScards"></a>
  17046. <a id="tocscards"></a></p>
  17047. <pre class="highlight tab tab-json"><code>{
  17048. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17049. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17050. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17051. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17052. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17053. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17054. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17055. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17056. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17057. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17058. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17059. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17060. {}
  17061. ],
  17062. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17063. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17064. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17065. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17066. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17067. <span class="hljs-string">&quot;string&quot;</span>
  17068. ],
  17069. <span class="hljs-attr">&quot;members&quot;</span>: [
  17070. <span class="hljs-string">&quot;string&quot;</span>
  17071. ],
  17072. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17073. <span class="hljs-string">&quot;string&quot;</span>
  17074. ],
  17075. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17076. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17077. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17078. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17079. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17080. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17081. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17082. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17083. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17084. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17085. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17086. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17087. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17088. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17089. <span class="hljs-string">&quot;string&quot;</span>
  17090. ],
  17091. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17092. <span class="hljs-string">&quot;string&quot;</span>
  17093. ],
  17094. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17095. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17096. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17097. },
  17098. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17099. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17100. <span class="hljs-attr">&quot;one&quot;</span>: [
  17101. <span class="hljs-string">&quot;string&quot;</span>
  17102. ],
  17103. <span class="hljs-attr">&quot;two&quot;</span>: [
  17104. <span class="hljs-string">&quot;string&quot;</span>
  17105. ],
  17106. <span class="hljs-attr">&quot;three&quot;</span>: [
  17107. <span class="hljs-string">&quot;string&quot;</span>
  17108. ],
  17109. <span class="hljs-attr">&quot;five&quot;</span>: [
  17110. <span class="hljs-string">&quot;string&quot;</span>
  17111. ],
  17112. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17113. <span class="hljs-string">&quot;string&quot;</span>
  17114. ],
  17115. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17116. <span class="hljs-string">&quot;string&quot;</span>
  17117. ],
  17118. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17119. <span class="hljs-string">&quot;string&quot;</span>
  17120. ],
  17121. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17122. <span class="hljs-string">&quot;string&quot;</span>
  17123. ],
  17124. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17125. <span class="hljs-string">&quot;string&quot;</span>
  17126. ],
  17127. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17128. <span class="hljs-string">&quot;string&quot;</span>
  17129. ],
  17130. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17131. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17132. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17133. },
  17134. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17135. <span class="hljs-string">&quot;string&quot;</span>
  17136. ],
  17137. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17138. <span class="hljs-number">0</span>
  17139. ],
  17140. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17141. <span class="hljs-string">&quot;string&quot;</span>
  17142. ],
  17143. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17144. }
  17145. </code></pre>
  17146. <h3 id="properties-7">Properties</h3>
  17147. <table>
  17148. <thead>
  17149. <tr>
  17150. <th>Name</th>
  17151. <th>Type</th>
  17152. <th>Required</th>
  17153. <th>Restrictions</th>
  17154. <th>Description</th>
  17155. </tr>
  17156. </thead>
  17157. <tbody>
  17158. <tr>
  17159. <td>title</td>
  17160. <td>string¦null</td>
  17161. <td>false</td>
  17162. <td>none</td>
  17163. <td>the title of the card</td>
  17164. </tr>
  17165. <tr>
  17166. <td>archived</td>
  17167. <td>boolean</td>
  17168. <td>true</td>
  17169. <td>none</td>
  17170. <td>is the card archived</td>
  17171. </tr>
  17172. <tr>
  17173. <td>archivedAt</td>
  17174. <td>string¦null</td>
  17175. <td>false</td>
  17176. <td>none</td>
  17177. <td>latest archiving date</td>
  17178. </tr>
  17179. <tr>
  17180. <td>parentId</td>
  17181. <td>string¦null</td>
  17182. <td>false</td>
  17183. <td>none</td>
  17184. <td>ID of the parent card</td>
  17185. </tr>
  17186. <tr>
  17187. <td>listId</td>
  17188. <td>string¦null</td>
  17189. <td>false</td>
  17190. <td>none</td>
  17191. <td>List ID where the card is</td>
  17192. </tr>
  17193. <tr>
  17194. <td>swimlaneId</td>
  17195. <td>string</td>
  17196. <td>true</td>
  17197. <td>none</td>
  17198. <td>Swimlane ID where the card is</td>
  17199. </tr>
  17200. <tr>
  17201. <td>boardId</td>
  17202. <td>string¦null</td>
  17203. <td>false</td>
  17204. <td>none</td>
  17205. <td>Board ID of the card</td>
  17206. </tr>
  17207. <tr>
  17208. <td>coverId</td>
  17209. <td>string¦null</td>
  17210. <td>false</td>
  17211. <td>none</td>
  17212. <td>Cover ID of the card</td>
  17213. </tr>
  17214. <tr>
  17215. <td>color</td>
  17216. <td>string¦null</td>
  17217. <td>false</td>
  17218. <td>none</td>
  17219. <td>none</td>
  17220. </tr>
  17221. <tr>
  17222. <td>createdAt</td>
  17223. <td>string</td>
  17224. <td>true</td>
  17225. <td>none</td>
  17226. <td>creation date</td>
  17227. </tr>
  17228. <tr>
  17229. <td>modifiedAt</td>
  17230. <td>string</td>
  17231. <td>true</td>
  17232. <td>none</td>
  17233. <td>none</td>
  17234. </tr>
  17235. <tr>
  17236. <td>customFields</td>
  17237. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17238. <td>false</td>
  17239. <td>none</td>
  17240. <td>list of custom fields</td>
  17241. </tr>
  17242. <tr>
  17243. <td>dateLastActivity</td>
  17244. <td>string</td>
  17245. <td>true</td>
  17246. <td>none</td>
  17247. <td>Date of last activity</td>
  17248. </tr>
  17249. <tr>
  17250. <td>description</td>
  17251. <td>string¦null</td>
  17252. <td>false</td>
  17253. <td>none</td>
  17254. <td>description of the card</td>
  17255. </tr>
  17256. <tr>
  17257. <td>requestedBy</td>
  17258. <td>string¦null</td>
  17259. <td>false</td>
  17260. <td>none</td>
  17261. <td>who requested the card (ID of the user)</td>
  17262. </tr>
  17263. <tr>
  17264. <td>assignedBy</td>
  17265. <td>string¦null</td>
  17266. <td>false</td>
  17267. <td>none</td>
  17268. <td>who assigned the card (ID of the user)</td>
  17269. </tr>
  17270. <tr>
  17271. <td>labelIds</td>
  17272. <td>[string]¦null</td>
  17273. <td>false</td>
  17274. <td>none</td>
  17275. <td>list of labels ID the card has</td>
  17276. </tr>
  17277. <tr>
  17278. <td>members</td>
  17279. <td>[string]¦null</td>
  17280. <td>false</td>
  17281. <td>none</td>
  17282. <td>list of members (user IDs)</td>
  17283. </tr>
  17284. <tr>
  17285. <td>assignees</td>
  17286. <td>[string]¦null</td>
  17287. <td>false</td>
  17288. <td>none</td>
  17289. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  17290. </tr>
  17291. <tr>
  17292. <td>receivedAt</td>
  17293. <td>string¦null</td>
  17294. <td>false</td>
  17295. <td>none</td>
  17296. <td>Date the card was received</td>
  17297. </tr>
  17298. <tr>
  17299. <td>startAt</td>
  17300. <td>string¦null</td>
  17301. <td>false</td>
  17302. <td>none</td>
  17303. <td>Date the card was started to be worked on</td>
  17304. </tr>
  17305. <tr>
  17306. <td>dueAt</td>
  17307. <td>string¦null</td>
  17308. <td>false</td>
  17309. <td>none</td>
  17310. <td>Date the card is due</td>
  17311. </tr>
  17312. <tr>
  17313. <td>endAt</td>
  17314. <td>string¦null</td>
  17315. <td>false</td>
  17316. <td>none</td>
  17317. <td>Date the card ended</td>
  17318. </tr>
  17319. <tr>
  17320. <td>spentTime</td>
  17321. <td>number¦null</td>
  17322. <td>false</td>
  17323. <td>none</td>
  17324. <td>How much time has been spent on this</td>
  17325. </tr>
  17326. <tr>
  17327. <td>isOvertime</td>
  17328. <td>boolean¦null</td>
  17329. <td>false</td>
  17330. <td>none</td>
  17331. <td>is the card over time?</td>
  17332. </tr>
  17333. <tr>
  17334. <td>userId</td>
  17335. <td>string</td>
  17336. <td>true</td>
  17337. <td>none</td>
  17338. <td>user ID of the author of the card</td>
  17339. </tr>
  17340. <tr>
  17341. <td>sort</td>
  17342. <td>number¦null</td>
  17343. <td>false</td>
  17344. <td>none</td>
  17345. <td>Sort value</td>
  17346. </tr>
  17347. <tr>
  17348. <td>subtaskSort</td>
  17349. <td>number¦null</td>
  17350. <td>false</td>
  17351. <td>none</td>
  17352. <td>subtask sort value</td>
  17353. </tr>
  17354. <tr>
  17355. <td>type</td>
  17356. <td>string</td>
  17357. <td>true</td>
  17358. <td>none</td>
  17359. <td>type of the card</td>
  17360. </tr>
  17361. <tr>
  17362. <td>linkedId</td>
  17363. <td>string¦null</td>
  17364. <td>false</td>
  17365. <td>none</td>
  17366. <td>ID of the linked card</td>
  17367. </tr>
  17368. <tr>
  17369. <td>vote</td>
  17370. <td><a href="#schemacardsvote">CardsVote</a></td>
  17371. <td>false</td>
  17372. <td>none</td>
  17373. <td>none</td>
  17374. </tr>
  17375. <tr>
  17376. <td>poker</td>
  17377. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17378. <td>false</td>
  17379. <td>none</td>
  17380. <td>none</td>
  17381. </tr>
  17382. <tr>
  17383. <td>targetId_gantt</td>
  17384. <td>[string]¦null</td>
  17385. <td>false</td>
  17386. <td>none</td>
  17387. <td>ID of card which is the child link in gantt view</td>
  17388. </tr>
  17389. <tr>
  17390. <td>linkType_gantt</td>
  17391. <td>[number]¦null</td>
  17392. <td>false</td>
  17393. <td>none</td>
  17394. <td>ID of card which is the parent link in gantt view</td>
  17395. </tr>
  17396. <tr>
  17397. <td>linkId_gantt</td>
  17398. <td>[string]¦null</td>
  17399. <td>false</td>
  17400. <td>none</td>
  17401. <td>ID of card which is the parent link in gantt view</td>
  17402. </tr>
  17403. <tr>
  17404. <td>cardNumber</td>
  17405. <td>number¦null</td>
  17406. <td>false</td>
  17407. <td>none</td>
  17408. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17409. </tr>
  17410. </tbody>
  17411. </table>
  17412. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17413. <table>
  17414. <thead>
  17415. <tr>
  17416. <th>Property</th>
  17417. <th>Value</th>
  17418. </tr>
  17419. </thead>
  17420. <tbody>
  17421. <tr>
  17422. <td>color</td>
  17423. <td>white</td>
  17424. </tr>
  17425. <tr>
  17426. <td>color</td>
  17427. <td>green</td>
  17428. </tr>
  17429. <tr>
  17430. <td>color</td>
  17431. <td>yellow</td>
  17432. </tr>
  17433. <tr>
  17434. <td>color</td>
  17435. <td>orange</td>
  17436. </tr>
  17437. <tr>
  17438. <td>color</td>
  17439. <td>red</td>
  17440. </tr>
  17441. <tr>
  17442. <td>color</td>
  17443. <td>purple</td>
  17444. </tr>
  17445. <tr>
  17446. <td>color</td>
  17447. <td>blue</td>
  17448. </tr>
  17449. <tr>
  17450. <td>color</td>
  17451. <td>sky</td>
  17452. </tr>
  17453. <tr>
  17454. <td>color</td>
  17455. <td>lime</td>
  17456. </tr>
  17457. <tr>
  17458. <td>color</td>
  17459. <td>pink</td>
  17460. </tr>
  17461. <tr>
  17462. <td>color</td>
  17463. <td>black</td>
  17464. </tr>
  17465. <tr>
  17466. <td>color</td>
  17467. <td>silver</td>
  17468. </tr>
  17469. <tr>
  17470. <td>color</td>
  17471. <td>peachpuff</td>
  17472. </tr>
  17473. <tr>
  17474. <td>color</td>
  17475. <td>crimson</td>
  17476. </tr>
  17477. <tr>
  17478. <td>color</td>
  17479. <td>plum</td>
  17480. </tr>
  17481. <tr>
  17482. <td>color</td>
  17483. <td>darkgreen</td>
  17484. </tr>
  17485. <tr>
  17486. <td>color</td>
  17487. <td>slateblue</td>
  17488. </tr>
  17489. <tr>
  17490. <td>color</td>
  17491. <td>magenta</td>
  17492. </tr>
  17493. <tr>
  17494. <td>color</td>
  17495. <td>gold</td>
  17496. </tr>
  17497. <tr>
  17498. <td>color</td>
  17499. <td>navy</td>
  17500. </tr>
  17501. <tr>
  17502. <td>color</td>
  17503. <td>gray</td>
  17504. </tr>
  17505. <tr>
  17506. <td>color</td>
  17507. <td>saddlebrown</td>
  17508. </tr>
  17509. <tr>
  17510. <td>color</td>
  17511. <td>paleturquoise</td>
  17512. </tr>
  17513. <tr>
  17514. <td>color</td>
  17515. <td>mistyrose</td>
  17516. </tr>
  17517. <tr>
  17518. <td>color</td>
  17519. <td>indigo</td>
  17520. </tr>
  17521. </tbody>
  17522. </table>
  17523. <h2 id="tocs_cardsvote">CardsVote</h2>
  17524. <p><a id="schemacardsvote"></a>
  17525. <a id="schema_CardsVote"></a>
  17526. <a id="tocScardsvote"></a>
  17527. <a id="tocscardsvote"></a></p>
  17528. <pre class="highlight tab tab-json"><code>{
  17529. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17530. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17531. <span class="hljs-string">&quot;string&quot;</span>
  17532. ],
  17533. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17534. <span class="hljs-string">&quot;string&quot;</span>
  17535. ],
  17536. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17537. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17538. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17539. }
  17540. </code></pre>
  17541. <h3 id="properties-8">Properties</h3>
  17542. <table>
  17543. <thead>
  17544. <tr>
  17545. <th>Name</th>
  17546. <th>Type</th>
  17547. <th>Required</th>
  17548. <th>Restrictions</th>
  17549. <th>Description</th>
  17550. </tr>
  17551. </thead>
  17552. <tbody>
  17553. <tr>
  17554. <td>question</td>
  17555. <td>string</td>
  17556. <td>true</td>
  17557. <td>none</td>
  17558. <td>none</td>
  17559. </tr>
  17560. <tr>
  17561. <td>positive</td>
  17562. <td>[string]</td>
  17563. <td>false</td>
  17564. <td>none</td>
  17565. <td>list of members (user IDs)</td>
  17566. </tr>
  17567. <tr>
  17568. <td>negative</td>
  17569. <td>[string]</td>
  17570. <td>false</td>
  17571. <td>none</td>
  17572. <td>list of members (user IDs)</td>
  17573. </tr>
  17574. <tr>
  17575. <td>end</td>
  17576. <td>string</td>
  17577. <td>false</td>
  17578. <td>none</td>
  17579. <td>none</td>
  17580. </tr>
  17581. <tr>
  17582. <td>public</td>
  17583. <td>boolean</td>
  17584. <td>true</td>
  17585. <td>none</td>
  17586. <td>none</td>
  17587. </tr>
  17588. <tr>
  17589. <td>allowNonBoardMembers</td>
  17590. <td>boolean</td>
  17591. <td>true</td>
  17592. <td>none</td>
  17593. <td>none</td>
  17594. </tr>
  17595. </tbody>
  17596. </table>
  17597. <h2 id="tocs_cardspoker">CardsPoker</h2>
  17598. <p><a id="schemacardspoker"></a>
  17599. <a id="schema_CardsPoker"></a>
  17600. <a id="tocScardspoker"></a>
  17601. <a id="tocscardspoker"></a></p>
  17602. <pre class="highlight tab tab-json"><code>{
  17603. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17604. <span class="hljs-attr">&quot;one&quot;</span>: [
  17605. <span class="hljs-string">&quot;string&quot;</span>
  17606. ],
  17607. <span class="hljs-attr">&quot;two&quot;</span>: [
  17608. <span class="hljs-string">&quot;string&quot;</span>
  17609. ],
  17610. <span class="hljs-attr">&quot;three&quot;</span>: [
  17611. <span class="hljs-string">&quot;string&quot;</span>
  17612. ],
  17613. <span class="hljs-attr">&quot;five&quot;</span>: [
  17614. <span class="hljs-string">&quot;string&quot;</span>
  17615. ],
  17616. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17617. <span class="hljs-string">&quot;string&quot;</span>
  17618. ],
  17619. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17620. <span class="hljs-string">&quot;string&quot;</span>
  17621. ],
  17622. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17623. <span class="hljs-string">&quot;string&quot;</span>
  17624. ],
  17625. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17626. <span class="hljs-string">&quot;string&quot;</span>
  17627. ],
  17628. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17629. <span class="hljs-string">&quot;string&quot;</span>
  17630. ],
  17631. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17632. <span class="hljs-string">&quot;string&quot;</span>
  17633. ],
  17634. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17635. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17636. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17637. }
  17638. </code></pre>
  17639. <h3 id="properties-9">Properties</h3>
  17640. <table>
  17641. <thead>
  17642. <tr>
  17643. <th>Name</th>
  17644. <th>Type</th>
  17645. <th>Required</th>
  17646. <th>Restrictions</th>
  17647. <th>Description</th>
  17648. </tr>
  17649. </thead>
  17650. <tbody>
  17651. <tr>
  17652. <td>question</td>
  17653. <td>boolean</td>
  17654. <td>true</td>
  17655. <td>none</td>
  17656. <td>none</td>
  17657. </tr>
  17658. <tr>
  17659. <td>one</td>
  17660. <td>[string]</td>
  17661. <td>false</td>
  17662. <td>none</td>
  17663. <td>poker card one</td>
  17664. </tr>
  17665. <tr>
  17666. <td>two</td>
  17667. <td>[string]</td>
  17668. <td>false</td>
  17669. <td>none</td>
  17670. <td>poker card two</td>
  17671. </tr>
  17672. <tr>
  17673. <td>three</td>
  17674. <td>[string]</td>
  17675. <td>false</td>
  17676. <td>none</td>
  17677. <td>poker card three</td>
  17678. </tr>
  17679. <tr>
  17680. <td>five</td>
  17681. <td>[string]</td>
  17682. <td>false</td>
  17683. <td>none</td>
  17684. <td>poker card five</td>
  17685. </tr>
  17686. <tr>
  17687. <td>eight</td>
  17688. <td>[string]</td>
  17689. <td>false</td>
  17690. <td>none</td>
  17691. <td>poker card eight</td>
  17692. </tr>
  17693. <tr>
  17694. <td>thirteen</td>
  17695. <td>[string]</td>
  17696. <td>false</td>
  17697. <td>none</td>
  17698. <td>poker card thirteen</td>
  17699. </tr>
  17700. <tr>
  17701. <td>twenty</td>
  17702. <td>[string]</td>
  17703. <td>false</td>
  17704. <td>none</td>
  17705. <td>poker card twenty</td>
  17706. </tr>
  17707. <tr>
  17708. <td>forty</td>
  17709. <td>[string]</td>
  17710. <td>false</td>
  17711. <td>none</td>
  17712. <td>poker card forty</td>
  17713. </tr>
  17714. <tr>
  17715. <td>oneHundred</td>
  17716. <td>[string]</td>
  17717. <td>false</td>
  17718. <td>none</td>
  17719. <td>poker card oneHundred</td>
  17720. </tr>
  17721. <tr>
  17722. <td>unsure</td>
  17723. <td>[string]</td>
  17724. <td>false</td>
  17725. <td>none</td>
  17726. <td>poker card unsure</td>
  17727. </tr>
  17728. <tr>
  17729. <td>end</td>
  17730. <td>string</td>
  17731. <td>false</td>
  17732. <td>none</td>
  17733. <td>none</td>
  17734. </tr>
  17735. <tr>
  17736. <td>allowNonBoardMembers</td>
  17737. <td>boolean</td>
  17738. <td>true</td>
  17739. <td>none</td>
  17740. <td>none</td>
  17741. </tr>
  17742. <tr>
  17743. <td>estimation</td>
  17744. <td>number</td>
  17745. <td>false</td>
  17746. <td>none</td>
  17747. <td>poker estimation value</td>
  17748. </tr>
  17749. </tbody>
  17750. </table>
  17751. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17752. <p><a id="schemacardscustomfields"></a>
  17753. <a id="schema_CardsCustomfields"></a>
  17754. <a id="tocScardscustomfields"></a>
  17755. <a id="tocscardscustomfields"></a></p>
  17756. <pre class="highlight tab tab-json"><code>{}
  17757. </code></pre>
  17758. <h3 id="properties-10">Properties</h3>
  17759. <p><em>None</em></p>
  17760. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17761. <p><a id="schemachecklistitems"></a>
  17762. <a id="schema_ChecklistItems"></a>
  17763. <a id="tocSchecklistitems"></a>
  17764. <a id="tocschecklistitems"></a></p>
  17765. <pre class="highlight tab tab-json"><code>{
  17766. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17767. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17768. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17769. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17770. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17771. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17772. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17773. }
  17774. </code></pre>
  17775. <p>An item in a checklist</p>
  17776. <h3 id="properties-11">Properties</h3>
  17777. <table>
  17778. <thead>
  17779. <tr>
  17780. <th>Name</th>
  17781. <th>Type</th>
  17782. <th>Required</th>
  17783. <th>Restrictions</th>
  17784. <th>Description</th>
  17785. </tr>
  17786. </thead>
  17787. <tbody>
  17788. <tr>
  17789. <td>title</td>
  17790. <td>string</td>
  17791. <td>true</td>
  17792. <td>none</td>
  17793. <td>the text of the item</td>
  17794. </tr>
  17795. <tr>
  17796. <td>sort</td>
  17797. <td>number</td>
  17798. <td>true</td>
  17799. <td>none</td>
  17800. <td>the sorting field of the item</td>
  17801. </tr>
  17802. <tr>
  17803. <td>isFinished</td>
  17804. <td>boolean</td>
  17805. <td>true</td>
  17806. <td>none</td>
  17807. <td>Is the item checked?</td>
  17808. </tr>
  17809. <tr>
  17810. <td>checklistId</td>
  17811. <td>string</td>
  17812. <td>true</td>
  17813. <td>none</td>
  17814. <td>the checklist ID the item is attached to</td>
  17815. </tr>
  17816. <tr>
  17817. <td>cardId</td>
  17818. <td>string</td>
  17819. <td>true</td>
  17820. <td>none</td>
  17821. <td>the card ID the item is attached to</td>
  17822. </tr>
  17823. <tr>
  17824. <td>createdAt</td>
  17825. <td>string¦null</td>
  17826. <td>false</td>
  17827. <td>none</td>
  17828. <td>none</td>
  17829. </tr>
  17830. <tr>
  17831. <td>modifiedAt</td>
  17832. <td>string</td>
  17833. <td>true</td>
  17834. <td>none</td>
  17835. <td>none</td>
  17836. </tr>
  17837. </tbody>
  17838. </table>
  17839. <h2 id="tocs_checklists">Checklists</h2>
  17840. <p><a id="schemachecklists"></a>
  17841. <a id="schema_Checklists"></a>
  17842. <a id="tocSchecklists"></a>
  17843. <a id="tocschecklists"></a></p>
  17844. <pre class="highlight tab tab-json"><code>{
  17845. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17846. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17847. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17848. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17849. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17850. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17851. }
  17852. </code></pre>
  17853. <p>A Checklist</p>
  17854. <h3 id="properties-12">Properties</h3>
  17855. <table>
  17856. <thead>
  17857. <tr>
  17858. <th>Name</th>
  17859. <th>Type</th>
  17860. <th>Required</th>
  17861. <th>Restrictions</th>
  17862. <th>Description</th>
  17863. </tr>
  17864. </thead>
  17865. <tbody>
  17866. <tr>
  17867. <td>cardId</td>
  17868. <td>string</td>
  17869. <td>true</td>
  17870. <td>none</td>
  17871. <td>The ID of the card the checklist is in</td>
  17872. </tr>
  17873. <tr>
  17874. <td>title</td>
  17875. <td>string</td>
  17876. <td>true</td>
  17877. <td>none</td>
  17878. <td>the title of the checklist</td>
  17879. </tr>
  17880. <tr>
  17881. <td>finishedAt</td>
  17882. <td>string¦null</td>
  17883. <td>false</td>
  17884. <td>none</td>
  17885. <td>When was the checklist finished</td>
  17886. </tr>
  17887. <tr>
  17888. <td>createdAt</td>
  17889. <td>string</td>
  17890. <td>true</td>
  17891. <td>none</td>
  17892. <td>Creation date of the checklist</td>
  17893. </tr>
  17894. <tr>
  17895. <td>modifiedAt</td>
  17896. <td>string</td>
  17897. <td>true</td>
  17898. <td>none</td>
  17899. <td>none</td>
  17900. </tr>
  17901. <tr>
  17902. <td>sort</td>
  17903. <td>number</td>
  17904. <td>true</td>
  17905. <td>none</td>
  17906. <td>sorting value of the checklist</td>
  17907. </tr>
  17908. </tbody>
  17909. </table>
  17910. <h2 id="tocs_customfields">CustomFields</h2>
  17911. <p><a id="schemacustomfields"></a>
  17912. <a id="schema_CustomFields"></a>
  17913. <a id="tocScustomfields"></a>
  17914. <a id="tocscustomfields"></a></p>
  17915. <pre class="highlight tab tab-json"><code>{
  17916. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17917. <span class="hljs-string">&quot;string&quot;</span>
  17918. ],
  17919. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17920. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17921. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17922. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17923. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17924. {}
  17925. ],
  17926. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17927. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17928. },
  17929. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17930. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17931. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17932. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17933. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17934. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17935. }
  17936. </code></pre>
  17937. <p>A custom field on a card in the board</p>
  17938. <h3 id="properties-13">Properties</h3>
  17939. <table>
  17940. <thead>
  17941. <tr>
  17942. <th>Name</th>
  17943. <th>Type</th>
  17944. <th>Required</th>
  17945. <th>Restrictions</th>
  17946. <th>Description</th>
  17947. </tr>
  17948. </thead>
  17949. <tbody>
  17950. <tr>
  17951. <td>boardIds</td>
  17952. <td>[string]</td>
  17953. <td>true</td>
  17954. <td>none</td>
  17955. <td>the ID of the board</td>
  17956. </tr>
  17957. <tr>
  17958. <td>name</td>
  17959. <td>string</td>
  17960. <td>true</td>
  17961. <td>none</td>
  17962. <td>name of the custom field</td>
  17963. </tr>
  17964. <tr>
  17965. <td>type</td>
  17966. <td>string</td>
  17967. <td>true</td>
  17968. <td>none</td>
  17969. <td>type of the custom field</td>
  17970. </tr>
  17971. <tr>
  17972. <td>settings</td>
  17973. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  17974. <td>true</td>
  17975. <td>none</td>
  17976. <td>none</td>
  17977. </tr>
  17978. <tr>
  17979. <td>showOnCard</td>
  17980. <td>boolean</td>
  17981. <td>true</td>
  17982. <td>none</td>
  17983. <td>should we show on the cards this custom field</td>
  17984. </tr>
  17985. <tr>
  17986. <td>automaticallyOnCard</td>
  17987. <td>boolean</td>
  17988. <td>true</td>
  17989. <td>none</td>
  17990. <td>should the custom fields automatically be added on cards?</td>
  17991. </tr>
  17992. <tr>
  17993. <td>alwaysOnCard</td>
  17994. <td>boolean</td>
  17995. <td>true</td>
  17996. <td>none</td>
  17997. <td>should the custom field be automatically added to all cards?</td>
  17998. </tr>
  17999. <tr>
  18000. <td>showLabelOnMiniCard</td>
  18001. <td>boolean</td>
  18002. <td>true</td>
  18003. <td>none</td>
  18004. <td>should the label of the custom field be shown on minicards?</td>
  18005. </tr>
  18006. <tr>
  18007. <td>createdAt</td>
  18008. <td>string¦null</td>
  18009. <td>false</td>
  18010. <td>none</td>
  18011. <td>none</td>
  18012. </tr>
  18013. <tr>
  18014. <td>modifiedAt</td>
  18015. <td>string</td>
  18016. <td>true</td>
  18017. <td>none</td>
  18018. <td>none</td>
  18019. </tr>
  18020. </tbody>
  18021. </table>
  18022. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18023. <table>
  18024. <thead>
  18025. <tr>
  18026. <th>Property</th>
  18027. <th>Value</th>
  18028. </tr>
  18029. </thead>
  18030. <tbody>
  18031. <tr>
  18032. <td>type</td>
  18033. <td>text</td>
  18034. </tr>
  18035. <tr>
  18036. <td>type</td>
  18037. <td>number</td>
  18038. </tr>
  18039. <tr>
  18040. <td>type</td>
  18041. <td>date</td>
  18042. </tr>
  18043. <tr>
  18044. <td>type</td>
  18045. <td>dropdown</td>
  18046. </tr>
  18047. <tr>
  18048. <td>type</td>
  18049. <td>checkbox</td>
  18050. </tr>
  18051. <tr>
  18052. <td>type</td>
  18053. <td>currency</td>
  18054. </tr>
  18055. <tr>
  18056. <td>type</td>
  18057. <td>stringtemplate</td>
  18058. </tr>
  18059. </tbody>
  18060. </table>
  18061. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18062. <p><a id="schemacustomfieldssettings"></a>
  18063. <a id="schema_CustomFieldsSettings"></a>
  18064. <a id="tocScustomfieldssettings"></a>
  18065. <a id="tocscustomfieldssettings"></a></p>
  18066. <pre class="highlight tab tab-json"><code>{
  18067. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18068. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18069. {}
  18070. ],
  18071. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18072. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18073. }
  18074. </code></pre>
  18075. <h3 id="properties-14">Properties</h3>
  18076. <table>
  18077. <thead>
  18078. <tr>
  18079. <th>Name</th>
  18080. <th>Type</th>
  18081. <th>Required</th>
  18082. <th>Restrictions</th>
  18083. <th>Description</th>
  18084. </tr>
  18085. </thead>
  18086. <tbody>
  18087. <tr>
  18088. <td>currencyCode</td>
  18089. <td>string</td>
  18090. <td>false</td>
  18091. <td>none</td>
  18092. <td>none</td>
  18093. </tr>
  18094. <tr>
  18095. <td>dropdownItems</td>
  18096. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18097. <td>false</td>
  18098. <td>none</td>
  18099. <td>list of drop down items objects</td>
  18100. </tr>
  18101. <tr>
  18102. <td>stringtemplateFormat</td>
  18103. <td>string</td>
  18104. <td>false</td>
  18105. <td>none</td>
  18106. <td>none</td>
  18107. </tr>
  18108. <tr>
  18109. <td>stringtemplateSeparator</td>
  18110. <td>string</td>
  18111. <td>false</td>
  18112. <td>none</td>
  18113. <td>none</td>
  18114. </tr>
  18115. </tbody>
  18116. </table>
  18117. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18118. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18119. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18120. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18121. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18122. <pre class="highlight tab tab-json"><code>{}
  18123. </code></pre>
  18124. <h3 id="properties-15">Properties</h3>
  18125. <p><em>None</em></p>
  18126. <h2 id="tocs_integrations">Integrations</h2>
  18127. <p><a id="schemaintegrations"></a>
  18128. <a id="schema_Integrations"></a>
  18129. <a id="tocSintegrations"></a>
  18130. <a id="tocsintegrations"></a></p>
  18131. <pre class="highlight tab tab-json"><code>{
  18132. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18133. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18134. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18135. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18136. <span class="hljs-string">&quot;string&quot;</span>
  18137. ],
  18138. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18139. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18140. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18141. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18142. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18143. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18144. }
  18145. </code></pre>
  18146. <p>Integration with third-party applications</p>
  18147. <h3 id="properties-16">Properties</h3>
  18148. <table>
  18149. <thead>
  18150. <tr>
  18151. <th>Name</th>
  18152. <th>Type</th>
  18153. <th>Required</th>
  18154. <th>Restrictions</th>
  18155. <th>Description</th>
  18156. </tr>
  18157. </thead>
  18158. <tbody>
  18159. <tr>
  18160. <td>enabled</td>
  18161. <td>boolean</td>
  18162. <td>true</td>
  18163. <td>none</td>
  18164. <td>is the integration enabled?</td>
  18165. </tr>
  18166. <tr>
  18167. <td>title</td>
  18168. <td>string¦null</td>
  18169. <td>false</td>
  18170. <td>none</td>
  18171. <td>name of the integration</td>
  18172. </tr>
  18173. <tr>
  18174. <td>type</td>
  18175. <td>string</td>
  18176. <td>true</td>
  18177. <td>none</td>
  18178. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18179. </tr>
  18180. <tr>
  18181. <td>activities</td>
  18182. <td>[string]</td>
  18183. <td>true</td>
  18184. <td>none</td>
  18185. <td>activities the integration gets triggered (list)</td>
  18186. </tr>
  18187. <tr>
  18188. <td>url</td>
  18189. <td>string</td>
  18190. <td>true</td>
  18191. <td>none</td>
  18192. <td>none</td>
  18193. </tr>
  18194. <tr>
  18195. <td>token</td>
  18196. <td>string¦null</td>
  18197. <td>false</td>
  18198. <td>none</td>
  18199. <td>token of the integration</td>
  18200. </tr>
  18201. <tr>
  18202. <td>boardId</td>
  18203. <td>string</td>
  18204. <td>true</td>
  18205. <td>none</td>
  18206. <td>Board ID of the integration</td>
  18207. </tr>
  18208. <tr>
  18209. <td>createdAt</td>
  18210. <td>string</td>
  18211. <td>true</td>
  18212. <td>none</td>
  18213. <td>Creation date of the integration</td>
  18214. </tr>
  18215. <tr>
  18216. <td>modifiedAt</td>
  18217. <td>string</td>
  18218. <td>true</td>
  18219. <td>none</td>
  18220. <td>none</td>
  18221. </tr>
  18222. <tr>
  18223. <td>userId</td>
  18224. <td>string</td>
  18225. <td>true</td>
  18226. <td>none</td>
  18227. <td>user ID who created the interation</td>
  18228. </tr>
  18229. </tbody>
  18230. </table>
  18231. <h2 id="tocs_lists">Lists</h2>
  18232. <p><a id="schemalists"></a>
  18233. <a id="schema_Lists"></a>
  18234. <a id="tocSlists"></a>
  18235. <a id="tocslists"></a></p>
  18236. <pre class="highlight tab tab-json"><code>{
  18237. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18238. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18239. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18240. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18241. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18242. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18243. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18244. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18245. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18246. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18247. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18248. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18249. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18250. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18251. },
  18252. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18253. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18254. }
  18255. </code></pre>
  18256. <p>A list (column) in the Wekan board.</p>
  18257. <h3 id="properties-17">Properties</h3>
  18258. <table>
  18259. <thead>
  18260. <tr>
  18261. <th>Name</th>
  18262. <th>Type</th>
  18263. <th>Required</th>
  18264. <th>Restrictions</th>
  18265. <th>Description</th>
  18266. </tr>
  18267. </thead>
  18268. <tbody>
  18269. <tr>
  18270. <td>title</td>
  18271. <td>string</td>
  18272. <td>true</td>
  18273. <td>none</td>
  18274. <td>the title of the list</td>
  18275. </tr>
  18276. <tr>
  18277. <td>starred</td>
  18278. <td>boolean¦null</td>
  18279. <td>false</td>
  18280. <td>none</td>
  18281. <td>if a list is stared<br />then we put it on the top</td>
  18282. </tr>
  18283. <tr>
  18284. <td>archived</td>
  18285. <td>boolean</td>
  18286. <td>true</td>
  18287. <td>none</td>
  18288. <td>is the list archived</td>
  18289. </tr>
  18290. <tr>
  18291. <td>archivedAt</td>
  18292. <td>string¦null</td>
  18293. <td>false</td>
  18294. <td>none</td>
  18295. <td>latest archiving date</td>
  18296. </tr>
  18297. <tr>
  18298. <td>boardId</td>
  18299. <td>string</td>
  18300. <td>true</td>
  18301. <td>none</td>
  18302. <td>the board associated to this list</td>
  18303. </tr>
  18304. <tr>
  18305. <td>swimlaneId</td>
  18306. <td>string</td>
  18307. <td>true</td>
  18308. <td>none</td>
  18309. <td>the swimlane associated to this list. Used for templates</td>
  18310. </tr>
  18311. <tr>
  18312. <td>createdAt</td>
  18313. <td>string</td>
  18314. <td>true</td>
  18315. <td>none</td>
  18316. <td>creation date</td>
  18317. </tr>
  18318. <tr>
  18319. <td>sort</td>
  18320. <td>number¦null</td>
  18321. <td>false</td>
  18322. <td>none</td>
  18323. <td>is the list sorted</td>
  18324. </tr>
  18325. <tr>
  18326. <td>updatedAt</td>
  18327. <td>string¦null</td>
  18328. <td>false</td>
  18329. <td>none</td>
  18330. <td>last update of the list</td>
  18331. </tr>
  18332. <tr>
  18333. <td>modifiedAt</td>
  18334. <td>string</td>
  18335. <td>true</td>
  18336. <td>none</td>
  18337. <td>none</td>
  18338. </tr>
  18339. <tr>
  18340. <td>wipLimit</td>
  18341. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  18342. <td>false</td>
  18343. <td>none</td>
  18344. <td>none</td>
  18345. </tr>
  18346. <tr>
  18347. <td>color</td>
  18348. <td>string¦null</td>
  18349. <td>false</td>
  18350. <td>none</td>
  18351. <td>the color of the list</td>
  18352. </tr>
  18353. <tr>
  18354. <td>type</td>
  18355. <td>string</td>
  18356. <td>true</td>
  18357. <td>none</td>
  18358. <td>The type of list</td>
  18359. </tr>
  18360. </tbody>
  18361. </table>
  18362. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18363. <table>
  18364. <thead>
  18365. <tr>
  18366. <th>Property</th>
  18367. <th>Value</th>
  18368. </tr>
  18369. </thead>
  18370. <tbody>
  18371. <tr>
  18372. <td>color</td>
  18373. <td>white</td>
  18374. </tr>
  18375. <tr>
  18376. <td>color</td>
  18377. <td>green</td>
  18378. </tr>
  18379. <tr>
  18380. <td>color</td>
  18381. <td>yellow</td>
  18382. </tr>
  18383. <tr>
  18384. <td>color</td>
  18385. <td>orange</td>
  18386. </tr>
  18387. <tr>
  18388. <td>color</td>
  18389. <td>red</td>
  18390. </tr>
  18391. <tr>
  18392. <td>color</td>
  18393. <td>purple</td>
  18394. </tr>
  18395. <tr>
  18396. <td>color</td>
  18397. <td>blue</td>
  18398. </tr>
  18399. <tr>
  18400. <td>color</td>
  18401. <td>sky</td>
  18402. </tr>
  18403. <tr>
  18404. <td>color</td>
  18405. <td>lime</td>
  18406. </tr>
  18407. <tr>
  18408. <td>color</td>
  18409. <td>pink</td>
  18410. </tr>
  18411. <tr>
  18412. <td>color</td>
  18413. <td>black</td>
  18414. </tr>
  18415. <tr>
  18416. <td>color</td>
  18417. <td>silver</td>
  18418. </tr>
  18419. <tr>
  18420. <td>color</td>
  18421. <td>peachpuff</td>
  18422. </tr>
  18423. <tr>
  18424. <td>color</td>
  18425. <td>crimson</td>
  18426. </tr>
  18427. <tr>
  18428. <td>color</td>
  18429. <td>plum</td>
  18430. </tr>
  18431. <tr>
  18432. <td>color</td>
  18433. <td>darkgreen</td>
  18434. </tr>
  18435. <tr>
  18436. <td>color</td>
  18437. <td>slateblue</td>
  18438. </tr>
  18439. <tr>
  18440. <td>color</td>
  18441. <td>magenta</td>
  18442. </tr>
  18443. <tr>
  18444. <td>color</td>
  18445. <td>gold</td>
  18446. </tr>
  18447. <tr>
  18448. <td>color</td>
  18449. <td>navy</td>
  18450. </tr>
  18451. <tr>
  18452. <td>color</td>
  18453. <td>gray</td>
  18454. </tr>
  18455. <tr>
  18456. <td>color</td>
  18457. <td>saddlebrown</td>
  18458. </tr>
  18459. <tr>
  18460. <td>color</td>
  18461. <td>paleturquoise</td>
  18462. </tr>
  18463. <tr>
  18464. <td>color</td>
  18465. <td>mistyrose</td>
  18466. </tr>
  18467. <tr>
  18468. <td>color</td>
  18469. <td>indigo</td>
  18470. </tr>
  18471. </tbody>
  18472. </table>
  18473. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18474. <p><a id="schemalistswiplimit"></a>
  18475. <a id="schema_ListsWiplimit"></a>
  18476. <a id="tocSlistswiplimit"></a>
  18477. <a id="tocslistswiplimit"></a></p>
  18478. <pre class="highlight tab tab-json"><code>{
  18479. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18480. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18481. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18482. }
  18483. </code></pre>
  18484. <h3 id="properties-18">Properties</h3>
  18485. <table>
  18486. <thead>
  18487. <tr>
  18488. <th>Name</th>
  18489. <th>Type</th>
  18490. <th>Required</th>
  18491. <th>Restrictions</th>
  18492. <th>Description</th>
  18493. </tr>
  18494. </thead>
  18495. <tbody>
  18496. <tr>
  18497. <td>value</td>
  18498. <td>number</td>
  18499. <td>true</td>
  18500. <td>none</td>
  18501. <td>value of the WIP</td>
  18502. </tr>
  18503. <tr>
  18504. <td>enabled</td>
  18505. <td>boolean</td>
  18506. <td>true</td>
  18507. <td>none</td>
  18508. <td>is the WIP enabled</td>
  18509. </tr>
  18510. <tr>
  18511. <td>soft</td>
  18512. <td>boolean</td>
  18513. <td>true</td>
  18514. <td>none</td>
  18515. <td>is the WIP a soft or hard requirement</td>
  18516. </tr>
  18517. </tbody>
  18518. </table>
  18519. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18520. <p><a id="schemaswimlanes"></a>
  18521. <a id="schema_Swimlanes"></a>
  18522. <a id="tocSswimlanes"></a>
  18523. <a id="tocsswimlanes"></a></p>
  18524. <pre class="highlight tab tab-json"><code>{
  18525. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18526. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18527. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18528. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18529. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18530. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18531. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18532. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18533. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18534. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18535. }
  18536. </code></pre>
  18537. <p>A swimlane is an line in the kaban board.</p>
  18538. <h3 id="properties-19">Properties</h3>
  18539. <table>
  18540. <thead>
  18541. <tr>
  18542. <th>Name</th>
  18543. <th>Type</th>
  18544. <th>Required</th>
  18545. <th>Restrictions</th>
  18546. <th>Description</th>
  18547. </tr>
  18548. </thead>
  18549. <tbody>
  18550. <tr>
  18551. <td>title</td>
  18552. <td>string</td>
  18553. <td>true</td>
  18554. <td>none</td>
  18555. <td>the title of the swimlane</td>
  18556. </tr>
  18557. <tr>
  18558. <td>archived</td>
  18559. <td>boolean</td>
  18560. <td>true</td>
  18561. <td>none</td>
  18562. <td>is the swimlane archived?</td>
  18563. </tr>
  18564. <tr>
  18565. <td>archivedAt</td>
  18566. <td>string¦null</td>
  18567. <td>false</td>
  18568. <td>none</td>
  18569. <td>latest archiving date of the swimlane</td>
  18570. </tr>
  18571. <tr>
  18572. <td>boardId</td>
  18573. <td>string</td>
  18574. <td>true</td>
  18575. <td>none</td>
  18576. <td>the ID of the board the swimlane is attached to</td>
  18577. </tr>
  18578. <tr>
  18579. <td>createdAt</td>
  18580. <td>string</td>
  18581. <td>true</td>
  18582. <td>none</td>
  18583. <td>creation date of the swimlane</td>
  18584. </tr>
  18585. <tr>
  18586. <td>sort</td>
  18587. <td>number¦null</td>
  18588. <td>false</td>
  18589. <td>none</td>
  18590. <td>the sort value of the swimlane</td>
  18591. </tr>
  18592. <tr>
  18593. <td>color</td>
  18594. <td>string¦null</td>
  18595. <td>false</td>
  18596. <td>none</td>
  18597. <td>the color of the swimlane</td>
  18598. </tr>
  18599. <tr>
  18600. <td>updatedAt</td>
  18601. <td>string¦null</td>
  18602. <td>false</td>
  18603. <td>none</td>
  18604. <td>when was the swimlane last edited</td>
  18605. </tr>
  18606. <tr>
  18607. <td>modifiedAt</td>
  18608. <td>string</td>
  18609. <td>true</td>
  18610. <td>none</td>
  18611. <td>none</td>
  18612. </tr>
  18613. <tr>
  18614. <td>type</td>
  18615. <td>string</td>
  18616. <td>true</td>
  18617. <td>none</td>
  18618. <td>The type of swimlane</td>
  18619. </tr>
  18620. </tbody>
  18621. </table>
  18622. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18623. <table>
  18624. <thead>
  18625. <tr>
  18626. <th>Property</th>
  18627. <th>Value</th>
  18628. </tr>
  18629. </thead>
  18630. <tbody>
  18631. <tr>
  18632. <td>color</td>
  18633. <td>white</td>
  18634. </tr>
  18635. <tr>
  18636. <td>color</td>
  18637. <td>green</td>
  18638. </tr>
  18639. <tr>
  18640. <td>color</td>
  18641. <td>yellow</td>
  18642. </tr>
  18643. <tr>
  18644. <td>color</td>
  18645. <td>orange</td>
  18646. </tr>
  18647. <tr>
  18648. <td>color</td>
  18649. <td>red</td>
  18650. </tr>
  18651. <tr>
  18652. <td>color</td>
  18653. <td>purple</td>
  18654. </tr>
  18655. <tr>
  18656. <td>color</td>
  18657. <td>blue</td>
  18658. </tr>
  18659. <tr>
  18660. <td>color</td>
  18661. <td>sky</td>
  18662. </tr>
  18663. <tr>
  18664. <td>color</td>
  18665. <td>lime</td>
  18666. </tr>
  18667. <tr>
  18668. <td>color</td>
  18669. <td>pink</td>
  18670. </tr>
  18671. <tr>
  18672. <td>color</td>
  18673. <td>black</td>
  18674. </tr>
  18675. <tr>
  18676. <td>color</td>
  18677. <td>silver</td>
  18678. </tr>
  18679. <tr>
  18680. <td>color</td>
  18681. <td>peachpuff</td>
  18682. </tr>
  18683. <tr>
  18684. <td>color</td>
  18685. <td>crimson</td>
  18686. </tr>
  18687. <tr>
  18688. <td>color</td>
  18689. <td>plum</td>
  18690. </tr>
  18691. <tr>
  18692. <td>color</td>
  18693. <td>darkgreen</td>
  18694. </tr>
  18695. <tr>
  18696. <td>color</td>
  18697. <td>slateblue</td>
  18698. </tr>
  18699. <tr>
  18700. <td>color</td>
  18701. <td>magenta</td>
  18702. </tr>
  18703. <tr>
  18704. <td>color</td>
  18705. <td>gold</td>
  18706. </tr>
  18707. <tr>
  18708. <td>color</td>
  18709. <td>navy</td>
  18710. </tr>
  18711. <tr>
  18712. <td>color</td>
  18713. <td>gray</td>
  18714. </tr>
  18715. <tr>
  18716. <td>color</td>
  18717. <td>saddlebrown</td>
  18718. </tr>
  18719. <tr>
  18720. <td>color</td>
  18721. <td>paleturquoise</td>
  18722. </tr>
  18723. <tr>
  18724. <td>color</td>
  18725. <td>mistyrose</td>
  18726. </tr>
  18727. <tr>
  18728. <td>color</td>
  18729. <td>indigo</td>
  18730. </tr>
  18731. </tbody>
  18732. </table>
  18733. <h2 id="tocs_users">Users</h2>
  18734. <p><a id="schemausers"></a>
  18735. <a id="schema_Users"></a>
  18736. <a id="tocSusers"></a>
  18737. <a id="tocsusers"></a></p>
  18738. <pre class="highlight tab tab-json"><code>{
  18739. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18740. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  18741. {
  18742. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18743. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18744. }
  18745. ],
  18746. <span class="hljs-attr">&quot;teams&quot;</span>: [
  18747. {
  18748. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18749. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18750. }
  18751. ],
  18752. <span class="hljs-attr">&quot;emails&quot;</span>: [
  18753. {
  18754. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18755. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18756. }
  18757. ],
  18758. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18759. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18760. <span class="hljs-attr">&quot;profile&quot;</span>: {
  18761. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18762. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18763. <span class="hljs-string">&quot;string&quot;</span>
  18764. ],
  18765. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18766. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18767. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18768. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18769. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18770. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18771. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18772. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18773. <span class="hljs-string">&quot;string&quot;</span>
  18774. ],
  18775. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18776. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  18777. {
  18778. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18779. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18780. }
  18781. ],
  18782. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18783. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18784. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18785. <span class="hljs-string">&quot;string&quot;</span>
  18786. ],
  18787. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18788. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18789. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18790. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18791. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18792. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18793. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18794. },
  18795. <span class="hljs-attr">&quot;services&quot;</span>: {},
  18796. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18797. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18798. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  18799. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  18800. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18801. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  18802. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  18803. },
  18804. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  18805. <span class="hljs-string">&quot;string&quot;</span>
  18806. ]
  18807. }
  18808. </code></pre>
  18809. <p>A User in wekan</p>
  18810. <h3 id="properties-20">Properties</h3>
  18811. <table>
  18812. <thead>
  18813. <tr>
  18814. <th>Name</th>
  18815. <th>Type</th>
  18816. <th>Required</th>
  18817. <th>Restrictions</th>
  18818. <th>Description</th>
  18819. </tr>
  18820. </thead>
  18821. <tbody>
  18822. <tr>
  18823. <td>username</td>
  18824. <td>string¦null</td>
  18825. <td>false</td>
  18826. <td>none</td>
  18827. <td>the username of the user</td>
  18828. </tr>
  18829. <tr>
  18830. <td>orgs</td>
  18831. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  18832. <td>false</td>
  18833. <td>none</td>
  18834. <td>the list of organizations that a user belongs to</td>
  18835. </tr>
  18836. <tr>
  18837. <td>teams</td>
  18838. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  18839. <td>false</td>
  18840. <td>none</td>
  18841. <td>the list of teams that a user belongs to</td>
  18842. </tr>
  18843. <tr>
  18844. <td>emails</td>
  18845. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  18846. <td>false</td>
  18847. <td>none</td>
  18848. <td>the list of emails attached to a user</td>
  18849. </tr>
  18850. <tr>
  18851. <td>createdAt</td>
  18852. <td>string</td>
  18853. <td>true</td>
  18854. <td>none</td>
  18855. <td>creation date of the user</td>
  18856. </tr>
  18857. <tr>
  18858. <td>modifiedAt</td>
  18859. <td>string</td>
  18860. <td>true</td>
  18861. <td>none</td>
  18862. <td>none</td>
  18863. </tr>
  18864. <tr>
  18865. <td>profile</td>
  18866. <td><a href="#schemausersprofile">UsersProfile</a></td>
  18867. <td>false</td>
  18868. <td>none</td>
  18869. <td>none</td>
  18870. </tr>
  18871. <tr>
  18872. <td>services</td>
  18873. <td>object¦null</td>
  18874. <td>false</td>
  18875. <td>none</td>
  18876. <td>services field of the user</td>
  18877. </tr>
  18878. <tr>
  18879. <td>heartbeat</td>
  18880. <td>string¦null</td>
  18881. <td>false</td>
  18882. <td>none</td>
  18883. <td>last time the user has been seen</td>
  18884. </tr>
  18885. <tr>
  18886. <td>isAdmin</td>
  18887. <td>boolean¦null</td>
  18888. <td>false</td>
  18889. <td>none</td>
  18890. <td>is the user an admin of the board?</td>
  18891. </tr>
  18892. <tr>
  18893. <td>createdThroughApi</td>
  18894. <td>boolean¦null</td>
  18895. <td>false</td>
  18896. <td>none</td>
  18897. <td>was the user created through the API?</td>
  18898. </tr>
  18899. <tr>
  18900. <td>loginDisabled</td>
  18901. <td>boolean¦null</td>
  18902. <td>false</td>
  18903. <td>none</td>
  18904. <td>loginDisabled field of the user</td>
  18905. </tr>
  18906. <tr>
  18907. <td>authenticationMethod</td>
  18908. <td>string</td>
  18909. <td>true</td>
  18910. <td>none</td>
  18911. <td>authentication method of the user</td>
  18912. </tr>
  18913. <tr>
  18914. <td>sessionData</td>
  18915. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  18916. <td>false</td>
  18917. <td>none</td>
  18918. <td>none</td>
  18919. </tr>
  18920. <tr>
  18921. <td>importUsernames</td>
  18922. <td>[string]¦null</td>
  18923. <td>false</td>
  18924. <td>none</td>
  18925. <td>username for imported</td>
  18926. </tr>
  18927. </tbody>
  18928. </table>
  18929. <h2 id="tocs_usersprofile">UsersProfile</h2>
  18930. <p><a id="schemausersprofile"></a>
  18931. <a id="schema_UsersProfile"></a>
  18932. <a id="tocSusersprofile"></a>
  18933. <a id="tocsusersprofile"></a></p>
  18934. <pre class="highlight tab tab-json"><code>{
  18935. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18936. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18937. <span class="hljs-string">&quot;string&quot;</span>
  18938. ],
  18939. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18940. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18941. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18942. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  18943. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18944. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18945. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18946. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18947. <span class="hljs-string">&quot;string&quot;</span>
  18948. ],
  18949. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18950. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  18951. {
  18952. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18953. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18954. }
  18955. ],
  18956. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18957. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18958. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18959. <span class="hljs-string">&quot;string&quot;</span>
  18960. ],
  18961. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18962. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18963. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18964. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18965. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18966. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18967. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18968. }
  18969. </code></pre>
  18970. <h3 id="properties-21">Properties</h3>
  18971. <table>
  18972. <thead>
  18973. <tr>
  18974. <th>Name</th>
  18975. <th>Type</th>
  18976. <th>Required</th>
  18977. <th>Restrictions</th>
  18978. <th>Description</th>
  18979. </tr>
  18980. </thead>
  18981. <tbody>
  18982. <tr>
  18983. <td>avatarUrl</td>
  18984. <td>string</td>
  18985. <td>false</td>
  18986. <td>none</td>
  18987. <td>URL of the avatar of the user</td>
  18988. </tr>
  18989. <tr>
  18990. <td>emailBuffer</td>
  18991. <td>[string]</td>
  18992. <td>false</td>
  18993. <td>none</td>
  18994. <td>list of email buffers of the user</td>
  18995. </tr>
  18996. <tr>
  18997. <td>fullname</td>
  18998. <td>string</td>
  18999. <td>false</td>
  19000. <td>none</td>
  19001. <td>full name of the user</td>
  19002. </tr>
  19003. <tr>
  19004. <td>showDesktopDragHandles</td>
  19005. <td>boolean</td>
  19006. <td>false</td>
  19007. <td>none</td>
  19008. <td>does the user want to show desktop drag handles?</td>
  19009. </tr>
  19010. <tr>
  19011. <td>hideCheckedItems</td>
  19012. <td>boolean</td>
  19013. <td>false</td>
  19014. <td>none</td>
  19015. <td>does the user want to hide checked checklist items?</td>
  19016. </tr>
  19017. <tr>
  19018. <td>cardMaximized</td>
  19019. <td>boolean</td>
  19020. <td>false</td>
  19021. <td>none</td>
  19022. <td>has user clicked maximize card?</td>
  19023. </tr>
  19024. <tr>
  19025. <td>hiddenSystemMessages</td>
  19026. <td>boolean</td>
  19027. <td>false</td>
  19028. <td>none</td>
  19029. <td>does the user want to hide system messages?</td>
  19030. </tr>
  19031. <tr>
  19032. <td>hiddenMinicardLabelText</td>
  19033. <td>boolean</td>
  19034. <td>false</td>
  19035. <td>none</td>
  19036. <td>does the user want to hide minicard label texts?</td>
  19037. </tr>
  19038. <tr>
  19039. <td>initials</td>
  19040. <td>string</td>
  19041. <td>false</td>
  19042. <td>none</td>
  19043. <td>initials of the user</td>
  19044. </tr>
  19045. <tr>
  19046. <td>invitedBoards</td>
  19047. <td>[string]</td>
  19048. <td>false</td>
  19049. <td>none</td>
  19050. <td>board IDs the user has been invited to</td>
  19051. </tr>
  19052. <tr>
  19053. <td>language</td>
  19054. <td>string</td>
  19055. <td>false</td>
  19056. <td>none</td>
  19057. <td>language of the user</td>
  19058. </tr>
  19059. <tr>
  19060. <td>notifications</td>
  19061. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19062. <td>false</td>
  19063. <td>none</td>
  19064. <td>enabled notifications for the user</td>
  19065. </tr>
  19066. <tr>
  19067. <td>showCardsCountAt</td>
  19068. <td>number</td>
  19069. <td>false</td>
  19070. <td>none</td>
  19071. <td>showCardCountAt field of the user</td>
  19072. </tr>
  19073. <tr>
  19074. <td>startDayOfWeek</td>
  19075. <td>number</td>
  19076. <td>false</td>
  19077. <td>none</td>
  19078. <td>startDayOfWeek field of the user</td>
  19079. </tr>
  19080. <tr>
  19081. <td>starredBoards</td>
  19082. <td>[string]</td>
  19083. <td>false</td>
  19084. <td>none</td>
  19085. <td>list of starred board IDs</td>
  19086. </tr>
  19087. <tr>
  19088. <td>icode</td>
  19089. <td>string</td>
  19090. <td>false</td>
  19091. <td>none</td>
  19092. <td>icode</td>
  19093. </tr>
  19094. <tr>
  19095. <td>boardView</td>
  19096. <td>string</td>
  19097. <td>false</td>
  19098. <td>none</td>
  19099. <td>boardView field of the user</td>
  19100. </tr>
  19101. <tr>
  19102. <td>listSortBy</td>
  19103. <td>string</td>
  19104. <td>false</td>
  19105. <td>none</td>
  19106. <td>default sort list for user</td>
  19107. </tr>
  19108. <tr>
  19109. <td>templatesBoardId</td>
  19110. <td>string</td>
  19111. <td>true</td>
  19112. <td>none</td>
  19113. <td>Reference to the templates board</td>
  19114. </tr>
  19115. <tr>
  19116. <td>cardTemplatesSwimlaneId</td>
  19117. <td>string</td>
  19118. <td>true</td>
  19119. <td>none</td>
  19120. <td>Reference to the card templates swimlane Id</td>
  19121. </tr>
  19122. <tr>
  19123. <td>listTemplatesSwimlaneId</td>
  19124. <td>string</td>
  19125. <td>true</td>
  19126. <td>none</td>
  19127. <td>Reference to the list templates swimlane Id</td>
  19128. </tr>
  19129. <tr>
  19130. <td>boardTemplatesSwimlaneId</td>
  19131. <td>string</td>
  19132. <td>true</td>
  19133. <td>none</td>
  19134. <td>Reference to the board templates swimlane Id</td>
  19135. </tr>
  19136. </tbody>
  19137. </table>
  19138. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19139. <table>
  19140. <thead>
  19141. <tr>
  19142. <th>Property</th>
  19143. <th>Value</th>
  19144. </tr>
  19145. </thead>
  19146. <tbody>
  19147. <tr>
  19148. <td>boardView</td>
  19149. <td>board-view-swimlanes</td>
  19150. </tr>
  19151. <tr>
  19152. <td>boardView</td>
  19153. <td>board-view-lists</td>
  19154. </tr>
  19155. <tr>
  19156. <td>boardView</td>
  19157. <td>board-view-cal</td>
  19158. </tr>
  19159. <tr>
  19160. <td>listSortBy</td>
  19161. <td>-modifiedat</td>
  19162. </tr>
  19163. <tr>
  19164. <td>listSortBy</td>
  19165. <td>modifiedat</td>
  19166. </tr>
  19167. <tr>
  19168. <td>listSortBy</td>
  19169. <td>-title</td>
  19170. </tr>
  19171. <tr>
  19172. <td>listSortBy</td>
  19173. <td>title</td>
  19174. </tr>
  19175. <tr>
  19176. <td>listSortBy</td>
  19177. <td>-sort</td>
  19178. </tr>
  19179. <tr>
  19180. <td>listSortBy</td>
  19181. <td>sort</td>
  19182. </tr>
  19183. </tbody>
  19184. </table>
  19185. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19186. <p><a id="schemauserssessiondata"></a>
  19187. <a id="schema_UsersSessiondata"></a>
  19188. <a id="tocSuserssessiondata"></a>
  19189. <a id="tocsuserssessiondata"></a></p>
  19190. <pre class="highlight tab tab-json"><code>{
  19191. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19192. }
  19193. </code></pre>
  19194. <h3 id="properties-22">Properties</h3>
  19195. <table>
  19196. <thead>
  19197. <tr>
  19198. <th>Name</th>
  19199. <th>Type</th>
  19200. <th>Required</th>
  19201. <th>Restrictions</th>
  19202. <th>Description</th>
  19203. </tr>
  19204. </thead>
  19205. <tbody>
  19206. <tr>
  19207. <td>totalHits</td>
  19208. <td>number</td>
  19209. <td>false</td>
  19210. <td>none</td>
  19211. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  19212. </tr>
  19213. </tbody>
  19214. </table>
  19215. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  19216. <p><a id="schemausersorgs"></a>
  19217. <a id="schema_UsersOrgs"></a>
  19218. <a id="tocSusersorgs"></a>
  19219. <a id="tocsusersorgs"></a></p>
  19220. <pre class="highlight tab tab-json"><code>{
  19221. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19222. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19223. }
  19224. </code></pre>
  19225. <h3 id="properties-23">Properties</h3>
  19226. <table>
  19227. <thead>
  19228. <tr>
  19229. <th>Name</th>
  19230. <th>Type</th>
  19231. <th>Required</th>
  19232. <th>Restrictions</th>
  19233. <th>Description</th>
  19234. </tr>
  19235. </thead>
  19236. <tbody>
  19237. <tr>
  19238. <td>orgId</td>
  19239. <td>string</td>
  19240. <td>true</td>
  19241. <td>none</td>
  19242. <td>The uniq ID of the organization</td>
  19243. </tr>
  19244. <tr>
  19245. <td>orgDisplayName</td>
  19246. <td>string</td>
  19247. <td>true</td>
  19248. <td>none</td>
  19249. <td>The display name of the organization</td>
  19250. </tr>
  19251. </tbody>
  19252. </table>
  19253. <h2 id="tocs_usersteams">UsersTeams</h2>
  19254. <p><a id="schemausersteams"></a>
  19255. <a id="schema_UsersTeams"></a>
  19256. <a id="tocSusersteams"></a>
  19257. <a id="tocsusersteams"></a></p>
  19258. <pre class="highlight tab tab-json"><code>{
  19259. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19260. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19261. }
  19262. </code></pre>
  19263. <h3 id="properties-24">Properties</h3>
  19264. <table>
  19265. <thead>
  19266. <tr>
  19267. <th>Name</th>
  19268. <th>Type</th>
  19269. <th>Required</th>
  19270. <th>Restrictions</th>
  19271. <th>Description</th>
  19272. </tr>
  19273. </thead>
  19274. <tbody>
  19275. <tr>
  19276. <td>teamId</td>
  19277. <td>string</td>
  19278. <td>true</td>
  19279. <td>none</td>
  19280. <td>The uniq ID of the team</td>
  19281. </tr>
  19282. <tr>
  19283. <td>teamDisplayName</td>
  19284. <td>string</td>
  19285. <td>true</td>
  19286. <td>none</td>
  19287. <td>The display name of the team</td>
  19288. </tr>
  19289. </tbody>
  19290. </table>
  19291. <h2 id="tocs_usersemails">UsersEmails</h2>
  19292. <p><a id="schemausersemails"></a>
  19293. <a id="schema_UsersEmails"></a>
  19294. <a id="tocSusersemails"></a>
  19295. <a id="tocsusersemails"></a></p>
  19296. <pre class="highlight tab tab-json"><code>{
  19297. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19298. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19299. }
  19300. </code></pre>
  19301. <h3 id="properties-25">Properties</h3>
  19302. <table>
  19303. <thead>
  19304. <tr>
  19305. <th>Name</th>
  19306. <th>Type</th>
  19307. <th>Required</th>
  19308. <th>Restrictions</th>
  19309. <th>Description</th>
  19310. </tr>
  19311. </thead>
  19312. <tbody>
  19313. <tr>
  19314. <td>address</td>
  19315. <td>string</td>
  19316. <td>true</td>
  19317. <td>none</td>
  19318. <td>The email address</td>
  19319. </tr>
  19320. <tr>
  19321. <td>verified</td>
  19322. <td>boolean</td>
  19323. <td>true</td>
  19324. <td>none</td>
  19325. <td>Has the email been verified</td>
  19326. </tr>
  19327. </tbody>
  19328. </table>
  19329. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  19330. <p><a id="schemausersprofilenotifications"></a>
  19331. <a id="schema_UsersProfileNotifications"></a>
  19332. <a id="tocSusersprofilenotifications"></a>
  19333. <a id="tocsusersprofilenotifications"></a></p>
  19334. <pre class="highlight tab tab-json"><code>{
  19335. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19336. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19337. }
  19338. </code></pre>
  19339. <h3 id="properties-26">Properties</h3>
  19340. <table>
  19341. <thead>
  19342. <tr>
  19343. <th>Name</th>
  19344. <th>Type</th>
  19345. <th>Required</th>
  19346. <th>Restrictions</th>
  19347. <th>Description</th>
  19348. </tr>
  19349. </thead>
  19350. <tbody>
  19351. <tr>
  19352. <td>activity</td>
  19353. <td>string</td>
  19354. <td>true</td>
  19355. <td>none</td>
  19356. <td>The id of the activity this notification references</td>
  19357. </tr>
  19358. <tr>
  19359. <td>read</td>
  19360. <td>string</td>
  19361. <td>false</td>
  19362. <td>none</td>
  19363. <td>the date on which this notification was read</td>
  19364. </tr>
  19365. </tbody>
  19366. </table>
  19367. <!-- Renderer: Shins v2.6.0 -->
  19368. <!-- Generator: Widdershins v4.0.1 -->
  19369. <!-- backwards compatibility -->
  19370. <!-- backwards compatibility -->
  19371. <!-- backwards compatibility -->
  19372. <!-- backwards compatibility -->
  19373. <!-- backwards compatibility -->
  19374. <!-- backwards compatibility -->
  19375. <!-- backwards compatibility -->
  19376. <!-- backwards compatibility -->
  19377. <!-- backwards compatibility -->
  19378. <!-- backwards compatibility -->
  19379. <!-- backwards compatibility -->
  19380. <!-- backwards compatibility -->
  19381. <!-- backwards compatibility -->
  19382. <!-- backwards compatibility -->
  19383. <!-- backwards compatibility -->
  19384. <!-- backwards compatibility -->
  19385. <!-- backwards compatibility -->
  19386. <!-- backwards compatibility -->
  19387. <!-- backwards compatibility -->
  19388. <!-- backwards compatibility -->
  19389. <!-- backwards compatibility -->
  19390. <!-- backwards compatibility -->
  19391. <!-- backwards compatibility -->
  19392. <!-- backwards compatibility -->
  19393. <!-- backwards compatibility -->
  19394. <!-- backwards compatibility -->
  19395. </div>
  19396. <div class="dark-box">
  19397. <div class="lang-selector">
  19398. <a href="#" data-language-name="shell">Shell</a>
  19399. <a href="#" data-language-name="http">HTTP</a>
  19400. <a href="#" data-language-name="javascript">JavaScript</a>
  19401. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  19402. <a href="#" data-language-name="ruby">Ruby</a>
  19403. <a href="#" data-language-name="python">Python</a>
  19404. <a href="#" data-language-name="java">Java</a>
  19405. <a href="#" data-language-name="go">Go</a>
  19406. <a href="#" data-language-name="php">PHP</a>
  19407. </div>
  19408. </div>
  19409. </div>
  19410. </body>
  19411. </html>