wekan.yml 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v6.99.1
  5. description: |
  6. The REST API allows you to control and extend Wekan with ease.
  7. If you are an end-user and not a dev or a tester, [create an issue](https://github.com/wekan/wekan/issues/new) to request new APIs.
  8. > All API calls in the documentation are made using `curl`. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.
  9. # Production Security Concerns
  10. 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:
  11. * Only call via HTTPS
  12. * Implement a timed authorization token expiration strategy
  13. * Ensure the calling user only has permissions for what they are calling and no more
  14. schemes:
  15. - http
  16. securityDefinitions:
  17. UserSecurity:
  18. type: apiKey
  19. in: header
  20. name: Authorization
  21. paths:
  22. /users/login:
  23. post:
  24. operationId: login
  25. summary: Login with REST API
  26. consumes:
  27. - application/x-www-form-urlencoded
  28. - application/json
  29. tags:
  30. - Login
  31. parameters:
  32. - name: username
  33. in: formData
  34. required: true
  35. description: |
  36. Your username
  37. type: string
  38. - name: password
  39. in: formData
  40. required: true
  41. description: |
  42. Your password
  43. type: string
  44. format: password
  45. responses:
  46. 200:
  47. description: |-
  48. Successful authentication
  49. schema:
  50. items:
  51. properties:
  52. id:
  53. type: string
  54. token:
  55. type: string
  56. tokenExpires:
  57. type: string
  58. 400:
  59. description: |
  60. Error in authentication
  61. schema:
  62. items:
  63. properties:
  64. error:
  65. type: number
  66. reason:
  67. type: string
  68. default:
  69. description: |
  70. Error in authentication
  71. /users/register:
  72. post:
  73. operationId: register
  74. summary: Register with REST API
  75. description: |
  76. Notes:
  77. - You will need to provide the token for any of the authenticated methods.
  78. consumes:
  79. - application/x-www-form-urlencoded
  80. - application/json
  81. tags:
  82. - Login
  83. parameters:
  84. - name: username
  85. in: formData
  86. required: true
  87. description: |
  88. Your username
  89. type: string
  90. - name: password
  91. in: formData
  92. required: true
  93. description: |
  94. Your password
  95. type: string
  96. format: password
  97. - name: email
  98. in: formData
  99. required: true
  100. description: |
  101. Your email
  102. type: string
  103. responses:
  104. 200:
  105. description: |-
  106. Successful registration
  107. schema:
  108. items:
  109. properties:
  110. id:
  111. type: string
  112. token:
  113. type: string
  114. tokenExpires:
  115. type: string
  116. 400:
  117. description: |
  118. Error in registration
  119. schema:
  120. items:
  121. properties:
  122. error:
  123. type: number
  124. reason:
  125. type: string
  126. default:
  127. description: |
  128. Error in registration
  129. /api/boards:
  130. get:
  131. operationId: get_public_boards
  132. summary: Get all public boards
  133. tags:
  134. - Boards
  135. produces:
  136. - application/json
  137. security:
  138. - UserSecurity: []
  139. responses:
  140. '200':
  141. description: |-
  142. 200 response
  143. schema:
  144. type: array
  145. items:
  146. type: object
  147. properties:
  148. _id:
  149. type: string
  150. title:
  151. type: string
  152. post:
  153. operationId: new_board
  154. summary: Create a board
  155. description: |
  156. This allows to create a board.
  157. The color has to be chosen between `belize`, `nephritis`, `pomegranate`,
  158. `pumpkin`, `wisteria`, `moderatepink`, `strongcyan`,
  159. `limegreen`, `midnight`, `dark`, `relax`, `corteza`:
  160. <img src="https://wekan.github.io/board-colors.png" width="40%" alt="Wekan logo" />
  161. tags:
  162. - Boards
  163. consumes:
  164. - multipart/form-data
  165. - application/json
  166. parameters:
  167. - name: title
  168. in: formData
  169. description: |
  170. the new title of the board
  171. type: string
  172. required: true
  173. - name: owner
  174. in: formData
  175. description: |
  176. "ABCDE12345" <= User ID in Wekan.
  177. (Not username or email)
  178. type: string
  179. required: true
  180. - name: isAdmin
  181. in: formData
  182. description: |
  183. is the owner an admin of the board (default true)
  184. type: boolean
  185. required: false
  186. - name: isActive
  187. in: formData
  188. description: |
  189. is the board active (default true)
  190. type: boolean
  191. required: false
  192. - name: isNoComments
  193. in: formData
  194. description: |
  195. disable comments (default false)
  196. type: boolean
  197. required: false
  198. - name: isCommentOnly
  199. in: formData
  200. description: |
  201. only enable comments (default false)
  202. type: boolean
  203. required: false
  204. - name: isWorker
  205. in: formData
  206. description: |
  207. only move cards, assign himself to card and comment (default false)
  208. type: boolean
  209. required: false
  210. - name: permission
  211. in: formData
  212. description: |
  213. "private" board <== Set to "public" if you
  214. want public Wekan board
  215. type: string
  216. required: false
  217. - name: color
  218. in: formData
  219. description: |
  220. the color of the board
  221. type: string
  222. required: false
  223. produces:
  224. - application/json
  225. security:
  226. - UserSecurity: []
  227. responses:
  228. '200':
  229. description: |-
  230. 200 response
  231. schema:
  232. type: object
  233. properties:
  234. _id:
  235. type: string
  236. defaultSwimlaneId:
  237. type: string
  238. /api/boards/{board}:
  239. get:
  240. operationId: get_board
  241. summary: Get the board with that particular ID
  242. tags:
  243. - Boards
  244. parameters:
  245. - name: board
  246. in: path
  247. description: |
  248. the ID of the board to retrieve the data
  249. type: string
  250. required: true
  251. produces:
  252. - application/json
  253. security:
  254. - UserSecurity: []
  255. responses:
  256. '200':
  257. description: |-
  258. 200 response
  259. schema:
  260. $ref: "#/definitions/Boards"
  261. delete:
  262. operationId: delete_board
  263. summary: Delete a board
  264. tags:
  265. - Boards
  266. parameters:
  267. - name: board
  268. in: path
  269. description: |
  270. the ID of the board
  271. type: string
  272. required: true
  273. produces:
  274. - application/json
  275. security:
  276. - UserSecurity: []
  277. responses:
  278. '200':
  279. description: |-
  280. 200 response
  281. /api/boards/{board}/attachments:
  282. get:
  283. operationId: get_board_attachments
  284. summary: Get the list of attachments of a board
  285. tags:
  286. - Boards
  287. parameters:
  288. - name: board
  289. in: path
  290. description: |
  291. the board ID
  292. type: string
  293. required: true
  294. produces:
  295. - application/json
  296. security:
  297. - UserSecurity: []
  298. responses:
  299. '200':
  300. description: |-
  301. 200 response
  302. schema:
  303. type: array
  304. items:
  305. type: object
  306. properties:
  307. attachmentId:
  308. type: string
  309. attachmentName:
  310. type: string
  311. attachmentType:
  312. type: string
  313. url:
  314. type: string
  315. urlDownload:
  316. type: string
  317. boardId:
  318. type: string
  319. swimlaneId:
  320. type: string
  321. listId:
  322. type: string
  323. cardId:
  324. type: string
  325. /api/boards/{board}/attachments/{attachment}/export:
  326. get:
  327. operationId: exportJson
  328. summary: This route is used to export a attachement to a json file format.
  329. description: |
  330. If user is already logged-in, pass loginToken as param
  331. "authToken": '/api/boards/:boardId/attachments/:attachmentId/export?authToken=:token'
  332. tags:
  333. - Boards
  334. parameters:
  335. - name: board
  336. in: path
  337. description: |
  338. the ID of the board we are exporting
  339. type: string
  340. required: true
  341. - name: attachment
  342. in: path
  343. description: |
  344. the ID of the attachment we are exporting
  345. type: string
  346. required: true
  347. produces:
  348. - application/json
  349. security:
  350. - UserSecurity: []
  351. responses:
  352. '200':
  353. description: |-
  354. 200 response
  355. /api/boards/{board}/cards/{card}/checklists:
  356. get:
  357. operationId: get_all_checklists
  358. summary: Get the list of checklists attached to a card
  359. tags:
  360. - Checklists
  361. parameters:
  362. - name: board
  363. in: path
  364. description: |
  365. the board ID
  366. type: string
  367. required: true
  368. - name: card
  369. in: path
  370. description: |
  371. the card ID
  372. type: string
  373. required: true
  374. produces:
  375. - application/json
  376. security:
  377. - UserSecurity: []
  378. responses:
  379. '200':
  380. description: |-
  381. 200 response
  382. schema:
  383. type: array
  384. items:
  385. type: object
  386. properties:
  387. _id:
  388. type: string
  389. title:
  390. type: string
  391. post:
  392. operationId: new_checklist
  393. summary: create a new checklist
  394. tags:
  395. - Checklists
  396. consumes:
  397. - multipart/form-data
  398. - application/json
  399. parameters:
  400. - name: title
  401. in: formData
  402. description: |
  403. the title of the new checklist
  404. type: string
  405. required: true
  406. - name: items
  407. in: formData
  408. description: |
  409. the list of items on the new checklist
  410. type: string
  411. required: false
  412. - name: board
  413. in: path
  414. description: |
  415. the board ID
  416. type: string
  417. required: true
  418. - name: card
  419. in: path
  420. description: |
  421. the card ID
  422. type: string
  423. required: true
  424. produces:
  425. - application/json
  426. security:
  427. - UserSecurity: []
  428. responses:
  429. '200':
  430. description: |-
  431. 200 response
  432. schema:
  433. type: object
  434. properties:
  435. _id:
  436. type: string
  437. /api/boards/{board}/cards/{card}/checklists/{checklist}:
  438. get:
  439. operationId: get_checklist
  440. summary: Get a checklist
  441. tags:
  442. - Checklists
  443. parameters:
  444. - name: board
  445. in: path
  446. description: |
  447. the board ID
  448. type: string
  449. required: true
  450. - name: card
  451. in: path
  452. description: |
  453. the card ID
  454. type: string
  455. required: true
  456. - name: checklist
  457. in: path
  458. description: |
  459. the ID of the checklist
  460. type: string
  461. required: true
  462. produces:
  463. - application/json
  464. security:
  465. - UserSecurity: []
  466. responses:
  467. '200':
  468. description: |-
  469. 200 response
  470. schema:
  471. type: object
  472. properties:
  473. cardId:
  474. type: string
  475. title:
  476. type: string
  477. finishedAt:
  478. type: string
  479. createdAt:
  480. type: string
  481. sort:
  482. type: number
  483. items:
  484. type: array
  485. items:
  486. type: object
  487. properties:
  488. _id:
  489. type: string
  490. title:
  491. type: string
  492. isFinished:
  493. type: boolean
  494. delete:
  495. operationId: delete_checklist
  496. summary: Delete a checklist
  497. description: |
  498. The checklist will be removed, not put in the recycle bin.
  499. tags:
  500. - Checklists
  501. parameters:
  502. - name: board
  503. in: path
  504. description: |
  505. the board ID
  506. type: string
  507. required: true
  508. - name: card
  509. in: path
  510. description: |
  511. the card ID
  512. type: string
  513. required: true
  514. - name: checklist
  515. in: path
  516. description: |
  517. the ID of the checklist to remove
  518. type: string
  519. required: true
  520. produces:
  521. - application/json
  522. security:
  523. - UserSecurity: []
  524. responses:
  525. '200':
  526. description: |-
  527. 200 response
  528. schema:
  529. type: object
  530. properties:
  531. _id:
  532. type: string
  533. /api/boards/{board}/cards/{card}/checklists/{checklist}/items:
  534. post:
  535. operationId: new_checklist_item
  536. summary: add a new item to a checklist
  537. tags:
  538. - ChecklistItems
  539. consumes:
  540. - multipart/form-data
  541. - application/json
  542. parameters:
  543. - name: title
  544. in: formData
  545. description: |
  546. the title of the new item
  547. type: string
  548. required: true
  549. - name: board
  550. in: path
  551. description: |
  552. the board ID
  553. type: string
  554. required: true
  555. - name: card
  556. in: path
  557. description: |
  558. the card ID
  559. type: string
  560. required: true
  561. - name: checklist
  562. in: path
  563. description: |
  564. the ID of the checklist
  565. type: string
  566. required: true
  567. produces:
  568. - application/json
  569. security:
  570. - UserSecurity: []
  571. responses:
  572. '200':
  573. description: |-
  574. 200 response
  575. schema:
  576. type: object
  577. properties:
  578. _id:
  579. type: string
  580. /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}:
  581. get:
  582. operationId: get_checklist_item
  583. summary: Get a checklist item
  584. tags:
  585. - ChecklistItems
  586. - Checklists
  587. parameters:
  588. - name: board
  589. in: path
  590. description: |
  591. the board ID
  592. type: string
  593. required: true
  594. - name: card
  595. in: path
  596. description: |
  597. the card ID
  598. type: string
  599. required: true
  600. - name: checklist
  601. in: path
  602. description: |
  603. the checklist ID
  604. type: string
  605. required: true
  606. - name: item
  607. in: path
  608. description: |
  609. the ID of the item
  610. type: string
  611. required: true
  612. produces:
  613. - application/json
  614. security:
  615. - UserSecurity: []
  616. responses:
  617. '200':
  618. description: |-
  619. 200 response
  620. schema:
  621. $ref: "#/definitions/ChecklistItems"
  622. put:
  623. operationId: edit_checklist_item
  624. summary: Edit a checklist item
  625. tags:
  626. - ChecklistItems
  627. - Checklists
  628. consumes:
  629. - multipart/form-data
  630. - application/json
  631. parameters:
  632. - name: isFinished
  633. in: formData
  634. description: |
  635. is the item checked?
  636. type: string
  637. required: false
  638. - name: title
  639. in: formData
  640. description: |
  641. the new text of the item
  642. type: string
  643. required: false
  644. - name: board
  645. in: path
  646. description: |
  647. the board ID
  648. type: string
  649. required: true
  650. - name: card
  651. in: path
  652. description: |
  653. the card ID
  654. type: string
  655. required: true
  656. - name: checklist
  657. in: path
  658. description: |
  659. the checklist ID
  660. type: string
  661. required: true
  662. - name: item
  663. in: path
  664. description: |
  665. the ID of the item
  666. type: string
  667. required: true
  668. produces:
  669. - application/json
  670. security:
  671. - UserSecurity: []
  672. responses:
  673. '200':
  674. description: |-
  675. 200 response
  676. schema:
  677. type: object
  678. properties:
  679. _id:
  680. type: string
  681. delete:
  682. operationId: delete_checklist_item
  683. summary: Delete a checklist item
  684. description: |
  685. Note: this operation can't be reverted.
  686. tags:
  687. - ChecklistItems
  688. - Checklists
  689. parameters:
  690. - name: board
  691. in: path
  692. description: |
  693. the board ID
  694. type: string
  695. required: true
  696. - name: card
  697. in: path
  698. description: |
  699. the card ID
  700. type: string
  701. required: true
  702. - name: checklist
  703. in: path
  704. description: |
  705. the checklist ID
  706. type: string
  707. required: true
  708. - name: item
  709. in: path
  710. description: |
  711. the ID of the item to be removed
  712. type: string
  713. required: true
  714. produces:
  715. - application/json
  716. security:
  717. - UserSecurity: []
  718. responses:
  719. '200':
  720. description: |-
  721. 200 response
  722. schema:
  723. type: object
  724. properties:
  725. _id:
  726. type: string
  727. /api/boards/{board}/cards/{card}/comments:
  728. get:
  729. operationId: get_all_comments
  730. summary: Get all comments attached to a card
  731. tags:
  732. - CardComments
  733. parameters:
  734. - name: board
  735. in: path
  736. description: |
  737. the board ID of the card
  738. type: string
  739. required: true
  740. - name: card
  741. in: path
  742. description: |
  743. the ID of the card
  744. type: string
  745. required: true
  746. produces:
  747. - application/json
  748. security:
  749. - UserSecurity: []
  750. responses:
  751. '200':
  752. description: |-
  753. 200 response
  754. schema:
  755. type: array
  756. items:
  757. type: object
  758. properties:
  759. _id:
  760. type: string
  761. comment:
  762. type: string
  763. authorId:
  764. type: string
  765. post:
  766. operationId: new_comment
  767. summary: Add a comment on a card
  768. tags:
  769. - CardComments
  770. consumes:
  771. - multipart/form-data
  772. - application/json
  773. parameters:
  774. - name: authorId
  775. in: formData
  776. description: |
  777. the user who 'posted' the comment
  778. type: string
  779. required: true
  780. - name: comment
  781. in: formData
  782. description: the comment value
  783. type: string
  784. required: true
  785. - name: board
  786. in: path
  787. description: |
  788. the board ID of the card
  789. type: string
  790. required: true
  791. - name: card
  792. in: path
  793. description: |
  794. the ID of the card
  795. type: string
  796. required: true
  797. produces:
  798. - application/json
  799. security:
  800. - UserSecurity: []
  801. responses:
  802. '200':
  803. description: |-
  804. 200 response
  805. schema:
  806. type: object
  807. properties:
  808. _id:
  809. type: string
  810. /api/boards/{board}/cards/{card}/comments/{comment}:
  811. get:
  812. operationId: get_comment
  813. summary: Get a comment on a card
  814. tags:
  815. - CardComments
  816. parameters:
  817. - name: board
  818. in: path
  819. description: |
  820. the board ID of the card
  821. type: string
  822. required: true
  823. - name: card
  824. in: path
  825. description: |
  826. the ID of the card
  827. type: string
  828. required: true
  829. - name: comment
  830. in: path
  831. description: |
  832. the ID of the comment to retrieve
  833. type: string
  834. required: true
  835. produces:
  836. - application/json
  837. security:
  838. - UserSecurity: []
  839. responses:
  840. '200':
  841. description: |-
  842. 200 response
  843. schema:
  844. $ref: "#/definitions/CardComments"
  845. delete:
  846. operationId: delete_comment
  847. summary: Delete a comment on a card
  848. tags:
  849. - CardComments
  850. parameters:
  851. - name: board
  852. in: path
  853. description: |
  854. the board ID of the card
  855. type: string
  856. required: true
  857. - name: card
  858. in: path
  859. description: |
  860. the ID of the card
  861. type: string
  862. required: true
  863. - name: comment
  864. in: path
  865. description: |
  866. the ID of the comment to delete
  867. type: string
  868. required: true
  869. produces:
  870. - application/json
  871. security:
  872. - UserSecurity: []
  873. responses:
  874. '200':
  875. description: |-
  876. 200 response
  877. schema:
  878. type: object
  879. properties:
  880. _id:
  881. type: string
  882. /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}:
  883. get:
  884. operationId: get_cards_by_custom_field
  885. summary: Get all Cards that matchs a value of a specific custom field
  886. tags:
  887. - Cards
  888. parameters:
  889. - name: board
  890. in: path
  891. description: |
  892. the board ID
  893. type: string
  894. required: true
  895. - name: customField
  896. in: path
  897. description: |
  898. the list ID
  899. type: string
  900. required: true
  901. - name: customFieldValue
  902. in: path
  903. description: |
  904. the value to look for
  905. type: string
  906. required: true
  907. produces:
  908. - application/json
  909. security:
  910. - UserSecurity: []
  911. responses:
  912. '200':
  913. description: |-
  914. 200 response
  915. schema:
  916. type: array
  917. items:
  918. type: object
  919. properties:
  920. _id:
  921. type: string
  922. title:
  923. type: string
  924. description:
  925. type: string
  926. listId:
  927. type: string
  928. swinlaneId:
  929. type: string
  930. /api/boards/{board}/cards_count:
  931. get:
  932. operationId: get_board_cards_count
  933. summary: Get a cards count to a board
  934. tags:
  935. - Cards
  936. parameters:
  937. - name: board
  938. in: path
  939. description: |
  940. the board ID
  941. type: string
  942. required: true
  943. produces:
  944. - application/json
  945. security:
  946. - UserSecurity: []
  947. responses:
  948. '200':
  949. description: |-
  950. 200 response
  951. schema:
  952. type: object
  953. properties:
  954. board_cards_count:
  955. type: integer
  956. /api/boards/{board}/custom-fields:
  957. get:
  958. operationId: get_all_custom_fields
  959. summary: Get the list of Custom Fields attached to a board
  960. tags:
  961. - CustomFields
  962. parameters:
  963. - name: board
  964. in: path
  965. description: the board value
  966. type: string
  967. required: true
  968. produces:
  969. - application/json
  970. security:
  971. - UserSecurity: []
  972. responses:
  973. '200':
  974. description: |-
  975. 200 response
  976. schema:
  977. type: array
  978. items:
  979. type: object
  980. properties:
  981. _id:
  982. type: string
  983. name:
  984. type: string
  985. type:
  986. type: string
  987. post:
  988. operationId: new_custom_field
  989. summary: Create a Custom Field
  990. tags:
  991. - CustomFields
  992. consumes:
  993. - multipart/form-data
  994. - application/json
  995. parameters:
  996. - name: name
  997. in: formData
  998. description: |
  999. the name of the custom field
  1000. type: string
  1001. required: true
  1002. - name: type
  1003. in: formData
  1004. description: |
  1005. the type of the custom field
  1006. type: string
  1007. required: true
  1008. - name: settings
  1009. in: formData
  1010. description: |
  1011. the settings object of the custom field
  1012. type: string
  1013. required: true
  1014. - name: showOnCard
  1015. in: formData
  1016. description: |
  1017. should we show the custom field on cards?
  1018. type: boolean
  1019. required: true
  1020. - name: automaticallyOnCard
  1021. in: formData
  1022. description: |
  1023. should the custom fields automatically be added on cards?
  1024. type: boolean
  1025. required: true
  1026. - name: showLabelOnMiniCard
  1027. in: formData
  1028. description: |
  1029. should the label of the custom field be shown on minicards?
  1030. type: boolean
  1031. required: true
  1032. - name: showSumAtTopOfList
  1033. in: formData
  1034. description: |
  1035. should the sum of the custom fields be shown at top of list?
  1036. type: boolean
  1037. required: true
  1038. - name: authorId
  1039. in: formData
  1040. description: the authorId value
  1041. type: string
  1042. required: true
  1043. - name: board
  1044. in: path
  1045. description: the board value
  1046. type: string
  1047. required: true
  1048. produces:
  1049. - application/json
  1050. security:
  1051. - UserSecurity: []
  1052. responses:
  1053. '200':
  1054. description: |-
  1055. 200 response
  1056. schema:
  1057. type: object
  1058. properties:
  1059. _id:
  1060. type: string
  1061. /api/boards/{board}/custom-fields/{customField}:
  1062. get:
  1063. operationId: get_custom_field
  1064. summary: Get a Custom Fields attached to a board
  1065. tags:
  1066. - CustomFields
  1067. parameters:
  1068. - name: board
  1069. in: path
  1070. description: the board value
  1071. type: string
  1072. required: true
  1073. - name: customField
  1074. in: path
  1075. description: |
  1076. the ID of the custom field
  1077. type: string
  1078. required: true
  1079. produces:
  1080. - application/json
  1081. security:
  1082. - UserSecurity: []
  1083. responses:
  1084. '200':
  1085. description: |-
  1086. 200 response
  1087. schema:
  1088. type: array
  1089. items:
  1090. type: object
  1091. properties:
  1092. _id:
  1093. type: string
  1094. boardIds:
  1095. type: string
  1096. put:
  1097. operationId: edit_custom_field
  1098. summary: Update a Custom Field
  1099. tags:
  1100. - CustomFields
  1101. consumes:
  1102. - multipart/form-data
  1103. - application/json
  1104. parameters:
  1105. - name: name
  1106. in: formData
  1107. description: |
  1108. the name of the custom field
  1109. type: string
  1110. required: true
  1111. - name: type
  1112. in: formData
  1113. description: |
  1114. the type of the custom field
  1115. type: string
  1116. required: true
  1117. - name: settings
  1118. in: formData
  1119. description: |
  1120. the settings object of the custom field
  1121. type: string
  1122. required: true
  1123. - name: showOnCard
  1124. in: formData
  1125. description: |
  1126. should we show the custom field on cards
  1127. type: boolean
  1128. required: true
  1129. - name: automaticallyOnCard
  1130. in: formData
  1131. description: |
  1132. should the custom fields automatically be added on cards
  1133. type: boolean
  1134. required: true
  1135. - name: alwaysOnCard
  1136. in: formData
  1137. description: the alwaysOnCard value
  1138. type: string
  1139. required: true
  1140. - name: showLabelOnMiniCard
  1141. in: formData
  1142. description: |
  1143. should the label of the custom field be shown on minicards
  1144. type: boolean
  1145. required: true
  1146. - name: showSumAtTopOfList
  1147. in: formData
  1148. description: |
  1149. should the sum of the custom fields be shown at top of list
  1150. type: boolean
  1151. required: true
  1152. - name: board
  1153. in: path
  1154. description: the board value
  1155. type: string
  1156. required: true
  1157. - name: customField
  1158. in: path
  1159. description: the customField value
  1160. type: string
  1161. required: true
  1162. produces:
  1163. - application/json
  1164. security:
  1165. - UserSecurity: []
  1166. responses:
  1167. '200':
  1168. description: |-
  1169. 200 response
  1170. schema:
  1171. type: object
  1172. properties:
  1173. _id:
  1174. type: string
  1175. delete:
  1176. operationId: delete_custom_field
  1177. summary: Delete a Custom Fields attached to a board
  1178. description: |
  1179. The Custom Field can't be retrieved after this operation
  1180. tags:
  1181. - CustomFields
  1182. parameters:
  1183. - name: board
  1184. in: path
  1185. description: the board value
  1186. type: string
  1187. required: true
  1188. - name: customField
  1189. in: path
  1190. description: |
  1191. the ID of the custom field
  1192. type: string
  1193. required: true
  1194. produces:
  1195. - application/json
  1196. security:
  1197. - UserSecurity: []
  1198. responses:
  1199. '200':
  1200. description: |-
  1201. 200 response
  1202. schema:
  1203. type: object
  1204. properties:
  1205. _id:
  1206. type: string
  1207. /api/boards/{board}/custom-fields/{customField}/dropdown-items:
  1208. post:
  1209. operationId: add_custom_field_dropdown_items
  1210. summary: Update a Custom Field's dropdown items
  1211. tags:
  1212. - CustomFields
  1213. consumes:
  1214. - multipart/form-data
  1215. - application/json
  1216. parameters:
  1217. - name: items
  1218. in: formData
  1219. description: |
  1220. names of the custom field
  1221. type: string
  1222. required: false
  1223. - name: board
  1224. in: path
  1225. description: the board value
  1226. type: string
  1227. required: true
  1228. - name: customField
  1229. in: path
  1230. description: the customField value
  1231. type: string
  1232. required: true
  1233. produces:
  1234. - application/json
  1235. security:
  1236. - UserSecurity: []
  1237. responses:
  1238. '200':
  1239. description: |-
  1240. 200 response
  1241. schema:
  1242. type: object
  1243. properties:
  1244. _id:
  1245. type: string
  1246. /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}:
  1247. put:
  1248. operationId: edit_custom_field_dropdown_item
  1249. summary: Update a Custom Field's dropdown item
  1250. tags:
  1251. - CustomFields
  1252. consumes:
  1253. - multipart/form-data
  1254. - application/json
  1255. parameters:
  1256. - name: name
  1257. in: formData
  1258. description: |
  1259. names of the custom field
  1260. type: string
  1261. required: true
  1262. - name: board
  1263. in: path
  1264. description: the board value
  1265. type: string
  1266. required: true
  1267. - name: customField
  1268. in: path
  1269. description: the customField value
  1270. type: string
  1271. required: true
  1272. - name: dropdownItem
  1273. in: path
  1274. description: the dropdownItem value
  1275. type: string
  1276. required: true
  1277. produces:
  1278. - application/json
  1279. security:
  1280. - UserSecurity: []
  1281. responses:
  1282. '200':
  1283. description: |-
  1284. 200 response
  1285. schema:
  1286. type: object
  1287. properties:
  1288. _id:
  1289. type: string
  1290. delete:
  1291. operationId: delete_custom_field_dropdown_item
  1292. summary: Update a Custom Field's dropdown items
  1293. tags:
  1294. - CustomFields
  1295. parameters:
  1296. - name: board
  1297. in: path
  1298. description: the board value
  1299. type: string
  1300. required: true
  1301. - name: customField
  1302. in: path
  1303. description: the customField value
  1304. type: string
  1305. required: true
  1306. - name: dropdownItem
  1307. in: path
  1308. description: the dropdownItem value
  1309. type: string
  1310. required: true
  1311. produces:
  1312. - application/json
  1313. security:
  1314. - UserSecurity: []
  1315. responses:
  1316. '200':
  1317. description: |-
  1318. 200 response
  1319. schema:
  1320. type: object
  1321. properties:
  1322. _id:
  1323. type: string
  1324. /api/boards/{board}/export:
  1325. get:
  1326. operationId: exportJson
  1327. summary: This route is used to export the board to a json file format.
  1328. description: |
  1329. If user is already logged-in, pass loginToken as param
  1330. "authToken": '/api/boards/:boardId/export?authToken=:token'
  1331. See https://blog.kayla.com.au/server-side-route-authentication-in-meteor/
  1332. for detailed explanations
  1333. tags:
  1334. - Boards
  1335. parameters:
  1336. - name: board
  1337. in: path
  1338. description: |
  1339. the ID of the board we are exporting
  1340. type: string
  1341. required: true
  1342. produces:
  1343. - application/json
  1344. security:
  1345. - UserSecurity: []
  1346. responses:
  1347. '200':
  1348. description: |-
  1349. 200 response
  1350. /api/boards/{board}/integrations:
  1351. get:
  1352. operationId: get_all_integrations
  1353. summary: Get all integrations in board
  1354. tags:
  1355. - Integrations
  1356. parameters:
  1357. - name: board
  1358. in: path
  1359. description: |
  1360. the board ID
  1361. type: string
  1362. required: true
  1363. produces:
  1364. - application/json
  1365. security:
  1366. - UserSecurity: []
  1367. responses:
  1368. '200':
  1369. description: |-
  1370. 200 response
  1371. schema:
  1372. type: array
  1373. items:
  1374. $ref: "#/definitions/Integrations"
  1375. post:
  1376. operationId: new_integration
  1377. summary: Create a new integration
  1378. tags:
  1379. - Integrations
  1380. consumes:
  1381. - multipart/form-data
  1382. - application/json
  1383. parameters:
  1384. - name: url
  1385. in: formData
  1386. description: |
  1387. the URL of the integration
  1388. type: string
  1389. required: true
  1390. - name: board
  1391. in: path
  1392. description: |
  1393. the board ID
  1394. type: string
  1395. required: true
  1396. produces:
  1397. - application/json
  1398. security:
  1399. - UserSecurity: []
  1400. responses:
  1401. '200':
  1402. description: |-
  1403. 200 response
  1404. schema:
  1405. type: object
  1406. properties:
  1407. _id:
  1408. type: string
  1409. /api/boards/{board}/integrations/{int}:
  1410. get:
  1411. operationId: get_integration
  1412. summary: Get a single integration in board
  1413. tags:
  1414. - Integrations
  1415. parameters:
  1416. - name: board
  1417. in: path
  1418. description: |
  1419. the board ID
  1420. type: string
  1421. required: true
  1422. - name: int
  1423. in: path
  1424. description: |
  1425. the integration ID
  1426. type: string
  1427. required: true
  1428. produces:
  1429. - application/json
  1430. security:
  1431. - UserSecurity: []
  1432. responses:
  1433. '200':
  1434. description: |-
  1435. 200 response
  1436. schema:
  1437. $ref: "#/definitions/Integrations"
  1438. put:
  1439. operationId: edit_integration
  1440. summary: Edit integration data
  1441. tags:
  1442. - Integrations
  1443. consumes:
  1444. - multipart/form-data
  1445. - application/json
  1446. parameters:
  1447. - name: enabled
  1448. in: formData
  1449. description: |
  1450. is the integration enabled?
  1451. type: string
  1452. required: false
  1453. - name: title
  1454. in: formData
  1455. description: |
  1456. new name of the integration
  1457. type: string
  1458. required: false
  1459. - name: url
  1460. in: formData
  1461. description: |
  1462. new URL of the integration
  1463. type: string
  1464. required: false
  1465. - name: token
  1466. in: formData
  1467. description: |
  1468. new token of the integration
  1469. type: string
  1470. required: false
  1471. - name: activities
  1472. in: formData
  1473. description: |
  1474. new list of activities of the integration
  1475. type: string
  1476. required: false
  1477. - name: board
  1478. in: path
  1479. description: |
  1480. the board ID
  1481. type: string
  1482. required: true
  1483. - name: int
  1484. in: path
  1485. description: |
  1486. the integration ID
  1487. type: string
  1488. required: true
  1489. produces:
  1490. - application/json
  1491. security:
  1492. - UserSecurity: []
  1493. responses:
  1494. '200':
  1495. description: |-
  1496. 200 response
  1497. schema:
  1498. type: object
  1499. properties:
  1500. _id:
  1501. type: string
  1502. delete:
  1503. operationId: delete_integration
  1504. summary: Delete integration
  1505. tags:
  1506. - Integrations
  1507. parameters:
  1508. - name: board
  1509. in: path
  1510. description: |
  1511. the board ID
  1512. type: string
  1513. required: true
  1514. - name: int
  1515. in: path
  1516. description: |
  1517. the integration ID
  1518. type: string
  1519. required: true
  1520. produces:
  1521. - application/json
  1522. security:
  1523. - UserSecurity: []
  1524. responses:
  1525. '200':
  1526. description: |-
  1527. 200 response
  1528. schema:
  1529. type: object
  1530. properties:
  1531. _id:
  1532. type: string
  1533. /api/boards/{board}/integrations/{int}/activities:
  1534. delete:
  1535. operationId: delete_integration_activities
  1536. summary: Delete subscribed activities
  1537. tags:
  1538. - Integrations
  1539. parameters:
  1540. - name: board
  1541. in: path
  1542. description: |
  1543. the board ID
  1544. type: string
  1545. required: true
  1546. - name: int
  1547. in: path
  1548. description: |
  1549. the integration ID
  1550. type: string
  1551. required: true
  1552. produces:
  1553. - application/json
  1554. security:
  1555. - UserSecurity: []
  1556. responses:
  1557. '200':
  1558. description: |-
  1559. 200 response
  1560. schema:
  1561. $ref: "#/definitions/Integrations"
  1562. post:
  1563. operationId: new_integration_activities
  1564. summary: Add subscribed activities
  1565. tags:
  1566. - Integrations
  1567. consumes:
  1568. - multipart/form-data
  1569. - application/json
  1570. parameters:
  1571. - name: activities
  1572. in: formData
  1573. description: the activities value
  1574. type: string
  1575. required: true
  1576. - name: board
  1577. in: path
  1578. description: |
  1579. the board ID
  1580. type: string
  1581. required: true
  1582. - name: int
  1583. in: path
  1584. description: |
  1585. the integration ID
  1586. type: string
  1587. required: true
  1588. produces:
  1589. - application/json
  1590. security:
  1591. - UserSecurity: []
  1592. responses:
  1593. '200':
  1594. description: |-
  1595. 200 response
  1596. schema:
  1597. $ref: "#/definitions/Integrations"
  1598. /api/boards/{board}/labels:
  1599. put:
  1600. operationId: add_board_label
  1601. summary: Add a label to a board
  1602. description: |
  1603. If the board doesn't have the name/color label, this function
  1604. adds the label to the board.
  1605. tags:
  1606. - Boards
  1607. consumes:
  1608. - multipart/form-data
  1609. - application/json
  1610. parameters:
  1611. - name: label
  1612. in: formData
  1613. description: the label value
  1614. type: string
  1615. required: true
  1616. - name: board
  1617. in: path
  1618. description: |
  1619. the board
  1620. type: string
  1621. required: true
  1622. produces:
  1623. - application/json
  1624. security:
  1625. - UserSecurity: []
  1626. responses:
  1627. '200':
  1628. description: |-
  1629. 200 response
  1630. schema:
  1631. type: string
  1632. /api/boards/{board}/lists:
  1633. get:
  1634. operationId: get_all_lists
  1635. summary: Get the list of Lists attached to a board
  1636. tags:
  1637. - Lists
  1638. parameters:
  1639. - name: board
  1640. in: path
  1641. description: |
  1642. the board ID
  1643. type: string
  1644. required: true
  1645. produces:
  1646. - application/json
  1647. security:
  1648. - UserSecurity: []
  1649. responses:
  1650. '200':
  1651. description: |-
  1652. 200 response
  1653. schema:
  1654. type: array
  1655. items:
  1656. type: object
  1657. properties:
  1658. _id:
  1659. type: string
  1660. title:
  1661. type: string
  1662. post:
  1663. operationId: new_list
  1664. summary: Add a List to a board
  1665. tags:
  1666. - Lists
  1667. consumes:
  1668. - multipart/form-data
  1669. - application/json
  1670. parameters:
  1671. - name: title
  1672. in: formData
  1673. description: |
  1674. the title of the List
  1675. type: string
  1676. required: true
  1677. - name: board
  1678. in: path
  1679. description: |
  1680. the board ID
  1681. type: string
  1682. required: true
  1683. produces:
  1684. - application/json
  1685. security:
  1686. - UserSecurity: []
  1687. responses:
  1688. '200':
  1689. description: |-
  1690. 200 response
  1691. schema:
  1692. type: object
  1693. properties:
  1694. _id:
  1695. type: string
  1696. /api/boards/{board}/lists/{list}:
  1697. get:
  1698. operationId: get_list
  1699. summary: Get a List attached to a board
  1700. tags:
  1701. - Lists
  1702. parameters:
  1703. - name: board
  1704. in: path
  1705. description: |
  1706. the board ID
  1707. type: string
  1708. required: true
  1709. - name: list
  1710. in: path
  1711. description: |
  1712. the List ID
  1713. type: string
  1714. required: true
  1715. produces:
  1716. - application/json
  1717. security:
  1718. - UserSecurity: []
  1719. responses:
  1720. '200':
  1721. description: |-
  1722. 200 response
  1723. schema:
  1724. $ref: "#/definitions/Lists"
  1725. delete:
  1726. operationId: delete_list
  1727. summary: Delete a List
  1728. description: |
  1729. This **deletes** a list from a board.
  1730. The list is not put in the recycle bin.
  1731. tags:
  1732. - Lists
  1733. parameters:
  1734. - name: board
  1735. in: path
  1736. description: |
  1737. the board ID
  1738. type: string
  1739. required: true
  1740. - name: list
  1741. in: path
  1742. description: |
  1743. the ID of the list to remove
  1744. type: string
  1745. required: true
  1746. produces:
  1747. - application/json
  1748. security:
  1749. - UserSecurity: []
  1750. responses:
  1751. '200':
  1752. description: |-
  1753. 200 response
  1754. schema:
  1755. type: object
  1756. properties:
  1757. _id:
  1758. type: string
  1759. /api/boards/{board}/lists/{list}/cards:
  1760. get:
  1761. operationId: get_all_cards
  1762. summary: Get all Cards attached to a List
  1763. tags:
  1764. - Cards
  1765. parameters:
  1766. - name: board
  1767. in: path
  1768. description: |
  1769. the board ID
  1770. type: string
  1771. required: true
  1772. - name: list
  1773. in: path
  1774. description: |
  1775. the list ID
  1776. type: string
  1777. required: true
  1778. produces:
  1779. - application/json
  1780. security:
  1781. - UserSecurity: []
  1782. responses:
  1783. '200':
  1784. description: |-
  1785. 200 response
  1786. schema:
  1787. type: array
  1788. items:
  1789. type: object
  1790. properties:
  1791. _id:
  1792. type: string
  1793. title:
  1794. type: string
  1795. description:
  1796. type: string
  1797. post:
  1798. operationId: new_card
  1799. summary: Create a new Card
  1800. tags:
  1801. - Cards
  1802. consumes:
  1803. - multipart/form-data
  1804. - application/json
  1805. parameters:
  1806. - name: authorId
  1807. in: formData
  1808. description: the authorId value
  1809. type: string
  1810. required: true
  1811. - name: members
  1812. in: formData
  1813. description: |
  1814. the member IDs list of the new card
  1815. type: string
  1816. required: false
  1817. - name: assignees
  1818. in: formData
  1819. description: |
  1820. the array of maximum one ID of assignee of the new card
  1821. type: string
  1822. required: false
  1823. - name: title
  1824. in: formData
  1825. description: |
  1826. the title of the new card
  1827. type: string
  1828. required: true
  1829. - name: description
  1830. in: formData
  1831. description: |
  1832. the description of the new card
  1833. type: string
  1834. required: true
  1835. - name: swimlaneId
  1836. in: formData
  1837. description: |
  1838. the swimlane ID of the new card
  1839. type: string
  1840. required: true
  1841. - name: board
  1842. in: path
  1843. description: |
  1844. the board ID of the new card
  1845. type: string
  1846. required: true
  1847. - name: list
  1848. in: path
  1849. description: |
  1850. the list ID of the new card
  1851. type: string
  1852. required: true
  1853. produces:
  1854. - application/json
  1855. security:
  1856. - UserSecurity: []
  1857. responses:
  1858. '200':
  1859. description: |-
  1860. 200 response
  1861. schema:
  1862. type: object
  1863. properties:
  1864. _id:
  1865. type: string
  1866. /api/boards/{board}/lists/{list}/cards/{card}:
  1867. get:
  1868. operationId: get_card
  1869. summary: Get a Card
  1870. tags:
  1871. - Cards
  1872. parameters:
  1873. - name: board
  1874. in: path
  1875. description: |
  1876. the board ID
  1877. type: string
  1878. required: true
  1879. - name: list
  1880. in: path
  1881. description: |
  1882. the list ID of the card
  1883. type: string
  1884. required: true
  1885. - name: card
  1886. in: path
  1887. description: |
  1888. the card ID
  1889. type: string
  1890. required: true
  1891. produces:
  1892. - application/json
  1893. security:
  1894. - UserSecurity: []
  1895. responses:
  1896. '200':
  1897. description: |-
  1898. 200 response
  1899. schema:
  1900. $ref: "#/definitions/Cards"
  1901. put:
  1902. operationId: edit_card
  1903. summary: Edit Fields in a Card
  1904. description: |
  1905. Edit a card
  1906. The color has to be chosen between `white`, `green`, `yellow`, `orange`,
  1907. `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`,
  1908. `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`,
  1909. `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`,
  1910. `indigo`:
  1911. <img src="/card-colors.png" width="40%" alt="Wekan card colors" />
  1912. Note: setting the color to white has the same effect than removing it.
  1913. tags:
  1914. - Cards
  1915. consumes:
  1916. - multipart/form-data
  1917. - application/json
  1918. parameters:
  1919. - name: title
  1920. in: formData
  1921. description: |
  1922. the new title of the card
  1923. type: string
  1924. required: false
  1925. - name: sort
  1926. in: formData
  1927. description: |
  1928. the new sort value of the card
  1929. type: string
  1930. required: false
  1931. - name: parentId
  1932. in: formData
  1933. description: |
  1934. change the parent of the card
  1935. type: string
  1936. required: false
  1937. - name: description
  1938. in: formData
  1939. description: |
  1940. the new description of the card
  1941. type: string
  1942. required: false
  1943. - name: color
  1944. in: formData
  1945. description: |
  1946. the new color of the card
  1947. type: string
  1948. required: false
  1949. - name: vote
  1950. in: formData
  1951. description: |
  1952. the vote object
  1953. type: object
  1954. required: false
  1955. - name: poker
  1956. in: formData
  1957. description: |
  1958. the poker object
  1959. type: object
  1960. required: false
  1961. - name: labelIds
  1962. in: formData
  1963. description: |
  1964. the new list of label IDs attached to the card
  1965. type: string
  1966. required: false
  1967. - name: requestedBy
  1968. in: formData
  1969. description: |
  1970. the new requestedBy field of the card
  1971. type: string
  1972. required: false
  1973. - name: assignedBy
  1974. in: formData
  1975. description: |
  1976. the new assignedBy field of the card
  1977. type: string
  1978. required: false
  1979. - name: receivedAt
  1980. in: formData
  1981. description: |
  1982. the new receivedAt field of the card
  1983. type: string
  1984. required: false
  1985. - name: startAt
  1986. in: formData
  1987. description: |
  1988. the new startAt field of the card
  1989. type: string
  1990. required: false
  1991. - name: dueAt
  1992. in: formData
  1993. description: |
  1994. the new dueAt field of the card
  1995. type: string
  1996. required: false
  1997. - name: endAt
  1998. in: formData
  1999. description: |
  2000. the new endAt field of the card
  2001. type: string
  2002. required: false
  2003. - name: spentTime
  2004. in: formData
  2005. description: |
  2006. the new spentTime field of the card
  2007. type: string
  2008. required: false
  2009. - name: isOverTime
  2010. in: formData
  2011. description: |
  2012. the new isOverTime field of the card
  2013. type: boolean
  2014. required: false
  2015. - name: customFields
  2016. in: formData
  2017. description: |
  2018. the new customFields value of the card
  2019. type: string
  2020. required: false
  2021. - name: members
  2022. in: formData
  2023. description: |
  2024. the new list of member IDs attached to the card
  2025. type: string
  2026. required: false
  2027. - name: assignees
  2028. in: formData
  2029. description: |
  2030. the array of maximum one ID of assignee attached to the card
  2031. type: string
  2032. required: false
  2033. - name: swimlaneId
  2034. in: formData
  2035. description: |
  2036. the new swimlane ID of the card
  2037. type: string
  2038. required: false
  2039. - name: listId
  2040. in: formData
  2041. description: |
  2042. the new list ID of the card (move operation)
  2043. type: string
  2044. required: false
  2045. - name: authorId
  2046. in: formData
  2047. description: |
  2048. change the owner of the card
  2049. type: string
  2050. required: false
  2051. - name: board
  2052. in: path
  2053. description: |
  2054. the board ID of the card
  2055. type: string
  2056. required: true
  2057. - name: list
  2058. in: path
  2059. description: |
  2060. the list ID of the card
  2061. type: string
  2062. required: true
  2063. - name: card
  2064. in: path
  2065. description: |
  2066. the ID of the card
  2067. type: string
  2068. required: true
  2069. produces:
  2070. - application/json
  2071. security:
  2072. - UserSecurity: []
  2073. responses:
  2074. '200':
  2075. description: |-
  2076. 200 response
  2077. schema:
  2078. type: object
  2079. properties:
  2080. _id:
  2081. type: string
  2082. delete:
  2083. operationId: delete_card
  2084. summary: Delete a card from a board
  2085. description: |
  2086. This operation **deletes** a card, and therefore the card
  2087. is not put in the recycle bin.
  2088. tags:
  2089. - Cards
  2090. parameters:
  2091. - name: board
  2092. in: path
  2093. description: |
  2094. the board ID of the card
  2095. type: string
  2096. required: true
  2097. - name: list
  2098. in: path
  2099. description: |
  2100. the list ID of the card
  2101. type: string
  2102. required: true
  2103. - name: card
  2104. in: path
  2105. description: |
  2106. the ID of the card
  2107. type: string
  2108. required: true
  2109. produces:
  2110. - application/json
  2111. security:
  2112. - UserSecurity: []
  2113. responses:
  2114. '200':
  2115. description: |-
  2116. 200 response
  2117. schema:
  2118. type: object
  2119. properties:
  2120. _id:
  2121. type: string
  2122. /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}:
  2123. post:
  2124. operationId: edit_card_custom_field
  2125. summary: Edit Custom Field in a Card
  2126. description: |
  2127. Edit a custom field value in a card
  2128. tags:
  2129. - Cards
  2130. consumes:
  2131. - multipart/form-data
  2132. - application/json
  2133. parameters:
  2134. - name: value
  2135. in: formData
  2136. description: |
  2137. the new custom field value
  2138. type: string
  2139. required: true
  2140. - name: board
  2141. in: path
  2142. description: |
  2143. the board ID of the card
  2144. type: string
  2145. required: true
  2146. - name: list
  2147. in: path
  2148. description: |
  2149. the list ID of the card
  2150. type: string
  2151. required: true
  2152. - name: card
  2153. in: path
  2154. description: |
  2155. the ID of the card
  2156. type: string
  2157. required: true
  2158. - name: customField
  2159. in: path
  2160. description: |
  2161. the ID of the custom field
  2162. type: string
  2163. required: true
  2164. produces:
  2165. - application/json
  2166. security:
  2167. - UserSecurity: []
  2168. responses:
  2169. '200':
  2170. description: |-
  2171. 200 response
  2172. schema:
  2173. type: object
  2174. properties:
  2175. _id:
  2176. type: string
  2177. customFields:
  2178. type: object
  2179. /api/boards/{board}/lists/{list}/cards_count:
  2180. get:
  2181. operationId: get_list_cards_count
  2182. summary: Get a cards count to a list
  2183. tags:
  2184. - Cards
  2185. parameters:
  2186. - name: board
  2187. in: path
  2188. description: |
  2189. the board ID
  2190. type: string
  2191. required: true
  2192. - name: list
  2193. in: path
  2194. description: |
  2195. the List ID
  2196. type: string
  2197. required: true
  2198. produces:
  2199. - application/json
  2200. security:
  2201. - UserSecurity: []
  2202. responses:
  2203. '200':
  2204. description: |-
  2205. 200 response
  2206. schema:
  2207. type: object
  2208. properties:
  2209. list_cards_count:
  2210. type: integer
  2211. /api/boards/{board}/members/{member}:
  2212. post:
  2213. operationId: set_board_member_permission
  2214. summary: Change the permission of a member of a board
  2215. tags:
  2216. - Boards
  2217. - Users
  2218. consumes:
  2219. - multipart/form-data
  2220. - application/json
  2221. parameters:
  2222. - name: isAdmin
  2223. in: formData
  2224. description: |
  2225. admin capability
  2226. type: boolean
  2227. required: true
  2228. - name: isNoComments
  2229. in: formData
  2230. description: |
  2231. NoComments capability
  2232. type: boolean
  2233. required: true
  2234. - name: isCommentOnly
  2235. in: formData
  2236. description: |
  2237. CommentsOnly capability
  2238. type: boolean
  2239. required: true
  2240. - name: isWorker
  2241. in: formData
  2242. description: |
  2243. Worker capability
  2244. type: boolean
  2245. required: true
  2246. - name: board
  2247. in: path
  2248. description: |
  2249. the ID of the board that we are changing
  2250. type: string
  2251. required: true
  2252. - name: member
  2253. in: path
  2254. description: |
  2255. the ID of the user to change permissions
  2256. type: string
  2257. required: true
  2258. produces:
  2259. - application/json
  2260. security:
  2261. - UserSecurity: []
  2262. responses:
  2263. '200':
  2264. description: |-
  2265. 200 response
  2266. /api/boards/{board}/members/{user}/add:
  2267. post:
  2268. operationId: add_board_member
  2269. summary: Add New Board Member with Role
  2270. description: |
  2271. Only the admin user (the first user) can call the REST API.
  2272. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  2273. to later change the permissions.
  2274. tags:
  2275. - Users
  2276. - Boards
  2277. consumes:
  2278. - multipart/form-data
  2279. - application/json
  2280. parameters:
  2281. - name: action
  2282. in: formData
  2283. description: |
  2284. the action (needs to be `add`)
  2285. type: string
  2286. required: true
  2287. - name: isAdmin
  2288. in: formData
  2289. description: |
  2290. is the user an admin of the board
  2291. type: boolean
  2292. required: true
  2293. - name: isNoComments
  2294. in: formData
  2295. description: |
  2296. disable comments
  2297. type: boolean
  2298. required: true
  2299. - name: isCommentOnly
  2300. in: formData
  2301. description: |
  2302. only enable comments
  2303. type: boolean
  2304. required: true
  2305. - name: isWorker
  2306. in: formData
  2307. description: |
  2308. is the user a board worker
  2309. type: boolean
  2310. required: true
  2311. - name: board
  2312. in: path
  2313. description: |
  2314. the board ID
  2315. type: string
  2316. required: true
  2317. - name: user
  2318. in: path
  2319. description: |
  2320. the user ID
  2321. type: string
  2322. required: true
  2323. produces:
  2324. - application/json
  2325. security:
  2326. - UserSecurity: []
  2327. responses:
  2328. '200':
  2329. description: |-
  2330. 200 response
  2331. schema:
  2332. type: object
  2333. properties:
  2334. _id:
  2335. type: string
  2336. title:
  2337. type: string
  2338. /api/boards/{board}/members/{user}/remove:
  2339. post:
  2340. operationId: remove_board_member
  2341. summary: Remove Member from Board
  2342. description: |
  2343. Only the admin user (the first user) can call the REST API.
  2344. tags:
  2345. - Users
  2346. - Boards
  2347. consumes:
  2348. - multipart/form-data
  2349. - application/json
  2350. parameters:
  2351. - name: action
  2352. in: formData
  2353. description: |
  2354. the action (needs to be `remove`)
  2355. type: string
  2356. required: true
  2357. - name: board
  2358. in: path
  2359. description: |
  2360. the board ID
  2361. type: string
  2362. required: true
  2363. - name: user
  2364. in: path
  2365. description: |
  2366. the user ID
  2367. type: string
  2368. required: true
  2369. produces:
  2370. - application/json
  2371. security:
  2372. - UserSecurity: []
  2373. responses:
  2374. '200':
  2375. description: |-
  2376. 200 response
  2377. schema:
  2378. type: object
  2379. properties:
  2380. _id:
  2381. type: string
  2382. title:
  2383. type: string
  2384. /api/boards/{board}/swimlanes:
  2385. get:
  2386. operationId: get_all_swimlanes
  2387. summary: Get the list of swimlanes attached to a board
  2388. tags:
  2389. - Swimlanes
  2390. parameters:
  2391. - name: board
  2392. in: path
  2393. description: |
  2394. the ID of the board
  2395. type: string
  2396. required: true
  2397. produces:
  2398. - application/json
  2399. security:
  2400. - UserSecurity: []
  2401. responses:
  2402. '200':
  2403. description: |-
  2404. 200 response
  2405. schema:
  2406. type: array
  2407. items:
  2408. type: object
  2409. properties:
  2410. _id:
  2411. type: string
  2412. title:
  2413. type: string
  2414. post:
  2415. operationId: new_swimlane
  2416. summary: Add a swimlane to a board
  2417. tags:
  2418. - Swimlanes
  2419. consumes:
  2420. - multipart/form-data
  2421. - application/json
  2422. parameters:
  2423. - name: title
  2424. in: formData
  2425. description: |
  2426. the new title of the swimlane
  2427. type: string
  2428. required: true
  2429. - name: board
  2430. in: path
  2431. description: |
  2432. the ID of the board
  2433. type: string
  2434. required: true
  2435. produces:
  2436. - application/json
  2437. security:
  2438. - UserSecurity: []
  2439. responses:
  2440. '200':
  2441. description: |-
  2442. 200 response
  2443. schema:
  2444. type: object
  2445. properties:
  2446. _id:
  2447. type: string
  2448. /api/boards/{board}/swimlanes/{swimlane}:
  2449. get:
  2450. operationId: get_swimlane
  2451. summary: Get a swimlane
  2452. tags:
  2453. - Swimlanes
  2454. parameters:
  2455. - name: board
  2456. in: path
  2457. description: |
  2458. the ID of the board
  2459. type: string
  2460. required: true
  2461. - name: swimlane
  2462. in: path
  2463. description: |
  2464. the ID of the swimlane
  2465. type: string
  2466. required: true
  2467. produces:
  2468. - application/json
  2469. security:
  2470. - UserSecurity: []
  2471. responses:
  2472. '200':
  2473. description: |-
  2474. 200 response
  2475. schema:
  2476. $ref: "#/definitions/Swimlanes"
  2477. put:
  2478. operationId: edit_swimlane
  2479. summary: Edit the title of a swimlane
  2480. tags:
  2481. - Swimlanes
  2482. consumes:
  2483. - multipart/form-data
  2484. - application/json
  2485. parameters:
  2486. - name: title
  2487. in: formData
  2488. description: |
  2489. the new title of the swimlane
  2490. type: string
  2491. required: true
  2492. - name: board
  2493. in: path
  2494. description: |
  2495. the ID of the board
  2496. type: string
  2497. required: true
  2498. - name: swimlane
  2499. in: path
  2500. description: |
  2501. the ID of the swimlane to edit
  2502. type: string
  2503. required: true
  2504. produces:
  2505. - application/json
  2506. security:
  2507. - UserSecurity: []
  2508. responses:
  2509. '200':
  2510. description: |-
  2511. 200 response
  2512. schema:
  2513. type: object
  2514. properties:
  2515. _id:
  2516. type: string
  2517. delete:
  2518. operationId: delete_swimlane
  2519. summary: Delete a swimlane
  2520. description: |
  2521. The swimlane will be deleted, not moved to the recycle bin
  2522. tags:
  2523. - Swimlanes
  2524. parameters:
  2525. - name: board
  2526. in: path
  2527. description: |
  2528. the ID of the board
  2529. type: string
  2530. required: true
  2531. - name: swimlane
  2532. in: path
  2533. description: |
  2534. the ID of the swimlane
  2535. type: string
  2536. required: true
  2537. produces:
  2538. - application/json
  2539. security:
  2540. - UserSecurity: []
  2541. responses:
  2542. '200':
  2543. description: |-
  2544. 200 response
  2545. schema:
  2546. type: object
  2547. properties:
  2548. _id:
  2549. type: string
  2550. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2551. get:
  2552. operationId: get_swimlane_cards
  2553. summary: get all cards attached to a swimlane
  2554. tags:
  2555. - Cards
  2556. parameters:
  2557. - name: board
  2558. in: path
  2559. description: |
  2560. the board ID
  2561. type: string
  2562. required: true
  2563. - name: swimlane
  2564. in: path
  2565. description: |
  2566. the swimlane ID
  2567. type: string
  2568. required: true
  2569. produces:
  2570. - application/json
  2571. security:
  2572. - UserSecurity: []
  2573. responses:
  2574. '200':
  2575. description: |-
  2576. 200 response
  2577. schema:
  2578. type: array
  2579. items:
  2580. type: object
  2581. properties:
  2582. _id:
  2583. type: string
  2584. title:
  2585. type: string
  2586. description:
  2587. type: string
  2588. listId:
  2589. type: string
  2590. /api/boards_count:
  2591. get:
  2592. operationId: get_boards_count
  2593. summary: Get public and private boards count
  2594. tags:
  2595. - Boards
  2596. produces:
  2597. - application/json
  2598. security:
  2599. - UserSecurity: []
  2600. responses:
  2601. '200':
  2602. description: |-
  2603. 200 response
  2604. schema:
  2605. type: object
  2606. properties:
  2607. private:
  2608. type: integer
  2609. public:
  2610. type: integer
  2611. /api/createtoken/{user}:
  2612. post:
  2613. operationId: create_user_token
  2614. summary: Create a user token
  2615. description: |
  2616. Only the admin user (the first user) can call the REST API.
  2617. tags:
  2618. - Users
  2619. consumes:
  2620. - multipart/form-data
  2621. - application/json
  2622. parameters:
  2623. - name: user
  2624. in: path
  2625. description: |
  2626. the ID of the user to create token for.
  2627. type: string
  2628. required: true
  2629. produces:
  2630. - application/json
  2631. security:
  2632. - UserSecurity: []
  2633. responses:
  2634. '200':
  2635. description: |-
  2636. 200 response
  2637. schema:
  2638. type: object
  2639. properties:
  2640. _id:
  2641. type: string
  2642. /api/deletetoken:
  2643. post:
  2644. operationId: delete_user_token
  2645. summary: Delete one or all user token.
  2646. description: |
  2647. Only the admin user (the first user) can call the REST API.
  2648. tags:
  2649. - Users
  2650. consumes:
  2651. - multipart/form-data
  2652. - application/json
  2653. parameters:
  2654. - name: userId
  2655. in: formData
  2656. description: |
  2657. the user ID
  2658. type: string
  2659. required: true
  2660. - name: token
  2661. in: formData
  2662. description: |
  2663. the user hashedToken
  2664. type: string
  2665. required: true
  2666. produces:
  2667. - application/json
  2668. security:
  2669. - UserSecurity: []
  2670. responses:
  2671. '200':
  2672. description: |-
  2673. 200 response
  2674. schema:
  2675. type: object
  2676. properties:
  2677. message:
  2678. type: string
  2679. /api/user:
  2680. get:
  2681. operationId: get_current_user
  2682. summary: returns the current user
  2683. tags:
  2684. - Users
  2685. produces:
  2686. - application/json
  2687. security:
  2688. - UserSecurity: []
  2689. responses:
  2690. '200':
  2691. description: |-
  2692. 200 response
  2693. schema:
  2694. $ref: "#/definitions/Users"
  2695. /api/users:
  2696. get:
  2697. operationId: get_all_users
  2698. summary: return all the users
  2699. description: |
  2700. Only the admin user (the first user) can call the REST API.
  2701. tags:
  2702. - Users
  2703. produces:
  2704. - application/json
  2705. security:
  2706. - UserSecurity: []
  2707. responses:
  2708. '200':
  2709. description: |-
  2710. 200 response
  2711. schema:
  2712. type: array
  2713. items:
  2714. type: object
  2715. properties:
  2716. _id:
  2717. type: string
  2718. username:
  2719. type: string
  2720. post:
  2721. operationId: new_user
  2722. summary: Create a new user
  2723. description: |
  2724. Only the admin user (the first user) can call the REST API.
  2725. tags:
  2726. - Users
  2727. consumes:
  2728. - multipart/form-data
  2729. - application/json
  2730. parameters:
  2731. - name: username
  2732. in: formData
  2733. description: |
  2734. the new username
  2735. type: string
  2736. required: true
  2737. - name: email
  2738. in: formData
  2739. description: |
  2740. the email of the new user
  2741. type: string
  2742. required: true
  2743. - name: password
  2744. in: formData
  2745. description: |
  2746. the password of the new user
  2747. type: string
  2748. required: true
  2749. produces:
  2750. - application/json
  2751. security:
  2752. - UserSecurity: []
  2753. responses:
  2754. '200':
  2755. description: |-
  2756. 200 response
  2757. schema:
  2758. type: object
  2759. properties:
  2760. _id:
  2761. type: string
  2762. /api/users/{user}:
  2763. get:
  2764. operationId: get_user
  2765. summary: get a given user
  2766. description: |
  2767. Only the admin user (the first user) can call the REST API.
  2768. tags:
  2769. - Users
  2770. parameters:
  2771. - name: user
  2772. in: path
  2773. description: |
  2774. the user ID or username
  2775. type: string
  2776. required: true
  2777. produces:
  2778. - application/json
  2779. security:
  2780. - UserSecurity: []
  2781. responses:
  2782. '200':
  2783. description: |-
  2784. 200 response
  2785. schema:
  2786. $ref: "#/definitions/Users"
  2787. put:
  2788. operationId: edit_user
  2789. summary: edit a given user
  2790. description: |
  2791. Only the admin user (the first user) can call the REST API.
  2792. Possible values for *action*:
  2793. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2794. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2795. - `enableLogin`: Enable a user
  2796. tags:
  2797. - Users
  2798. consumes:
  2799. - multipart/form-data
  2800. - application/json
  2801. parameters:
  2802. - name: action
  2803. in: formData
  2804. description: |
  2805. the action
  2806. type: string
  2807. required: true
  2808. - name: user
  2809. in: path
  2810. description: |
  2811. the user ID
  2812. type: string
  2813. required: true
  2814. produces:
  2815. - application/json
  2816. security:
  2817. - UserSecurity: []
  2818. responses:
  2819. '200':
  2820. description: |-
  2821. 200 response
  2822. schema:
  2823. type: object
  2824. properties:
  2825. _id:
  2826. type: string
  2827. title:
  2828. type: string
  2829. delete:
  2830. operationId: delete_user
  2831. summary: Delete a user
  2832. description: |
  2833. Only the admin user (the first user) can call the REST API.
  2834. tags:
  2835. - Users
  2836. parameters:
  2837. - name: user
  2838. in: path
  2839. description: |
  2840. the ID of the user to delete
  2841. type: string
  2842. required: true
  2843. produces:
  2844. - application/json
  2845. security:
  2846. - UserSecurity: []
  2847. responses:
  2848. '200':
  2849. description: |-
  2850. 200 response
  2851. schema:
  2852. type: object
  2853. properties:
  2854. _id:
  2855. type: string
  2856. /api/users/{user}/boards:
  2857. get:
  2858. operationId: get_boards_from_user
  2859. summary: Get all boards attached to a user
  2860. tags:
  2861. - Boards
  2862. parameters:
  2863. - name: user
  2864. in: path
  2865. description: |
  2866. the ID of the user to retrieve the data
  2867. type: string
  2868. required: true
  2869. produces:
  2870. - application/json
  2871. security:
  2872. - UserSecurity: []
  2873. responses:
  2874. '200':
  2875. description: |-
  2876. 200 response
  2877. schema:
  2878. type: array
  2879. items:
  2880. type: object
  2881. properties:
  2882. _id:
  2883. type: string
  2884. title:
  2885. type: string
  2886. definitions:
  2887. Boards:
  2888. type: object
  2889. description: This is a Board.
  2890. properties:
  2891. title:
  2892. description: |
  2893. The title of the board
  2894. type: string
  2895. slug:
  2896. description: |
  2897. The title slugified.
  2898. type: string
  2899. archived:
  2900. description: |
  2901. Is the board archived?
  2902. type: boolean
  2903. archivedAt:
  2904. description: |
  2905. Latest archiving time of the board
  2906. type: string
  2907. x-nullable: true
  2908. createdAt:
  2909. description: |
  2910. Creation time of the board
  2911. type: string
  2912. modifiedAt:
  2913. description: |
  2914. Last modification time of the board
  2915. type: string
  2916. x-nullable: true
  2917. stars:
  2918. description: |
  2919. How many stars the board has
  2920. type: number
  2921. labels:
  2922. description: |
  2923. List of labels attached to a board
  2924. type: array
  2925. items:
  2926. $ref: "#/definitions/BoardsLabels"
  2927. x-nullable: true
  2928. members:
  2929. description: |
  2930. List of members of a board
  2931. type: array
  2932. items:
  2933. $ref: "#/definitions/BoardsMembers"
  2934. permission:
  2935. description: |
  2936. visibility of the board
  2937. type: string
  2938. enum:
  2939. - public
  2940. - private
  2941. orgs:
  2942. description: |
  2943. the list of organizations that a board belongs to
  2944. type: array
  2945. items:
  2946. $ref: "#/definitions/BoardsOrgs"
  2947. x-nullable: true
  2948. teams:
  2949. description: |
  2950. the list of teams that a board belongs to
  2951. type: array
  2952. items:
  2953. $ref: "#/definitions/BoardsTeams"
  2954. x-nullable: true
  2955. color:
  2956. description: |
  2957. The color of the board.
  2958. type: string
  2959. enum:
  2960. - belize
  2961. - nephritis
  2962. - pomegranate
  2963. - pumpkin
  2964. - wisteria
  2965. - moderatepink
  2966. - strongcyan
  2967. - limegreen
  2968. - midnight
  2969. - dark
  2970. - relax
  2971. - corteza
  2972. - clearblue
  2973. - natural
  2974. - modern
  2975. - moderndark
  2976. - exodark
  2977. backgroundImageURL:
  2978. description: |
  2979. The background image URL of the board.
  2980. type: string
  2981. x-nullable: true
  2982. allowsCardCounterList:
  2983. description: |
  2984. Show card counter per list
  2985. type: boolean
  2986. allowsBoardMemberList:
  2987. description: |
  2988. Show board member list
  2989. type: boolean
  2990. description:
  2991. description: |
  2992. The description of the board
  2993. type: string
  2994. x-nullable: true
  2995. subtasksDefaultBoardId:
  2996. description: |
  2997. The default board ID assigned to subtasks.
  2998. type: string
  2999. x-nullable: true
  3000. subtasksDefaultListId:
  3001. description: |
  3002. The default List ID assigned to subtasks.
  3003. type: string
  3004. x-nullable: true
  3005. dateSettingsDefaultBoardId:
  3006. type: string
  3007. x-nullable: true
  3008. dateSettingsDefaultListId:
  3009. type: string
  3010. x-nullable: true
  3011. allowsSubtasks:
  3012. description: |
  3013. Does the board allows subtasks?
  3014. type: boolean
  3015. allowsAttachments:
  3016. description: |
  3017. Does the board allows attachments?
  3018. type: boolean
  3019. allowsChecklists:
  3020. description: |
  3021. Does the board allows checklists?
  3022. type: boolean
  3023. allowsComments:
  3024. description: |
  3025. Does the board allows comments?
  3026. type: boolean
  3027. allowsDescriptionTitle:
  3028. description: |
  3029. Does the board allows description title?
  3030. type: boolean
  3031. allowsDescriptionText:
  3032. description: |
  3033. Does the board allows description text?
  3034. type: boolean
  3035. allowsDescriptionTextOnMinicard:
  3036. description: |
  3037. Does the board allows description text on minicard?
  3038. type: boolean
  3039. allowsCoverAttachmentOnMinicard:
  3040. description: |
  3041. Does the board allows cover attachment on minicard?
  3042. type: boolean
  3043. allowsBadgeAttachmentOnMinicard:
  3044. description: |
  3045. Does the board allows badge attachment on minicard?
  3046. type: boolean
  3047. allowsCardSortingByNumberOnMinicard:
  3048. description: |
  3049. Does the board allows card sorting by number on minicard?
  3050. type: boolean
  3051. allowsCardNumber:
  3052. description: |
  3053. Does the board allows card numbers?
  3054. type: boolean
  3055. allowsActivities:
  3056. description: |
  3057. Does the board allows comments?
  3058. type: boolean
  3059. allowsLabels:
  3060. description: |
  3061. Does the board allows labels?
  3062. type: boolean
  3063. allowsCreator:
  3064. description: |
  3065. Does the board allow creator?
  3066. type: boolean
  3067. allowsAssignee:
  3068. description: |
  3069. Does the board allows assignee?
  3070. type: boolean
  3071. allowsMembers:
  3072. description: |
  3073. Does the board allows members?
  3074. type: boolean
  3075. allowsRequestedBy:
  3076. description: |
  3077. Does the board allows requested by?
  3078. type: boolean
  3079. allowsCardSortingByNumber:
  3080. description: |
  3081. Does the board allows card sorting by number?
  3082. type: boolean
  3083. allowsShowLists:
  3084. description: |
  3085. Does the board allows show lists on the card?
  3086. type: boolean
  3087. allowsAssignedBy:
  3088. description: |
  3089. Does the board allows requested by?
  3090. type: boolean
  3091. allowsReceivedDate:
  3092. description: |
  3093. Does the board allows received date?
  3094. type: boolean
  3095. allowsStartDate:
  3096. description: |
  3097. Does the board allows start date?
  3098. type: boolean
  3099. allowsEndDate:
  3100. description: |
  3101. Does the board allows end date?
  3102. type: boolean
  3103. allowsDueDate:
  3104. description: |
  3105. Does the board allows due date?
  3106. type: boolean
  3107. presentParentTask:
  3108. description: |
  3109. Controls how to present the parent task:
  3110. - `prefix-with-full-path`: add a prefix with the full path
  3111. - `prefix-with-parent`: add a prefisx with the parent name
  3112. - `subtext-with-full-path`: add a subtext with the full path
  3113. - `subtext-with-parent`: add a subtext with the parent name
  3114. - `no-parent`: does not show the parent at all
  3115. type: string
  3116. enum:
  3117. - prefix-with-full-path
  3118. - prefix-with-parent
  3119. - subtext-with-full-path
  3120. - subtext-with-parent
  3121. - no-parent
  3122. x-nullable: true
  3123. receivedAt:
  3124. description: |
  3125. Date the card was received
  3126. type: string
  3127. x-nullable: true
  3128. startAt:
  3129. description: |
  3130. Starting date of the board.
  3131. type: string
  3132. x-nullable: true
  3133. dueAt:
  3134. description: |
  3135. Due date of the board.
  3136. type: string
  3137. x-nullable: true
  3138. endAt:
  3139. description: |
  3140. End date of the board.
  3141. type: string
  3142. x-nullable: true
  3143. spentTime:
  3144. description: |
  3145. Time spent in the board.
  3146. type: number
  3147. x-nullable: true
  3148. isOvertime:
  3149. description: |
  3150. Is the board overtimed?
  3151. type: boolean
  3152. x-nullable: true
  3153. type:
  3154. description: |
  3155. The type of board
  3156. possible values: board, template-board, template-container
  3157. type: string
  3158. enum:
  3159. - board
  3160. - template-board
  3161. - template-container
  3162. sort:
  3163. description: |
  3164. Sort value
  3165. type: number
  3166. required:
  3167. - title
  3168. - slug
  3169. - archived
  3170. - createdAt
  3171. - stars
  3172. - members
  3173. - permission
  3174. - color
  3175. - allowsCardCounterList
  3176. - allowsBoardMemberList
  3177. - allowsSubtasks
  3178. - allowsAttachments
  3179. - allowsChecklists
  3180. - allowsComments
  3181. - allowsDescriptionTitle
  3182. - allowsDescriptionText
  3183. - allowsDescriptionTextOnMinicard
  3184. - allowsCoverAttachmentOnMinicard
  3185. - allowsBadgeAttachmentOnMinicard
  3186. - allowsCardSortingByNumberOnMinicard
  3187. - allowsCardNumber
  3188. - allowsActivities
  3189. - allowsLabels
  3190. - allowsCreator
  3191. - allowsAssignee
  3192. - allowsMembers
  3193. - allowsRequestedBy
  3194. - allowsCardSortingByNumber
  3195. - allowsShowLists
  3196. - allowsAssignedBy
  3197. - allowsReceivedDate
  3198. - allowsStartDate
  3199. - allowsEndDate
  3200. - allowsDueDate
  3201. - type
  3202. - sort
  3203. BoardsLabels:
  3204. type: object
  3205. properties:
  3206. _id:
  3207. description: |
  3208. Unique id of a label
  3209. type: string
  3210. name:
  3211. description: |
  3212. Name of a label
  3213. type: string
  3214. color:
  3215. description: |
  3216. color of a label.
  3217. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  3218. `blue`, `sky`, `lime`, `pink`, `black`,
  3219. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  3220. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  3221. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  3222. type: string
  3223. enum:
  3224. - white
  3225. - green
  3226. - yellow
  3227. - orange
  3228. - red
  3229. - purple
  3230. - blue
  3231. - sky
  3232. - lime
  3233. - pink
  3234. - black
  3235. - silver
  3236. - peachpuff
  3237. - crimson
  3238. - plum
  3239. - darkgreen
  3240. - slateblue
  3241. - magenta
  3242. - gold
  3243. - navy
  3244. - gray
  3245. - saddlebrown
  3246. - paleturquoise
  3247. - mistyrose
  3248. - indigo
  3249. required:
  3250. - _id
  3251. - color
  3252. BoardsMembers:
  3253. type: object
  3254. properties:
  3255. userId:
  3256. description: |
  3257. The uniq ID of the member
  3258. type: string
  3259. isAdmin:
  3260. description: |
  3261. Is the member an admin of the board?
  3262. type: boolean
  3263. isActive:
  3264. description: |
  3265. Is the member active?
  3266. type: boolean
  3267. isNoComments:
  3268. description: |
  3269. Is the member not allowed to make comments
  3270. type: boolean
  3271. isCommentOnly:
  3272. description: |
  3273. Is the member only allowed to comment on the board
  3274. type: boolean
  3275. isWorker:
  3276. description: |
  3277. Is the member only allowed to move card, assign himself to card and comment
  3278. type: boolean
  3279. required:
  3280. - userId
  3281. - isAdmin
  3282. - isActive
  3283. BoardsOrgs:
  3284. type: object
  3285. properties:
  3286. orgId:
  3287. description: |
  3288. The uniq ID of the organization
  3289. type: string
  3290. orgDisplayName:
  3291. description: |
  3292. The display name of the organization
  3293. type: string
  3294. isActive:
  3295. description: |
  3296. Is the organization active?
  3297. type: boolean
  3298. required:
  3299. - orgId
  3300. - orgDisplayName
  3301. - isActive
  3302. BoardsTeams:
  3303. type: object
  3304. properties:
  3305. teamId:
  3306. description: |
  3307. The uniq ID of the team
  3308. type: string
  3309. teamDisplayName:
  3310. description: |
  3311. The display name of the team
  3312. type: string
  3313. isActive:
  3314. description: |
  3315. Is the team active?
  3316. type: boolean
  3317. required:
  3318. - teamId
  3319. - teamDisplayName
  3320. - isActive
  3321. CardComments:
  3322. type: object
  3323. description: A comment on a card
  3324. properties:
  3325. boardId:
  3326. description: |
  3327. the board ID
  3328. type: string
  3329. cardId:
  3330. description: |
  3331. the card ID
  3332. type: string
  3333. text:
  3334. description: |
  3335. the text of the comment
  3336. type: string
  3337. createdAt:
  3338. description: |
  3339. when was the comment created
  3340. type: string
  3341. modifiedAt:
  3342. type: string
  3343. userId:
  3344. description: |
  3345. the author ID of the comment
  3346. type: string
  3347. required:
  3348. - boardId
  3349. - cardId
  3350. - text
  3351. - createdAt
  3352. - modifiedAt
  3353. - userId
  3354. Cards:
  3355. type: object
  3356. properties:
  3357. title:
  3358. description: |
  3359. the title of the card
  3360. type: string
  3361. x-nullable: true
  3362. archived:
  3363. description: |
  3364. is the card archived
  3365. type: boolean
  3366. archivedAt:
  3367. description: |
  3368. latest archiving date
  3369. type: string
  3370. x-nullable: true
  3371. parentId:
  3372. description: |
  3373. ID of the parent card
  3374. type: string
  3375. x-nullable: true
  3376. listId:
  3377. description: |
  3378. List ID where the card is
  3379. type: string
  3380. x-nullable: true
  3381. swimlaneId:
  3382. description: |
  3383. Swimlane ID where the card is
  3384. type: string
  3385. boardId:
  3386. description: |
  3387. Board ID of the card
  3388. type: string
  3389. x-nullable: true
  3390. coverId:
  3391. description: |
  3392. Cover ID of the card
  3393. type: string
  3394. x-nullable: true
  3395. color:
  3396. type: string
  3397. enum:
  3398. - white
  3399. - green
  3400. - yellow
  3401. - orange
  3402. - red
  3403. - purple
  3404. - blue
  3405. - sky
  3406. - lime
  3407. - pink
  3408. - black
  3409. - silver
  3410. - peachpuff
  3411. - crimson
  3412. - plum
  3413. - darkgreen
  3414. - slateblue
  3415. - magenta
  3416. - gold
  3417. - navy
  3418. - gray
  3419. - saddlebrown
  3420. - paleturquoise
  3421. - mistyrose
  3422. - indigo
  3423. x-nullable: true
  3424. createdAt:
  3425. description: |
  3426. creation date
  3427. type: string
  3428. modifiedAt:
  3429. type: string
  3430. customFields:
  3431. description: |
  3432. list of custom fields
  3433. type: array
  3434. items:
  3435. $ref: "#/definitions/CardsCustomfields"
  3436. x-nullable: true
  3437. dateLastActivity:
  3438. description: |
  3439. Date of last activity
  3440. type: string
  3441. description:
  3442. description: |
  3443. description of the card
  3444. type: string
  3445. x-nullable: true
  3446. requestedBy:
  3447. description: |
  3448. who requested the card (ID of the user)
  3449. type: string
  3450. x-nullable: true
  3451. assignedBy:
  3452. description: |
  3453. who assigned the card (ID of the user)
  3454. type: string
  3455. x-nullable: true
  3456. labelIds:
  3457. description: |
  3458. list of labels ID the card has
  3459. type: array
  3460. items:
  3461. type: string
  3462. x-nullable: true
  3463. x-nullable: true
  3464. members:
  3465. description: |
  3466. list of members (user IDs)
  3467. type: array
  3468. items:
  3469. type: string
  3470. x-nullable: true
  3471. x-nullable: true
  3472. assignees:
  3473. description: |
  3474. who is assignee of the card (user ID),
  3475. maximum one ID of assignee in array.
  3476. type: array
  3477. items:
  3478. type: string
  3479. x-nullable: true
  3480. x-nullable: true
  3481. receivedAt:
  3482. description: |
  3483. Date the card was received
  3484. type: string
  3485. x-nullable: true
  3486. startAt:
  3487. description: |
  3488. Date the card was started to be worked on
  3489. type: string
  3490. x-nullable: true
  3491. dueAt:
  3492. description: |
  3493. Date the card is due
  3494. type: string
  3495. x-nullable: true
  3496. endAt:
  3497. description: |
  3498. Date the card ended
  3499. type: string
  3500. x-nullable: true
  3501. spentTime:
  3502. description: |
  3503. How much time has been spent on this
  3504. type: number
  3505. x-nullable: true
  3506. isOvertime:
  3507. description: |
  3508. is the card over time?
  3509. type: boolean
  3510. x-nullable: true
  3511. userId:
  3512. description: |
  3513. user ID of the author of the card
  3514. type: string
  3515. sort:
  3516. description: |
  3517. Sort value
  3518. type: number
  3519. x-nullable: true
  3520. subtaskSort:
  3521. description: |
  3522. subtask sort value
  3523. type: number
  3524. x-nullable: true
  3525. type:
  3526. description: |
  3527. type of the card
  3528. type: string
  3529. linkedId:
  3530. description: |
  3531. ID of the linked card
  3532. type: string
  3533. x-nullable: true
  3534. vote:
  3535. description: |
  3536. vote object, see below
  3537. $ref: "#/definitions/CardsVote"
  3538. x-nullable: true
  3539. poker:
  3540. description: |
  3541. poker object, see below
  3542. $ref: "#/definitions/CardsPoker"
  3543. x-nullable: true
  3544. targetId_gantt:
  3545. description: |
  3546. ID of card which is the child link in gantt view
  3547. type: array
  3548. items:
  3549. type: string
  3550. x-nullable: true
  3551. x-nullable: true
  3552. linkType_gantt:
  3553. description: |
  3554. ID of card which is the parent link in gantt view
  3555. type: array
  3556. items:
  3557. type: number
  3558. x-nullable: true
  3559. x-nullable: true
  3560. linkId_gantt:
  3561. description: |
  3562. ID of card which is the parent link in gantt view
  3563. type: array
  3564. items:
  3565. type: string
  3566. x-nullable: true
  3567. x-nullable: true
  3568. cardNumber:
  3569. description: |
  3570. A boardwise sequentially increasing number that is assigned
  3571. to every newly created card
  3572. type: number
  3573. x-nullable: true
  3574. required:
  3575. - archived
  3576. - swimlaneId
  3577. - createdAt
  3578. - modifiedAt
  3579. - dateLastActivity
  3580. - userId
  3581. - type
  3582. CardsVote:
  3583. type: object
  3584. properties:
  3585. question:
  3586. type: string
  3587. positive:
  3588. description: |
  3589. list of members (user IDs)
  3590. type: array
  3591. items:
  3592. type: string
  3593. x-nullable: true
  3594. negative:
  3595. description: |
  3596. list of members (user IDs)
  3597. type: array
  3598. items:
  3599. type: string
  3600. x-nullable: true
  3601. end:
  3602. type: string
  3603. public:
  3604. type: boolean
  3605. allowNonBoardMembers:
  3606. type: boolean
  3607. required:
  3608. - question
  3609. - public
  3610. - allowNonBoardMembers
  3611. CardsPoker:
  3612. type: object
  3613. properties:
  3614. question:
  3615. type: boolean
  3616. one:
  3617. description: |
  3618. poker card one
  3619. type: array
  3620. items:
  3621. type: string
  3622. x-nullable: true
  3623. two:
  3624. description: |
  3625. poker card two
  3626. type: array
  3627. items:
  3628. type: string
  3629. x-nullable: true
  3630. three:
  3631. description: |
  3632. poker card three
  3633. type: array
  3634. items:
  3635. type: string
  3636. x-nullable: true
  3637. five:
  3638. description: |
  3639. poker card five
  3640. type: array
  3641. items:
  3642. type: string
  3643. x-nullable: true
  3644. eight:
  3645. description: |
  3646. poker card eight
  3647. type: array
  3648. items:
  3649. type: string
  3650. x-nullable: true
  3651. thirteen:
  3652. description: |
  3653. poker card thirteen
  3654. type: array
  3655. items:
  3656. type: string
  3657. x-nullable: true
  3658. twenty:
  3659. description: |
  3660. poker card twenty
  3661. type: array
  3662. items:
  3663. type: string
  3664. x-nullable: true
  3665. forty:
  3666. description: |
  3667. poker card forty
  3668. type: array
  3669. items:
  3670. type: string
  3671. x-nullable: true
  3672. oneHundred:
  3673. description: |
  3674. poker card oneHundred
  3675. type: array
  3676. items:
  3677. type: string
  3678. x-nullable: true
  3679. unsure:
  3680. description: |
  3681. poker card unsure
  3682. type: array
  3683. items:
  3684. type: string
  3685. x-nullable: true
  3686. end:
  3687. type: string
  3688. allowNonBoardMembers:
  3689. type: boolean
  3690. estimation:
  3691. description: |
  3692. poker estimation value
  3693. type: number
  3694. required:
  3695. - question
  3696. - allowNonBoardMembers
  3697. CardsCustomfields:
  3698. type: object
  3699. ChecklistItems:
  3700. type: object
  3701. description: An item in a checklist
  3702. properties:
  3703. title:
  3704. description: |
  3705. the text of the item
  3706. type: string
  3707. sort:
  3708. description: |
  3709. the sorting field of the item
  3710. type: number
  3711. isFinished:
  3712. description: |
  3713. Is the item checked?
  3714. type: boolean
  3715. checklistId:
  3716. description: |
  3717. the checklist ID the item is attached to
  3718. type: string
  3719. cardId:
  3720. description: |
  3721. the card ID the item is attached to
  3722. type: string
  3723. createdAt:
  3724. type: string
  3725. x-nullable: true
  3726. modifiedAt:
  3727. type: string
  3728. required:
  3729. - title
  3730. - sort
  3731. - isFinished
  3732. - checklistId
  3733. - cardId
  3734. - modifiedAt
  3735. Checklists:
  3736. type: object
  3737. description: A Checklist
  3738. properties:
  3739. cardId:
  3740. description: |
  3741. The ID of the card the checklist is in
  3742. type: string
  3743. title:
  3744. description: |
  3745. the title of the checklist
  3746. type: string
  3747. finishedAt:
  3748. description: |
  3749. When was the checklist finished
  3750. type: string
  3751. x-nullable: true
  3752. createdAt:
  3753. description: |
  3754. Creation date of the checklist
  3755. type: string
  3756. modifiedAt:
  3757. type: string
  3758. sort:
  3759. description: |
  3760. sorting value of the checklist
  3761. type: number
  3762. required:
  3763. - cardId
  3764. - title
  3765. - createdAt
  3766. - modifiedAt
  3767. - sort
  3768. CustomFields:
  3769. type: object
  3770. description: A custom field on a card in the board
  3771. properties:
  3772. boardIds:
  3773. description: |
  3774. the ID of the board
  3775. type: array
  3776. items:
  3777. type: string
  3778. name:
  3779. description: |
  3780. name of the custom field
  3781. type: string
  3782. type:
  3783. description: |
  3784. type of the custom field
  3785. type: string
  3786. enum:
  3787. - text
  3788. - number
  3789. - date
  3790. - dropdown
  3791. - checkbox
  3792. - currency
  3793. - stringtemplate
  3794. settings:
  3795. description: |
  3796. settings of the custom field
  3797. $ref: "#/definitions/CustomFieldsSettings"
  3798. showOnCard:
  3799. description: |
  3800. should we show on the cards this custom field
  3801. type: boolean
  3802. automaticallyOnCard:
  3803. description: |
  3804. should the custom fields automatically be added on cards?
  3805. type: boolean
  3806. alwaysOnCard:
  3807. description: |
  3808. should the custom field be automatically added to all cards?
  3809. type: boolean
  3810. showLabelOnMiniCard:
  3811. description: |
  3812. should the label of the custom field be shown on minicards?
  3813. type: boolean
  3814. showSumAtTopOfList:
  3815. description: |
  3816. should the sum of the custom fields be shown at top of list?
  3817. type: boolean
  3818. createdAt:
  3819. type: string
  3820. x-nullable: true
  3821. modifiedAt:
  3822. type: string
  3823. required:
  3824. - boardIds
  3825. - name
  3826. - type
  3827. - settings
  3828. - showOnCard
  3829. - automaticallyOnCard
  3830. - alwaysOnCard
  3831. - showLabelOnMiniCard
  3832. - showSumAtTopOfList
  3833. - modifiedAt
  3834. CustomFieldsSettings:
  3835. type: object
  3836. properties:
  3837. currencyCode:
  3838. type: string
  3839. dropdownItems:
  3840. description: |
  3841. list of drop down items objects
  3842. type: array
  3843. items:
  3844. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3845. stringtemplateFormat:
  3846. type: string
  3847. stringtemplateSeparator:
  3848. type: string
  3849. CustomFieldsSettingsDropdownitems:
  3850. type: object
  3851. Integrations:
  3852. type: object
  3853. description: Integration with third-party applications
  3854. properties:
  3855. enabled:
  3856. description: |
  3857. is the integration enabled?
  3858. type: boolean
  3859. title:
  3860. description: |
  3861. name of the integration
  3862. type: string
  3863. x-nullable: true
  3864. type:
  3865. description: |
  3866. type of the integratation (Default to 'outgoing-webhooks')
  3867. type: string
  3868. activities:
  3869. description: |
  3870. activities the integration gets triggered (list)
  3871. type: array
  3872. items:
  3873. type: string
  3874. url:
  3875. type: string
  3876. token:
  3877. description: |
  3878. token of the integration
  3879. type: string
  3880. x-nullable: true
  3881. boardId:
  3882. description: |
  3883. Board ID of the integration
  3884. type: string
  3885. createdAt:
  3886. description: |
  3887. Creation date of the integration
  3888. type: string
  3889. modifiedAt:
  3890. type: string
  3891. userId:
  3892. description: |
  3893. user ID who created the interation
  3894. type: string
  3895. required:
  3896. - enabled
  3897. - type
  3898. - activities
  3899. - url
  3900. - boardId
  3901. - createdAt
  3902. - modifiedAt
  3903. - userId
  3904. Lists:
  3905. type: object
  3906. description: A list (column) in the Wekan board.
  3907. properties:
  3908. title:
  3909. description: |
  3910. the title of the list
  3911. type: string
  3912. starred:
  3913. description: |
  3914. if a list is stared
  3915. then we put it on the top
  3916. type: boolean
  3917. x-nullable: true
  3918. archived:
  3919. description: |
  3920. is the list archived
  3921. type: boolean
  3922. archivedAt:
  3923. description: |
  3924. latest archiving date
  3925. type: string
  3926. x-nullable: true
  3927. boardId:
  3928. description: |
  3929. the board associated to this list
  3930. type: string
  3931. swimlaneId:
  3932. description: |
  3933. the swimlane associated to this list. Used for templates
  3934. type: string
  3935. createdAt:
  3936. description: |
  3937. creation date
  3938. type: string
  3939. sort:
  3940. description: |
  3941. is the list sorted
  3942. type: number
  3943. x-nullable: true
  3944. width:
  3945. description: |
  3946. list width, default 270px
  3947. type: string
  3948. x-nullable: true
  3949. height:
  3950. description: |
  3951. list height
  3952. type: string
  3953. x-nullable: true
  3954. updatedAt:
  3955. description: |
  3956. last update of the list
  3957. type: string
  3958. x-nullable: true
  3959. modifiedAt:
  3960. type: string
  3961. wipLimit:
  3962. description: |
  3963. WIP object, see below
  3964. $ref: "#/definitions/ListsWiplimit"
  3965. x-nullable: true
  3966. color:
  3967. description: |
  3968. the color of the list
  3969. type: string
  3970. enum:
  3971. - white
  3972. - green
  3973. - yellow
  3974. - orange
  3975. - red
  3976. - purple
  3977. - blue
  3978. - sky
  3979. - lime
  3980. - pink
  3981. - black
  3982. - silver
  3983. - peachpuff
  3984. - crimson
  3985. - plum
  3986. - darkgreen
  3987. - slateblue
  3988. - magenta
  3989. - gold
  3990. - navy
  3991. - gray
  3992. - saddlebrown
  3993. - paleturquoise
  3994. - mistyrose
  3995. - indigo
  3996. x-nullable: true
  3997. type:
  3998. description: |
  3999. The type of list
  4000. type: string
  4001. required:
  4002. - title
  4003. - archived
  4004. - boardId
  4005. - swimlaneId
  4006. - createdAt
  4007. - modifiedAt
  4008. - type
  4009. ListsWiplimit:
  4010. type: object
  4011. properties:
  4012. value:
  4013. description: |
  4014. value of the WIP
  4015. type: number
  4016. enabled:
  4017. description: |
  4018. is the WIP enabled
  4019. type: boolean
  4020. soft:
  4021. description: |
  4022. is the WIP a soft or hard requirement
  4023. type: boolean
  4024. required:
  4025. - value
  4026. - enabled
  4027. - soft
  4028. Swimlanes:
  4029. type: object
  4030. description: A swimlane is an line in the kaban board.
  4031. properties:
  4032. title:
  4033. description: |
  4034. the title of the swimlane
  4035. type: string
  4036. archived:
  4037. description: |
  4038. is the swimlane archived?
  4039. type: boolean
  4040. archivedAt:
  4041. description: |
  4042. latest archiving date of the swimlane
  4043. type: string
  4044. x-nullable: true
  4045. boardId:
  4046. description: |
  4047. the ID of the board the swimlane is attached to
  4048. type: string
  4049. createdAt:
  4050. description: |
  4051. creation date of the swimlane
  4052. type: string
  4053. sort:
  4054. description: |
  4055. the sort value of the swimlane
  4056. type: number
  4057. x-nullable: true
  4058. color:
  4059. description: |
  4060. the color of the swimlane
  4061. type: string
  4062. enum:
  4063. - white
  4064. - green
  4065. - yellow
  4066. - orange
  4067. - red
  4068. - purple
  4069. - blue
  4070. - sky
  4071. - lime
  4072. - pink
  4073. - black
  4074. - silver
  4075. - peachpuff
  4076. - crimson
  4077. - plum
  4078. - darkgreen
  4079. - slateblue
  4080. - magenta
  4081. - gold
  4082. - navy
  4083. - gray
  4084. - saddlebrown
  4085. - paleturquoise
  4086. - mistyrose
  4087. - indigo
  4088. x-nullable: true
  4089. updatedAt:
  4090. description: |
  4091. when was the swimlane last edited
  4092. type: string
  4093. x-nullable: true
  4094. modifiedAt:
  4095. type: string
  4096. type:
  4097. description: |
  4098. The type of swimlane
  4099. type: string
  4100. required:
  4101. - title
  4102. - archived
  4103. - boardId
  4104. - createdAt
  4105. - modifiedAt
  4106. - type
  4107. Users:
  4108. type: object
  4109. description: A User in wekan
  4110. properties:
  4111. username:
  4112. description: |
  4113. the username of the user
  4114. type: string
  4115. x-nullable: true
  4116. orgs:
  4117. description: |
  4118. the list of organizations that a user belongs to
  4119. type: array
  4120. items:
  4121. $ref: "#/definitions/UsersOrgs"
  4122. x-nullable: true
  4123. teams:
  4124. description: |
  4125. the list of teams that a user belongs to
  4126. type: array
  4127. items:
  4128. $ref: "#/definitions/UsersTeams"
  4129. x-nullable: true
  4130. emails:
  4131. description: |
  4132. the list of emails attached to a user
  4133. type: array
  4134. items:
  4135. $ref: "#/definitions/UsersEmails"
  4136. x-nullable: true
  4137. createdAt:
  4138. description: |
  4139. creation date of the user
  4140. type: string
  4141. modifiedAt:
  4142. type: string
  4143. profile:
  4144. description: |
  4145. profile settings
  4146. $ref: "#/definitions/UsersProfile"
  4147. x-nullable: true
  4148. services:
  4149. description: |
  4150. services field of the user
  4151. type: object
  4152. x-nullable: true
  4153. heartbeat:
  4154. description: |
  4155. last time the user has been seen
  4156. type: string
  4157. x-nullable: true
  4158. isAdmin:
  4159. description: |
  4160. is the user an admin of the board?
  4161. type: boolean
  4162. x-nullable: true
  4163. createdThroughApi:
  4164. description: |
  4165. was the user created through the API?
  4166. type: boolean
  4167. x-nullable: true
  4168. loginDisabled:
  4169. description: |
  4170. loginDisabled field of the user
  4171. type: boolean
  4172. x-nullable: true
  4173. authenticationMethod:
  4174. description: |
  4175. authentication method of the user
  4176. type: string
  4177. sessionData:
  4178. description: |
  4179. profile settings
  4180. $ref: "#/definitions/UsersSessiondata"
  4181. x-nullable: true
  4182. importUsernames:
  4183. description: |
  4184. username for imported
  4185. type: array
  4186. items:
  4187. type: string
  4188. x-nullable: true
  4189. x-nullable: true
  4190. lastConnectionDate:
  4191. type: string
  4192. x-nullable: true
  4193. required:
  4194. - createdAt
  4195. - modifiedAt
  4196. - authenticationMethod
  4197. UsersProfile:
  4198. type: object
  4199. properties:
  4200. avatarUrl:
  4201. description: |
  4202. URL of the avatar of the user
  4203. type: string
  4204. emailBuffer:
  4205. description: |
  4206. list of email buffers of the user
  4207. type: array
  4208. items:
  4209. type: string
  4210. x-nullable: true
  4211. fullname:
  4212. description: |
  4213. full name of the user
  4214. type: string
  4215. showDesktopDragHandles:
  4216. description: |
  4217. does the user want to show desktop drag handles?
  4218. type: boolean
  4219. hideCheckedItems:
  4220. description: |
  4221. does the user want to hide checked checklist items?
  4222. type: boolean
  4223. cardMaximized:
  4224. description: |
  4225. has user clicked maximize card?
  4226. type: boolean
  4227. customFieldsGrid:
  4228. description: |
  4229. has user at card Custom Fields have Grid (false) or one per row (true) layout?
  4230. type: boolean
  4231. hiddenSystemMessages:
  4232. description: |
  4233. does the user want to hide system messages?
  4234. type: boolean
  4235. hiddenMinicardLabelText:
  4236. description: |
  4237. does the user want to hide minicard label texts?
  4238. type: boolean
  4239. initials:
  4240. description: |
  4241. initials of the user
  4242. type: string
  4243. invitedBoards:
  4244. description: |
  4245. board IDs the user has been invited to
  4246. type: array
  4247. items:
  4248. type: string
  4249. x-nullable: true
  4250. language:
  4251. description: |
  4252. language of the user
  4253. type: string
  4254. moveAndCopyDialog:
  4255. description: |
  4256. move and copy card dialog
  4257. type: object
  4258. moveChecklistDialog:
  4259. description: |
  4260. move checklist dialog
  4261. type: object
  4262. copyChecklistDialog:
  4263. description: |
  4264. copy checklist dialog
  4265. type: object
  4266. notifications:
  4267. description: |
  4268. enabled notifications for the user
  4269. type: array
  4270. items:
  4271. $ref: "#/definitions/UsersProfileNotifications"
  4272. rescueCardDescription:
  4273. description: |
  4274. show dialog for saving card description on unintentional card closing
  4275. type: boolean
  4276. showCardsCountAt:
  4277. description: |
  4278. showCardCountAt field of the user
  4279. type: number
  4280. startDayOfWeek:
  4281. description: |
  4282. startDayOfWeek field of the user
  4283. type: number
  4284. starredBoards:
  4285. description: |
  4286. list of starred board IDs
  4287. type: array
  4288. items:
  4289. type: string
  4290. x-nullable: true
  4291. icode:
  4292. description: |
  4293. icode
  4294. type: string
  4295. boardView:
  4296. description: |
  4297. boardView field of the user
  4298. type: string
  4299. enum:
  4300. - board-view-swimlanes
  4301. - board-view-lists
  4302. - board-view-cal
  4303. listSortBy:
  4304. description: |
  4305. default sort list for user
  4306. type: string
  4307. enum:
  4308. - -modifiedat
  4309. - modifiedat
  4310. - -title
  4311. - title
  4312. - -sort
  4313. - sort
  4314. templatesBoardId:
  4315. description: |
  4316. Reference to the templates board
  4317. type: string
  4318. cardTemplatesSwimlaneId:
  4319. description: |
  4320. Reference to the card templates swimlane Id
  4321. type: string
  4322. listTemplatesSwimlaneId:
  4323. description: |
  4324. Reference to the list templates swimlane Id
  4325. type: string
  4326. boardTemplatesSwimlaneId:
  4327. description: |
  4328. Reference to the board templates swimlane Id
  4329. type: string
  4330. required:
  4331. - templatesBoardId
  4332. - cardTemplatesSwimlaneId
  4333. - listTemplatesSwimlaneId
  4334. - boardTemplatesSwimlaneId
  4335. UsersSessiondata:
  4336. type: object
  4337. properties:
  4338. totalHits:
  4339. description: |
  4340. Total hits from last searchquery['members.userId'] = Meteor.userId();
  4341. last hit that was returned
  4342. type: number
  4343. UsersOrgs:
  4344. type: object
  4345. properties:
  4346. orgId:
  4347. description: |
  4348. The uniq ID of the organization
  4349. type: string
  4350. orgDisplayName:
  4351. description: |
  4352. The display name of the organization
  4353. type: string
  4354. required:
  4355. - orgId
  4356. - orgDisplayName
  4357. UsersTeams:
  4358. type: object
  4359. properties:
  4360. teamId:
  4361. description: |
  4362. The uniq ID of the team
  4363. type: string
  4364. teamDisplayName:
  4365. description: |
  4366. The display name of the team
  4367. type: string
  4368. required:
  4369. - teamId
  4370. - teamDisplayName
  4371. UsersEmails:
  4372. type: object
  4373. properties:
  4374. address:
  4375. description: |
  4376. The email address
  4377. type: string
  4378. verified:
  4379. description: |
  4380. Has the email been verified
  4381. type: boolean
  4382. required:
  4383. - address
  4384. - verified
  4385. UsersProfileMoveandcopydialog:
  4386. type: object
  4387. properties:
  4388. boardId:
  4389. description: |
  4390. last selected board id
  4391. type: string
  4392. swimlaneId:
  4393. description: |
  4394. last selected swimlane id
  4395. type: string
  4396. listId:
  4397. description: |
  4398. last selected list id
  4399. type: string
  4400. required:
  4401. - boardId
  4402. - swimlaneId
  4403. - listId
  4404. UsersProfileMovechecklistdialog:
  4405. type: object
  4406. properties:
  4407. boardId:
  4408. description: |
  4409. last selected board id
  4410. type: string
  4411. swimlaneId:
  4412. description: |
  4413. last selected swimlane id
  4414. type: string
  4415. listId:
  4416. description: |
  4417. last selected list id
  4418. type: string
  4419. cardId:
  4420. description: |
  4421. last selected card id
  4422. type: string
  4423. required:
  4424. - boardId
  4425. - swimlaneId
  4426. - listId
  4427. - cardId
  4428. UsersProfileCopychecklistdialog:
  4429. type: object
  4430. properties:
  4431. boardId:
  4432. description: |
  4433. last selected board id
  4434. type: string
  4435. swimlaneId:
  4436. description: |
  4437. last selected swimlane id
  4438. type: string
  4439. listId:
  4440. description: |
  4441. last selected list id
  4442. type: string
  4443. cardId:
  4444. description: |
  4445. last selected card id
  4446. type: string
  4447. required:
  4448. - boardId
  4449. - swimlaneId
  4450. - listId
  4451. - cardId
  4452. UsersProfileNotifications:
  4453. type: object
  4454. properties:
  4455. activity:
  4456. description: |
  4457. The id of the activity this notification references
  4458. type: string
  4459. read:
  4460. description: |
  4461. the date on which this notification was read
  4462. type: string
  4463. required:
  4464. - activity