2
0

wekan.yml 86 KB

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