wekan.yml 87 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v5.03
  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: sort
  1608. in: formData
  1609. description: |
  1610. the new sort value of the card
  1611. type: string
  1612. required: false
  1613. - name: parentId
  1614. in: formData
  1615. description: |
  1616. change the parent of the card
  1617. type: string
  1618. required: false
  1619. - name: description
  1620. in: formData
  1621. description: |
  1622. the new description of the card
  1623. type: string
  1624. required: false
  1625. - name: color
  1626. in: formData
  1627. description: |
  1628. the new color of the card
  1629. type: string
  1630. required: false
  1631. - name: vote
  1632. in: formData
  1633. description: |
  1634. the vote object
  1635. type: object
  1636. required: false
  1637. - name: labelIds
  1638. in: formData
  1639. description: |
  1640. the new list of label IDs attached to the card
  1641. type: string
  1642. required: false
  1643. - name: requestedBy
  1644. in: formData
  1645. description: |
  1646. the new requestedBy field of the card
  1647. type: string
  1648. required: false
  1649. - name: assignedBy
  1650. in: formData
  1651. description: |
  1652. the new assignedBy field of the card
  1653. type: string
  1654. required: false
  1655. - name: receivedAt
  1656. in: formData
  1657. description: |
  1658. the new receivedAt field of the card
  1659. type: string
  1660. required: false
  1661. - name: startAt
  1662. in: formData
  1663. description: |
  1664. the new startAt field of the card
  1665. type: string
  1666. required: false
  1667. - name: dueAt
  1668. in: formData
  1669. description: |
  1670. the new dueAt field of the card
  1671. type: string
  1672. required: false
  1673. - name: endAt
  1674. in: formData
  1675. description: |
  1676. the new endAt field of the card
  1677. type: string
  1678. required: false
  1679. - name: spentTime
  1680. in: formData
  1681. description: |
  1682. the new spentTime field of the card
  1683. type: string
  1684. required: false
  1685. - name: isOverTime
  1686. in: formData
  1687. description: |
  1688. the new isOverTime field of the card
  1689. type: boolean
  1690. required: false
  1691. - name: customFields
  1692. in: formData
  1693. description: |
  1694. the new customFields value of the card
  1695. type: string
  1696. required: false
  1697. - name: members
  1698. in: formData
  1699. description: |
  1700. the new list of member IDs attached to the card
  1701. type: string
  1702. required: false
  1703. - name: assignees
  1704. in: formData
  1705. description: |
  1706. the array of maximum one ID of assignee attached to the card
  1707. type: string
  1708. required: false
  1709. - name: swimlaneId
  1710. in: formData
  1711. description: |
  1712. the new swimlane ID of the card
  1713. type: string
  1714. required: false
  1715. - name: listId
  1716. in: formData
  1717. description: |
  1718. the new list ID of the card (move operation)
  1719. type: string
  1720. required: false
  1721. - name: authorId
  1722. in: formData
  1723. description: |
  1724. change the owner of the card
  1725. type: string
  1726. required: false
  1727. - name: board
  1728. in: path
  1729. description: |
  1730. the board ID of the card
  1731. type: string
  1732. required: true
  1733. - name: list
  1734. in: path
  1735. description: |
  1736. the list ID of the card
  1737. type: string
  1738. required: true
  1739. - name: card
  1740. in: path
  1741. description: |
  1742. the ID of the card
  1743. type: string
  1744. required: true
  1745. produces:
  1746. - application/json
  1747. security:
  1748. - UserSecurity: []
  1749. responses:
  1750. '200':
  1751. description: |-
  1752. 200 response
  1753. schema:
  1754. type: object
  1755. properties:
  1756. _id:
  1757. type: string
  1758. delete:
  1759. operationId: delete_card
  1760. summary: Delete a card from a board
  1761. description: |
  1762. This operation **deletes** a card, and therefore the card
  1763. is not put in the recycle bin.
  1764. tags:
  1765. - Cards
  1766. parameters:
  1767. - name: board
  1768. in: path
  1769. description: |
  1770. the board ID of the card
  1771. type: string
  1772. required: true
  1773. - name: list
  1774. in: path
  1775. description: |
  1776. the list ID of the card
  1777. type: string
  1778. required: true
  1779. - name: card
  1780. in: path
  1781. description: |
  1782. the ID of the card
  1783. type: string
  1784. required: true
  1785. produces:
  1786. - application/json
  1787. security:
  1788. - UserSecurity: []
  1789. responses:
  1790. '200':
  1791. description: |-
  1792. 200 response
  1793. schema:
  1794. type: object
  1795. properties:
  1796. _id:
  1797. type: string
  1798. /api/boards/{board}/members/{member}:
  1799. post:
  1800. operationId: set_board_member_permission
  1801. summary: Change the permission of a member of a board
  1802. tags:
  1803. - Boards
  1804. - Users
  1805. consumes:
  1806. - multipart/form-data
  1807. - application/json
  1808. parameters:
  1809. - name: isAdmin
  1810. in: formData
  1811. description: |
  1812. admin capability
  1813. type: boolean
  1814. required: true
  1815. - name: isNoComments
  1816. in: formData
  1817. description: |
  1818. NoComments capability
  1819. type: boolean
  1820. required: true
  1821. - name: isCommentOnly
  1822. in: formData
  1823. description: |
  1824. CommentsOnly capability
  1825. type: boolean
  1826. required: true
  1827. - name: isWorker
  1828. in: formData
  1829. description: |
  1830. Worker capability
  1831. type: boolean
  1832. required: true
  1833. - name: board
  1834. in: path
  1835. description: |
  1836. the ID of the board that we are changing
  1837. type: string
  1838. required: true
  1839. - name: member
  1840. in: path
  1841. description: |
  1842. the ID of the user to change permissions
  1843. type: string
  1844. required: true
  1845. produces:
  1846. - application/json
  1847. security:
  1848. - UserSecurity: []
  1849. responses:
  1850. '200':
  1851. description: |-
  1852. 200 response
  1853. /api/boards/{board}/members/{user}/add:
  1854. post:
  1855. operationId: add_board_member
  1856. summary: Add New Board Member with Role
  1857. description: |
  1858. Only the admin user (the first user) can call the REST API.
  1859. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  1860. to later change the permissions.
  1861. tags:
  1862. - Users
  1863. - Boards
  1864. consumes:
  1865. - multipart/form-data
  1866. - application/json
  1867. parameters:
  1868. - name: action
  1869. in: formData
  1870. description: the action value
  1871. type: string
  1872. required: true
  1873. - name: isAdmin
  1874. in: formData
  1875. description: |
  1876. is the user an admin of the board
  1877. type: boolean
  1878. required: true
  1879. - name: isNoComments
  1880. in: formData
  1881. description: |
  1882. disable comments
  1883. type: boolean
  1884. required: true
  1885. - name: isCommentOnly
  1886. in: formData
  1887. description: |
  1888. only enable comments
  1889. type: boolean
  1890. required: true
  1891. - name: board
  1892. in: path
  1893. description: |
  1894. the board ID
  1895. type: string
  1896. required: true
  1897. - name: user
  1898. in: path
  1899. description: |
  1900. the user ID
  1901. type: string
  1902. required: true
  1903. produces:
  1904. - application/json
  1905. security:
  1906. - UserSecurity: []
  1907. responses:
  1908. '200':
  1909. description: |-
  1910. 200 response
  1911. schema:
  1912. type: object
  1913. properties:
  1914. _id:
  1915. type: string
  1916. title:
  1917. type: string
  1918. /api/boards/{board}/members/{user}/remove:
  1919. post:
  1920. operationId: remove_board_member
  1921. summary: Remove Member from Board
  1922. description: |
  1923. Only the admin user (the first user) can call the REST API.
  1924. tags:
  1925. - Users
  1926. - Boards
  1927. consumes:
  1928. - multipart/form-data
  1929. - application/json
  1930. parameters:
  1931. - name: action
  1932. in: formData
  1933. description: |
  1934. the action (needs to be `remove`)
  1935. type: string
  1936. required: true
  1937. - name: board
  1938. in: path
  1939. description: |
  1940. the board ID
  1941. type: string
  1942. required: true
  1943. - name: user
  1944. in: path
  1945. description: |
  1946. the user ID
  1947. type: string
  1948. required: true
  1949. produces:
  1950. - application/json
  1951. security:
  1952. - UserSecurity: []
  1953. responses:
  1954. '200':
  1955. description: |-
  1956. 200 response
  1957. schema:
  1958. type: object
  1959. properties:
  1960. _id:
  1961. type: string
  1962. title:
  1963. type: string
  1964. /api/boards/{board}/swimlanes:
  1965. get:
  1966. operationId: get_all_swimlanes
  1967. summary: Get the list of swimlanes attached to a board
  1968. tags:
  1969. - Swimlanes
  1970. parameters:
  1971. - name: board
  1972. in: path
  1973. description: |
  1974. the ID of the board
  1975. type: string
  1976. required: true
  1977. produces:
  1978. - application/json
  1979. security:
  1980. - UserSecurity: []
  1981. responses:
  1982. '200':
  1983. description: |-
  1984. 200 response
  1985. schema:
  1986. type: array
  1987. items:
  1988. type: object
  1989. properties:
  1990. _id:
  1991. type: string
  1992. title:
  1993. type: string
  1994. post:
  1995. operationId: new_swimlane
  1996. summary: Add a swimlane to a board
  1997. tags:
  1998. - Swimlanes
  1999. consumes:
  2000. - multipart/form-data
  2001. - application/json
  2002. parameters:
  2003. - name: title
  2004. in: formData
  2005. description: |
  2006. the new title of the swimlane
  2007. type: string
  2008. required: true
  2009. - name: board
  2010. in: path
  2011. description: |
  2012. the ID of the board
  2013. type: string
  2014. required: true
  2015. produces:
  2016. - application/json
  2017. security:
  2018. - UserSecurity: []
  2019. responses:
  2020. '200':
  2021. description: |-
  2022. 200 response
  2023. schema:
  2024. type: object
  2025. properties:
  2026. _id:
  2027. type: string
  2028. /api/boards/{board}/swimlanes/{swimlane}:
  2029. get:
  2030. operationId: get_swimlane
  2031. summary: Get a swimlane
  2032. tags:
  2033. - Swimlanes
  2034. parameters:
  2035. - name: board
  2036. in: path
  2037. description: |
  2038. the ID of the board
  2039. type: string
  2040. required: true
  2041. - name: swimlane
  2042. in: path
  2043. description: |
  2044. the ID of the swimlane
  2045. type: string
  2046. required: true
  2047. produces:
  2048. - application/json
  2049. security:
  2050. - UserSecurity: []
  2051. responses:
  2052. '200':
  2053. description: |-
  2054. 200 response
  2055. schema:
  2056. $ref: "#/definitions/Swimlanes"
  2057. delete:
  2058. operationId: delete_swimlane
  2059. summary: Delete a swimlane
  2060. description: |
  2061. The swimlane will be deleted, not moved to the recycle bin
  2062. tags:
  2063. - Swimlanes
  2064. parameters:
  2065. - name: board
  2066. in: path
  2067. description: |
  2068. the ID of the board
  2069. type: string
  2070. required: true
  2071. - name: swimlane
  2072. in: path
  2073. description: |
  2074. the ID of the swimlane
  2075. type: string
  2076. required: true
  2077. produces:
  2078. - application/json
  2079. security:
  2080. - UserSecurity: []
  2081. responses:
  2082. '200':
  2083. description: |-
  2084. 200 response
  2085. schema:
  2086. type: object
  2087. properties:
  2088. _id:
  2089. type: string
  2090. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2091. get:
  2092. operationId: get_swimlane_cards
  2093. summary: get all cards attached to a swimlane
  2094. tags:
  2095. - Cards
  2096. parameters:
  2097. - name: board
  2098. in: path
  2099. description: |
  2100. the board ID
  2101. type: string
  2102. required: true
  2103. - name: swimlane
  2104. in: path
  2105. description: |
  2106. the swimlane ID
  2107. type: string
  2108. required: true
  2109. produces:
  2110. - application/json
  2111. security:
  2112. - UserSecurity: []
  2113. responses:
  2114. '200':
  2115. description: |-
  2116. 200 response
  2117. schema:
  2118. type: array
  2119. items:
  2120. type: object
  2121. properties:
  2122. _id:
  2123. type: string
  2124. title:
  2125. type: string
  2126. description:
  2127. type: string
  2128. listId:
  2129. type: string
  2130. /api/boards_count:
  2131. get:
  2132. operationId: get_boards_count
  2133. summary: Get public and private boards count
  2134. tags:
  2135. - Boards
  2136. produces:
  2137. - application/json
  2138. security:
  2139. - UserSecurity: []
  2140. responses:
  2141. '200':
  2142. description: |-
  2143. 200 response
  2144. schema:
  2145. type: object
  2146. properties:
  2147. private:
  2148. type: integer
  2149. public:
  2150. type: integer
  2151. /api/createtoken/{user}:
  2152. post:
  2153. operationId: create_user_token
  2154. summary: Create a user token
  2155. description: |
  2156. Only the admin user (the first user) can call the REST API.
  2157. tags:
  2158. - Users
  2159. consumes:
  2160. - multipart/form-data
  2161. - application/json
  2162. parameters:
  2163. - name: user
  2164. in: path
  2165. description: |
  2166. the ID of the user to create token for.
  2167. type: string
  2168. required: true
  2169. produces:
  2170. - application/json
  2171. security:
  2172. - UserSecurity: []
  2173. responses:
  2174. '200':
  2175. description: |-
  2176. 200 response
  2177. schema:
  2178. type: object
  2179. properties:
  2180. _id:
  2181. type: string
  2182. /api/user:
  2183. get:
  2184. operationId: get_current_user
  2185. summary: returns the current user
  2186. tags:
  2187. - Users
  2188. produces:
  2189. - application/json
  2190. security:
  2191. - UserSecurity: []
  2192. responses:
  2193. '200':
  2194. description: |-
  2195. 200 response
  2196. schema:
  2197. $ref: "#/definitions/Users"
  2198. /api/users:
  2199. get:
  2200. operationId: get_all_users
  2201. summary: return all the users
  2202. description: |
  2203. Only the admin user (the first user) can call the REST API.
  2204. tags:
  2205. - Users
  2206. produces:
  2207. - application/json
  2208. security:
  2209. - UserSecurity: []
  2210. responses:
  2211. '200':
  2212. description: |-
  2213. 200 response
  2214. schema:
  2215. type: array
  2216. items:
  2217. type: object
  2218. properties:
  2219. _id:
  2220. type: string
  2221. username:
  2222. type: string
  2223. post:
  2224. operationId: new_user
  2225. summary: Create a new user
  2226. description: |
  2227. Only the admin user (the first user) can call the REST API.
  2228. tags:
  2229. - Users
  2230. consumes:
  2231. - multipart/form-data
  2232. - application/json
  2233. parameters:
  2234. - name: username
  2235. in: formData
  2236. description: |
  2237. the new username
  2238. type: string
  2239. required: true
  2240. - name: email
  2241. in: formData
  2242. description: |
  2243. the email of the new user
  2244. type: string
  2245. required: true
  2246. - name: password
  2247. in: formData
  2248. description: |
  2249. the password of the new user
  2250. type: string
  2251. required: true
  2252. produces:
  2253. - application/json
  2254. security:
  2255. - UserSecurity: []
  2256. responses:
  2257. '200':
  2258. description: |-
  2259. 200 response
  2260. schema:
  2261. type: object
  2262. properties:
  2263. _id:
  2264. type: string
  2265. /api/users/{user}:
  2266. get:
  2267. operationId: get_user
  2268. summary: get a given user
  2269. description: |
  2270. Only the admin user (the first user) can call the REST API.
  2271. tags:
  2272. - Users
  2273. parameters:
  2274. - name: user
  2275. in: path
  2276. description: |
  2277. the user ID or username
  2278. type: string
  2279. required: true
  2280. produces:
  2281. - application/json
  2282. security:
  2283. - UserSecurity: []
  2284. responses:
  2285. '200':
  2286. description: |-
  2287. 200 response
  2288. schema:
  2289. $ref: "#/definitions/Users"
  2290. put:
  2291. operationId: edit_user
  2292. summary: edit a given user
  2293. description: |
  2294. Only the admin user (the first user) can call the REST API.
  2295. Possible values for *action*:
  2296. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2297. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2298. - `enableLogin`: Enable a user
  2299. tags:
  2300. - Users
  2301. consumes:
  2302. - multipart/form-data
  2303. - application/json
  2304. parameters:
  2305. - name: action
  2306. in: formData
  2307. description: |
  2308. the action
  2309. type: string
  2310. required: true
  2311. - name: user
  2312. in: path
  2313. description: |
  2314. the user ID
  2315. type: string
  2316. required: true
  2317. produces:
  2318. - application/json
  2319. security:
  2320. - UserSecurity: []
  2321. responses:
  2322. '200':
  2323. description: |-
  2324. 200 response
  2325. schema:
  2326. type: object
  2327. properties:
  2328. _id:
  2329. type: string
  2330. title:
  2331. type: string
  2332. delete:
  2333. operationId: delete_user
  2334. summary: Delete a user
  2335. description: |
  2336. Only the admin user (the first user) can call the REST API.
  2337. tags:
  2338. - Users
  2339. parameters:
  2340. - name: user
  2341. in: path
  2342. description: |
  2343. the ID of the user to delete
  2344. type: string
  2345. required: true
  2346. produces:
  2347. - application/json
  2348. security:
  2349. - UserSecurity: []
  2350. responses:
  2351. '200':
  2352. description: |-
  2353. 200 response
  2354. schema:
  2355. type: object
  2356. properties:
  2357. _id:
  2358. type: string
  2359. /api/users/{user}/boards:
  2360. get:
  2361. operationId: get_boards_from_user
  2362. summary: Get all boards attached to a user
  2363. tags:
  2364. - Boards
  2365. parameters:
  2366. - name: user
  2367. in: path
  2368. description: |
  2369. the ID of the user to retrieve the data
  2370. type: string
  2371. required: true
  2372. produces:
  2373. - application/json
  2374. security:
  2375. - UserSecurity: []
  2376. responses:
  2377. '200':
  2378. description: |-
  2379. 200 response
  2380. schema:
  2381. type: array
  2382. items:
  2383. type: object
  2384. properties:
  2385. _id:
  2386. type: string
  2387. title:
  2388. type: string
  2389. definitions:
  2390. Boards:
  2391. type: object
  2392. description: This is a Board.
  2393. properties:
  2394. title:
  2395. description: |
  2396. The title of the board
  2397. type: string
  2398. slug:
  2399. description: |
  2400. The title slugified.
  2401. type: string
  2402. archived:
  2403. description: |
  2404. Is the board archived?
  2405. type: boolean
  2406. archivedAt:
  2407. description: |
  2408. Latest archiving time of the board
  2409. type: string
  2410. x-nullable: true
  2411. createdAt:
  2412. description: |
  2413. Creation time of the board
  2414. type: string
  2415. modifiedAt:
  2416. description: |
  2417. Last modification time of the board
  2418. type: string
  2419. x-nullable: true
  2420. stars:
  2421. description: |
  2422. How many stars the board has
  2423. type: number
  2424. labels:
  2425. description: |
  2426. List of labels attached to a board
  2427. type: array
  2428. items:
  2429. $ref: "#/definitions/BoardsLabels"
  2430. members:
  2431. description: |
  2432. List of members of a board
  2433. type: array
  2434. items:
  2435. $ref: "#/definitions/BoardsMembers"
  2436. permission:
  2437. description: |
  2438. visibility of the board
  2439. type: string
  2440. enum:
  2441. - public
  2442. - private
  2443. color:
  2444. description: |
  2445. The color of the board.
  2446. type: string
  2447. enum:
  2448. - belize
  2449. - nephritis
  2450. - pomegranate
  2451. - pumpkin
  2452. - wisteria
  2453. - moderatepink
  2454. - strongcyan
  2455. - limegreen
  2456. - midnight
  2457. - dark
  2458. - relax
  2459. - corteza
  2460. - clearblue
  2461. - natural
  2462. - modern
  2463. - moderndark
  2464. description:
  2465. description: |
  2466. The description of the board
  2467. type: string
  2468. x-nullable: true
  2469. subtasksDefaultBoardId:
  2470. description: |
  2471. The default board ID assigned to subtasks.
  2472. type: string
  2473. x-nullable: true
  2474. subtasksDefaultListId:
  2475. description: |
  2476. The default List ID assigned to subtasks.
  2477. type: string
  2478. x-nullable: true
  2479. dateSettingsDefaultBoardId:
  2480. type: string
  2481. x-nullable: true
  2482. dateSettingsDefaultListId:
  2483. type: string
  2484. x-nullable: true
  2485. allowsSubtasks:
  2486. description: |
  2487. Does the board allows subtasks?
  2488. type: boolean
  2489. allowsAttachments:
  2490. description: |
  2491. Does the board allows attachments?
  2492. type: boolean
  2493. allowsChecklists:
  2494. description: |
  2495. Does the board allows checklists?
  2496. type: boolean
  2497. allowsComments:
  2498. description: |
  2499. Does the board allows comments?
  2500. type: boolean
  2501. allowsDescriptionTitle:
  2502. description: |
  2503. Does the board allows description title?
  2504. type: boolean
  2505. allowsDescriptionText:
  2506. description: |
  2507. Does the board allows description text?
  2508. type: boolean
  2509. allowsActivities:
  2510. description: |
  2511. Does the board allows comments?
  2512. type: boolean
  2513. allowsLabels:
  2514. description: |
  2515. Does the board allows labels?
  2516. type: boolean
  2517. allowsAssignee:
  2518. description: |
  2519. Does the board allows assignee?
  2520. type: boolean
  2521. allowsMembers:
  2522. description: |
  2523. Does the board allows members?
  2524. type: boolean
  2525. allowsRequestedBy:
  2526. description: |
  2527. Does the board allows requested by?
  2528. type: boolean
  2529. allowsAssignedBy:
  2530. description: |
  2531. Does the board allows requested by?
  2532. type: boolean
  2533. allowsReceivedDate:
  2534. description: |
  2535. Does the board allows received date?
  2536. type: boolean
  2537. allowsStartDate:
  2538. description: |
  2539. Does the board allows start date?
  2540. type: boolean
  2541. allowsEndDate:
  2542. description: |
  2543. Does the board allows end date?
  2544. type: boolean
  2545. allowsDueDate:
  2546. description: |
  2547. Does the board allows due date?
  2548. type: boolean
  2549. presentParentTask:
  2550. description: |
  2551. Controls how to present the parent task:
  2552. - `prefix-with-full-path`: add a prefix with the full path
  2553. - `prefix-with-parent`: add a prefisx with the parent name
  2554. - `subtext-with-full-path`: add a subtext with the full path
  2555. - `subtext-with-parent`: add a subtext with the parent name
  2556. - `no-parent`: does not show the parent at all
  2557. type: string
  2558. enum:
  2559. - prefix-with-full-path
  2560. - prefix-with-parent
  2561. - subtext-with-full-path
  2562. - subtext-with-parent
  2563. - no-parent
  2564. x-nullable: true
  2565. startAt:
  2566. description: |
  2567. Starting date of the board.
  2568. type: string
  2569. x-nullable: true
  2570. dueAt:
  2571. description: |
  2572. Due date of the board.
  2573. type: string
  2574. x-nullable: true
  2575. endAt:
  2576. description: |
  2577. End date of the board.
  2578. type: string
  2579. x-nullable: true
  2580. spentTime:
  2581. description: |
  2582. Time spent in the board.
  2583. type: number
  2584. x-nullable: true
  2585. isOvertime:
  2586. description: |
  2587. Is the board overtimed?
  2588. type: boolean
  2589. x-nullable: true
  2590. type:
  2591. description: |
  2592. The type of board
  2593. type: string
  2594. sort:
  2595. description: |
  2596. Sort value
  2597. type: number
  2598. required:
  2599. - title
  2600. - slug
  2601. - archived
  2602. - createdAt
  2603. - stars
  2604. - labels
  2605. - members
  2606. - permission
  2607. - color
  2608. - allowsSubtasks
  2609. - allowsAttachments
  2610. - allowsChecklists
  2611. - allowsComments
  2612. - allowsDescriptionTitle
  2613. - allowsDescriptionText
  2614. - allowsActivities
  2615. - allowsLabels
  2616. - allowsAssignee
  2617. - allowsMembers
  2618. - allowsRequestedBy
  2619. - allowsAssignedBy
  2620. - allowsReceivedDate
  2621. - allowsStartDate
  2622. - allowsEndDate
  2623. - allowsDueDate
  2624. - type
  2625. - sort
  2626. BoardsLabels:
  2627. type: object
  2628. properties:
  2629. _id:
  2630. description: |
  2631. Unique id of a label
  2632. type: string
  2633. name:
  2634. description: |
  2635. Name of a label
  2636. type: string
  2637. color:
  2638. description: |
  2639. color of a label.
  2640. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  2641. `blue`, `sky`, `lime`, `pink`, `black`,
  2642. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  2643. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  2644. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  2645. type: string
  2646. enum:
  2647. - green
  2648. - yellow
  2649. - orange
  2650. - red
  2651. - purple
  2652. - blue
  2653. - sky
  2654. - lime
  2655. - pink
  2656. - black
  2657. - silver
  2658. - peachpuff
  2659. - crimson
  2660. - plum
  2661. - darkgreen
  2662. - slateblue
  2663. - magenta
  2664. - gold
  2665. - navy
  2666. - gray
  2667. - saddlebrown
  2668. - paleturquoise
  2669. - mistyrose
  2670. - indigo
  2671. required:
  2672. - _id
  2673. - color
  2674. BoardsMembers:
  2675. type: object
  2676. properties:
  2677. userId:
  2678. description: |
  2679. The uniq ID of the member
  2680. type: string
  2681. isAdmin:
  2682. description: |
  2683. Is the member an admin of the board?
  2684. type: boolean
  2685. isActive:
  2686. description: |
  2687. Is the member active?
  2688. type: boolean
  2689. isNoComments:
  2690. description: |
  2691. Is the member not allowed to make comments
  2692. type: boolean
  2693. isCommentOnly:
  2694. description: |
  2695. Is the member only allowed to comment on the board
  2696. type: boolean
  2697. isWorker:
  2698. description: |
  2699. Is the member only allowed to move card, assign himself to card and comment
  2700. type: boolean
  2701. required:
  2702. - userId
  2703. - isAdmin
  2704. - isActive
  2705. CardComments:
  2706. type: object
  2707. description: A comment on a card
  2708. properties:
  2709. boardId:
  2710. description: |
  2711. the board ID
  2712. type: string
  2713. cardId:
  2714. description: |
  2715. the card ID
  2716. type: string
  2717. text:
  2718. description: |
  2719. the text of the comment
  2720. type: string
  2721. createdAt:
  2722. description: |
  2723. when was the comment created
  2724. type: string
  2725. modifiedAt:
  2726. type: string
  2727. userId:
  2728. description: |
  2729. the author ID of the comment
  2730. type: string
  2731. required:
  2732. - boardId
  2733. - cardId
  2734. - text
  2735. - createdAt
  2736. - modifiedAt
  2737. - userId
  2738. Cards:
  2739. type: object
  2740. properties:
  2741. title:
  2742. description: |
  2743. the title of the card
  2744. type: string
  2745. x-nullable: true
  2746. archived:
  2747. description: |
  2748. is the card archived
  2749. type: boolean
  2750. archivedAt:
  2751. description: |
  2752. latest archiving date
  2753. type: string
  2754. x-nullable: true
  2755. parentId:
  2756. description: |
  2757. ID of the parent card
  2758. type: string
  2759. x-nullable: true
  2760. listId:
  2761. description: |
  2762. List ID where the card is
  2763. type: string
  2764. x-nullable: true
  2765. swimlaneId:
  2766. description: |
  2767. Swimlane ID where the card is
  2768. type: string
  2769. boardId:
  2770. description: |
  2771. Board ID of the card
  2772. type: string
  2773. x-nullable: true
  2774. coverId:
  2775. description: |
  2776. Cover ID of the card
  2777. type: string
  2778. x-nullable: true
  2779. color:
  2780. type: string
  2781. enum:
  2782. - white
  2783. - green
  2784. - yellow
  2785. - orange
  2786. - red
  2787. - purple
  2788. - blue
  2789. - sky
  2790. - lime
  2791. - pink
  2792. - black
  2793. - silver
  2794. - peachpuff
  2795. - crimson
  2796. - plum
  2797. - darkgreen
  2798. - slateblue
  2799. - magenta
  2800. - gold
  2801. - navy
  2802. - gray
  2803. - saddlebrown
  2804. - paleturquoise
  2805. - mistyrose
  2806. - indigo
  2807. x-nullable: true
  2808. createdAt:
  2809. description: |
  2810. creation date
  2811. type: string
  2812. modifiedAt:
  2813. type: string
  2814. customFields:
  2815. description: |
  2816. list of custom fields
  2817. type: array
  2818. items:
  2819. $ref: "#/definitions/CardsCustomfields"
  2820. x-nullable: true
  2821. dateLastActivity:
  2822. description: |
  2823. Date of last activity
  2824. type: string
  2825. description:
  2826. description: |
  2827. description of the card
  2828. type: string
  2829. x-nullable: true
  2830. requestedBy:
  2831. description: |
  2832. who requested the card (ID of the user)
  2833. type: string
  2834. x-nullable: true
  2835. assignedBy:
  2836. description: |
  2837. who assigned the card (ID of the user)
  2838. type: string
  2839. x-nullable: true
  2840. labelIds:
  2841. description: |
  2842. list of labels ID the card has
  2843. type: array
  2844. items:
  2845. type: string
  2846. x-nullable: true
  2847. x-nullable: true
  2848. members:
  2849. description: |
  2850. list of members (user IDs)
  2851. type: array
  2852. items:
  2853. type: string
  2854. x-nullable: true
  2855. x-nullable: true
  2856. assignees:
  2857. description: |
  2858. who is assignee of the card (user ID),
  2859. maximum one ID of assignee in array.
  2860. type: array
  2861. items:
  2862. type: string
  2863. x-nullable: true
  2864. x-nullable: true
  2865. receivedAt:
  2866. description: |
  2867. Date the card was received
  2868. type: string
  2869. x-nullable: true
  2870. startAt:
  2871. description: |
  2872. Date the card was started to be worked on
  2873. type: string
  2874. x-nullable: true
  2875. dueAt:
  2876. description: |
  2877. Date the card is due
  2878. type: string
  2879. x-nullable: true
  2880. endAt:
  2881. description: |
  2882. Date the card ended
  2883. type: string
  2884. x-nullable: true
  2885. spentTime:
  2886. description: |
  2887. How much time has been spent on this
  2888. type: number
  2889. x-nullable: true
  2890. isOvertime:
  2891. description: |
  2892. is the card over time?
  2893. type: boolean
  2894. x-nullable: true
  2895. userId:
  2896. description: |
  2897. user ID of the author of the card
  2898. type: string
  2899. sort:
  2900. description: |
  2901. Sort value
  2902. type: number
  2903. subtaskSort:
  2904. description: |
  2905. subtask sort value
  2906. type: number
  2907. x-nullable: true
  2908. type:
  2909. description: |
  2910. type of the card
  2911. type: string
  2912. linkedId:
  2913. description: |
  2914. ID of the linked card
  2915. type: string
  2916. x-nullable: true
  2917. vote:
  2918. description: |
  2919. vote object, see below
  2920. $ref: "#/definitions/CardsVote"
  2921. x-nullable: true
  2922. required:
  2923. - archived
  2924. - swimlaneId
  2925. - createdAt
  2926. - modifiedAt
  2927. - dateLastActivity
  2928. - userId
  2929. - sort
  2930. - type
  2931. CardsVote:
  2932. type: object
  2933. properties:
  2934. question:
  2935. type: string
  2936. positive:
  2937. description: |
  2938. list of members (user IDs)
  2939. type: array
  2940. items:
  2941. type: string
  2942. x-nullable: true
  2943. negative:
  2944. description: |
  2945. list of members (user IDs)
  2946. type: array
  2947. items:
  2948. type: string
  2949. x-nullable: true
  2950. end:
  2951. type: string
  2952. public:
  2953. type: boolean
  2954. allowNonBoardMembers:
  2955. type: boolean
  2956. required:
  2957. - question
  2958. - public
  2959. - allowNonBoardMembers
  2960. CardsCustomfields:
  2961. type: object
  2962. ChecklistItems:
  2963. type: object
  2964. description: An item in a checklist
  2965. properties:
  2966. title:
  2967. description: |
  2968. the text of the item
  2969. type: string
  2970. sort:
  2971. description: |
  2972. the sorting field of the item
  2973. type: number
  2974. isFinished:
  2975. description: |
  2976. Is the item checked?
  2977. type: boolean
  2978. checklistId:
  2979. description: |
  2980. the checklist ID the item is attached to
  2981. type: string
  2982. cardId:
  2983. description: |
  2984. the card ID the item is attached to
  2985. type: string
  2986. createdAt:
  2987. type: string
  2988. x-nullable: true
  2989. modifiedAt:
  2990. type: string
  2991. required:
  2992. - title
  2993. - sort
  2994. - isFinished
  2995. - checklistId
  2996. - cardId
  2997. - modifiedAt
  2998. Checklists:
  2999. type: object
  3000. description: A Checklist
  3001. properties:
  3002. cardId:
  3003. description: |
  3004. The ID of the card the checklist is in
  3005. type: string
  3006. title:
  3007. description: |
  3008. the title of the checklist
  3009. type: string
  3010. finishedAt:
  3011. description: |
  3012. When was the checklist finished
  3013. type: string
  3014. x-nullable: true
  3015. createdAt:
  3016. description: |
  3017. Creation date of the checklist
  3018. type: string
  3019. modifiedAt:
  3020. type: string
  3021. sort:
  3022. description: |
  3023. sorting value of the checklist
  3024. type: number
  3025. required:
  3026. - cardId
  3027. - title
  3028. - createdAt
  3029. - modifiedAt
  3030. - sort
  3031. CustomFields:
  3032. type: object
  3033. description: A custom field on a card in the board
  3034. properties:
  3035. boardIds:
  3036. description: |
  3037. the ID of the board
  3038. type: array
  3039. items:
  3040. type: string
  3041. name:
  3042. description: |
  3043. name of the custom field
  3044. type: string
  3045. type:
  3046. description: |
  3047. type of the custom field
  3048. type: string
  3049. enum:
  3050. - text
  3051. - number
  3052. - date
  3053. - dropdown
  3054. - checkbox
  3055. - currency
  3056. settings:
  3057. description: |
  3058. settings of the custom field
  3059. $ref: "#/definitions/CustomFieldsSettings"
  3060. showOnCard:
  3061. description: |
  3062. should we show on the cards this custom field
  3063. type: boolean
  3064. automaticallyOnCard:
  3065. description: |
  3066. should the custom fields automatically be added on cards?
  3067. type: boolean
  3068. alwaysOnCard:
  3069. description: |
  3070. should the custom field be automatically added to all cards?
  3071. type: boolean
  3072. showLabelOnMiniCard:
  3073. description: |
  3074. should the label of the custom field be shown on minicards?
  3075. type: boolean
  3076. createdAt:
  3077. type: string
  3078. x-nullable: true
  3079. modifiedAt:
  3080. type: string
  3081. required:
  3082. - boardIds
  3083. - name
  3084. - type
  3085. - settings
  3086. - showOnCard
  3087. - automaticallyOnCard
  3088. - alwaysOnCard
  3089. - showLabelOnMiniCard
  3090. - modifiedAt
  3091. CustomFieldsSettings:
  3092. type: object
  3093. properties:
  3094. currencyCode:
  3095. type: string
  3096. dropdownItems:
  3097. description: |
  3098. list of drop down items objects
  3099. type: array
  3100. items:
  3101. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3102. CustomFieldsSettingsDropdownitems:
  3103. type: object
  3104. Integrations:
  3105. type: object
  3106. description: Integration with third-party applications
  3107. properties:
  3108. enabled:
  3109. description: |
  3110. is the integration enabled?
  3111. type: boolean
  3112. title:
  3113. description: |
  3114. name of the integration
  3115. type: string
  3116. x-nullable: true
  3117. type:
  3118. description: |
  3119. type of the integratation (Default to 'outgoing-webhooks')
  3120. type: string
  3121. activities:
  3122. description: |
  3123. activities the integration gets triggered (list)
  3124. type: array
  3125. items:
  3126. type: string
  3127. url:
  3128. type: string
  3129. token:
  3130. description: |
  3131. token of the integration
  3132. type: string
  3133. x-nullable: true
  3134. boardId:
  3135. description: |
  3136. Board ID of the integration
  3137. type: string
  3138. createdAt:
  3139. description: |
  3140. Creation date of the integration
  3141. type: string
  3142. modifiedAt:
  3143. type: string
  3144. userId:
  3145. description: |
  3146. user ID who created the interation
  3147. type: string
  3148. required:
  3149. - enabled
  3150. - type
  3151. - activities
  3152. - url
  3153. - boardId
  3154. - createdAt
  3155. - modifiedAt
  3156. - userId
  3157. Lists:
  3158. type: object
  3159. description: A list (column) in the Wekan board.
  3160. properties:
  3161. title:
  3162. description: |
  3163. the title of the list
  3164. type: string
  3165. starred:
  3166. description: |
  3167. if a list is stared
  3168. then we put it on the top
  3169. type: boolean
  3170. x-nullable: true
  3171. archived:
  3172. description: |
  3173. is the list archived
  3174. type: boolean
  3175. archivedAt:
  3176. description: |
  3177. latest archiving date
  3178. type: string
  3179. x-nullable: true
  3180. boardId:
  3181. description: |
  3182. the board associated to this list
  3183. type: string
  3184. swimlaneId:
  3185. description: |
  3186. the swimlane associated to this list. Used for templates
  3187. type: string
  3188. createdAt:
  3189. description: |
  3190. creation date
  3191. type: string
  3192. sort:
  3193. description: |
  3194. is the list sorted
  3195. type: number
  3196. x-nullable: true
  3197. updatedAt:
  3198. description: |
  3199. last update of the list
  3200. type: string
  3201. x-nullable: true
  3202. modifiedAt:
  3203. type: string
  3204. wipLimit:
  3205. description: |
  3206. WIP object, see below
  3207. $ref: "#/definitions/ListsWiplimit"
  3208. x-nullable: true
  3209. color:
  3210. description: |
  3211. the color of the list
  3212. type: string
  3213. enum:
  3214. - white
  3215. - green
  3216. - yellow
  3217. - orange
  3218. - red
  3219. - purple
  3220. - blue
  3221. - sky
  3222. - lime
  3223. - pink
  3224. - black
  3225. - peachpuff
  3226. - crimson
  3227. - plum
  3228. - darkgreen
  3229. - slateblue
  3230. - magenta
  3231. - gold
  3232. - navy
  3233. - gray
  3234. - saddlebrown
  3235. - paleturquoise
  3236. - mistyrose
  3237. - indigo
  3238. x-nullable: true
  3239. type:
  3240. description: |
  3241. The type of list
  3242. type: string
  3243. required:
  3244. - title
  3245. - archived
  3246. - boardId
  3247. - swimlaneId
  3248. - createdAt
  3249. - modifiedAt
  3250. - type
  3251. ListsWiplimit:
  3252. type: object
  3253. properties:
  3254. value:
  3255. description: |
  3256. value of the WIP
  3257. type: number
  3258. enabled:
  3259. description: |
  3260. is the WIP enabled
  3261. type: boolean
  3262. soft:
  3263. description: |
  3264. is the WIP a soft or hard requirement
  3265. type: boolean
  3266. required:
  3267. - value
  3268. - enabled
  3269. - soft
  3270. Swimlanes:
  3271. type: object
  3272. description: A swimlane is an line in the kaban board.
  3273. properties:
  3274. title:
  3275. description: |
  3276. the title of the swimlane
  3277. type: string
  3278. archived:
  3279. description: |
  3280. is the swimlane archived?
  3281. type: boolean
  3282. archivedAt:
  3283. description: |
  3284. latest archiving date of the swimlane
  3285. type: string
  3286. x-nullable: true
  3287. boardId:
  3288. description: |
  3289. the ID of the board the swimlane is attached to
  3290. type: string
  3291. createdAt:
  3292. description: |
  3293. creation date of the swimlane
  3294. type: string
  3295. sort:
  3296. description: |
  3297. the sort value of the swimlane
  3298. type: number
  3299. x-nullable: true
  3300. color:
  3301. description: |
  3302. the color of the swimlane
  3303. type: string
  3304. enum:
  3305. - white
  3306. - green
  3307. - yellow
  3308. - orange
  3309. - red
  3310. - purple
  3311. - blue
  3312. - sky
  3313. - lime
  3314. - pink
  3315. - black
  3316. - peachpuff
  3317. - crimson
  3318. - plum
  3319. - darkgreen
  3320. - slateblue
  3321. - magenta
  3322. - gold
  3323. - navy
  3324. - gray
  3325. - saddlebrown
  3326. - paleturquoise
  3327. - mistyrose
  3328. - indigo
  3329. x-nullable: true
  3330. updatedAt:
  3331. description: |
  3332. when was the swimlane last edited
  3333. type: string
  3334. x-nullable: true
  3335. modifiedAt:
  3336. type: string
  3337. type:
  3338. description: |
  3339. The type of swimlane
  3340. type: string
  3341. required:
  3342. - title
  3343. - archived
  3344. - boardId
  3345. - createdAt
  3346. - modifiedAt
  3347. - type
  3348. Users:
  3349. type: object
  3350. description: A User in wekan
  3351. properties:
  3352. username:
  3353. description: |
  3354. the username of the user
  3355. type: string
  3356. x-nullable: true
  3357. emails:
  3358. description: |
  3359. the list of emails attached to a user
  3360. type: array
  3361. items:
  3362. $ref: "#/definitions/UsersEmails"
  3363. x-nullable: true
  3364. createdAt:
  3365. description: |
  3366. creation date of the user
  3367. type: string
  3368. modifiedAt:
  3369. type: string
  3370. profile:
  3371. description: |
  3372. profile settings
  3373. $ref: "#/definitions/UsersProfile"
  3374. x-nullable: true
  3375. services:
  3376. description: |
  3377. services field of the user
  3378. type: object
  3379. x-nullable: true
  3380. heartbeat:
  3381. description: |
  3382. last time the user has been seen
  3383. type: string
  3384. x-nullable: true
  3385. isAdmin:
  3386. description: |
  3387. is the user an admin of the board?
  3388. type: boolean
  3389. x-nullable: true
  3390. createdThroughApi:
  3391. description: |
  3392. was the user created through the API?
  3393. type: boolean
  3394. x-nullable: true
  3395. loginDisabled:
  3396. description: |
  3397. loginDisabled field of the user
  3398. type: boolean
  3399. x-nullable: true
  3400. authenticationMethod:
  3401. description: |
  3402. authentication method of the user
  3403. type: string
  3404. sessionData:
  3405. description: |
  3406. profile settings
  3407. $ref: "#/definitions/UsersSessiondata"
  3408. x-nullable: true
  3409. importUsernames:
  3410. description: |
  3411. username for imported
  3412. type: array
  3413. items:
  3414. type: string
  3415. x-nullable: true
  3416. x-nullable: true
  3417. required:
  3418. - createdAt
  3419. - modifiedAt
  3420. - authenticationMethod
  3421. UsersEmails:
  3422. type: object
  3423. properties:
  3424. address:
  3425. description: |
  3426. The email address
  3427. type: string
  3428. verified:
  3429. description: |
  3430. Has the email been verified
  3431. type: boolean
  3432. required:
  3433. - address
  3434. - verified
  3435. UsersProfile:
  3436. type: object
  3437. properties:
  3438. avatarUrl:
  3439. description: |
  3440. URL of the avatar of the user
  3441. type: string
  3442. emailBuffer:
  3443. description: |
  3444. list of email buffers of the user
  3445. type: array
  3446. items:
  3447. type: string
  3448. x-nullable: true
  3449. fullname:
  3450. description: |
  3451. full name of the user
  3452. type: string
  3453. showDesktopDragHandles:
  3454. description: |
  3455. does the user want to hide system messages?
  3456. type: boolean
  3457. hideCheckedItems:
  3458. description: |
  3459. does the user want to hide checked checklist items?
  3460. type: boolean
  3461. hiddenSystemMessages:
  3462. description: |
  3463. does the user want to hide system messages?
  3464. type: boolean
  3465. hiddenMinicardLabelText:
  3466. description: |
  3467. does the user want to hide minicard label texts?
  3468. type: boolean
  3469. initials:
  3470. description: |
  3471. initials of the user
  3472. type: string
  3473. invitedBoards:
  3474. description: |
  3475. board IDs the user has been invited to
  3476. type: array
  3477. items:
  3478. type: string
  3479. x-nullable: true
  3480. language:
  3481. description: |
  3482. language of the user
  3483. type: string
  3484. notifications:
  3485. description: |
  3486. enabled notifications for the user
  3487. type: array
  3488. items:
  3489. $ref: "#/definitions/UsersProfileNotifications"
  3490. activity:
  3491. description: |
  3492. The id of the activity this notification references
  3493. type: string
  3494. read:
  3495. description: |
  3496. the date on which this notification was read
  3497. type: string
  3498. showCardsCountAt:
  3499. description: |
  3500. showCardCountAt field of the user
  3501. type: number
  3502. startDayOfWeek:
  3503. description: |
  3504. startDayOfWeek field of the user
  3505. type: number
  3506. starredBoards:
  3507. description: |
  3508. list of starred board IDs
  3509. type: array
  3510. items:
  3511. type: string
  3512. x-nullable: true
  3513. icode:
  3514. description: |
  3515. icode
  3516. type: string
  3517. boardView:
  3518. description: |
  3519. boardView field of the user
  3520. type: string
  3521. enum:
  3522. - board-view-swimlanes
  3523. - board-view-lists
  3524. - board-view-cal
  3525. listSortBy:
  3526. description: |
  3527. default sort list for user
  3528. type: string
  3529. enum:
  3530. - -modifiedat
  3531. - modifiedat
  3532. - -title
  3533. - title
  3534. - -sort
  3535. - sort
  3536. templatesBoardId:
  3537. description: |
  3538. Reference to the templates board
  3539. type: string
  3540. cardTemplatesSwimlaneId:
  3541. description: |
  3542. Reference to the card templates swimlane Id
  3543. type: string
  3544. listTemplatesSwimlaneId:
  3545. description: |
  3546. Reference to the list templates swimlane Id
  3547. type: string
  3548. boardTemplatesSwimlaneId:
  3549. description: |
  3550. Reference to the board templates swimlane Id
  3551. type: string
  3552. required:
  3553. - activity
  3554. - templatesBoardId
  3555. - cardTemplatesSwimlaneId
  3556. - listTemplatesSwimlaneId
  3557. - boardTemplatesSwimlaneId
  3558. UsersSessiondata:
  3559. type: object
  3560. properties:
  3561. totalHits:
  3562. description: |
  3563. Total hits from last search
  3564. type: number
  3565. lastHit:
  3566. description: |
  3567. last hit that was returned
  3568. type: number