wekan.yml 87 KB

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