wekan.yml 87 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v4.99
  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. cardId:
  314. type: string
  315. listId:
  316. type: string
  317. swimlaneId:
  318. type: string
  319. /api/boards/{board}/cards/{card}/checklists:
  320. get:
  321. operationId: get_all_checklists
  322. summary: Get the list of checklists attached to a card
  323. tags:
  324. - Checklists
  325. parameters:
  326. - name: board
  327. in: path
  328. description: |
  329. the board ID
  330. type: string
  331. required: true
  332. - name: card
  333. in: path
  334. description: |
  335. the card ID
  336. type: string
  337. required: true
  338. produces:
  339. - application/json
  340. security:
  341. - UserSecurity: []
  342. responses:
  343. '200':
  344. description: |-
  345. 200 response
  346. schema:
  347. type: array
  348. items:
  349. type: object
  350. properties:
  351. _id:
  352. type: string
  353. title:
  354. type: string
  355. post:
  356. operationId: new_checklist
  357. summary: create a new checklist
  358. tags:
  359. - Checklists
  360. consumes:
  361. - multipart/form-data
  362. - application/json
  363. parameters:
  364. - name: title
  365. in: formData
  366. description: |
  367. the title of the new checklist
  368. type: string
  369. required: true
  370. - name: items
  371. in: formData
  372. description: |
  373. the list of items on the new checklist
  374. type: string
  375. required: false
  376. - name: board
  377. in: path
  378. description: |
  379. the board ID
  380. type: string
  381. required: true
  382. - name: card
  383. in: path
  384. description: |
  385. the card ID
  386. type: string
  387. required: true
  388. produces:
  389. - application/json
  390. security:
  391. - UserSecurity: []
  392. responses:
  393. '200':
  394. description: |-
  395. 200 response
  396. schema:
  397. type: object
  398. properties:
  399. _id:
  400. type: string
  401. /api/boards/{board}/cards/{card}/checklists/{checklist}:
  402. get:
  403. operationId: get_checklist
  404. summary: Get a checklist
  405. tags:
  406. - Checklists
  407. parameters:
  408. - name: board
  409. in: path
  410. description: |
  411. the board ID
  412. type: string
  413. required: true
  414. - name: card
  415. in: path
  416. description: |
  417. the card ID
  418. type: string
  419. required: true
  420. - name: checklist
  421. in: path
  422. description: |
  423. the ID of the checklist
  424. type: string
  425. required: true
  426. produces:
  427. - application/json
  428. security:
  429. - UserSecurity: []
  430. responses:
  431. '200':
  432. description: |-
  433. 200 response
  434. schema:
  435. type: object
  436. properties:
  437. cardId:
  438. type: string
  439. title:
  440. type: string
  441. finishedAt:
  442. type: string
  443. createdAt:
  444. type: string
  445. sort:
  446. type: number
  447. items:
  448. type: array
  449. items:
  450. type: object
  451. properties:
  452. _id:
  453. type: string
  454. title:
  455. type: string
  456. isFinished:
  457. type: boolean
  458. delete:
  459. operationId: delete_checklist
  460. summary: Delete a checklist
  461. description: |
  462. The checklist will be removed, not put in the recycle bin.
  463. tags:
  464. - Checklists
  465. parameters:
  466. - name: board
  467. in: path
  468. description: |
  469. the board ID
  470. type: string
  471. required: true
  472. - name: card
  473. in: path
  474. description: |
  475. the card ID
  476. type: string
  477. required: true
  478. - name: checklist
  479. in: path
  480. description: |
  481. the ID of the checklist to remove
  482. type: string
  483. required: true
  484. produces:
  485. - application/json
  486. security:
  487. - UserSecurity: []
  488. responses:
  489. '200':
  490. description: |-
  491. 200 response
  492. schema:
  493. type: object
  494. properties:
  495. _id:
  496. type: string
  497. /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}:
  498. get:
  499. operationId: get_checklist_item
  500. summary: Get a checklist item
  501. tags:
  502. - ChecklistItems
  503. - Checklists
  504. parameters:
  505. - name: board
  506. in: path
  507. description: |
  508. the board ID
  509. type: string
  510. required: true
  511. - name: card
  512. in: path
  513. description: |
  514. the card ID
  515. type: string
  516. required: true
  517. - name: checklist
  518. in: path
  519. description: |
  520. the checklist ID
  521. type: string
  522. required: true
  523. - name: item
  524. in: path
  525. description: |
  526. the ID of the item
  527. type: string
  528. required: true
  529. produces:
  530. - application/json
  531. security:
  532. - UserSecurity: []
  533. responses:
  534. '200':
  535. description: |-
  536. 200 response
  537. schema:
  538. $ref: "#/definitions/ChecklistItems"
  539. put:
  540. operationId: edit_checklist_item
  541. summary: Edit a checklist item
  542. tags:
  543. - ChecklistItems
  544. - Checklists
  545. consumes:
  546. - multipart/form-data
  547. - application/json
  548. parameters:
  549. - name: isFinished
  550. in: formData
  551. description: |
  552. is the item checked?
  553. type: string
  554. required: false
  555. - name: title
  556. in: formData
  557. description: |
  558. the new text of the item
  559. type: string
  560. required: false
  561. - name: board
  562. in: path
  563. description: |
  564. the board ID
  565. type: string
  566. required: true
  567. - name: card
  568. in: path
  569. description: |
  570. the card ID
  571. type: string
  572. required: true
  573. - name: checklist
  574. in: path
  575. description: |
  576. the checklist ID
  577. type: string
  578. required: true
  579. - name: item
  580. in: path
  581. description: |
  582. the ID of the item
  583. type: string
  584. required: true
  585. produces:
  586. - application/json
  587. security:
  588. - UserSecurity: []
  589. responses:
  590. '200':
  591. description: |-
  592. 200 response
  593. schema:
  594. type: object
  595. properties:
  596. _id:
  597. type: string
  598. delete:
  599. operationId: delete_checklist_item
  600. summary: Delete a checklist item
  601. description: |
  602. Note: this operation can't be reverted.
  603. tags:
  604. - ChecklistItems
  605. - Checklists
  606. parameters:
  607. - name: board
  608. in: path
  609. description: |
  610. the board ID
  611. type: string
  612. required: true
  613. - name: card
  614. in: path
  615. description: |
  616. the card ID
  617. type: string
  618. required: true
  619. - name: checklist
  620. in: path
  621. description: |
  622. the checklist ID
  623. type: string
  624. required: true
  625. - name: item
  626. in: path
  627. description: |
  628. the ID of the item to be removed
  629. type: string
  630. required: true
  631. produces:
  632. - application/json
  633. security:
  634. - UserSecurity: []
  635. responses:
  636. '200':
  637. description: |-
  638. 200 response
  639. schema:
  640. type: object
  641. properties:
  642. _id:
  643. type: string
  644. /api/boards/{board}/cards/{card}/comments:
  645. get:
  646. operationId: get_all_comments
  647. summary: Get all comments attached to a card
  648. tags:
  649. - CardComments
  650. parameters:
  651. - name: board
  652. in: path
  653. description: |
  654. the board ID of the card
  655. type: string
  656. required: true
  657. - name: card
  658. in: path
  659. description: |
  660. the ID of the card
  661. type: string
  662. required: true
  663. produces:
  664. - application/json
  665. security:
  666. - UserSecurity: []
  667. responses:
  668. '200':
  669. description: |-
  670. 200 response
  671. schema:
  672. type: array
  673. items:
  674. type: object
  675. properties:
  676. _id:
  677. type: string
  678. comment:
  679. type: string
  680. authorId:
  681. type: string
  682. post:
  683. operationId: new_comment
  684. summary: Add a comment on a card
  685. tags:
  686. - CardComments
  687. consumes:
  688. - multipart/form-data
  689. - application/json
  690. parameters:
  691. - name: authorId
  692. in: formData
  693. description: |
  694. the user who 'posted' the comment
  695. type: string
  696. required: true
  697. - name: comment
  698. in: formData
  699. description: the comment value
  700. type: string
  701. required: true
  702. - name: board
  703. in: path
  704. description: |
  705. the board ID of the card
  706. type: string
  707. required: true
  708. - name: card
  709. in: path
  710. description: |
  711. the ID of the card
  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/{comment}:
  728. get:
  729. operationId: get_comment
  730. summary: Get a comment on 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. - name: comment
  747. in: path
  748. description: |
  749. the ID of the comment to retrieve
  750. type: string
  751. required: true
  752. produces:
  753. - application/json
  754. security:
  755. - UserSecurity: []
  756. responses:
  757. '200':
  758. description: |-
  759. 200 response
  760. schema:
  761. $ref: "#/definitions/CardComments"
  762. delete:
  763. operationId: delete_comment
  764. summary: Delete a comment on a card
  765. tags:
  766. - CardComments
  767. parameters:
  768. - name: board
  769. in: path
  770. description: |
  771. the board ID of the card
  772. type: string
  773. required: true
  774. - name: card
  775. in: path
  776. description: |
  777. the ID of the card
  778. type: string
  779. required: true
  780. - name: comment
  781. in: path
  782. description: |
  783. the ID of the comment to delete
  784. type: string
  785. required: true
  786. produces:
  787. - application/json
  788. security:
  789. - UserSecurity: []
  790. responses:
  791. '200':
  792. description: |-
  793. 200 response
  794. schema:
  795. type: object
  796. properties:
  797. _id:
  798. type: string
  799. /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}:
  800. get:
  801. operationId: get_cards_by_custom_field
  802. summary: Get all Cards that matchs a value of a specific custom field
  803. tags:
  804. - Cards
  805. parameters:
  806. - name: board
  807. in: path
  808. description: |
  809. the board ID
  810. type: string
  811. required: true
  812. - name: customField
  813. in: path
  814. description: |
  815. the list ID
  816. type: string
  817. required: true
  818. - name: customFieldValue
  819. in: path
  820. description: |
  821. the value to look for
  822. type: string
  823. required: true
  824. produces:
  825. - application/json
  826. security:
  827. - UserSecurity: []
  828. responses:
  829. '200':
  830. description: |-
  831. 200 response
  832. schema:
  833. type: array
  834. items:
  835. type: object
  836. properties:
  837. _id:
  838. type: string
  839. title:
  840. type: string
  841. description:
  842. type: string
  843. listId:
  844. type: string
  845. swinlaneId:
  846. type: string
  847. /api/boards/{board}/custom-fields:
  848. get:
  849. operationId: get_all_custom_fields
  850. summary: Get the list of Custom Fields attached to a board
  851. tags:
  852. - CustomFields
  853. parameters:
  854. - name: board
  855. in: path
  856. description: the board value
  857. type: string
  858. required: true
  859. produces:
  860. - application/json
  861. security:
  862. - UserSecurity: []
  863. responses:
  864. '200':
  865. description: |-
  866. 200 response
  867. schema:
  868. type: array
  869. items:
  870. type: object
  871. properties:
  872. _id:
  873. type: string
  874. name:
  875. type: string
  876. type:
  877. type: string
  878. post:
  879. operationId: new_custom_field
  880. summary: Create a Custom Field
  881. tags:
  882. - CustomFields
  883. consumes:
  884. - multipart/form-data
  885. - application/json
  886. parameters:
  887. - name: name
  888. in: formData
  889. description: |
  890. the name of the custom field
  891. type: string
  892. required: true
  893. - name: type
  894. in: formData
  895. description: |
  896. the type of the custom field
  897. type: string
  898. required: true
  899. - name: settings
  900. in: formData
  901. description: |
  902. the settings object of the custom field
  903. type: string
  904. required: true
  905. - name: showOnCard
  906. in: formData
  907. description: |
  908. should we show the custom field on cards?
  909. type: boolean
  910. required: true
  911. - name: automaticallyOnCard
  912. in: formData
  913. description: |
  914. should the custom fields automatically be added on cards?
  915. type: boolean
  916. required: true
  917. - name: showLabelOnMiniCard
  918. in: formData
  919. description: |
  920. should the label of the custom field be shown on minicards?
  921. type: boolean
  922. required: true
  923. - name: authorId
  924. in: formData
  925. description: the authorId value
  926. type: string
  927. required: true
  928. - name: board
  929. in: path
  930. description: the board value
  931. type: string
  932. required: true
  933. produces:
  934. - application/json
  935. security:
  936. - UserSecurity: []
  937. responses:
  938. '200':
  939. description: |-
  940. 200 response
  941. schema:
  942. type: object
  943. properties:
  944. _id:
  945. type: string
  946. /api/boards/{board}/custom-fields/{customField}:
  947. get:
  948. operationId: get_custom_field
  949. summary: Get a Custom Fields attached to a board
  950. tags:
  951. - CustomFields
  952. parameters:
  953. - name: board
  954. in: path
  955. description: the board value
  956. type: string
  957. required: true
  958. - name: customField
  959. in: path
  960. description: |
  961. the ID of the custom field
  962. type: string
  963. required: true
  964. produces:
  965. - application/json
  966. security:
  967. - UserSecurity: []
  968. responses:
  969. '200':
  970. description: |-
  971. 200 response
  972. schema:
  973. $ref: "#/definitions/CustomFields"
  974. delete:
  975. operationId: delete_custom_field
  976. summary: Delete a Custom Fields attached to a board
  977. description: |
  978. The Custom Field can't be retrieved after this operation
  979. tags:
  980. - CustomFields
  981. parameters:
  982. - name: board
  983. in: path
  984. description: the board value
  985. type: string
  986. required: true
  987. - name: customField
  988. in: path
  989. description: |
  990. the ID of the custom field
  991. type: string
  992. required: true
  993. produces:
  994. - application/json
  995. security:
  996. - UserSecurity: []
  997. responses:
  998. '200':
  999. description: |-
  1000. 200 response
  1001. schema:
  1002. type: object
  1003. properties:
  1004. _id:
  1005. type: string
  1006. /api/boards/{board}/export:
  1007. get:
  1008. operationId: exportJson
  1009. summary: This route is used to export the board to a json file format.
  1010. description: |
  1011. If user is already logged-in, pass loginToken as param
  1012. "authToken": '/api/boards/:boardId/export?authToken=:token'
  1013. See https://blog.kayla.com.au/server-side-route-authentication-in-meteor/
  1014. for detailed explanations
  1015. tags:
  1016. - Boards
  1017. parameters:
  1018. - name: board
  1019. in: path
  1020. description: |
  1021. the ID of the board we are exporting
  1022. type: string
  1023. required: true
  1024. produces:
  1025. - application/json
  1026. security:
  1027. - UserSecurity: []
  1028. responses:
  1029. '200':
  1030. description: |-
  1031. 200 response
  1032. /api/boards/{board}/integrations:
  1033. get:
  1034. operationId: get_all_integrations
  1035. summary: Get all integrations in board
  1036. tags:
  1037. - Integrations
  1038. parameters:
  1039. - name: board
  1040. in: path
  1041. description: |
  1042. the board ID
  1043. type: string
  1044. required: true
  1045. produces:
  1046. - application/json
  1047. security:
  1048. - UserSecurity: []
  1049. responses:
  1050. '200':
  1051. description: |-
  1052. 200 response
  1053. schema:
  1054. type: array
  1055. items:
  1056. $ref: "#/definitions/Integrations"
  1057. post:
  1058. operationId: new_integration
  1059. summary: Create a new integration
  1060. tags:
  1061. - Integrations
  1062. consumes:
  1063. - multipart/form-data
  1064. - application/json
  1065. parameters:
  1066. - name: url
  1067. in: formData
  1068. description: |
  1069. the URL of the integration
  1070. type: string
  1071. required: true
  1072. - name: board
  1073. in: path
  1074. description: |
  1075. the board ID
  1076. type: string
  1077. required: true
  1078. produces:
  1079. - application/json
  1080. security:
  1081. - UserSecurity: []
  1082. responses:
  1083. '200':
  1084. description: |-
  1085. 200 response
  1086. schema:
  1087. type: object
  1088. properties:
  1089. _id:
  1090. type: string
  1091. /api/boards/{board}/integrations/{int}:
  1092. get:
  1093. operationId: get_integration
  1094. summary: Get a single integration in board
  1095. tags:
  1096. - Integrations
  1097. parameters:
  1098. - name: board
  1099. in: path
  1100. description: |
  1101. the board ID
  1102. type: string
  1103. required: true
  1104. - name: int
  1105. in: path
  1106. description: |
  1107. the integration ID
  1108. type: string
  1109. required: true
  1110. produces:
  1111. - application/json
  1112. security:
  1113. - UserSecurity: []
  1114. responses:
  1115. '200':
  1116. description: |-
  1117. 200 response
  1118. schema:
  1119. $ref: "#/definitions/Integrations"
  1120. put:
  1121. operationId: edit_integration
  1122. summary: Edit integration data
  1123. tags:
  1124. - Integrations
  1125. consumes:
  1126. - multipart/form-data
  1127. - application/json
  1128. parameters:
  1129. - name: enabled
  1130. in: formData
  1131. description: |
  1132. is the integration enabled?
  1133. type: string
  1134. required: false
  1135. - name: title
  1136. in: formData
  1137. description: |
  1138. new name of the integration
  1139. type: string
  1140. required: false
  1141. - name: url
  1142. in: formData
  1143. description: |
  1144. new URL of the integration
  1145. type: string
  1146. required: false
  1147. - name: token
  1148. in: formData
  1149. description: |
  1150. new token of the integration
  1151. type: string
  1152. required: false
  1153. - name: activities
  1154. in: formData
  1155. description: |
  1156. new list of activities of the integration
  1157. type: string
  1158. required: false
  1159. - name: board
  1160. in: path
  1161. description: |
  1162. the board ID
  1163. type: string
  1164. required: true
  1165. - name: int
  1166. in: path
  1167. description: |
  1168. the integration ID
  1169. type: string
  1170. required: true
  1171. produces:
  1172. - application/json
  1173. security:
  1174. - UserSecurity: []
  1175. responses:
  1176. '200':
  1177. description: |-
  1178. 200 response
  1179. schema:
  1180. type: object
  1181. properties:
  1182. _id:
  1183. type: string
  1184. delete:
  1185. operationId: delete_integration
  1186. summary: Delete integration
  1187. tags:
  1188. - Integrations
  1189. parameters:
  1190. - name: board
  1191. in: path
  1192. description: |
  1193. the board ID
  1194. type: string
  1195. required: true
  1196. - name: int
  1197. in: path
  1198. description: |
  1199. the integration ID
  1200. type: string
  1201. required: true
  1202. produces:
  1203. - application/json
  1204. security:
  1205. - UserSecurity: []
  1206. responses:
  1207. '200':
  1208. description: |-
  1209. 200 response
  1210. schema:
  1211. type: object
  1212. properties:
  1213. _id:
  1214. type: string
  1215. /api/boards/{board}/integrations/{int}/activities:
  1216. delete:
  1217. operationId: delete_integration_activities
  1218. summary: Delete subscribed activities
  1219. tags:
  1220. - Integrations
  1221. parameters:
  1222. - name: board
  1223. in: path
  1224. description: |
  1225. the board ID
  1226. type: string
  1227. required: true
  1228. - name: int
  1229. in: path
  1230. description: |
  1231. the integration ID
  1232. type: string
  1233. required: true
  1234. produces:
  1235. - application/json
  1236. security:
  1237. - UserSecurity: []
  1238. responses:
  1239. '200':
  1240. description: |-
  1241. 200 response
  1242. schema:
  1243. $ref: "#/definitions/Integrations"
  1244. post:
  1245. operationId: new_integration_activities
  1246. summary: Add subscribed activities
  1247. tags:
  1248. - Integrations
  1249. consumes:
  1250. - multipart/form-data
  1251. - application/json
  1252. parameters:
  1253. - name: activities
  1254. in: formData
  1255. description: the activities value
  1256. type: string
  1257. required: true
  1258. - name: board
  1259. in: path
  1260. description: |
  1261. the board ID
  1262. type: string
  1263. required: true
  1264. - name: int
  1265. in: path
  1266. description: |
  1267. the integration ID
  1268. type: string
  1269. required: true
  1270. produces:
  1271. - application/json
  1272. security:
  1273. - UserSecurity: []
  1274. responses:
  1275. '200':
  1276. description: |-
  1277. 200 response
  1278. schema:
  1279. $ref: "#/definitions/Integrations"
  1280. /api/boards/{board}/labels:
  1281. put:
  1282. operationId: add_board_label
  1283. summary: Add a label to a board
  1284. description: |
  1285. If the board doesn't have the name/color label, this function
  1286. adds the label to the board.
  1287. tags:
  1288. - Boards
  1289. consumes:
  1290. - multipart/form-data
  1291. - application/json
  1292. parameters:
  1293. - name: label
  1294. in: formData
  1295. description: the label value
  1296. type: string
  1297. required: true
  1298. - name: board
  1299. in: path
  1300. description: |
  1301. the board
  1302. type: string
  1303. required: true
  1304. produces:
  1305. - application/json
  1306. security:
  1307. - UserSecurity: []
  1308. responses:
  1309. '200':
  1310. description: |-
  1311. 200 response
  1312. schema:
  1313. type: string
  1314. /api/boards/{board}/lists:
  1315. get:
  1316. operationId: get_all_lists
  1317. summary: Get the list of Lists attached to a board
  1318. tags:
  1319. - Lists
  1320. parameters:
  1321. - name: board
  1322. in: path
  1323. description: |
  1324. the board ID
  1325. type: string
  1326. required: true
  1327. produces:
  1328. - application/json
  1329. security:
  1330. - UserSecurity: []
  1331. responses:
  1332. '200':
  1333. description: |-
  1334. 200 response
  1335. schema:
  1336. type: array
  1337. items:
  1338. type: object
  1339. properties:
  1340. _id:
  1341. type: string
  1342. title:
  1343. type: string
  1344. post:
  1345. operationId: new_list
  1346. summary: Add a List to a board
  1347. tags:
  1348. - Lists
  1349. consumes:
  1350. - multipart/form-data
  1351. - application/json
  1352. parameters:
  1353. - name: title
  1354. in: formData
  1355. description: |
  1356. the title of the List
  1357. type: string
  1358. required: true
  1359. - name: board
  1360. in: path
  1361. description: |
  1362. the board ID
  1363. type: string
  1364. required: true
  1365. produces:
  1366. - application/json
  1367. security:
  1368. - UserSecurity: []
  1369. responses:
  1370. '200':
  1371. description: |-
  1372. 200 response
  1373. schema:
  1374. type: object
  1375. properties:
  1376. _id:
  1377. type: string
  1378. /api/boards/{board}/lists/{list}:
  1379. get:
  1380. operationId: get_list
  1381. summary: Get a List attached to a board
  1382. tags:
  1383. - Lists
  1384. parameters:
  1385. - name: board
  1386. in: path
  1387. description: |
  1388. the board ID
  1389. type: string
  1390. required: true
  1391. - name: list
  1392. in: path
  1393. description: |
  1394. the List ID
  1395. type: string
  1396. required: true
  1397. produces:
  1398. - application/json
  1399. security:
  1400. - UserSecurity: []
  1401. responses:
  1402. '200':
  1403. description: |-
  1404. 200 response
  1405. schema:
  1406. $ref: "#/definitions/Lists"
  1407. delete:
  1408. operationId: delete_list
  1409. summary: Delete a List
  1410. description: |
  1411. This **deletes** a list from a board.
  1412. The list is not put in the recycle bin.
  1413. tags:
  1414. - Lists
  1415. parameters:
  1416. - name: board
  1417. in: path
  1418. description: |
  1419. the board ID
  1420. type: string
  1421. required: true
  1422. - name: list
  1423. in: path
  1424. description: |
  1425. the ID of the list to remove
  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. type: object
  1438. properties:
  1439. _id:
  1440. type: string
  1441. /api/boards/{board}/lists/{list}/cards:
  1442. get:
  1443. operationId: get_all_cards
  1444. summary: Get all Cards attached to a List
  1445. tags:
  1446. - Cards
  1447. parameters:
  1448. - name: board
  1449. in: path
  1450. description: |
  1451. the board ID
  1452. type: string
  1453. required: true
  1454. - name: list
  1455. in: path
  1456. description: |
  1457. the list ID
  1458. type: string
  1459. required: true
  1460. produces:
  1461. - application/json
  1462. security:
  1463. - UserSecurity: []
  1464. responses:
  1465. '200':
  1466. description: |-
  1467. 200 response
  1468. schema:
  1469. type: array
  1470. items:
  1471. type: object
  1472. properties:
  1473. _id:
  1474. type: string
  1475. title:
  1476. type: string
  1477. description:
  1478. type: string
  1479. post:
  1480. operationId: new_card
  1481. summary: Create a new Card
  1482. tags:
  1483. - Cards
  1484. consumes:
  1485. - multipart/form-data
  1486. - application/json
  1487. parameters:
  1488. - name: authorId
  1489. in: formData
  1490. description: the authorId value
  1491. type: string
  1492. required: true
  1493. - name: members
  1494. in: formData
  1495. description: |
  1496. the member IDs list of the new card
  1497. type: string
  1498. required: false
  1499. - name: assignees
  1500. in: formData
  1501. description: |
  1502. the array of maximum one ID of assignee of the new card
  1503. type: string
  1504. required: false
  1505. - name: title
  1506. in: formData
  1507. description: |
  1508. the title of the new card
  1509. type: string
  1510. required: true
  1511. - name: description
  1512. in: formData
  1513. description: |
  1514. the description of the new card
  1515. type: string
  1516. required: true
  1517. - name: swimlaneId
  1518. in: formData
  1519. description: |
  1520. the swimlane ID of the new card
  1521. type: string
  1522. required: true
  1523. - name: board
  1524. in: path
  1525. description: |
  1526. the board ID of the new card
  1527. type: string
  1528. required: true
  1529. - name: list
  1530. in: path
  1531. description: |
  1532. the list ID of the new card
  1533. type: string
  1534. required: true
  1535. produces:
  1536. - application/json
  1537. security:
  1538. - UserSecurity: []
  1539. responses:
  1540. '200':
  1541. description: |-
  1542. 200 response
  1543. schema:
  1544. type: object
  1545. properties:
  1546. _id:
  1547. type: string
  1548. /api/boards/{board}/lists/{list}/cards/{card}:
  1549. get:
  1550. operationId: get_card
  1551. summary: Get a Card
  1552. tags:
  1553. - Cards
  1554. parameters:
  1555. - name: board
  1556. in: path
  1557. description: |
  1558. the board ID
  1559. type: string
  1560. required: true
  1561. - name: list
  1562. in: path
  1563. description: |
  1564. the list ID of the card
  1565. type: string
  1566. required: true
  1567. - name: card
  1568. in: path
  1569. description: |
  1570. the card ID
  1571. type: string
  1572. required: true
  1573. produces:
  1574. - application/json
  1575. security:
  1576. - UserSecurity: []
  1577. responses:
  1578. '200':
  1579. description: |-
  1580. 200 response
  1581. schema:
  1582. $ref: "#/definitions/Cards"
  1583. put:
  1584. operationId: edit_card
  1585. summary: Edit Fields in a Card
  1586. description: |
  1587. Edit a card
  1588. The color has to be chosen between `white`, `green`, `yellow`, `orange`,
  1589. `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`,
  1590. `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`,
  1591. `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`,
  1592. `indigo`:
  1593. <img src="/card-colors.png" width="40%" alt="Wekan card colors" />
  1594. Note: setting the color to white has the same effect than removing it.
  1595. tags:
  1596. - Cards
  1597. consumes:
  1598. - multipart/form-data
  1599. - application/json
  1600. parameters:
  1601. - name: title
  1602. in: formData
  1603. description: |
  1604. the new title of the card
  1605. type: string
  1606. required: false
  1607. - name: parentId
  1608. in: formData
  1609. description: |
  1610. change the parent of the card
  1611. type: string
  1612. required: false
  1613. - name: description
  1614. in: formData
  1615. description: |
  1616. the new description of the card
  1617. type: string
  1618. required: false
  1619. - name: color
  1620. in: formData
  1621. description: |
  1622. the new color of the card
  1623. type: string
  1624. required: false
  1625. - name: vote
  1626. in: formData
  1627. description: |
  1628. the vote object
  1629. type: object
  1630. required: false
  1631. - name: labelIds
  1632. in: formData
  1633. description: |
  1634. the new list of label IDs attached to the card
  1635. type: string
  1636. required: false
  1637. - name: requestedBy
  1638. in: formData
  1639. description: |
  1640. the new requestedBy field of the card
  1641. type: string
  1642. required: false
  1643. - name: assignedBy
  1644. in: formData
  1645. description: |
  1646. the new assignedBy field of the card
  1647. type: string
  1648. required: false
  1649. - name: receivedAt
  1650. in: formData
  1651. description: |
  1652. the new receivedAt field of the card
  1653. type: string
  1654. required: false
  1655. - name: startAt
  1656. in: formData
  1657. description: |
  1658. the new startAt field of the card
  1659. type: string
  1660. required: false
  1661. - name: dueAt
  1662. in: formData
  1663. description: |
  1664. the new dueAt field of the card
  1665. type: string
  1666. required: false
  1667. - name: endAt
  1668. in: formData
  1669. description: |
  1670. the new endAt field of the card
  1671. type: string
  1672. required: false
  1673. - name: spentTime
  1674. in: formData
  1675. description: |
  1676. the new spentTime field of the card
  1677. type: string
  1678. required: false
  1679. - name: isOverTime
  1680. in: formData
  1681. description: |
  1682. the new isOverTime field of the card
  1683. type: boolean
  1684. required: false
  1685. - name: customFields
  1686. in: formData
  1687. description: |
  1688. the new customFields value of the card
  1689. type: string
  1690. required: false
  1691. - name: members
  1692. in: formData
  1693. description: |
  1694. the new list of member IDs attached to the card
  1695. type: string
  1696. required: false
  1697. - name: assignees
  1698. in: formData
  1699. description: |
  1700. the array of maximum one ID of assignee attached to the card
  1701. type: string
  1702. required: false
  1703. - name: swimlaneId
  1704. in: formData
  1705. description: |
  1706. the new swimlane ID of the card
  1707. type: string
  1708. required: false
  1709. - name: listId
  1710. in: formData
  1711. description: |
  1712. the new list ID of the card (move operation)
  1713. type: string
  1714. required: false
  1715. - name: authorId
  1716. in: formData
  1717. description: |
  1718. change the owner of the card
  1719. type: string
  1720. required: false
  1721. - name: board
  1722. in: path
  1723. description: |
  1724. the board ID of the card
  1725. type: string
  1726. required: true
  1727. - name: list
  1728. in: path
  1729. description: |
  1730. the list ID of the card
  1731. type: string
  1732. required: true
  1733. - name: card
  1734. in: path
  1735. description: |
  1736. the ID of the card
  1737. type: string
  1738. required: true
  1739. produces:
  1740. - application/json
  1741. security:
  1742. - UserSecurity: []
  1743. responses:
  1744. '200':
  1745. description: |-
  1746. 200 response
  1747. schema:
  1748. type: object
  1749. properties:
  1750. _id:
  1751. type: string
  1752. delete:
  1753. operationId: delete_card
  1754. summary: Delete a card from a board
  1755. description: |
  1756. This operation **deletes** a card, and therefore the card
  1757. is not put in the recycle bin.
  1758. tags:
  1759. - Cards
  1760. parameters:
  1761. - name: board
  1762. in: path
  1763. description: |
  1764. the board ID of the card
  1765. type: string
  1766. required: true
  1767. - name: list
  1768. in: path
  1769. description: |
  1770. the list ID of the card
  1771. type: string
  1772. required: true
  1773. - name: card
  1774. in: path
  1775. description: |
  1776. the ID of the card
  1777. type: string
  1778. required: true
  1779. produces:
  1780. - application/json
  1781. security:
  1782. - UserSecurity: []
  1783. responses:
  1784. '200':
  1785. description: |-
  1786. 200 response
  1787. schema:
  1788. type: object
  1789. properties:
  1790. _id:
  1791. type: string
  1792. /api/boards/{board}/members/{member}:
  1793. post:
  1794. operationId: set_board_member_permission
  1795. summary: Change the permission of a member of a board
  1796. tags:
  1797. - Boards
  1798. - Users
  1799. consumes:
  1800. - multipart/form-data
  1801. - application/json
  1802. parameters:
  1803. - name: isAdmin
  1804. in: formData
  1805. description: |
  1806. admin capability
  1807. type: boolean
  1808. required: true
  1809. - name: isNoComments
  1810. in: formData
  1811. description: |
  1812. NoComments capability
  1813. type: boolean
  1814. required: true
  1815. - name: isCommentOnly
  1816. in: formData
  1817. description: |
  1818. CommentsOnly capability
  1819. type: boolean
  1820. required: true
  1821. - name: isWorker
  1822. in: formData
  1823. description: |
  1824. Worker capability
  1825. type: boolean
  1826. required: true
  1827. - name: board
  1828. in: path
  1829. description: |
  1830. the ID of the board that we are changing
  1831. type: string
  1832. required: true
  1833. - name: member
  1834. in: path
  1835. description: |
  1836. the ID of the user to change permissions
  1837. type: string
  1838. required: true
  1839. produces:
  1840. - application/json
  1841. security:
  1842. - UserSecurity: []
  1843. responses:
  1844. '200':
  1845. description: |-
  1846. 200 response
  1847. /api/boards/{board}/members/{user}/add:
  1848. post:
  1849. operationId: add_board_member
  1850. summary: Add New Board Member with Role
  1851. description: |
  1852. Only the admin user (the first user) can call the REST API.
  1853. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  1854. to later change the permissions.
  1855. tags:
  1856. - Users
  1857. - Boards
  1858. consumes:
  1859. - multipart/form-data
  1860. - application/json
  1861. parameters:
  1862. - name: action
  1863. in: formData
  1864. description: the action value
  1865. type: string
  1866. required: true
  1867. - name: isAdmin
  1868. in: formData
  1869. description: |
  1870. is the user an admin of the board
  1871. type: boolean
  1872. required: true
  1873. - name: isNoComments
  1874. in: formData
  1875. description: |
  1876. disable comments
  1877. type: boolean
  1878. required: true
  1879. - name: isCommentOnly
  1880. in: formData
  1881. description: |
  1882. only enable comments
  1883. type: boolean
  1884. required: true
  1885. - name: board
  1886. in: path
  1887. description: |
  1888. the board ID
  1889. type: string
  1890. required: true
  1891. - name: user
  1892. in: path
  1893. description: |
  1894. the user ID
  1895. type: string
  1896. required: true
  1897. produces:
  1898. - application/json
  1899. security:
  1900. - UserSecurity: []
  1901. responses:
  1902. '200':
  1903. description: |-
  1904. 200 response
  1905. schema:
  1906. type: object
  1907. properties:
  1908. _id:
  1909. type: string
  1910. title:
  1911. type: string
  1912. /api/boards/{board}/members/{user}/remove:
  1913. post:
  1914. operationId: remove_board_member
  1915. summary: Remove Member from Board
  1916. description: |
  1917. Only the admin user (the first user) can call the REST API.
  1918. tags:
  1919. - Users
  1920. - Boards
  1921. consumes:
  1922. - multipart/form-data
  1923. - application/json
  1924. parameters:
  1925. - name: action
  1926. in: formData
  1927. description: |
  1928. the action (needs to be `remove`)
  1929. type: string
  1930. required: true
  1931. - name: board
  1932. in: path
  1933. description: |
  1934. the board ID
  1935. type: string
  1936. required: true
  1937. - name: user
  1938. in: path
  1939. description: |
  1940. the user ID
  1941. type: string
  1942. required: true
  1943. produces:
  1944. - application/json
  1945. security:
  1946. - UserSecurity: []
  1947. responses:
  1948. '200':
  1949. description: |-
  1950. 200 response
  1951. schema:
  1952. type: object
  1953. properties:
  1954. _id:
  1955. type: string
  1956. title:
  1957. type: string
  1958. /api/boards/{board}/swimlanes:
  1959. get:
  1960. operationId: get_all_swimlanes
  1961. summary: Get the list of swimlanes attached to a board
  1962. tags:
  1963. - Swimlanes
  1964. parameters:
  1965. - name: board
  1966. in: path
  1967. description: |
  1968. the ID of the board
  1969. type: string
  1970. required: true
  1971. produces:
  1972. - application/json
  1973. security:
  1974. - UserSecurity: []
  1975. responses:
  1976. '200':
  1977. description: |-
  1978. 200 response
  1979. schema:
  1980. type: array
  1981. items:
  1982. type: object
  1983. properties:
  1984. _id:
  1985. type: string
  1986. title:
  1987. type: string
  1988. post:
  1989. operationId: new_swimlane
  1990. summary: Add a swimlane to a board
  1991. tags:
  1992. - Swimlanes
  1993. consumes:
  1994. - multipart/form-data
  1995. - application/json
  1996. parameters:
  1997. - name: title
  1998. in: formData
  1999. description: |
  2000. the new title of the swimlane
  2001. type: string
  2002. required: true
  2003. - name: board
  2004. in: path
  2005. description: |
  2006. the ID of the board
  2007. type: string
  2008. required: true
  2009. produces:
  2010. - application/json
  2011. security:
  2012. - UserSecurity: []
  2013. responses:
  2014. '200':
  2015. description: |-
  2016. 200 response
  2017. schema:
  2018. type: object
  2019. properties:
  2020. _id:
  2021. type: string
  2022. /api/boards/{board}/swimlanes/{swimlane}:
  2023. get:
  2024. operationId: get_swimlane
  2025. summary: Get a swimlane
  2026. tags:
  2027. - Swimlanes
  2028. parameters:
  2029. - name: board
  2030. in: path
  2031. description: |
  2032. the ID of the board
  2033. type: string
  2034. required: true
  2035. - name: swimlane
  2036. in: path
  2037. description: |
  2038. the ID of the swimlane
  2039. type: string
  2040. required: true
  2041. produces:
  2042. - application/json
  2043. security:
  2044. - UserSecurity: []
  2045. responses:
  2046. '200':
  2047. description: |-
  2048. 200 response
  2049. schema:
  2050. $ref: "#/definitions/Swimlanes"
  2051. delete:
  2052. operationId: delete_swimlane
  2053. summary: Delete a swimlane
  2054. description: |
  2055. The swimlane will be deleted, not moved to the recycle bin
  2056. tags:
  2057. - Swimlanes
  2058. parameters:
  2059. - name: board
  2060. in: path
  2061. description: |
  2062. the ID of the board
  2063. type: string
  2064. required: true
  2065. - name: swimlane
  2066. in: path
  2067. description: |
  2068. the ID of the swimlane
  2069. type: string
  2070. required: true
  2071. produces:
  2072. - application/json
  2073. security:
  2074. - UserSecurity: []
  2075. responses:
  2076. '200':
  2077. description: |-
  2078. 200 response
  2079. schema:
  2080. type: object
  2081. properties:
  2082. _id:
  2083. type: string
  2084. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2085. get:
  2086. operationId: get_swimlane_cards
  2087. summary: get all cards attached to a swimlane
  2088. tags:
  2089. - Cards
  2090. parameters:
  2091. - name: board
  2092. in: path
  2093. description: |
  2094. the board ID
  2095. type: string
  2096. required: true
  2097. - name: swimlane
  2098. in: path
  2099. description: |
  2100. the swimlane ID
  2101. type: string
  2102. required: true
  2103. produces:
  2104. - application/json
  2105. security:
  2106. - UserSecurity: []
  2107. responses:
  2108. '200':
  2109. description: |-
  2110. 200 response
  2111. schema:
  2112. type: array
  2113. items:
  2114. type: object
  2115. properties:
  2116. _id:
  2117. type: string
  2118. title:
  2119. type: string
  2120. description:
  2121. type: string
  2122. listId:
  2123. type: string
  2124. /api/boards_count:
  2125. get:
  2126. operationId: get_boards_count
  2127. summary: Get public and private boards count
  2128. tags:
  2129. - Boards
  2130. produces:
  2131. - application/json
  2132. security:
  2133. - UserSecurity: []
  2134. responses:
  2135. '200':
  2136. description: |-
  2137. 200 response
  2138. schema:
  2139. type: object
  2140. properties:
  2141. private:
  2142. type: integer
  2143. public:
  2144. type: integer
  2145. /api/createtoken/{user}:
  2146. post:
  2147. operationId: create_user_token
  2148. summary: Create a user token
  2149. description: |
  2150. Only the admin user (the first user) can call the REST API.
  2151. tags:
  2152. - Users
  2153. consumes:
  2154. - multipart/form-data
  2155. - application/json
  2156. parameters:
  2157. - name: user
  2158. in: path
  2159. description: |
  2160. the ID of the user to create token for.
  2161. type: string
  2162. required: true
  2163. produces:
  2164. - application/json
  2165. security:
  2166. - UserSecurity: []
  2167. responses:
  2168. '200':
  2169. description: |-
  2170. 200 response
  2171. schema:
  2172. type: object
  2173. properties:
  2174. _id:
  2175. type: string
  2176. /api/user:
  2177. get:
  2178. operationId: get_current_user
  2179. summary: returns the current user
  2180. tags:
  2181. - Users
  2182. produces:
  2183. - application/json
  2184. security:
  2185. - UserSecurity: []
  2186. responses:
  2187. '200':
  2188. description: |-
  2189. 200 response
  2190. schema:
  2191. $ref: "#/definitions/Users"
  2192. /api/users:
  2193. get:
  2194. operationId: get_all_users
  2195. summary: return all the users
  2196. description: |
  2197. Only the admin user (the first user) can call the REST API.
  2198. tags:
  2199. - Users
  2200. produces:
  2201. - application/json
  2202. security:
  2203. - UserSecurity: []
  2204. responses:
  2205. '200':
  2206. description: |-
  2207. 200 response
  2208. schema:
  2209. type: array
  2210. items:
  2211. type: object
  2212. properties:
  2213. _id:
  2214. type: string
  2215. username:
  2216. type: string
  2217. post:
  2218. operationId: new_user
  2219. summary: Create a new user
  2220. description: |
  2221. Only the admin user (the first user) can call the REST API.
  2222. tags:
  2223. - Users
  2224. consumes:
  2225. - multipart/form-data
  2226. - application/json
  2227. parameters:
  2228. - name: username
  2229. in: formData
  2230. description: |
  2231. the new username
  2232. type: string
  2233. required: true
  2234. - name: email
  2235. in: formData
  2236. description: |
  2237. the email of the new user
  2238. type: string
  2239. required: true
  2240. - name: password
  2241. in: formData
  2242. description: |
  2243. the password of the new user
  2244. type: string
  2245. required: true
  2246. produces:
  2247. - application/json
  2248. security:
  2249. - UserSecurity: []
  2250. responses:
  2251. '200':
  2252. description: |-
  2253. 200 response
  2254. schema:
  2255. type: object
  2256. properties:
  2257. _id:
  2258. type: string
  2259. /api/users/{user}:
  2260. get:
  2261. operationId: get_user
  2262. summary: get a given user
  2263. description: |
  2264. Only the admin user (the first user) can call the REST API.
  2265. tags:
  2266. - Users
  2267. parameters:
  2268. - name: user
  2269. in: path
  2270. description: |
  2271. the user ID or username
  2272. type: string
  2273. required: true
  2274. produces:
  2275. - application/json
  2276. security:
  2277. - UserSecurity: []
  2278. responses:
  2279. '200':
  2280. description: |-
  2281. 200 response
  2282. schema:
  2283. $ref: "#/definitions/Users"
  2284. put:
  2285. operationId: edit_user
  2286. summary: edit a given user
  2287. description: |
  2288. Only the admin user (the first user) can call the REST API.
  2289. Possible values for *action*:
  2290. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2291. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2292. - `enableLogin`: Enable a user
  2293. tags:
  2294. - Users
  2295. consumes:
  2296. - multipart/form-data
  2297. - application/json
  2298. parameters:
  2299. - name: action
  2300. in: formData
  2301. description: |
  2302. the action
  2303. type: string
  2304. required: true
  2305. - name: user
  2306. in: path
  2307. description: |
  2308. the user ID
  2309. type: string
  2310. required: true
  2311. produces:
  2312. - application/json
  2313. security:
  2314. - UserSecurity: []
  2315. responses:
  2316. '200':
  2317. description: |-
  2318. 200 response
  2319. schema:
  2320. type: object
  2321. properties:
  2322. _id:
  2323. type: string
  2324. title:
  2325. type: string
  2326. delete:
  2327. operationId: delete_user
  2328. summary: Delete a user
  2329. description: |
  2330. Only the admin user (the first user) can call the REST API.
  2331. tags:
  2332. - Users
  2333. parameters:
  2334. - name: user
  2335. in: path
  2336. description: |
  2337. the ID of the user to delete
  2338. type: string
  2339. required: true
  2340. produces:
  2341. - application/json
  2342. security:
  2343. - UserSecurity: []
  2344. responses:
  2345. '200':
  2346. description: |-
  2347. 200 response
  2348. schema:
  2349. type: object
  2350. properties:
  2351. _id:
  2352. type: string
  2353. /api/users/{user}/boards:
  2354. get:
  2355. operationId: get_boards_from_user
  2356. summary: Get all boards attached to a user
  2357. tags:
  2358. - Boards
  2359. parameters:
  2360. - name: user
  2361. in: path
  2362. description: |
  2363. the ID of the user to retrieve the data
  2364. type: string
  2365. required: true
  2366. produces:
  2367. - application/json
  2368. security:
  2369. - UserSecurity: []
  2370. responses:
  2371. '200':
  2372. description: |-
  2373. 200 response
  2374. schema:
  2375. type: array
  2376. items:
  2377. type: object
  2378. properties:
  2379. _id:
  2380. type: string
  2381. title:
  2382. type: string
  2383. definitions:
  2384. Boards:
  2385. type: object
  2386. description: This is a Board.
  2387. properties:
  2388. title:
  2389. description: |
  2390. The title of the board
  2391. type: string
  2392. slug:
  2393. description: |
  2394. The title slugified.
  2395. type: string
  2396. archived:
  2397. description: |
  2398. Is the board archived?
  2399. type: boolean
  2400. archivedAt:
  2401. description: |
  2402. Latest archiving time of the board
  2403. type: string
  2404. x-nullable: true
  2405. createdAt:
  2406. description: |
  2407. Creation time of the board
  2408. type: string
  2409. modifiedAt:
  2410. description: |
  2411. Last modification time of the board
  2412. type: string
  2413. x-nullable: true
  2414. stars:
  2415. description: |
  2416. How many stars the board has
  2417. type: number
  2418. labels:
  2419. description: |
  2420. List of labels attached to a board
  2421. type: array
  2422. items:
  2423. $ref: "#/definitions/BoardsLabels"
  2424. members:
  2425. description: |
  2426. List of members of a board
  2427. type: array
  2428. items:
  2429. $ref: "#/definitions/BoardsMembers"
  2430. permission:
  2431. description: |
  2432. visibility of the board
  2433. type: string
  2434. enum:
  2435. - public
  2436. - private
  2437. color:
  2438. description: |
  2439. The color of the board.
  2440. type: string
  2441. enum:
  2442. - belize
  2443. - nephritis
  2444. - pomegranate
  2445. - pumpkin
  2446. - wisteria
  2447. - moderatepink
  2448. - strongcyan
  2449. - limegreen
  2450. - midnight
  2451. - dark
  2452. - relax
  2453. - corteza
  2454. - clearblue
  2455. - natural
  2456. - modern
  2457. - moderndark
  2458. description:
  2459. description: |
  2460. The description of the board
  2461. type: string
  2462. x-nullable: true
  2463. subtasksDefaultBoardId:
  2464. description: |
  2465. The default board ID assigned to subtasks.
  2466. type: string
  2467. x-nullable: true
  2468. subtasksDefaultListId:
  2469. description: |
  2470. The default List ID assigned to subtasks.
  2471. type: string
  2472. x-nullable: true
  2473. dateSettingsDefaultBoardId:
  2474. type: string
  2475. x-nullable: true
  2476. dateSettingsDefaultListId:
  2477. type: string
  2478. x-nullable: true
  2479. allowsSubtasks:
  2480. description: |
  2481. Does the board allows subtasks?
  2482. type: boolean
  2483. allowsAttachments:
  2484. description: |
  2485. Does the board allows attachments?
  2486. type: boolean
  2487. allowsChecklists:
  2488. description: |
  2489. Does the board allows checklists?
  2490. type: boolean
  2491. allowsComments:
  2492. description: |
  2493. Does the board allows comments?
  2494. type: boolean
  2495. allowsDescriptionTitle:
  2496. description: |
  2497. Does the board allows description title?
  2498. type: boolean
  2499. allowsDescriptionText:
  2500. description: |
  2501. Does the board allows description text?
  2502. type: boolean
  2503. allowsActivities:
  2504. description: |
  2505. Does the board allows comments?
  2506. type: boolean
  2507. allowsLabels:
  2508. description: |
  2509. Does the board allows labels?
  2510. type: boolean
  2511. allowsAssignee:
  2512. description: |
  2513. Does the board allows assignee?
  2514. type: boolean
  2515. allowsMembers:
  2516. description: |
  2517. Does the board allows members?
  2518. type: boolean
  2519. allowsRequestedBy:
  2520. description: |
  2521. Does the board allows requested by?
  2522. type: boolean
  2523. allowsAssignedBy:
  2524. description: |
  2525. Does the board allows requested by?
  2526. type: boolean
  2527. allowsReceivedDate:
  2528. description: |
  2529. Does the board allows received date?
  2530. type: boolean
  2531. allowsStartDate:
  2532. description: |
  2533. Does the board allows start date?
  2534. type: boolean
  2535. allowsEndDate:
  2536. description: |
  2537. Does the board allows end date?
  2538. type: boolean
  2539. allowsDueDate:
  2540. description: |
  2541. Does the board allows due date?
  2542. type: boolean
  2543. presentParentTask:
  2544. description: |
  2545. Controls how to present the parent task:
  2546. - `prefix-with-full-path`: add a prefix with the full path
  2547. - `prefix-with-parent`: add a prefisx with the parent name
  2548. - `subtext-with-full-path`: add a subtext with the full path
  2549. - `subtext-with-parent`: add a subtext with the parent name
  2550. - `no-parent`: does not show the parent at all
  2551. type: string
  2552. enum:
  2553. - prefix-with-full-path
  2554. - prefix-with-parent
  2555. - subtext-with-full-path
  2556. - subtext-with-parent
  2557. - no-parent
  2558. x-nullable: true
  2559. startAt:
  2560. description: |
  2561. Starting date of the board.
  2562. type: string
  2563. x-nullable: true
  2564. dueAt:
  2565. description: |
  2566. Due date of the board.
  2567. type: string
  2568. x-nullable: true
  2569. endAt:
  2570. description: |
  2571. End date of the board.
  2572. type: string
  2573. x-nullable: true
  2574. spentTime:
  2575. description: |
  2576. Time spent in the board.
  2577. type: number
  2578. x-nullable: true
  2579. isOvertime:
  2580. description: |
  2581. Is the board overtimed?
  2582. type: boolean
  2583. x-nullable: true
  2584. type:
  2585. description: |
  2586. The type of board
  2587. type: string
  2588. sort:
  2589. description: |
  2590. Sort value
  2591. type: number
  2592. required:
  2593. - title
  2594. - slug
  2595. - archived
  2596. - createdAt
  2597. - stars
  2598. - labels
  2599. - members
  2600. - permission
  2601. - color
  2602. - allowsSubtasks
  2603. - allowsAttachments
  2604. - allowsChecklists
  2605. - allowsComments
  2606. - allowsDescriptionTitle
  2607. - allowsDescriptionText
  2608. - allowsActivities
  2609. - allowsLabels
  2610. - allowsAssignee
  2611. - allowsMembers
  2612. - allowsRequestedBy
  2613. - allowsAssignedBy
  2614. - allowsReceivedDate
  2615. - allowsStartDate
  2616. - allowsEndDate
  2617. - allowsDueDate
  2618. - type
  2619. - sort
  2620. BoardsLabels:
  2621. type: object
  2622. properties:
  2623. _id:
  2624. description: |
  2625. Unique id of a label
  2626. type: string
  2627. name:
  2628. description: |
  2629. Name of a label
  2630. type: string
  2631. color:
  2632. description: |
  2633. color of a label.
  2634. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  2635. `blue`, `sky`, `lime`, `pink`, `black`,
  2636. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  2637. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  2638. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  2639. type: string
  2640. enum:
  2641. - green
  2642. - yellow
  2643. - orange
  2644. - red
  2645. - purple
  2646. - blue
  2647. - sky
  2648. - lime
  2649. - pink
  2650. - black
  2651. - silver
  2652. - peachpuff
  2653. - crimson
  2654. - plum
  2655. - darkgreen
  2656. - slateblue
  2657. - magenta
  2658. - gold
  2659. - navy
  2660. - gray
  2661. - saddlebrown
  2662. - paleturquoise
  2663. - mistyrose
  2664. - indigo
  2665. required:
  2666. - _id
  2667. - color
  2668. BoardsMembers:
  2669. type: object
  2670. properties:
  2671. userId:
  2672. description: |
  2673. The uniq ID of the member
  2674. type: string
  2675. isAdmin:
  2676. description: |
  2677. Is the member an admin of the board?
  2678. type: boolean
  2679. isActive:
  2680. description: |
  2681. Is the member active?
  2682. type: boolean
  2683. isNoComments:
  2684. description: |
  2685. Is the member not allowed to make comments
  2686. type: boolean
  2687. isCommentOnly:
  2688. description: |
  2689. Is the member only allowed to comment on the board
  2690. type: boolean
  2691. isWorker:
  2692. description: |
  2693. Is the member only allowed to move card, assign himself to card and comment
  2694. type: boolean
  2695. required:
  2696. - userId
  2697. - isAdmin
  2698. - isActive
  2699. CardComments:
  2700. type: object
  2701. description: A comment on a card
  2702. properties:
  2703. boardId:
  2704. description: |
  2705. the board ID
  2706. type: string
  2707. cardId:
  2708. description: |
  2709. the card ID
  2710. type: string
  2711. text:
  2712. description: |
  2713. the text of the comment
  2714. type: string
  2715. createdAt:
  2716. description: |
  2717. when was the comment created
  2718. type: string
  2719. modifiedAt:
  2720. type: string
  2721. userId:
  2722. description: |
  2723. the author ID of the comment
  2724. type: string
  2725. required:
  2726. - boardId
  2727. - cardId
  2728. - text
  2729. - createdAt
  2730. - modifiedAt
  2731. - userId
  2732. Cards:
  2733. type: object
  2734. properties:
  2735. title:
  2736. description: |
  2737. the title of the card
  2738. type: string
  2739. x-nullable: true
  2740. archived:
  2741. description: |
  2742. is the card archived
  2743. type: boolean
  2744. archivedAt:
  2745. description: |
  2746. latest archiving date
  2747. type: string
  2748. x-nullable: true
  2749. parentId:
  2750. description: |
  2751. ID of the parent card
  2752. type: string
  2753. x-nullable: true
  2754. listId:
  2755. description: |
  2756. List ID where the card is
  2757. type: string
  2758. x-nullable: true
  2759. swimlaneId:
  2760. description: |
  2761. Swimlane ID where the card is
  2762. type: string
  2763. boardId:
  2764. description: |
  2765. Board ID of the card
  2766. type: string
  2767. x-nullable: true
  2768. coverId:
  2769. description: |
  2770. Cover ID of the card
  2771. type: string
  2772. x-nullable: true
  2773. color:
  2774. type: string
  2775. enum:
  2776. - white
  2777. - green
  2778. - yellow
  2779. - orange
  2780. - red
  2781. - purple
  2782. - blue
  2783. - sky
  2784. - lime
  2785. - pink
  2786. - black
  2787. - silver
  2788. - peachpuff
  2789. - crimson
  2790. - plum
  2791. - darkgreen
  2792. - slateblue
  2793. - magenta
  2794. - gold
  2795. - navy
  2796. - gray
  2797. - saddlebrown
  2798. - paleturquoise
  2799. - mistyrose
  2800. - indigo
  2801. x-nullable: true
  2802. createdAt:
  2803. description: |
  2804. creation date
  2805. type: string
  2806. modifiedAt:
  2807. type: string
  2808. customFields:
  2809. description: |
  2810. list of custom fields
  2811. type: array
  2812. items:
  2813. $ref: "#/definitions/CardsCustomfields"
  2814. x-nullable: true
  2815. dateLastActivity:
  2816. description: |
  2817. Date of last activity
  2818. type: string
  2819. description:
  2820. description: |
  2821. description of the card
  2822. type: string
  2823. x-nullable: true
  2824. requestedBy:
  2825. description: |
  2826. who requested the card (ID of the user)
  2827. type: string
  2828. x-nullable: true
  2829. assignedBy:
  2830. description: |
  2831. who assigned the card (ID of the user)
  2832. type: string
  2833. x-nullable: true
  2834. labelIds:
  2835. description: |
  2836. list of labels ID the card has
  2837. type: array
  2838. items:
  2839. type: string
  2840. x-nullable: true
  2841. x-nullable: true
  2842. members:
  2843. description: |
  2844. list of members (user IDs)
  2845. type: array
  2846. items:
  2847. type: string
  2848. x-nullable: true
  2849. x-nullable: true
  2850. assignees:
  2851. description: |
  2852. who is assignee of the card (user ID),
  2853. maximum one ID of assignee in array.
  2854. type: array
  2855. items:
  2856. type: string
  2857. x-nullable: true
  2858. x-nullable: true
  2859. receivedAt:
  2860. description: |
  2861. Date the card was received
  2862. type: string
  2863. x-nullable: true
  2864. startAt:
  2865. description: |
  2866. Date the card was started to be worked on
  2867. type: string
  2868. x-nullable: true
  2869. dueAt:
  2870. description: |
  2871. Date the card is due
  2872. type: string
  2873. x-nullable: true
  2874. endAt:
  2875. description: |
  2876. Date the card ended
  2877. type: string
  2878. x-nullable: true
  2879. spentTime:
  2880. description: |
  2881. How much time has been spent on this
  2882. type: number
  2883. x-nullable: true
  2884. isOvertime:
  2885. description: |
  2886. is the card over time?
  2887. type: boolean
  2888. x-nullable: true
  2889. userId:
  2890. description: |
  2891. user ID of the author of the card
  2892. type: string
  2893. sort:
  2894. description: |
  2895. Sort value
  2896. type: number
  2897. subtaskSort:
  2898. description: |
  2899. subtask sort value
  2900. type: number
  2901. x-nullable: true
  2902. type:
  2903. description: |
  2904. type of the card
  2905. type: string
  2906. linkedId:
  2907. description: |
  2908. ID of the linked card
  2909. type: string
  2910. x-nullable: true
  2911. vote:
  2912. description: |
  2913. vote object, see below
  2914. $ref: "#/definitions/CardsVote"
  2915. x-nullable: true
  2916. required:
  2917. - archived
  2918. - swimlaneId
  2919. - createdAt
  2920. - modifiedAt
  2921. - dateLastActivity
  2922. - userId
  2923. - sort
  2924. - type
  2925. CardsVote:
  2926. type: object
  2927. properties:
  2928. question:
  2929. type: string
  2930. positive:
  2931. description: |
  2932. list of members (user IDs)
  2933. type: array
  2934. items:
  2935. type: string
  2936. x-nullable: true
  2937. negative:
  2938. description: |
  2939. list of members (user IDs)
  2940. type: array
  2941. items:
  2942. type: string
  2943. x-nullable: true
  2944. end:
  2945. type: string
  2946. public:
  2947. type: boolean
  2948. allowNonBoardMembers:
  2949. type: boolean
  2950. required:
  2951. - question
  2952. - public
  2953. - allowNonBoardMembers
  2954. CardsCustomfields:
  2955. type: object
  2956. ChecklistItems:
  2957. type: object
  2958. description: An item in a checklist
  2959. properties:
  2960. title:
  2961. description: |
  2962. the text of the item
  2963. type: string
  2964. sort:
  2965. description: |
  2966. the sorting field of the item
  2967. type: number
  2968. isFinished:
  2969. description: |
  2970. Is the item checked?
  2971. type: boolean
  2972. checklistId:
  2973. description: |
  2974. the checklist ID the item is attached to
  2975. type: string
  2976. cardId:
  2977. description: |
  2978. the card ID the item is attached to
  2979. type: string
  2980. createdAt:
  2981. type: string
  2982. x-nullable: true
  2983. modifiedAt:
  2984. type: string
  2985. required:
  2986. - title
  2987. - sort
  2988. - isFinished
  2989. - checklistId
  2990. - cardId
  2991. - modifiedAt
  2992. Checklists:
  2993. type: object
  2994. description: A Checklist
  2995. properties:
  2996. cardId:
  2997. description: |
  2998. The ID of the card the checklist is in
  2999. type: string
  3000. title:
  3001. description: |
  3002. the title of the checklist
  3003. type: string
  3004. finishedAt:
  3005. description: |
  3006. When was the checklist finished
  3007. type: string
  3008. x-nullable: true
  3009. createdAt:
  3010. description: |
  3011. Creation date of the checklist
  3012. type: string
  3013. modifiedAt:
  3014. type: string
  3015. sort:
  3016. description: |
  3017. sorting value of the checklist
  3018. type: number
  3019. required:
  3020. - cardId
  3021. - title
  3022. - createdAt
  3023. - modifiedAt
  3024. - sort
  3025. CustomFields:
  3026. type: object
  3027. description: A custom field on a card in the board
  3028. properties:
  3029. boardIds:
  3030. description: |
  3031. the ID of the board
  3032. type: array
  3033. items:
  3034. type: string
  3035. name:
  3036. description: |
  3037. name of the custom field
  3038. type: string
  3039. type:
  3040. description: |
  3041. type of the custom field
  3042. type: string
  3043. enum:
  3044. - text
  3045. - number
  3046. - date
  3047. - dropdown
  3048. - checkbox
  3049. - currency
  3050. settings:
  3051. description: |
  3052. settings of the custom field
  3053. $ref: "#/definitions/CustomFieldsSettings"
  3054. showOnCard:
  3055. description: |
  3056. should we show on the cards this custom field
  3057. type: boolean
  3058. automaticallyOnCard:
  3059. description: |
  3060. should the custom fields automatically be added on cards?
  3061. type: boolean
  3062. alwaysOnCard:
  3063. description: |
  3064. should the custom field be automatically added to all cards?
  3065. type: boolean
  3066. showLabelOnMiniCard:
  3067. description: |
  3068. should the label of the custom field be shown on minicards?
  3069. type: boolean
  3070. createdAt:
  3071. type: string
  3072. x-nullable: true
  3073. modifiedAt:
  3074. type: string
  3075. required:
  3076. - boardIds
  3077. - name
  3078. - type
  3079. - settings
  3080. - showOnCard
  3081. - automaticallyOnCard
  3082. - alwaysOnCard
  3083. - showLabelOnMiniCard
  3084. - modifiedAt
  3085. CustomFieldsSettings:
  3086. type: object
  3087. properties:
  3088. currencyCode:
  3089. type: string
  3090. dropdownItems:
  3091. description: |
  3092. list of drop down items objects
  3093. type: array
  3094. items:
  3095. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3096. CustomFieldsSettingsDropdownitems:
  3097. type: object
  3098. Integrations:
  3099. type: object
  3100. description: Integration with third-party applications
  3101. properties:
  3102. enabled:
  3103. description: |
  3104. is the integration enabled?
  3105. type: boolean
  3106. title:
  3107. description: |
  3108. name of the integration
  3109. type: string
  3110. x-nullable: true
  3111. type:
  3112. description: |
  3113. type of the integratation (Default to 'outgoing-webhooks')
  3114. type: string
  3115. activities:
  3116. description: |
  3117. activities the integration gets triggered (list)
  3118. type: array
  3119. items:
  3120. type: string
  3121. url:
  3122. type: string
  3123. token:
  3124. description: |
  3125. token of the integration
  3126. type: string
  3127. x-nullable: true
  3128. boardId:
  3129. description: |
  3130. Board ID of the integration
  3131. type: string
  3132. createdAt:
  3133. description: |
  3134. Creation date of the integration
  3135. type: string
  3136. modifiedAt:
  3137. type: string
  3138. userId:
  3139. description: |
  3140. user ID who created the interation
  3141. type: string
  3142. required:
  3143. - enabled
  3144. - type
  3145. - activities
  3146. - url
  3147. - boardId
  3148. - createdAt
  3149. - modifiedAt
  3150. - userId
  3151. Lists:
  3152. type: object
  3153. description: A list (column) in the Wekan board.
  3154. properties:
  3155. title:
  3156. description: |
  3157. the title of the list
  3158. type: string
  3159. starred:
  3160. description: |
  3161. if a list is stared
  3162. then we put it on the top
  3163. type: boolean
  3164. x-nullable: true
  3165. archived:
  3166. description: |
  3167. is the list archived
  3168. type: boolean
  3169. archivedAt:
  3170. description: |
  3171. latest archiving date
  3172. type: string
  3173. x-nullable: true
  3174. boardId:
  3175. description: |
  3176. the board associated to this list
  3177. type: string
  3178. swimlaneId:
  3179. description: |
  3180. the swimlane associated to this list. Used for templates
  3181. type: string
  3182. createdAt:
  3183. description: |
  3184. creation date
  3185. type: string
  3186. sort:
  3187. description: |
  3188. is the list sorted
  3189. type: number
  3190. x-nullable: true
  3191. updatedAt:
  3192. description: |
  3193. last update of the list
  3194. type: string
  3195. x-nullable: true
  3196. modifiedAt:
  3197. type: string
  3198. wipLimit:
  3199. description: |
  3200. WIP object, see below
  3201. $ref: "#/definitions/ListsWiplimit"
  3202. x-nullable: true
  3203. color:
  3204. description: |
  3205. the color of the list
  3206. type: string
  3207. enum:
  3208. - white
  3209. - green
  3210. - yellow
  3211. - orange
  3212. - red
  3213. - purple
  3214. - blue
  3215. - sky
  3216. - lime
  3217. - pink
  3218. - black
  3219. - peachpuff
  3220. - crimson
  3221. - plum
  3222. - darkgreen
  3223. - slateblue
  3224. - magenta
  3225. - gold
  3226. - navy
  3227. - gray
  3228. - saddlebrown
  3229. - paleturquoise
  3230. - mistyrose
  3231. - indigo
  3232. x-nullable: true
  3233. type:
  3234. description: |
  3235. The type of list
  3236. type: string
  3237. required:
  3238. - title
  3239. - archived
  3240. - boardId
  3241. - swimlaneId
  3242. - createdAt
  3243. - modifiedAt
  3244. - type
  3245. ListsWiplimit:
  3246. type: object
  3247. properties:
  3248. value:
  3249. description: |
  3250. value of the WIP
  3251. type: number
  3252. enabled:
  3253. description: |
  3254. is the WIP enabled
  3255. type: boolean
  3256. soft:
  3257. description: |
  3258. is the WIP a soft or hard requirement
  3259. type: boolean
  3260. required:
  3261. - value
  3262. - enabled
  3263. - soft
  3264. Swimlanes:
  3265. type: object
  3266. description: A swimlane is an line in the kaban board.
  3267. properties:
  3268. title:
  3269. description: |
  3270. the title of the swimlane
  3271. type: string
  3272. archived:
  3273. description: |
  3274. is the swimlane archived?
  3275. type: boolean
  3276. archivedAt:
  3277. description: |
  3278. latest archiving date of the swimlane
  3279. type: string
  3280. x-nullable: true
  3281. boardId:
  3282. description: |
  3283. the ID of the board the swimlane is attached to
  3284. type: string
  3285. createdAt:
  3286. description: |
  3287. creation date of the swimlane
  3288. type: string
  3289. sort:
  3290. description: |
  3291. the sort value of the swimlane
  3292. type: number
  3293. x-nullable: true
  3294. color:
  3295. description: |
  3296. the color of the swimlane
  3297. type: string
  3298. enum:
  3299. - white
  3300. - green
  3301. - yellow
  3302. - orange
  3303. - red
  3304. - purple
  3305. - blue
  3306. - sky
  3307. - lime
  3308. - pink
  3309. - black
  3310. - peachpuff
  3311. - crimson
  3312. - plum
  3313. - darkgreen
  3314. - slateblue
  3315. - magenta
  3316. - gold
  3317. - navy
  3318. - gray
  3319. - saddlebrown
  3320. - paleturquoise
  3321. - mistyrose
  3322. - indigo
  3323. x-nullable: true
  3324. updatedAt:
  3325. description: |
  3326. when was the swimlane last edited
  3327. type: string
  3328. x-nullable: true
  3329. modifiedAt:
  3330. type: string
  3331. type:
  3332. description: |
  3333. The type of swimlane
  3334. type: string
  3335. required:
  3336. - title
  3337. - archived
  3338. - boardId
  3339. - createdAt
  3340. - modifiedAt
  3341. - type
  3342. Users:
  3343. type: object
  3344. description: A User in wekan
  3345. properties:
  3346. username:
  3347. description: |
  3348. the username of the user
  3349. type: string
  3350. x-nullable: true
  3351. emails:
  3352. description: |
  3353. the list of emails attached to a user
  3354. type: array
  3355. items:
  3356. $ref: "#/definitions/UsersEmails"
  3357. x-nullable: true
  3358. createdAt:
  3359. description: |
  3360. creation date of the user
  3361. type: string
  3362. modifiedAt:
  3363. type: string
  3364. profile:
  3365. description: |
  3366. profile settings
  3367. $ref: "#/definitions/UsersProfile"
  3368. x-nullable: true
  3369. services:
  3370. description: |
  3371. services field of the user
  3372. type: object
  3373. x-nullable: true
  3374. heartbeat:
  3375. description: |
  3376. last time the user has been seen
  3377. type: string
  3378. x-nullable: true
  3379. isAdmin:
  3380. description: |
  3381. is the user an admin of the board?
  3382. type: boolean
  3383. x-nullable: true
  3384. createdThroughApi:
  3385. description: |
  3386. was the user created through the API?
  3387. type: boolean
  3388. x-nullable: true
  3389. loginDisabled:
  3390. description: |
  3391. loginDisabled field of the user
  3392. type: boolean
  3393. x-nullable: true
  3394. authenticationMethod:
  3395. description: |
  3396. authentication method of the user
  3397. type: string
  3398. sessionData:
  3399. description: |
  3400. profile settings
  3401. $ref: "#/definitions/UsersSessiondata"
  3402. x-nullable: true
  3403. importUsernames:
  3404. description: |
  3405. username for imported
  3406. type: array
  3407. items:
  3408. type: string
  3409. x-nullable: true
  3410. x-nullable: true
  3411. required:
  3412. - createdAt
  3413. - modifiedAt
  3414. - authenticationMethod
  3415. UsersEmails:
  3416. type: object
  3417. properties:
  3418. address:
  3419. description: |
  3420. The email address
  3421. type: string
  3422. verified:
  3423. description: |
  3424. Has the email been verified
  3425. type: boolean
  3426. required:
  3427. - address
  3428. - verified
  3429. UsersProfile:
  3430. type: object
  3431. properties:
  3432. avatarUrl:
  3433. description: |
  3434. URL of the avatar of the user
  3435. type: string
  3436. emailBuffer:
  3437. description: |
  3438. list of email buffers of the user
  3439. type: array
  3440. items:
  3441. type: string
  3442. x-nullable: true
  3443. fullname:
  3444. description: |
  3445. full name of the user
  3446. type: string
  3447. showDesktopDragHandles:
  3448. description: |
  3449. does the user want to hide system messages?
  3450. type: boolean
  3451. hideCheckedItems:
  3452. description: |
  3453. does the user want to hide checked checklist items?
  3454. type: boolean
  3455. hiddenSystemMessages:
  3456. description: |
  3457. does the user want to hide system messages?
  3458. type: boolean
  3459. hiddenMinicardLabelText:
  3460. description: |
  3461. does the user want to hide minicard label texts?
  3462. type: boolean
  3463. initials:
  3464. description: |
  3465. initials of the user
  3466. type: string
  3467. invitedBoards:
  3468. description: |
  3469. board IDs the user has been invited to
  3470. type: array
  3471. items:
  3472. type: string
  3473. x-nullable: true
  3474. language:
  3475. description: |
  3476. language of the user
  3477. type: string
  3478. notifications:
  3479. description: |
  3480. enabled notifications for the user
  3481. type: array
  3482. items:
  3483. $ref: "#/definitions/UsersProfileNotifications"
  3484. activity:
  3485. description: |
  3486. The id of the activity this notification references
  3487. type: string
  3488. read:
  3489. description: |
  3490. the date on which this notification was read
  3491. type: string
  3492. showCardsCountAt:
  3493. description: |
  3494. showCardCountAt field of the user
  3495. type: number
  3496. startDayOfWeek:
  3497. description: |
  3498. startDayOfWeek field of the user
  3499. type: number
  3500. starredBoards:
  3501. description: |
  3502. list of starred board IDs
  3503. type: array
  3504. items:
  3505. type: string
  3506. x-nullable: true
  3507. icode:
  3508. description: |
  3509. icode
  3510. type: string
  3511. boardView:
  3512. description: |
  3513. boardView field of the user
  3514. type: string
  3515. enum:
  3516. - board-view-swimlanes
  3517. - board-view-lists
  3518. - board-view-cal
  3519. listSortBy:
  3520. description: |
  3521. default sort list for user
  3522. type: string
  3523. enum:
  3524. - -modifiedat
  3525. - modifiedat
  3526. - -title
  3527. - title
  3528. - -sort
  3529. - sort
  3530. templatesBoardId:
  3531. description: |
  3532. Reference to the templates board
  3533. type: string
  3534. cardTemplatesSwimlaneId:
  3535. description: |
  3536. Reference to the card templates swimlane Id
  3537. type: string
  3538. listTemplatesSwimlaneId:
  3539. description: |
  3540. Reference to the list templates swimlane Id
  3541. type: string
  3542. boardTemplatesSwimlaneId:
  3543. description: |
  3544. Reference to the board templates swimlane Id
  3545. type: string
  3546. required:
  3547. - activity
  3548. - templatesBoardId
  3549. - cardTemplatesSwimlaneId
  3550. - listTemplatesSwimlaneId
  3551. - boardTemplatesSwimlaneId
  3552. UsersSessiondata:
  3553. type: object
  3554. properties:
  3555. totalHits:
  3556. description: |
  3557. Total hits from last search
  3558. type: number
  3559. lastHit:
  3560. description: |
  3561. last hit that was returned
  3562. type: number