wekan.yml 100 KB

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