wekan.yml 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v3.94
  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}/cards/{card}/checklists:
  282. get:
  283. operationId: get_board_card_checklists
  284. tags:
  285. - Checklists
  286. parameters:
  287. - name: board
  288. in: path
  289. description: the board value
  290. type: string
  291. required: true
  292. - name: card
  293. in: path
  294. description: the card value
  295. type: string
  296. required: true
  297. produces:
  298. - application/json
  299. security:
  300. - UserSecurity: []
  301. responses:
  302. '200':
  303. description: |-
  304. 200 response
  305. post:
  306. operationId: post_board_card_checklists
  307. tags:
  308. - Checklists
  309. consumes:
  310. - multipart/form-data
  311. - application/json
  312. parameters:
  313. - name: title
  314. in: formData
  315. description: the title value
  316. type: string
  317. required: true
  318. - name: items
  319. in: formData
  320. description: the items value
  321. type: string
  322. required: true
  323. - name: board
  324. in: path
  325. description: the board value
  326. type: string
  327. required: true
  328. - name: card
  329. in: path
  330. description: the card value
  331. type: string
  332. required: true
  333. produces:
  334. - application/json
  335. security:
  336. - UserSecurity: []
  337. responses:
  338. '200':
  339. description: |-
  340. 200 response
  341. /api/boards/{board}/cards/{card}/checklists/{checklist}:
  342. get:
  343. operationId: get_board_card_checklist
  344. tags:
  345. - Checklists
  346. parameters:
  347. - name: board
  348. in: path
  349. description: the board value
  350. type: string
  351. required: true
  352. - name: card
  353. in: path
  354. description: the card value
  355. type: string
  356. required: true
  357. - name: checklist
  358. in: path
  359. description: the checklist value
  360. type: string
  361. required: true
  362. produces:
  363. - application/json
  364. security:
  365. - UserSecurity: []
  366. responses:
  367. '200':
  368. description: |-
  369. 200 response
  370. delete:
  371. operationId: delete_board_card_checklist
  372. tags:
  373. - Checklists
  374. parameters:
  375. - name: board
  376. in: path
  377. description: the board value
  378. type: string
  379. required: true
  380. - name: card
  381. in: path
  382. description: the card value
  383. type: string
  384. required: true
  385. - name: checklist
  386. in: path
  387. description: the checklist value
  388. type: string
  389. required: true
  390. produces:
  391. - application/json
  392. security:
  393. - UserSecurity: []
  394. responses:
  395. '200':
  396. description: |-
  397. 200 response
  398. /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}:
  399. get:
  400. operationId: get_board_card_checklist_item
  401. tags:
  402. - ChecklistItems
  403. parameters:
  404. - name: board
  405. in: path
  406. description: the board value
  407. type: string
  408. required: true
  409. - name: card
  410. in: path
  411. description: the card value
  412. type: string
  413. required: true
  414. - name: checklist
  415. in: path
  416. description: the checklist value
  417. type: string
  418. required: true
  419. - name: item
  420. in: path
  421. description: the item value
  422. type: string
  423. required: true
  424. produces:
  425. - application/json
  426. security:
  427. - UserSecurity: []
  428. responses:
  429. '200':
  430. description: |-
  431. 200 response
  432. put:
  433. operationId: put_board_card_checklist_item
  434. tags:
  435. - ChecklistItems
  436. consumes:
  437. - multipart/form-data
  438. - application/json
  439. parameters:
  440. - name: isFinished
  441. in: formData
  442. description: the isFinished value
  443. type: string
  444. required: true
  445. - name: title
  446. in: formData
  447. description: the title value
  448. type: string
  449. required: true
  450. - name: board
  451. in: path
  452. description: the board value
  453. type: string
  454. required: true
  455. - name: card
  456. in: path
  457. description: the card value
  458. type: string
  459. required: true
  460. - name: checklist
  461. in: path
  462. description: the checklist value
  463. type: string
  464. required: true
  465. - name: item
  466. in: path
  467. description: the item value
  468. type: string
  469. required: true
  470. produces:
  471. - application/json
  472. security:
  473. - UserSecurity: []
  474. responses:
  475. '200':
  476. description: |-
  477. 200 response
  478. delete:
  479. operationId: delete_board_card_checklist_item
  480. tags:
  481. - ChecklistItems
  482. parameters:
  483. - name: board
  484. in: path
  485. description: the board value
  486. type: string
  487. required: true
  488. - name: card
  489. in: path
  490. description: the card value
  491. type: string
  492. required: true
  493. - name: checklist
  494. in: path
  495. description: the checklist value
  496. type: string
  497. required: true
  498. - name: item
  499. in: path
  500. description: the item value
  501. type: string
  502. required: true
  503. produces:
  504. - application/json
  505. security:
  506. - UserSecurity: []
  507. responses:
  508. '200':
  509. description: |-
  510. 200 response
  511. /api/boards/{board}/cards/{card}/comments:
  512. get:
  513. operationId: get_all_comments
  514. summary: Get all comments attached to a card
  515. tags:
  516. - CardComments
  517. parameters:
  518. - name: board
  519. in: path
  520. description: |
  521. the board ID of the card
  522. type: string
  523. required: true
  524. - name: card
  525. in: path
  526. description: |
  527. the ID of the card
  528. type: string
  529. required: true
  530. produces:
  531. - application/json
  532. security:
  533. - UserSecurity: []
  534. responses:
  535. '200':
  536. description: |-
  537. 200 response
  538. schema:
  539. type: array
  540. items:
  541. type: object
  542. properties:
  543. _id:
  544. type: string
  545. comment:
  546. type: string
  547. authorId:
  548. type: string
  549. post:
  550. operationId: post_board_card_comments
  551. tags:
  552. - CardComments
  553. consumes:
  554. - multipart/form-data
  555. - application/json
  556. parameters:
  557. - name: authorId
  558. in: formData
  559. description: the authorId value
  560. type: string
  561. required: true
  562. - name: comment
  563. in: formData
  564. description: the comment value
  565. type: string
  566. required: true
  567. - name: board
  568. in: path
  569. description: the board value
  570. type: string
  571. required: true
  572. - name: card
  573. in: path
  574. description: the card value
  575. type: string
  576. required: true
  577. produces:
  578. - application/json
  579. security:
  580. - UserSecurity: []
  581. responses:
  582. '200':
  583. description: |-
  584. 200 response
  585. /api/boards/{board}/cards/{card}/comments/{comment}:
  586. get:
  587. operationId: get_board_card_comment
  588. tags:
  589. - CardComments
  590. parameters:
  591. - name: board
  592. in: path
  593. description: the board value
  594. type: string
  595. required: true
  596. - name: card
  597. in: path
  598. description: the card value
  599. type: string
  600. required: true
  601. - name: comment
  602. in: path
  603. description: the comment value
  604. type: string
  605. required: true
  606. produces:
  607. - application/json
  608. security:
  609. - UserSecurity: []
  610. responses:
  611. '200':
  612. description: |-
  613. 200 response
  614. delete:
  615. operationId: delete_board_card_comment
  616. tags:
  617. - CardComments
  618. parameters:
  619. - name: board
  620. in: path
  621. description: the board value
  622. type: string
  623. required: true
  624. - name: card
  625. in: path
  626. description: the card value
  627. type: string
  628. required: true
  629. - name: comment
  630. in: path
  631. description: the comment value
  632. type: string
  633. required: true
  634. produces:
  635. - application/json
  636. security:
  637. - UserSecurity: []
  638. responses:
  639. '200':
  640. description: |-
  641. 200 response
  642. /api/boards/{board}/custom-fields:
  643. get:
  644. operationId: get_all_custom_fields
  645. summary: Get the list of Custom Fields attached to a board
  646. tags:
  647. - CustomFields
  648. parameters:
  649. - name: board
  650. in: path
  651. description: the board value
  652. type: string
  653. required: true
  654. produces:
  655. - application/json
  656. security:
  657. - UserSecurity: []
  658. responses:
  659. '200':
  660. description: |-
  661. 200 response
  662. schema:
  663. type: array
  664. items:
  665. type: object
  666. properties:
  667. _id:
  668. type: string
  669. name:
  670. type: string
  671. type:
  672. type: string
  673. post:
  674. operationId: new_custom_field
  675. summary: Create a Custom Field
  676. tags:
  677. - CustomFields
  678. consumes:
  679. - multipart/form-data
  680. - application/json
  681. parameters:
  682. - name: name
  683. in: formData
  684. description: |
  685. the name of the custom field
  686. type: string
  687. required: true
  688. - name: type
  689. in: formData
  690. description: |
  691. the type of the custom field
  692. type: string
  693. required: true
  694. - name: settings
  695. in: formData
  696. description: |
  697. the settings object of the custom field
  698. type: string
  699. required: true
  700. - name: showOnCard
  701. in: formData
  702. description: |
  703. should we show the custom field on cards?
  704. type: boolean
  705. required: true
  706. - name: automaticallyOnCard
  707. in: formData
  708. description: |
  709. should the custom fields automatically be added on cards?
  710. type: boolean
  711. required: true
  712. - name: showLabelOnMiniCard
  713. in: formData
  714. description: |
  715. should the label of the custom field be shown on minicards?
  716. type: boolean
  717. required: true
  718. - name: authorId
  719. in: formData
  720. description: the authorId value
  721. type: string
  722. required: true
  723. - name: board
  724. in: path
  725. description: the board value
  726. type: string
  727. required: true
  728. produces:
  729. - application/json
  730. security:
  731. - UserSecurity: []
  732. responses:
  733. '200':
  734. description: |-
  735. 200 response
  736. schema:
  737. type: object
  738. properties:
  739. _id:
  740. type: string
  741. /api/boards/{board}/custom-fields/{customField}:
  742. get:
  743. operationId: get_board_customField
  744. tags:
  745. - CustomFields
  746. parameters:
  747. - name: board
  748. in: path
  749. description: the board value
  750. type: string
  751. required: true
  752. - name: customField
  753. in: path
  754. description: the customField value
  755. type: string
  756. required: true
  757. produces:
  758. - application/json
  759. security:
  760. - UserSecurity: []
  761. responses:
  762. '200':
  763. description: |-
  764. 200 response
  765. delete:
  766. operationId: delete_board_customField
  767. tags:
  768. - CustomFields
  769. parameters:
  770. - name: board
  771. in: path
  772. description: the board value
  773. type: string
  774. required: true
  775. - name: customField
  776. in: path
  777. description: the customField value
  778. type: string
  779. required: true
  780. produces:
  781. - application/json
  782. security:
  783. - UserSecurity: []
  784. responses:
  785. '200':
  786. description: |-
  787. 200 response
  788. /api/boards/{board}/export:
  789. get:
  790. operationId: export
  791. summary: This route is used to export the board.
  792. description: |
  793. If user is already logged-in, pass loginToken as param
  794. "authToken": '/api/boards/:boardId/export?authToken=:token'
  795. See https://blog.kayla.com.au/server-side-route-authentication-in-meteor/
  796. for detailed explanations
  797. tags:
  798. - Boards
  799. parameters:
  800. - name: board
  801. in: path
  802. description: |
  803. the ID of the board we are exporting
  804. type: string
  805. required: true
  806. produces:
  807. - application/json
  808. security:
  809. - UserSecurity: []
  810. responses:
  811. '200':
  812. description: |-
  813. 200 response
  814. /api/boards/{board}/integrations:
  815. get:
  816. operationId: get_all_integrations
  817. summary: Get all integrations in board
  818. tags:
  819. - Integrations
  820. parameters:
  821. - name: board
  822. in: path
  823. description: |
  824. the board ID
  825. type: string
  826. required: true
  827. produces:
  828. - application/json
  829. security:
  830. - UserSecurity: []
  831. responses:
  832. '200':
  833. description: |-
  834. 200 response
  835. schema:
  836. type: array
  837. items:
  838. $ref: "#/definitions/Integrations"
  839. post:
  840. operationId: new_integration
  841. summary: Create a new integration
  842. tags:
  843. - Integrations
  844. consumes:
  845. - multipart/form-data
  846. - application/json
  847. parameters:
  848. - name: url
  849. in: formData
  850. description: |
  851. the URL of the integration
  852. type: string
  853. required: true
  854. - name: board
  855. in: path
  856. description: |
  857. the board ID
  858. type: string
  859. required: true
  860. produces:
  861. - application/json
  862. security:
  863. - UserSecurity: []
  864. responses:
  865. '200':
  866. description: |-
  867. 200 response
  868. schema:
  869. type: object
  870. properties:
  871. _id:
  872. type: string
  873. /api/boards/{board}/integrations/{int}:
  874. get:
  875. operationId: get_integration
  876. summary: Get a single integration in board
  877. tags:
  878. - Integrations
  879. parameters:
  880. - name: board
  881. in: path
  882. description: |
  883. the board ID
  884. type: string
  885. required: true
  886. - name: int
  887. in: path
  888. description: |
  889. the integration ID
  890. type: string
  891. required: true
  892. produces:
  893. - application/json
  894. security:
  895. - UserSecurity: []
  896. responses:
  897. '200':
  898. description: |-
  899. 200 response
  900. schema:
  901. $ref: "#/definitions/Integrations"
  902. put:
  903. operationId: edit_integration
  904. summary: Edit integration data
  905. tags:
  906. - Integrations
  907. consumes:
  908. - multipart/form-data
  909. - application/json
  910. parameters:
  911. - name: enabled
  912. in: formData
  913. description: |
  914. is the integration enabled?
  915. type: string
  916. required: false
  917. - name: title
  918. in: formData
  919. description: |
  920. new name of the integration
  921. type: string
  922. required: false
  923. - name: url
  924. in: formData
  925. description: |
  926. new URL of the integration
  927. type: string
  928. required: false
  929. - name: token
  930. in: formData
  931. description: |
  932. new token of the integration
  933. type: string
  934. required: false
  935. - name: activities
  936. in: formData
  937. description: |
  938. new list of activities of the integration
  939. type: string
  940. required: false
  941. - name: board
  942. in: path
  943. description: |
  944. the board ID
  945. type: string
  946. required: true
  947. - name: int
  948. in: path
  949. description: |
  950. the integration ID
  951. type: string
  952. required: true
  953. produces:
  954. - application/json
  955. security:
  956. - UserSecurity: []
  957. responses:
  958. '200':
  959. description: |-
  960. 200 response
  961. schema:
  962. type: object
  963. properties:
  964. _id:
  965. type: string
  966. delete:
  967. operationId: delete_integration
  968. summary: Delete integration
  969. tags:
  970. - Integrations
  971. parameters:
  972. - name: board
  973. in: path
  974. description: |
  975. the board ID
  976. type: string
  977. required: true
  978. - name: int
  979. in: path
  980. description: |
  981. the integration ID
  982. type: string
  983. required: true
  984. produces:
  985. - application/json
  986. security:
  987. - UserSecurity: []
  988. responses:
  989. '200':
  990. description: |-
  991. 200 response
  992. schema:
  993. type: object
  994. properties:
  995. _id:
  996. type: string
  997. /api/boards/{board}/integrations/{int}/activities:
  998. delete:
  999. operationId: delete_board_int_activities
  1000. tags:
  1001. - Integrations
  1002. parameters:
  1003. - name: board
  1004. in: path
  1005. description: the board value
  1006. type: string
  1007. required: true
  1008. - name: int
  1009. in: path
  1010. description: the int value
  1011. type: string
  1012. required: true
  1013. produces:
  1014. - application/json
  1015. security:
  1016. - UserSecurity: []
  1017. responses:
  1018. '200':
  1019. description: |-
  1020. 200 response
  1021. post:
  1022. operationId: post_board_int_activities
  1023. tags:
  1024. - Integrations
  1025. consumes:
  1026. - multipart/form-data
  1027. - application/json
  1028. parameters:
  1029. - name: activities
  1030. in: formData
  1031. description: the activities value
  1032. type: string
  1033. required: true
  1034. - name: board
  1035. in: path
  1036. description: the board value
  1037. type: string
  1038. required: true
  1039. - name: int
  1040. in: path
  1041. description: the int value
  1042. type: string
  1043. required: true
  1044. produces:
  1045. - application/json
  1046. security:
  1047. - UserSecurity: []
  1048. responses:
  1049. '200':
  1050. description: |-
  1051. 200 response
  1052. /api/boards/{board}/labels:
  1053. put:
  1054. operationId: add_board_label
  1055. summary: Add a label to a board
  1056. description: |
  1057. If the board doesn't have the name/color label, this function
  1058. adds the label to the board.
  1059. tags:
  1060. - Boards
  1061. consumes:
  1062. - multipart/form-data
  1063. - application/json
  1064. parameters:
  1065. - name: label
  1066. in: formData
  1067. description: the label value
  1068. type: string
  1069. required: true
  1070. - name: board
  1071. in: path
  1072. description: |
  1073. the board
  1074. type: string
  1075. required: true
  1076. produces:
  1077. - application/json
  1078. security:
  1079. - UserSecurity: []
  1080. responses:
  1081. '200':
  1082. description: |-
  1083. 200 response
  1084. schema:
  1085. type: string
  1086. /api/boards/{board}/lists:
  1087. get:
  1088. operationId: get_all_lists
  1089. summary: Get the list of Lists attached to a board
  1090. tags:
  1091. - Lists
  1092. parameters:
  1093. - name: board
  1094. in: path
  1095. description: |
  1096. the board ID
  1097. type: string
  1098. required: true
  1099. produces:
  1100. - application/json
  1101. security:
  1102. - UserSecurity: []
  1103. responses:
  1104. '200':
  1105. description: |-
  1106. 200 response
  1107. schema:
  1108. type: array
  1109. items:
  1110. type: object
  1111. properties:
  1112. _id:
  1113. type: string
  1114. title:
  1115. type: string
  1116. post:
  1117. operationId: new_list
  1118. summary: Add a List to a board
  1119. tags:
  1120. - Lists
  1121. consumes:
  1122. - multipart/form-data
  1123. - application/json
  1124. parameters:
  1125. - name: title
  1126. in: formData
  1127. description: |
  1128. the title of the List
  1129. type: string
  1130. required: true
  1131. - name: board
  1132. in: path
  1133. description: |
  1134. the board ID
  1135. type: string
  1136. required: true
  1137. produces:
  1138. - application/json
  1139. security:
  1140. - UserSecurity: []
  1141. responses:
  1142. '200':
  1143. description: |-
  1144. 200 response
  1145. schema:
  1146. type: object
  1147. properties:
  1148. _id:
  1149. type: string
  1150. /api/boards/{board}/lists/{list}:
  1151. get:
  1152. operationId: get_list
  1153. summary: Get a List attached to a board
  1154. tags:
  1155. - Lists
  1156. parameters:
  1157. - name: board
  1158. in: path
  1159. description: |
  1160. the board ID
  1161. type: string
  1162. required: true
  1163. - name: list
  1164. in: path
  1165. description: |
  1166. the List ID
  1167. type: string
  1168. required: true
  1169. produces:
  1170. - application/json
  1171. security:
  1172. - UserSecurity: []
  1173. responses:
  1174. '200':
  1175. description: |-
  1176. 200 response
  1177. schema:
  1178. $ref: "#/definitions/Lists"
  1179. delete:
  1180. operationId: delete_list
  1181. summary: Delete a List
  1182. description: |
  1183. This **deletes** a list from a board.
  1184. The list is not put in the recycle bin.
  1185. tags:
  1186. - Lists
  1187. parameters:
  1188. - name: board
  1189. in: path
  1190. description: |
  1191. the board ID
  1192. type: string
  1193. required: true
  1194. - name: list
  1195. in: path
  1196. description: |
  1197. the ID of the list to remove
  1198. type: string
  1199. required: true
  1200. produces:
  1201. - application/json
  1202. security:
  1203. - UserSecurity: []
  1204. responses:
  1205. '200':
  1206. description: |-
  1207. 200 response
  1208. schema:
  1209. type: object
  1210. properties:
  1211. _id:
  1212. type: string
  1213. /api/boards/{board}/members/{member}:
  1214. post:
  1215. operationId: set_board_member_permission
  1216. summary: Change the permission of a member of a board
  1217. tags:
  1218. - Boards
  1219. - Users
  1220. consumes:
  1221. - multipart/form-data
  1222. - application/json
  1223. parameters:
  1224. - name: isAdmin
  1225. in: formData
  1226. description: |
  1227. admin capability
  1228. type: boolean
  1229. required: true
  1230. - name: isNoComments
  1231. in: formData
  1232. description: |
  1233. NoComments capability
  1234. type: boolean
  1235. required: true
  1236. - name: isCommentOnly
  1237. in: formData
  1238. description: |
  1239. CommentsOnly capability
  1240. type: boolean
  1241. required: true
  1242. - name: isWorker
  1243. in: formData
  1244. description: |
  1245. Worker capability
  1246. type: boolean
  1247. required: true
  1248. - name: board
  1249. in: path
  1250. description: |
  1251. the ID of the board that we are changing
  1252. type: string
  1253. required: true
  1254. - name: member
  1255. in: path
  1256. description: |
  1257. the ID of the user to change permissions
  1258. type: string
  1259. required: true
  1260. produces:
  1261. - application/json
  1262. security:
  1263. - UserSecurity: []
  1264. responses:
  1265. '200':
  1266. description: |-
  1267. 200 response
  1268. /api/boards/{board}/members/{user}/add:
  1269. post:
  1270. operationId: add_board_member
  1271. summary: Add New Board Member with Role
  1272. description: |
  1273. Only the admin user (the first user) can call the REST API.
  1274. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  1275. to later change the permissions.
  1276. tags:
  1277. - Users
  1278. - Boards
  1279. consumes:
  1280. - multipart/form-data
  1281. - application/json
  1282. parameters:
  1283. - name: action
  1284. in: formData
  1285. description: the action value
  1286. type: string
  1287. required: true
  1288. - name: isAdmin
  1289. in: formData
  1290. description: |
  1291. is the user an admin of the board
  1292. type: boolean
  1293. required: true
  1294. - name: isNoComments
  1295. in: formData
  1296. description: |
  1297. disable comments
  1298. type: boolean
  1299. required: true
  1300. - name: isCommentOnly
  1301. in: formData
  1302. description: |
  1303. only enable comments
  1304. type: boolean
  1305. required: true
  1306. - name: board
  1307. in: path
  1308. description: |
  1309. the board ID
  1310. type: string
  1311. required: true
  1312. - name: user
  1313. in: path
  1314. description: |
  1315. the user ID
  1316. type: string
  1317. required: true
  1318. produces:
  1319. - application/json
  1320. security:
  1321. - UserSecurity: []
  1322. responses:
  1323. '200':
  1324. description: |-
  1325. 200 response
  1326. schema:
  1327. type: object
  1328. properties:
  1329. _id:
  1330. type: string
  1331. title:
  1332. type: string
  1333. /api/boards/{board}/members/{user}/remove:
  1334. post:
  1335. operationId: post_board_user_remove
  1336. tags:
  1337. - Users
  1338. consumes:
  1339. - multipart/form-data
  1340. - application/json
  1341. parameters:
  1342. - name: action
  1343. in: formData
  1344. description: the action value
  1345. type: string
  1346. required: true
  1347. - name: board
  1348. in: path
  1349. description: the board value
  1350. type: string
  1351. required: true
  1352. - name: user
  1353. in: path
  1354. description: the user value
  1355. type: string
  1356. required: true
  1357. produces:
  1358. - application/json
  1359. security:
  1360. - UserSecurity: []
  1361. responses:
  1362. '200':
  1363. description: |-
  1364. 200 response
  1365. /api/boards/{board}/swimlanes:
  1366. get:
  1367. operationId: get_all_swimlanes
  1368. summary: Get the list of swimlanes attached to a board
  1369. tags:
  1370. - Swimlanes
  1371. parameters:
  1372. - name: board
  1373. in: path
  1374. description: |
  1375. the ID of the board
  1376. type: string
  1377. required: true
  1378. produces:
  1379. - application/json
  1380. security:
  1381. - UserSecurity: []
  1382. responses:
  1383. '200':
  1384. description: |-
  1385. 200 response
  1386. schema:
  1387. type: array
  1388. items:
  1389. type: object
  1390. properties:
  1391. _id:
  1392. type: string
  1393. title:
  1394. type: string
  1395. post:
  1396. operationId: new_swimlane
  1397. summary: Add a swimlane to a board
  1398. tags:
  1399. - Swimlanes
  1400. consumes:
  1401. - multipart/form-data
  1402. - application/json
  1403. parameters:
  1404. - name: title
  1405. in: formData
  1406. description: |
  1407. the new title of the swimlane
  1408. type: string
  1409. required: true
  1410. - name: board
  1411. in: path
  1412. description: |
  1413. the ID of the board
  1414. type: string
  1415. required: true
  1416. produces:
  1417. - application/json
  1418. security:
  1419. - UserSecurity: []
  1420. responses:
  1421. '200':
  1422. description: |-
  1423. 200 response
  1424. schema:
  1425. type: object
  1426. properties:
  1427. _id:
  1428. type: string
  1429. /api/boards/{board}/swimlanes/{swimlane}:
  1430. get:
  1431. operationId: get_swimlane
  1432. summary: Get a swimlane
  1433. tags:
  1434. - Swimlanes
  1435. parameters:
  1436. - name: board
  1437. in: path
  1438. description: |
  1439. the ID of the board
  1440. type: string
  1441. required: true
  1442. - name: swimlane
  1443. in: path
  1444. description: |
  1445. the ID of the swimlane
  1446. type: string
  1447. required: true
  1448. produces:
  1449. - application/json
  1450. security:
  1451. - UserSecurity: []
  1452. responses:
  1453. '200':
  1454. description: |-
  1455. 200 response
  1456. schema:
  1457. $ref: "#/definitions/Swimlanes"
  1458. delete:
  1459. operationId: delete_board_swimlane
  1460. tags:
  1461. - Swimlanes
  1462. parameters:
  1463. - name: board
  1464. in: path
  1465. description: the board value
  1466. type: string
  1467. required: true
  1468. - name: swimlane
  1469. in: path
  1470. description: the swimlane value
  1471. type: string
  1472. required: true
  1473. produces:
  1474. - application/json
  1475. security:
  1476. - UserSecurity: []
  1477. responses:
  1478. '200':
  1479. description: |-
  1480. 200 response
  1481. /api/user:
  1482. get:
  1483. operationId: get_current_user
  1484. summary: returns the current user
  1485. tags:
  1486. - Users
  1487. produces:
  1488. - application/json
  1489. security:
  1490. - UserSecurity: []
  1491. responses:
  1492. '200':
  1493. description: |-
  1494. 200 response
  1495. schema:
  1496. $ref: "#/definitions/Users"
  1497. /api/users:
  1498. get:
  1499. operationId: get_all_users
  1500. summary: return all the users
  1501. description: |
  1502. Only the admin user (the first user) can call the REST API.
  1503. tags:
  1504. - Users
  1505. produces:
  1506. - application/json
  1507. security:
  1508. - UserSecurity: []
  1509. responses:
  1510. '200':
  1511. description: |-
  1512. 200 response
  1513. schema:
  1514. type: array
  1515. items:
  1516. type: object
  1517. properties:
  1518. _id:
  1519. type: string
  1520. username:
  1521. type: string
  1522. post:
  1523. operationId: new_user
  1524. summary: Create a new user
  1525. description: |
  1526. Only the admin user (the first user) can call the REST API.
  1527. tags:
  1528. - Users
  1529. consumes:
  1530. - multipart/form-data
  1531. - application/json
  1532. parameters:
  1533. - name: username
  1534. in: formData
  1535. description: |
  1536. the new username
  1537. type: string
  1538. required: true
  1539. - name: email
  1540. in: formData
  1541. description: |
  1542. the email of the new user
  1543. type: string
  1544. required: true
  1545. - name: password
  1546. in: formData
  1547. description: |
  1548. the password of the new user
  1549. type: string
  1550. required: true
  1551. produces:
  1552. - application/json
  1553. security:
  1554. - UserSecurity: []
  1555. responses:
  1556. '200':
  1557. description: |-
  1558. 200 response
  1559. schema:
  1560. type: object
  1561. properties:
  1562. _id:
  1563. type: string
  1564. /api/users/{user}:
  1565. get:
  1566. operationId: get_user
  1567. summary: get a given user
  1568. description: |
  1569. Only the admin user (the first user) can call the REST API.
  1570. tags:
  1571. - Users
  1572. parameters:
  1573. - name: user
  1574. in: path
  1575. description: |
  1576. the user ID
  1577. type: string
  1578. required: true
  1579. produces:
  1580. - application/json
  1581. security:
  1582. - UserSecurity: []
  1583. responses:
  1584. '200':
  1585. description: |-
  1586. 200 response
  1587. schema:
  1588. $ref: "#/definitions/Users"
  1589. put:
  1590. operationId: edit_user
  1591. summary: edit a given user
  1592. description: |
  1593. Only the admin user (the first user) can call the REST API.
  1594. Possible values for *action*:
  1595. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  1596. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  1597. - `enableLogin`: Enable a user
  1598. tags:
  1599. - Users
  1600. consumes:
  1601. - multipart/form-data
  1602. - application/json
  1603. parameters:
  1604. - name: action
  1605. in: formData
  1606. description: |
  1607. the action
  1608. type: string
  1609. required: true
  1610. - name: user
  1611. in: path
  1612. description: |
  1613. the user ID
  1614. type: string
  1615. required: true
  1616. produces:
  1617. - application/json
  1618. security:
  1619. - UserSecurity: []
  1620. responses:
  1621. '200':
  1622. description: |-
  1623. 200 response
  1624. schema:
  1625. type: object
  1626. properties:
  1627. _id:
  1628. type: string
  1629. title:
  1630. type: string
  1631. delete:
  1632. operationId: delete_user
  1633. summary: Delete a user
  1634. description: |
  1635. Only the admin user (the first user) can call the REST API.
  1636. tags:
  1637. - Users
  1638. parameters:
  1639. - name: user
  1640. in: path
  1641. description: |
  1642. the ID of the user to delete
  1643. type: string
  1644. required: true
  1645. produces:
  1646. - application/json
  1647. security:
  1648. - UserSecurity: []
  1649. responses:
  1650. '200':
  1651. description: |-
  1652. 200 response
  1653. schema:
  1654. type: object
  1655. properties:
  1656. _id:
  1657. type: string
  1658. /api/users/{user}/boards:
  1659. get:
  1660. operationId: get_boards_from_user
  1661. summary: Get all boards attached to a user
  1662. tags:
  1663. - Boards
  1664. parameters:
  1665. - name: user
  1666. in: path
  1667. description: |
  1668. the ID of the user to retrieve the data
  1669. type: string
  1670. required: true
  1671. produces:
  1672. - application/json
  1673. security:
  1674. - UserSecurity: []
  1675. responses:
  1676. '200':
  1677. description: |-
  1678. 200 response
  1679. schema:
  1680. type: array
  1681. items:
  1682. type: object
  1683. properties:
  1684. _id:
  1685. type: string
  1686. title:
  1687. type: string
  1688. definitions:
  1689. Boards:
  1690. type: object
  1691. description: This is a Board.
  1692. properties:
  1693. title:
  1694. description: |
  1695. The title of the board
  1696. type: string
  1697. slug:
  1698. description: |
  1699. The title slugified.
  1700. type: string
  1701. archived:
  1702. description: |
  1703. Is the board archived?
  1704. type: boolean
  1705. createdAt:
  1706. description: |
  1707. Creation time of the board
  1708. type: string
  1709. modifiedAt:
  1710. description: |
  1711. Last modification time of the board
  1712. type: string
  1713. x-nullable: true
  1714. stars:
  1715. description: |
  1716. How many stars the board has
  1717. type: number
  1718. labels:
  1719. description: |
  1720. List of labels attached to a board
  1721. type: array
  1722. items:
  1723. $ref: "#/definitions/BoardsLabels"
  1724. members:
  1725. description: |
  1726. List of members of a board
  1727. type: array
  1728. items:
  1729. $ref: "#/definitions/BoardsMembers"
  1730. permission:
  1731. description: |
  1732. visibility of the board
  1733. type: string
  1734. enum:
  1735. - public
  1736. - private
  1737. color:
  1738. description: |
  1739. The color of the board.
  1740. type: string
  1741. enum:
  1742. - belize
  1743. - nephritis
  1744. - pomegranate
  1745. - pumpkin
  1746. - wisteria
  1747. - moderatepink
  1748. - strongcyan
  1749. - limegreen
  1750. - midnight
  1751. - dark
  1752. - relax
  1753. - corteza
  1754. description:
  1755. description: |
  1756. The description of the board
  1757. type: string
  1758. x-nullable: true
  1759. subtasksDefaultBoardId:
  1760. description: |
  1761. The default board ID assigned to subtasks.
  1762. type: string
  1763. x-nullable: true
  1764. subtasksDefaultListId:
  1765. description: |
  1766. The default List ID assigned to subtasks.
  1767. type: string
  1768. x-nullable: true
  1769. dateSettingsDefaultBoardId:
  1770. type: string
  1771. x-nullable: true
  1772. dateSettingsDefaultListId:
  1773. type: string
  1774. x-nullable: true
  1775. allowsSubtasks:
  1776. description: |
  1777. Does the board allows subtasks?
  1778. type: boolean
  1779. allowsAttachments:
  1780. description: |
  1781. Does the board allows attachments?
  1782. type: boolean
  1783. allowsChecklists:
  1784. description: |
  1785. Does the board allows checklists?
  1786. type: boolean
  1787. allowsComments:
  1788. description: |
  1789. Does the board allows comments?
  1790. type: boolean
  1791. allowsDescriptionTitle:
  1792. description: |
  1793. Does the board allows description title?
  1794. type: boolean
  1795. allowsDescriptionText:
  1796. description: |
  1797. Does the board allows description text?
  1798. type: boolean
  1799. allowsActivities:
  1800. description: |
  1801. Does the board allows comments?
  1802. type: boolean
  1803. allowsLabels:
  1804. description: |
  1805. Does the board allows labels?
  1806. type: boolean
  1807. allowsAssignee:
  1808. description: |
  1809. Does the board allows assignee?
  1810. type: boolean
  1811. allowsMembers:
  1812. description: |
  1813. Does the board allows members?
  1814. type: boolean
  1815. allowsRequestedBy:
  1816. description: |
  1817. Does the board allows requested by?
  1818. type: boolean
  1819. allowsAssignedBy:
  1820. description: |
  1821. Does the board allows requested by?
  1822. type: boolean
  1823. allowsReceivedDate:
  1824. description: |
  1825. Does the board allows received date?
  1826. type: boolean
  1827. allowsStartDate:
  1828. description: |
  1829. Does the board allows start date?
  1830. type: boolean
  1831. allowsEndDate:
  1832. description: |
  1833. Does the board allows end date?
  1834. type: boolean
  1835. allowsDueDate:
  1836. description: |
  1837. Does the board allows due date?
  1838. type: boolean
  1839. presentParentTask:
  1840. description: |
  1841. Controls how to present the parent task:
  1842. - `prefix-with-full-path`: add a prefix with the full path
  1843. - `prefix-with-parent`: add a prefisx with the parent name
  1844. - `subtext-with-full-path`: add a subtext with the full path
  1845. - `subtext-with-parent`: add a subtext with the parent name
  1846. - `no-parent`: does not show the parent at all
  1847. type: string
  1848. enum:
  1849. - prefix-with-full-path
  1850. - prefix-with-parent
  1851. - subtext-with-full-path
  1852. - subtext-with-parent
  1853. - no-parent
  1854. x-nullable: true
  1855. startAt:
  1856. description: |
  1857. Starting date of the board.
  1858. type: string
  1859. x-nullable: true
  1860. dueAt:
  1861. description: |
  1862. Due date of the board.
  1863. type: string
  1864. x-nullable: true
  1865. endAt:
  1866. description: |
  1867. End date of the board.
  1868. type: string
  1869. x-nullable: true
  1870. spentTime:
  1871. description: |
  1872. Time spent in the board.
  1873. type: number
  1874. x-nullable: true
  1875. isOvertime:
  1876. description: |
  1877. Is the board overtimed?
  1878. type: boolean
  1879. x-nullable: true
  1880. type:
  1881. description: |
  1882. The type of board
  1883. type: string
  1884. required:
  1885. - title
  1886. - slug
  1887. - archived
  1888. - createdAt
  1889. - stars
  1890. - labels
  1891. - members
  1892. - permission
  1893. - color
  1894. - allowsSubtasks
  1895. - allowsAttachments
  1896. - allowsChecklists
  1897. - allowsComments
  1898. - allowsDescriptionTitle
  1899. - allowsDescriptionText
  1900. - allowsActivities
  1901. - allowsLabels
  1902. - allowsAssignee
  1903. - allowsMembers
  1904. - allowsRequestedBy
  1905. - allowsAssignedBy
  1906. - allowsReceivedDate
  1907. - allowsStartDate
  1908. - allowsEndDate
  1909. - allowsDueDate
  1910. - type
  1911. BoardsLabels:
  1912. type: object
  1913. properties:
  1914. _id:
  1915. description: |
  1916. Unique id of a label
  1917. type: string
  1918. name:
  1919. description: |
  1920. Name of a label
  1921. type: string
  1922. color:
  1923. description: |
  1924. color of a label.
  1925. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  1926. `blue`, `sky`, `lime`, `pink`, `black`,
  1927. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  1928. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  1929. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  1930. type: string
  1931. enum:
  1932. - green
  1933. - yellow
  1934. - orange
  1935. - red
  1936. - purple
  1937. - blue
  1938. - sky
  1939. - lime
  1940. - pink
  1941. - black
  1942. - silver
  1943. - peachpuff
  1944. - crimson
  1945. - plum
  1946. - darkgreen
  1947. - slateblue
  1948. - magenta
  1949. - gold
  1950. - navy
  1951. - gray
  1952. - saddlebrown
  1953. - paleturquoise
  1954. - mistyrose
  1955. - indigo
  1956. required:
  1957. - _id
  1958. - color
  1959. BoardsMembers:
  1960. type: object
  1961. properties:
  1962. userId:
  1963. description: |
  1964. The uniq ID of the member
  1965. type: string
  1966. isAdmin:
  1967. description: |
  1968. Is the member an admin of the board?
  1969. type: boolean
  1970. isActive:
  1971. description: |
  1972. Is the member active?
  1973. type: boolean
  1974. isNoComments:
  1975. description: |
  1976. Is the member not allowed to make comments
  1977. type: boolean
  1978. isCommentOnly:
  1979. description: |
  1980. Is the member only allowed to comment on the board
  1981. type: boolean
  1982. isWorker:
  1983. description: |
  1984. Is the member only allowed to move card, assign himself to card and comment
  1985. type: boolean
  1986. required:
  1987. - userId
  1988. - isAdmin
  1989. - isActive
  1990. CardComments:
  1991. type: object
  1992. description: A comment on a card
  1993. properties:
  1994. boardId:
  1995. description: |
  1996. the board ID
  1997. type: string
  1998. cardId:
  1999. description: |
  2000. the card ID
  2001. type: string
  2002. text:
  2003. description: |
  2004. the text of the comment
  2005. type: string
  2006. createdAt:
  2007. description: |
  2008. when was the comment created
  2009. type: string
  2010. modifiedAt:
  2011. type: string
  2012. userId:
  2013. description: |
  2014. the author ID of the comment
  2015. type: string
  2016. required:
  2017. - boardId
  2018. - cardId
  2019. - text
  2020. - createdAt
  2021. - modifiedAt
  2022. - userId
  2023. ChecklistItems:
  2024. type: object
  2025. description: An item in a checklist
  2026. properties:
  2027. title:
  2028. description: |
  2029. the text of the item
  2030. type: string
  2031. sort:
  2032. description: |
  2033. the sorting field of the item
  2034. type: number
  2035. isFinished:
  2036. description: |
  2037. Is the item checked?
  2038. type: boolean
  2039. checklistId:
  2040. description: |
  2041. the checklist ID the item is attached to
  2042. type: string
  2043. cardId:
  2044. description: |
  2045. the card ID the item is attached to
  2046. type: string
  2047. createdAt:
  2048. type: string
  2049. x-nullable: true
  2050. modifiedAt:
  2051. type: string
  2052. required:
  2053. - title
  2054. - sort
  2055. - isFinished
  2056. - checklistId
  2057. - cardId
  2058. - modifiedAt
  2059. Checklists:
  2060. type: object
  2061. description: A Checklist
  2062. properties:
  2063. cardId:
  2064. description: |
  2065. The ID of the card the checklist is in
  2066. type: string
  2067. title:
  2068. description: |
  2069. the title of the checklist
  2070. type: string
  2071. finishedAt:
  2072. description: |
  2073. When was the checklist finished
  2074. type: string
  2075. x-nullable: true
  2076. createdAt:
  2077. description: |
  2078. Creation date of the checklist
  2079. type: string
  2080. modifiedAt:
  2081. type: string
  2082. sort:
  2083. description: |
  2084. sorting value of the checklist
  2085. type: number
  2086. required:
  2087. - cardId
  2088. - title
  2089. - createdAt
  2090. - modifiedAt
  2091. - sort
  2092. CustomFields:
  2093. type: object
  2094. description: A custom field on a card in the board
  2095. properties:
  2096. boardIds:
  2097. description: |
  2098. the ID of the board
  2099. type: array
  2100. items:
  2101. type: string
  2102. name:
  2103. description: |
  2104. name of the custom field
  2105. type: string
  2106. type:
  2107. description: |
  2108. type of the custom field
  2109. type: string
  2110. enum:
  2111. - text
  2112. - number
  2113. - date
  2114. - dropdown
  2115. settings:
  2116. description: |
  2117. settings of the custom field
  2118. $ref: "#/definitions/CustomFieldsSettings"
  2119. showOnCard:
  2120. description: |
  2121. should we show on the cards this custom field
  2122. type: boolean
  2123. automaticallyOnCard:
  2124. description: |
  2125. should the custom fields automatically be added on cards?
  2126. type: boolean
  2127. showLabelOnMiniCard:
  2128. description: |
  2129. should the label of the custom field be shown on minicards?
  2130. type: boolean
  2131. createdAt:
  2132. type: string
  2133. x-nullable: true
  2134. modifiedAt:
  2135. type: string
  2136. required:
  2137. - boardIds
  2138. - name
  2139. - type
  2140. - settings
  2141. - showOnCard
  2142. - automaticallyOnCard
  2143. - showLabelOnMiniCard
  2144. - modifiedAt
  2145. CustomFieldsSettings:
  2146. type: object
  2147. properties:
  2148. dropdownItems:
  2149. description: |
  2150. list of drop down items objects
  2151. type: array
  2152. items:
  2153. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  2154. CustomFieldsSettingsDropdownitems:
  2155. type: object
  2156. Integrations:
  2157. type: object
  2158. description: Integration with third-party applications
  2159. properties:
  2160. enabled:
  2161. description: |
  2162. is the integration enabled?
  2163. type: boolean
  2164. title:
  2165. description: |
  2166. name of the integration
  2167. type: string
  2168. x-nullable: true
  2169. type:
  2170. description: |
  2171. type of the integratation (Default to 'outgoing-webhooks')
  2172. type: string
  2173. activities:
  2174. description: |
  2175. activities the integration gets triggered (list)
  2176. type: array
  2177. items:
  2178. type: string
  2179. url:
  2180. type: string
  2181. token:
  2182. description: |
  2183. token of the integration
  2184. type: string
  2185. x-nullable: true
  2186. boardId:
  2187. description: |
  2188. Board ID of the integration
  2189. type: string
  2190. createdAt:
  2191. description: |
  2192. Creation date of the integration
  2193. type: string
  2194. modifiedAt:
  2195. type: string
  2196. userId:
  2197. description: |
  2198. user ID who created the interation
  2199. type: string
  2200. required:
  2201. - enabled
  2202. - type
  2203. - activities
  2204. - url
  2205. - boardId
  2206. - createdAt
  2207. - modifiedAt
  2208. - userId
  2209. Lists:
  2210. type: object
  2211. description: A list (column) in the Wekan board.
  2212. properties:
  2213. title:
  2214. description: |
  2215. the title of the list
  2216. type: string
  2217. starred:
  2218. description: |
  2219. if a list is stared
  2220. then we put it on the top
  2221. type: boolean
  2222. x-nullable: true
  2223. archived:
  2224. description: |
  2225. is the list archived
  2226. type: boolean
  2227. boardId:
  2228. description: |
  2229. the board associated to this list
  2230. type: string
  2231. swimlaneId:
  2232. description: |
  2233. the swimlane associated to this list. Used for templates
  2234. type: string
  2235. createdAt:
  2236. description: |
  2237. creation date
  2238. type: string
  2239. sort:
  2240. description: |
  2241. is the list sorted
  2242. type: number
  2243. x-nullable: true
  2244. updatedAt:
  2245. description: |
  2246. last update of the list
  2247. type: string
  2248. x-nullable: true
  2249. modifiedAt:
  2250. type: string
  2251. wipLimit:
  2252. description: |
  2253. WIP object, see below
  2254. $ref: "#/definitions/ListsWiplimit"
  2255. x-nullable: true
  2256. color:
  2257. description: |
  2258. the color of the list
  2259. type: string
  2260. enum:
  2261. - white
  2262. - green
  2263. - yellow
  2264. - orange
  2265. - red
  2266. - purple
  2267. - blue
  2268. - sky
  2269. - lime
  2270. - pink
  2271. - black
  2272. - peachpuff
  2273. - crimson
  2274. - plum
  2275. - darkgreen
  2276. - slateblue
  2277. - magenta
  2278. - gold
  2279. - navy
  2280. - gray
  2281. - saddlebrown
  2282. - paleturquoise
  2283. - mistyrose
  2284. - indigo
  2285. x-nullable: true
  2286. type:
  2287. description: |
  2288. The type of list
  2289. type: string
  2290. required:
  2291. - title
  2292. - archived
  2293. - boardId
  2294. - swimlaneId
  2295. - createdAt
  2296. - modifiedAt
  2297. - type
  2298. ListsWiplimit:
  2299. type: object
  2300. properties:
  2301. value:
  2302. description: |
  2303. value of the WIP
  2304. type: number
  2305. enabled:
  2306. description: |
  2307. is the WIP enabled
  2308. type: boolean
  2309. soft:
  2310. description: |
  2311. is the WIP a soft or hard requirement
  2312. type: boolean
  2313. required:
  2314. - value
  2315. - enabled
  2316. - soft
  2317. Swimlanes:
  2318. type: object
  2319. description: A swimlane is an line in the kaban board.
  2320. properties:
  2321. title:
  2322. description: |
  2323. the title of the swimlane
  2324. type: string
  2325. archived:
  2326. description: |
  2327. is the swimlane archived?
  2328. type: boolean
  2329. boardId:
  2330. description: |
  2331. the ID of the board the swimlane is attached to
  2332. type: string
  2333. createdAt:
  2334. description: |
  2335. creation date of the swimlane
  2336. type: string
  2337. sort:
  2338. description: |
  2339. the sort value of the swimlane
  2340. type: number
  2341. x-nullable: true
  2342. color:
  2343. description: |
  2344. the color of the swimlane
  2345. type: string
  2346. enum:
  2347. - white
  2348. - green
  2349. - yellow
  2350. - orange
  2351. - red
  2352. - purple
  2353. - blue
  2354. - sky
  2355. - lime
  2356. - pink
  2357. - black
  2358. - peachpuff
  2359. - crimson
  2360. - plum
  2361. - darkgreen
  2362. - slateblue
  2363. - magenta
  2364. - gold
  2365. - navy
  2366. - gray
  2367. - saddlebrown
  2368. - paleturquoise
  2369. - mistyrose
  2370. - indigo
  2371. x-nullable: true
  2372. updatedAt:
  2373. description: |
  2374. when was the swimlane last edited
  2375. type: string
  2376. x-nullable: true
  2377. modifiedAt:
  2378. type: string
  2379. type:
  2380. description: |
  2381. The type of swimlane
  2382. type: string
  2383. required:
  2384. - title
  2385. - archived
  2386. - boardId
  2387. - createdAt
  2388. - modifiedAt
  2389. - type
  2390. Users:
  2391. type: object
  2392. description: A User in wekan
  2393. properties:
  2394. username:
  2395. description: |
  2396. the username of the user
  2397. type: string
  2398. x-nullable: true
  2399. emails:
  2400. description: |
  2401. the list of emails attached to a user
  2402. type: array
  2403. items:
  2404. $ref: "#/definitions/UsersEmails"
  2405. x-nullable: true
  2406. createdAt:
  2407. description: |
  2408. creation date of the user
  2409. type: string
  2410. modifiedAt:
  2411. type: string
  2412. profile:
  2413. description: |
  2414. profile settings
  2415. $ref: "#/definitions/UsersProfile"
  2416. x-nullable: true
  2417. services:
  2418. description: |
  2419. services field of the user
  2420. type: object
  2421. x-nullable: true
  2422. heartbeat:
  2423. description: |
  2424. last time the user has been seen
  2425. type: string
  2426. x-nullable: true
  2427. isAdmin:
  2428. description: |
  2429. is the user an admin of the board?
  2430. type: boolean
  2431. x-nullable: true
  2432. createdThroughApi:
  2433. description: |
  2434. was the user created through the API?
  2435. type: boolean
  2436. x-nullable: true
  2437. loginDisabled:
  2438. description: |
  2439. loginDisabled field of the user
  2440. type: boolean
  2441. x-nullable: true
  2442. authenticationMethod:
  2443. description: |
  2444. authentication method of the user
  2445. type: string
  2446. required:
  2447. - createdAt
  2448. - modifiedAt
  2449. - authenticationMethod
  2450. UsersEmails:
  2451. type: object
  2452. properties:
  2453. address:
  2454. description: |
  2455. The email address
  2456. type: string
  2457. verified:
  2458. description: |
  2459. Has the email been verified
  2460. type: boolean
  2461. required:
  2462. - address
  2463. - verified
  2464. UsersProfile:
  2465. type: object
  2466. properties:
  2467. avatarUrl:
  2468. description: |
  2469. URL of the avatar of the user
  2470. type: string
  2471. emailBuffer:
  2472. description: |
  2473. list of email buffers of the user
  2474. type: array
  2475. items:
  2476. type: string
  2477. x-nullable: true
  2478. fullname:
  2479. description: |
  2480. full name of the user
  2481. type: string
  2482. showDesktopDragHandles:
  2483. description: |
  2484. does the user want to hide system messages?
  2485. type: boolean
  2486. hiddenSystemMessages:
  2487. description: |
  2488. does the user want to hide system messages?
  2489. type: boolean
  2490. hiddenMinicardLabelText:
  2491. description: |
  2492. does the user want to hide minicard label texts?
  2493. type: boolean
  2494. initials:
  2495. description: |
  2496. initials of the user
  2497. type: string
  2498. invitedBoards:
  2499. description: |
  2500. board IDs the user has been invited to
  2501. type: array
  2502. items:
  2503. type: string
  2504. x-nullable: true
  2505. language:
  2506. description: |
  2507. language of the user
  2508. type: string
  2509. notifications:
  2510. description: |
  2511. enabled notifications for the user
  2512. type: array
  2513. items:
  2514. $ref: "#/definitions/UsersProfileNotifications"
  2515. activity:
  2516. description: |
  2517. The id of the activity this notification references
  2518. type: string
  2519. read:
  2520. description: |
  2521. the date on which this notification was read
  2522. type: string
  2523. showCardsCountAt:
  2524. description: |
  2525. showCardCountAt field of the user
  2526. type: number
  2527. starredBoards:
  2528. description: |
  2529. list of starred board IDs
  2530. type: array
  2531. items:
  2532. type: string
  2533. x-nullable: true
  2534. icode:
  2535. description: |
  2536. icode
  2537. type: string
  2538. boardView:
  2539. description: |
  2540. boardView field of the user
  2541. type: string
  2542. enum:
  2543. - board-view-lists
  2544. - board-view-swimlanes
  2545. - board-view-cal
  2546. listSortBy:
  2547. description: |
  2548. default sort list for user
  2549. type: string
  2550. enum:
  2551. - -modifiedat
  2552. - modifiedat
  2553. - -title
  2554. - title
  2555. - -sort
  2556. - sort
  2557. templatesBoardId:
  2558. description: |
  2559. Reference to the templates board
  2560. type: string
  2561. cardTemplatesSwimlaneId:
  2562. description: |
  2563. Reference to the card templates swimlane Id
  2564. type: string
  2565. listTemplatesSwimlaneId:
  2566. description: |
  2567. Reference to the list templates swimlane Id
  2568. type: string
  2569. boardTemplatesSwimlaneId:
  2570. description: |
  2571. Reference to the board templates swimlane Id
  2572. type: string
  2573. required:
  2574. - activity
  2575. - templatesBoardId
  2576. - cardTemplatesSwimlaneId
  2577. - listTemplatesSwimlaneId
  2578. - boardTemplatesSwimlaneId