wekan.yml 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v6.15
  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}/cards_count:
  878. get:
  879. operationId: get_board_cards_count
  880. summary: Get a cards count to a board
  881. tags:
  882. - Cards
  883. parameters:
  884. - name: board
  885. in: path
  886. description: |
  887. the board ID
  888. type: string
  889. required: true
  890. produces:
  891. - application/json
  892. security:
  893. - UserSecurity: []
  894. responses:
  895. '200':
  896. description: |-
  897. 200 response
  898. schema:
  899. type: object
  900. properties:
  901. board_cards_count:
  902. type: integer
  903. /api/boards/{board}/custom-fields:
  904. get:
  905. operationId: get_all_custom_fields
  906. summary: Get the list of Custom Fields attached to a board
  907. tags:
  908. - CustomFields
  909. parameters:
  910. - name: board
  911. in: path
  912. description: the board value
  913. type: string
  914. required: true
  915. produces:
  916. - application/json
  917. security:
  918. - UserSecurity: []
  919. responses:
  920. '200':
  921. description: |-
  922. 200 response
  923. schema:
  924. type: array
  925. items:
  926. type: object
  927. properties:
  928. _id:
  929. type: string
  930. name:
  931. type: string
  932. type:
  933. type: string
  934. post:
  935. operationId: new_custom_field
  936. summary: Create a Custom Field
  937. tags:
  938. - CustomFields
  939. consumes:
  940. - multipart/form-data
  941. - application/json
  942. parameters:
  943. - name: name
  944. in: formData
  945. description: |
  946. the name of the custom field
  947. type: string
  948. required: true
  949. - name: type
  950. in: formData
  951. description: |
  952. the type of the custom field
  953. type: string
  954. required: true
  955. - name: settings
  956. in: formData
  957. description: |
  958. the settings object of the custom field
  959. type: string
  960. required: true
  961. - name: showOnCard
  962. in: formData
  963. description: |
  964. should we show the custom field on cards?
  965. type: boolean
  966. required: true
  967. - name: automaticallyOnCard
  968. in: formData
  969. description: |
  970. should the custom fields automatically be added on cards?
  971. type: boolean
  972. required: true
  973. - name: showLabelOnMiniCard
  974. in: formData
  975. description: |
  976. should the label of the custom field be shown on minicards?
  977. type: boolean
  978. required: true
  979. - name: showSumAtTopOfList
  980. in: formData
  981. description: |
  982. should the sum of the custom fields be shown at top of list?
  983. type: boolean
  984. required: true
  985. - name: authorId
  986. in: formData
  987. description: the authorId value
  988. type: string
  989. required: true
  990. - name: board
  991. in: path
  992. description: the board value
  993. type: string
  994. required: true
  995. produces:
  996. - application/json
  997. security:
  998. - UserSecurity: []
  999. responses:
  1000. '200':
  1001. description: |-
  1002. 200 response
  1003. schema:
  1004. type: object
  1005. properties:
  1006. _id:
  1007. type: string
  1008. /api/boards/{board}/custom-fields/{customField}:
  1009. get:
  1010. operationId: get_custom_field
  1011. summary: Get a Custom Fields attached to a board
  1012. tags:
  1013. - CustomFields
  1014. parameters:
  1015. - name: board
  1016. in: path
  1017. description: the board value
  1018. type: string
  1019. required: true
  1020. - name: customField
  1021. in: path
  1022. description: |
  1023. the ID of the custom field
  1024. type: string
  1025. required: true
  1026. produces:
  1027. - application/json
  1028. security:
  1029. - UserSecurity: []
  1030. responses:
  1031. '200':
  1032. description: |-
  1033. 200 response
  1034. schema:
  1035. type: array
  1036. items:
  1037. type: object
  1038. properties:
  1039. _id:
  1040. type: string
  1041. boardIds:
  1042. type: string
  1043. put:
  1044. operationId: edit_custom_field
  1045. summary: Update a Custom Field
  1046. tags:
  1047. - CustomFields
  1048. consumes:
  1049. - multipart/form-data
  1050. - application/json
  1051. parameters:
  1052. - name: name
  1053. in: formData
  1054. description: |
  1055. the name of the custom field
  1056. type: string
  1057. required: true
  1058. - name: type
  1059. in: formData
  1060. description: |
  1061. the type of the custom field
  1062. type: string
  1063. required: true
  1064. - name: settings
  1065. in: formData
  1066. description: |
  1067. the settings object of the custom field
  1068. type: string
  1069. required: true
  1070. - name: showOnCard
  1071. in: formData
  1072. description: |
  1073. should we show the custom field on cards
  1074. type: boolean
  1075. required: true
  1076. - name: automaticallyOnCard
  1077. in: formData
  1078. description: |
  1079. should the custom fields automatically be added on cards
  1080. type: boolean
  1081. required: true
  1082. - name: alwaysOnCard
  1083. in: formData
  1084. description: the alwaysOnCard value
  1085. type: string
  1086. required: true
  1087. - name: showLabelOnMiniCard
  1088. in: formData
  1089. description: |
  1090. should the label of the custom field be shown on minicards
  1091. type: boolean
  1092. required: true
  1093. - name: showSumAtTopOfList
  1094. in: formData
  1095. description: |
  1096. should the sum of the custom fields be shown at top of list
  1097. type: boolean
  1098. required: true
  1099. - name: board
  1100. in: path
  1101. description: the board value
  1102. type: string
  1103. required: true
  1104. - name: customField
  1105. in: path
  1106. description: the customField value
  1107. type: string
  1108. required: true
  1109. produces:
  1110. - application/json
  1111. security:
  1112. - UserSecurity: []
  1113. responses:
  1114. '200':
  1115. description: |-
  1116. 200 response
  1117. schema:
  1118. type: object
  1119. properties:
  1120. _id:
  1121. type: string
  1122. delete:
  1123. operationId: delete_custom_field
  1124. summary: Delete a Custom Fields attached to a board
  1125. description: |
  1126. The Custom Field can't be retrieved after this operation
  1127. tags:
  1128. - CustomFields
  1129. parameters:
  1130. - name: board
  1131. in: path
  1132. description: the board value
  1133. type: string
  1134. required: true
  1135. - name: customField
  1136. in: path
  1137. description: |
  1138. the ID of the custom field
  1139. type: string
  1140. required: true
  1141. produces:
  1142. - application/json
  1143. security:
  1144. - UserSecurity: []
  1145. responses:
  1146. '200':
  1147. description: |-
  1148. 200 response
  1149. schema:
  1150. type: object
  1151. properties:
  1152. _id:
  1153. type: string
  1154. /api/boards/{board}/custom-fields/{customField}/dropdown-items:
  1155. post:
  1156. operationId: add_custom_field_dropdown_items
  1157. summary: Update a Custom Field's dropdown items
  1158. tags:
  1159. - CustomFields
  1160. consumes:
  1161. - multipart/form-data
  1162. - application/json
  1163. parameters:
  1164. - name: items
  1165. in: formData
  1166. description: |
  1167. names of the custom field
  1168. type: string
  1169. required: false
  1170. - name: board
  1171. in: path
  1172. description: the board value
  1173. type: string
  1174. required: true
  1175. - name: customField
  1176. in: path
  1177. description: the customField value
  1178. type: string
  1179. required: true
  1180. produces:
  1181. - application/json
  1182. security:
  1183. - UserSecurity: []
  1184. responses:
  1185. '200':
  1186. description: |-
  1187. 200 response
  1188. schema:
  1189. type: object
  1190. properties:
  1191. _id:
  1192. type: string
  1193. /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}:
  1194. put:
  1195. operationId: edit_custom_field_dropdown_item
  1196. summary: Update a Custom Field's dropdown item
  1197. tags:
  1198. - CustomFields
  1199. consumes:
  1200. - multipart/form-data
  1201. - application/json
  1202. parameters:
  1203. - name: name
  1204. in: formData
  1205. description: |
  1206. names of the custom field
  1207. type: string
  1208. required: true
  1209. - name: board
  1210. in: path
  1211. description: the board value
  1212. type: string
  1213. required: true
  1214. - name: customField
  1215. in: path
  1216. description: the customField value
  1217. type: string
  1218. required: true
  1219. - name: dropdownItem
  1220. in: path
  1221. description: the dropdownItem value
  1222. type: string
  1223. required: true
  1224. produces:
  1225. - application/json
  1226. security:
  1227. - UserSecurity: []
  1228. responses:
  1229. '200':
  1230. description: |-
  1231. 200 response
  1232. schema:
  1233. type: object
  1234. properties:
  1235. _id:
  1236. type: string
  1237. delete:
  1238. operationId: delete_custom_field_dropdown_item
  1239. summary: Update a Custom Field's dropdown items
  1240. tags:
  1241. - CustomFields
  1242. parameters:
  1243. - name: board
  1244. in: path
  1245. description: the board value
  1246. type: string
  1247. required: true
  1248. - name: customField
  1249. in: path
  1250. description: the customField value
  1251. type: string
  1252. required: true
  1253. - name: dropdownItem
  1254. in: path
  1255. description: the dropdownItem value
  1256. type: string
  1257. required: true
  1258. produces:
  1259. - application/json
  1260. security:
  1261. - UserSecurity: []
  1262. responses:
  1263. '200':
  1264. description: |-
  1265. 200 response
  1266. schema:
  1267. type: object
  1268. properties:
  1269. _id:
  1270. type: string
  1271. /api/boards/{board}/export:
  1272. get:
  1273. operationId: exportJson
  1274. summary: This route is used to export the board to a json file format.
  1275. description: |
  1276. If user is already logged-in, pass loginToken as param
  1277. "authToken": '/api/boards/:boardId/export?authToken=:token'
  1278. See https://blog.kayla.com.au/server-side-route-authentication-in-meteor/
  1279. for detailed explanations
  1280. tags:
  1281. - Boards
  1282. parameters:
  1283. - name: board
  1284. in: path
  1285. description: |
  1286. the ID of the board we are exporting
  1287. type: string
  1288. required: true
  1289. produces:
  1290. - application/json
  1291. security:
  1292. - UserSecurity: []
  1293. responses:
  1294. '200':
  1295. description: |-
  1296. 200 response
  1297. /api/boards/{board}/integrations:
  1298. get:
  1299. operationId: get_all_integrations
  1300. summary: Get all integrations in board
  1301. tags:
  1302. - Integrations
  1303. parameters:
  1304. - name: board
  1305. in: path
  1306. description: |
  1307. the board ID
  1308. type: string
  1309. required: true
  1310. produces:
  1311. - application/json
  1312. security:
  1313. - UserSecurity: []
  1314. responses:
  1315. '200':
  1316. description: |-
  1317. 200 response
  1318. schema:
  1319. type: array
  1320. items:
  1321. $ref: "#/definitions/Integrations"
  1322. post:
  1323. operationId: new_integration
  1324. summary: Create a new integration
  1325. tags:
  1326. - Integrations
  1327. consumes:
  1328. - multipart/form-data
  1329. - application/json
  1330. parameters:
  1331. - name: url
  1332. in: formData
  1333. description: |
  1334. the URL of the integration
  1335. type: string
  1336. required: true
  1337. - name: board
  1338. in: path
  1339. description: |
  1340. the board ID
  1341. type: string
  1342. required: true
  1343. produces:
  1344. - application/json
  1345. security:
  1346. - UserSecurity: []
  1347. responses:
  1348. '200':
  1349. description: |-
  1350. 200 response
  1351. schema:
  1352. type: object
  1353. properties:
  1354. _id:
  1355. type: string
  1356. /api/boards/{board}/integrations/{int}:
  1357. get:
  1358. operationId: get_integration
  1359. summary: Get a single integration in board
  1360. tags:
  1361. - Integrations
  1362. parameters:
  1363. - name: board
  1364. in: path
  1365. description: |
  1366. the board ID
  1367. type: string
  1368. required: true
  1369. - name: int
  1370. in: path
  1371. description: |
  1372. the integration ID
  1373. type: string
  1374. required: true
  1375. produces:
  1376. - application/json
  1377. security:
  1378. - UserSecurity: []
  1379. responses:
  1380. '200':
  1381. description: |-
  1382. 200 response
  1383. schema:
  1384. $ref: "#/definitions/Integrations"
  1385. put:
  1386. operationId: edit_integration
  1387. summary: Edit integration data
  1388. tags:
  1389. - Integrations
  1390. consumes:
  1391. - multipart/form-data
  1392. - application/json
  1393. parameters:
  1394. - name: enabled
  1395. in: formData
  1396. description: |
  1397. is the integration enabled?
  1398. type: string
  1399. required: false
  1400. - name: title
  1401. in: formData
  1402. description: |
  1403. new name of the integration
  1404. type: string
  1405. required: false
  1406. - name: url
  1407. in: formData
  1408. description: |
  1409. new URL of the integration
  1410. type: string
  1411. required: false
  1412. - name: token
  1413. in: formData
  1414. description: |
  1415. new token of the integration
  1416. type: string
  1417. required: false
  1418. - name: activities
  1419. in: formData
  1420. description: |
  1421. new list of activities of the integration
  1422. type: string
  1423. required: false
  1424. - name: board
  1425. in: path
  1426. description: |
  1427. the board ID
  1428. type: string
  1429. required: true
  1430. - name: int
  1431. in: path
  1432. description: |
  1433. the integration ID
  1434. type: string
  1435. required: true
  1436. produces:
  1437. - application/json
  1438. security:
  1439. - UserSecurity: []
  1440. responses:
  1441. '200':
  1442. description: |-
  1443. 200 response
  1444. schema:
  1445. type: object
  1446. properties:
  1447. _id:
  1448. type: string
  1449. delete:
  1450. operationId: delete_integration
  1451. summary: Delete integration
  1452. tags:
  1453. - Integrations
  1454. parameters:
  1455. - name: board
  1456. in: path
  1457. description: |
  1458. the board ID
  1459. type: string
  1460. required: true
  1461. - name: int
  1462. in: path
  1463. description: |
  1464. the integration ID
  1465. type: string
  1466. required: true
  1467. produces:
  1468. - application/json
  1469. security:
  1470. - UserSecurity: []
  1471. responses:
  1472. '200':
  1473. description: |-
  1474. 200 response
  1475. schema:
  1476. type: object
  1477. properties:
  1478. _id:
  1479. type: string
  1480. /api/boards/{board}/integrations/{int}/activities:
  1481. delete:
  1482. operationId: delete_integration_activities
  1483. summary: Delete subscribed activities
  1484. tags:
  1485. - Integrations
  1486. parameters:
  1487. - name: board
  1488. in: path
  1489. description: |
  1490. the board ID
  1491. type: string
  1492. required: true
  1493. - name: int
  1494. in: path
  1495. description: |
  1496. the integration ID
  1497. type: string
  1498. required: true
  1499. produces:
  1500. - application/json
  1501. security:
  1502. - UserSecurity: []
  1503. responses:
  1504. '200':
  1505. description: |-
  1506. 200 response
  1507. schema:
  1508. $ref: "#/definitions/Integrations"
  1509. post:
  1510. operationId: new_integration_activities
  1511. summary: Add subscribed activities
  1512. tags:
  1513. - Integrations
  1514. consumes:
  1515. - multipart/form-data
  1516. - application/json
  1517. parameters:
  1518. - name: activities
  1519. in: formData
  1520. description: the activities value
  1521. type: string
  1522. required: true
  1523. - name: board
  1524. in: path
  1525. description: |
  1526. the board ID
  1527. type: string
  1528. required: true
  1529. - name: int
  1530. in: path
  1531. description: |
  1532. the integration ID
  1533. type: string
  1534. required: true
  1535. produces:
  1536. - application/json
  1537. security:
  1538. - UserSecurity: []
  1539. responses:
  1540. '200':
  1541. description: |-
  1542. 200 response
  1543. schema:
  1544. $ref: "#/definitions/Integrations"
  1545. /api/boards/{board}/labels:
  1546. put:
  1547. operationId: add_board_label
  1548. summary: Add a label to a board
  1549. description: |
  1550. If the board doesn't have the name/color label, this function
  1551. adds the label to the board.
  1552. tags:
  1553. - Boards
  1554. consumes:
  1555. - multipart/form-data
  1556. - application/json
  1557. parameters:
  1558. - name: label
  1559. in: formData
  1560. description: the label value
  1561. type: string
  1562. required: true
  1563. - name: board
  1564. in: path
  1565. description: |
  1566. the board
  1567. type: string
  1568. required: true
  1569. produces:
  1570. - application/json
  1571. security:
  1572. - UserSecurity: []
  1573. responses:
  1574. '200':
  1575. description: |-
  1576. 200 response
  1577. schema:
  1578. type: string
  1579. /api/boards/{board}/lists:
  1580. get:
  1581. operationId: get_all_lists
  1582. summary: Get the list of Lists attached to a board
  1583. tags:
  1584. - Lists
  1585. parameters:
  1586. - name: board
  1587. in: path
  1588. description: |
  1589. the board ID
  1590. type: string
  1591. required: true
  1592. produces:
  1593. - application/json
  1594. security:
  1595. - UserSecurity: []
  1596. responses:
  1597. '200':
  1598. description: |-
  1599. 200 response
  1600. schema:
  1601. type: array
  1602. items:
  1603. type: object
  1604. properties:
  1605. _id:
  1606. type: string
  1607. title:
  1608. type: string
  1609. post:
  1610. operationId: new_list
  1611. summary: Add a List to a board
  1612. tags:
  1613. - Lists
  1614. consumes:
  1615. - multipart/form-data
  1616. - application/json
  1617. parameters:
  1618. - name: title
  1619. in: formData
  1620. description: |
  1621. the title of the List
  1622. type: string
  1623. required: true
  1624. - name: board
  1625. in: path
  1626. description: |
  1627. the board ID
  1628. type: string
  1629. required: true
  1630. produces:
  1631. - application/json
  1632. security:
  1633. - UserSecurity: []
  1634. responses:
  1635. '200':
  1636. description: |-
  1637. 200 response
  1638. schema:
  1639. type: object
  1640. properties:
  1641. _id:
  1642. type: string
  1643. /api/boards/{board}/lists/{list}:
  1644. get:
  1645. operationId: get_list
  1646. summary: Get a List attached to a board
  1647. tags:
  1648. - Lists
  1649. parameters:
  1650. - name: board
  1651. in: path
  1652. description: |
  1653. the board ID
  1654. type: string
  1655. required: true
  1656. - name: list
  1657. in: path
  1658. description: |
  1659. the List ID
  1660. type: string
  1661. required: true
  1662. produces:
  1663. - application/json
  1664. security:
  1665. - UserSecurity: []
  1666. responses:
  1667. '200':
  1668. description: |-
  1669. 200 response
  1670. schema:
  1671. $ref: "#/definitions/Lists"
  1672. delete:
  1673. operationId: delete_list
  1674. summary: Delete a List
  1675. description: |
  1676. This **deletes** a list from a board.
  1677. The list is not put in the recycle bin.
  1678. tags:
  1679. - Lists
  1680. parameters:
  1681. - name: board
  1682. in: path
  1683. description: |
  1684. the board ID
  1685. type: string
  1686. required: true
  1687. - name: list
  1688. in: path
  1689. description: |
  1690. the ID of the list to remove
  1691. type: string
  1692. required: true
  1693. produces:
  1694. - application/json
  1695. security:
  1696. - UserSecurity: []
  1697. responses:
  1698. '200':
  1699. description: |-
  1700. 200 response
  1701. schema:
  1702. type: object
  1703. properties:
  1704. _id:
  1705. type: string
  1706. /api/boards/{board}/lists/{list}/cards:
  1707. get:
  1708. operationId: get_all_cards
  1709. summary: Get all Cards attached to a List
  1710. tags:
  1711. - Cards
  1712. parameters:
  1713. - name: board
  1714. in: path
  1715. description: |
  1716. the board ID
  1717. type: string
  1718. required: true
  1719. - name: list
  1720. in: path
  1721. description: |
  1722. the list ID
  1723. type: string
  1724. required: true
  1725. produces:
  1726. - application/json
  1727. security:
  1728. - UserSecurity: []
  1729. responses:
  1730. '200':
  1731. description: |-
  1732. 200 response
  1733. schema:
  1734. type: array
  1735. items:
  1736. type: object
  1737. properties:
  1738. _id:
  1739. type: string
  1740. title:
  1741. type: string
  1742. description:
  1743. type: string
  1744. post:
  1745. operationId: new_card
  1746. summary: Create a new Card
  1747. tags:
  1748. - Cards
  1749. consumes:
  1750. - multipart/form-data
  1751. - application/json
  1752. parameters:
  1753. - name: authorId
  1754. in: formData
  1755. description: the authorId value
  1756. type: string
  1757. required: true
  1758. - name: members
  1759. in: formData
  1760. description: |
  1761. the member IDs list of the new card
  1762. type: string
  1763. required: false
  1764. - name: assignees
  1765. in: formData
  1766. description: |
  1767. the array of maximum one ID of assignee of the new card
  1768. type: string
  1769. required: false
  1770. - name: title
  1771. in: formData
  1772. description: |
  1773. the title of the new card
  1774. type: string
  1775. required: true
  1776. - name: description
  1777. in: formData
  1778. description: |
  1779. the description of the new card
  1780. type: string
  1781. required: true
  1782. - name: swimlaneId
  1783. in: formData
  1784. description: |
  1785. the swimlane ID of the new card
  1786. type: string
  1787. required: true
  1788. - name: board
  1789. in: path
  1790. description: |
  1791. the board ID of the new card
  1792. type: string
  1793. required: true
  1794. - name: list
  1795. in: path
  1796. description: |
  1797. the list ID of the new card
  1798. type: string
  1799. required: true
  1800. produces:
  1801. - application/json
  1802. security:
  1803. - UserSecurity: []
  1804. responses:
  1805. '200':
  1806. description: |-
  1807. 200 response
  1808. schema:
  1809. type: object
  1810. properties:
  1811. _id:
  1812. type: string
  1813. /api/boards/{board}/lists/{list}/cards/{card}:
  1814. get:
  1815. operationId: get_card
  1816. summary: Get a Card
  1817. tags:
  1818. - Cards
  1819. parameters:
  1820. - name: board
  1821. in: path
  1822. description: |
  1823. the board ID
  1824. type: string
  1825. required: true
  1826. - name: list
  1827. in: path
  1828. description: |
  1829. the list ID of the card
  1830. type: string
  1831. required: true
  1832. - name: card
  1833. in: path
  1834. description: |
  1835. the card ID
  1836. type: string
  1837. required: true
  1838. produces:
  1839. - application/json
  1840. security:
  1841. - UserSecurity: []
  1842. responses:
  1843. '200':
  1844. description: |-
  1845. 200 response
  1846. schema:
  1847. $ref: "#/definitions/Cards"
  1848. put:
  1849. operationId: edit_card
  1850. summary: Edit Fields in a Card
  1851. description: |
  1852. Edit a card
  1853. The color has to be chosen between `white`, `green`, `yellow`, `orange`,
  1854. `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`,
  1855. `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`,
  1856. `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`,
  1857. `indigo`:
  1858. <img src="/card-colors.png" width="40%" alt="Wekan card colors" />
  1859. Note: setting the color to white has the same effect than removing it.
  1860. tags:
  1861. - Cards
  1862. consumes:
  1863. - multipart/form-data
  1864. - application/json
  1865. parameters:
  1866. - name: title
  1867. in: formData
  1868. description: |
  1869. the new title of the card
  1870. type: string
  1871. required: false
  1872. - name: sort
  1873. in: formData
  1874. description: |
  1875. the new sort value of the card
  1876. type: string
  1877. required: false
  1878. - name: parentId
  1879. in: formData
  1880. description: |
  1881. change the parent of the card
  1882. type: string
  1883. required: false
  1884. - name: description
  1885. in: formData
  1886. description: |
  1887. the new description of the card
  1888. type: string
  1889. required: false
  1890. - name: color
  1891. in: formData
  1892. description: |
  1893. the new color of the card
  1894. type: string
  1895. required: false
  1896. - name: vote
  1897. in: formData
  1898. description: |
  1899. the vote object
  1900. type: object
  1901. required: false
  1902. - name: poker
  1903. in: formData
  1904. description: |
  1905. the poker object
  1906. type: object
  1907. required: false
  1908. - name: labelIds
  1909. in: formData
  1910. description: |
  1911. the new list of label IDs attached to the card
  1912. type: string
  1913. required: false
  1914. - name: requestedBy
  1915. in: formData
  1916. description: |
  1917. the new requestedBy field of the card
  1918. type: string
  1919. required: false
  1920. - name: assignedBy
  1921. in: formData
  1922. description: |
  1923. the new assignedBy field of the card
  1924. type: string
  1925. required: false
  1926. - name: receivedAt
  1927. in: formData
  1928. description: |
  1929. the new receivedAt field of the card
  1930. type: string
  1931. required: false
  1932. - name: startAt
  1933. in: formData
  1934. description: |
  1935. the new startAt field of the card
  1936. type: string
  1937. required: false
  1938. - name: dueAt
  1939. in: formData
  1940. description: |
  1941. the new dueAt field of the card
  1942. type: string
  1943. required: false
  1944. - name: endAt
  1945. in: formData
  1946. description: |
  1947. the new endAt field of the card
  1948. type: string
  1949. required: false
  1950. - name: spentTime
  1951. in: formData
  1952. description: |
  1953. the new spentTime field of the card
  1954. type: string
  1955. required: false
  1956. - name: isOverTime
  1957. in: formData
  1958. description: |
  1959. the new isOverTime field of the card
  1960. type: boolean
  1961. required: false
  1962. - name: customFields
  1963. in: formData
  1964. description: |
  1965. the new customFields value of the card
  1966. type: string
  1967. required: false
  1968. - name: members
  1969. in: formData
  1970. description: |
  1971. the new list of member IDs attached to the card
  1972. type: string
  1973. required: false
  1974. - name: assignees
  1975. in: formData
  1976. description: |
  1977. the array of maximum one ID of assignee attached to the card
  1978. type: string
  1979. required: false
  1980. - name: swimlaneId
  1981. in: formData
  1982. description: |
  1983. the new swimlane ID of the card
  1984. type: string
  1985. required: false
  1986. - name: listId
  1987. in: formData
  1988. description: |
  1989. the new list ID of the card (move operation)
  1990. type: string
  1991. required: false
  1992. - name: authorId
  1993. in: formData
  1994. description: |
  1995. change the owner of the card
  1996. type: string
  1997. required: false
  1998. - name: board
  1999. in: path
  2000. description: |
  2001. the board ID of the card
  2002. type: string
  2003. required: true
  2004. - name: list
  2005. in: path
  2006. description: |
  2007. the list ID of the card
  2008. type: string
  2009. required: true
  2010. - name: card
  2011. in: path
  2012. description: |
  2013. the ID of the card
  2014. type: string
  2015. required: true
  2016. produces:
  2017. - application/json
  2018. security:
  2019. - UserSecurity: []
  2020. responses:
  2021. '200':
  2022. description: |-
  2023. 200 response
  2024. schema:
  2025. type: object
  2026. properties:
  2027. _id:
  2028. type: string
  2029. delete:
  2030. operationId: delete_card
  2031. summary: Delete a card from a board
  2032. description: |
  2033. This operation **deletes** a card, and therefore the card
  2034. is not put in the recycle bin.
  2035. tags:
  2036. - Cards
  2037. parameters:
  2038. - name: board
  2039. in: path
  2040. description: |
  2041. the board ID of the card
  2042. type: string
  2043. required: true
  2044. - name: list
  2045. in: path
  2046. description: |
  2047. the list ID of the card
  2048. type: string
  2049. required: true
  2050. - name: card
  2051. in: path
  2052. description: |
  2053. the ID of the card
  2054. type: string
  2055. required: true
  2056. produces:
  2057. - application/json
  2058. security:
  2059. - UserSecurity: []
  2060. responses:
  2061. '200':
  2062. description: |-
  2063. 200 response
  2064. schema:
  2065. type: object
  2066. properties:
  2067. _id:
  2068. type: string
  2069. /api/boards/{board}/lists/{list}/cards_count:
  2070. get:
  2071. operationId: get_list_cards_count
  2072. summary: Get a cards count to a list
  2073. tags:
  2074. - Cards
  2075. parameters:
  2076. - name: board
  2077. in: path
  2078. description: |
  2079. the board ID
  2080. type: string
  2081. required: true
  2082. - name: list
  2083. in: path
  2084. description: |
  2085. the List ID
  2086. type: string
  2087. required: true
  2088. produces:
  2089. - application/json
  2090. security:
  2091. - UserSecurity: []
  2092. responses:
  2093. '200':
  2094. description: |-
  2095. 200 response
  2096. schema:
  2097. type: object
  2098. properties:
  2099. list_cards_count:
  2100. type: integer
  2101. /api/boards/{board}/members/{member}:
  2102. post:
  2103. operationId: set_board_member_permission
  2104. summary: Change the permission of a member of a board
  2105. tags:
  2106. - Boards
  2107. - Users
  2108. consumes:
  2109. - multipart/form-data
  2110. - application/json
  2111. parameters:
  2112. - name: isAdmin
  2113. in: formData
  2114. description: |
  2115. admin capability
  2116. type: boolean
  2117. required: true
  2118. - name: isNoComments
  2119. in: formData
  2120. description: |
  2121. NoComments capability
  2122. type: boolean
  2123. required: true
  2124. - name: isCommentOnly
  2125. in: formData
  2126. description: |
  2127. CommentsOnly capability
  2128. type: boolean
  2129. required: true
  2130. - name: isWorker
  2131. in: formData
  2132. description: |
  2133. Worker capability
  2134. type: boolean
  2135. required: true
  2136. - name: board
  2137. in: path
  2138. description: |
  2139. the ID of the board that we are changing
  2140. type: string
  2141. required: true
  2142. - name: member
  2143. in: path
  2144. description: |
  2145. the ID of the user to change permissions
  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. /api/boards/{board}/members/{user}/add:
  2157. post:
  2158. operationId: add_board_member
  2159. summary: Add New Board Member with Role
  2160. description: |
  2161. Only the admin user (the first user) can call the REST API.
  2162. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  2163. to later change the permissions.
  2164. tags:
  2165. - Users
  2166. - Boards
  2167. consumes:
  2168. - multipart/form-data
  2169. - application/json
  2170. parameters:
  2171. - name: action
  2172. in: formData
  2173. description: the action value
  2174. type: string
  2175. required: true
  2176. - name: isAdmin
  2177. in: formData
  2178. description: |
  2179. is the user an admin of the board
  2180. type: boolean
  2181. required: true
  2182. - name: isNoComments
  2183. in: formData
  2184. description: |
  2185. disable comments
  2186. type: boolean
  2187. required: true
  2188. - name: isCommentOnly
  2189. in: formData
  2190. description: |
  2191. only enable comments
  2192. type: boolean
  2193. required: true
  2194. - name: board
  2195. in: path
  2196. description: |
  2197. the board ID
  2198. type: string
  2199. required: true
  2200. - name: user
  2201. in: path
  2202. description: |
  2203. the user ID
  2204. type: string
  2205. required: true
  2206. produces:
  2207. - application/json
  2208. security:
  2209. - UserSecurity: []
  2210. responses:
  2211. '200':
  2212. description: |-
  2213. 200 response
  2214. schema:
  2215. type: object
  2216. properties:
  2217. _id:
  2218. type: string
  2219. title:
  2220. type: string
  2221. /api/boards/{board}/members/{user}/remove:
  2222. post:
  2223. operationId: remove_board_member
  2224. summary: Remove Member from Board
  2225. description: |
  2226. Only the admin user (the first user) can call the REST API.
  2227. tags:
  2228. - Users
  2229. - Boards
  2230. consumes:
  2231. - multipart/form-data
  2232. - application/json
  2233. parameters:
  2234. - name: action
  2235. in: formData
  2236. description: |
  2237. the action (needs to be `remove`)
  2238. type: string
  2239. required: true
  2240. - name: board
  2241. in: path
  2242. description: |
  2243. the board ID
  2244. type: string
  2245. required: true
  2246. - name: user
  2247. in: path
  2248. description: |
  2249. the user ID
  2250. type: string
  2251. required: true
  2252. produces:
  2253. - application/json
  2254. security:
  2255. - UserSecurity: []
  2256. responses:
  2257. '200':
  2258. description: |-
  2259. 200 response
  2260. schema:
  2261. type: object
  2262. properties:
  2263. _id:
  2264. type: string
  2265. title:
  2266. type: string
  2267. /api/boards/{board}/swimlanes:
  2268. get:
  2269. operationId: get_all_swimlanes
  2270. summary: Get the list of swimlanes attached to a board
  2271. tags:
  2272. - Swimlanes
  2273. parameters:
  2274. - name: board
  2275. in: path
  2276. description: |
  2277. the ID of the board
  2278. type: string
  2279. required: true
  2280. produces:
  2281. - application/json
  2282. security:
  2283. - UserSecurity: []
  2284. responses:
  2285. '200':
  2286. description: |-
  2287. 200 response
  2288. schema:
  2289. type: array
  2290. items:
  2291. type: object
  2292. properties:
  2293. _id:
  2294. type: string
  2295. title:
  2296. type: string
  2297. post:
  2298. operationId: new_swimlane
  2299. summary: Add a swimlane to a board
  2300. tags:
  2301. - Swimlanes
  2302. consumes:
  2303. - multipart/form-data
  2304. - application/json
  2305. parameters:
  2306. - name: title
  2307. in: formData
  2308. description: |
  2309. the new title of the swimlane
  2310. type: string
  2311. required: true
  2312. - name: board
  2313. in: path
  2314. description: |
  2315. the ID of the board
  2316. type: string
  2317. required: true
  2318. produces:
  2319. - application/json
  2320. security:
  2321. - UserSecurity: []
  2322. responses:
  2323. '200':
  2324. description: |-
  2325. 200 response
  2326. schema:
  2327. type: object
  2328. properties:
  2329. _id:
  2330. type: string
  2331. /api/boards/{board}/swimlanes/{swimlane}:
  2332. get:
  2333. operationId: get_swimlane
  2334. summary: Get a swimlane
  2335. tags:
  2336. - Swimlanes
  2337. parameters:
  2338. - name: board
  2339. in: path
  2340. description: |
  2341. the ID of the board
  2342. type: string
  2343. required: true
  2344. - name: swimlane
  2345. in: path
  2346. description: |
  2347. the ID of the swimlane
  2348. type: string
  2349. required: true
  2350. produces:
  2351. - application/json
  2352. security:
  2353. - UserSecurity: []
  2354. responses:
  2355. '200':
  2356. description: |-
  2357. 200 response
  2358. schema:
  2359. $ref: "#/definitions/Swimlanes"
  2360. delete:
  2361. operationId: delete_swimlane
  2362. summary: Delete a swimlane
  2363. description: |
  2364. The swimlane will be deleted, not moved to the recycle bin
  2365. tags:
  2366. - Swimlanes
  2367. parameters:
  2368. - name: board
  2369. in: path
  2370. description: |
  2371. the ID of the board
  2372. type: string
  2373. required: true
  2374. - name: swimlane
  2375. in: path
  2376. description: |
  2377. the ID of the swimlane
  2378. type: string
  2379. required: true
  2380. produces:
  2381. - application/json
  2382. security:
  2383. - UserSecurity: []
  2384. responses:
  2385. '200':
  2386. description: |-
  2387. 200 response
  2388. schema:
  2389. type: object
  2390. properties:
  2391. _id:
  2392. type: string
  2393. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2394. get:
  2395. operationId: get_swimlane_cards
  2396. summary: get all cards attached to a swimlane
  2397. tags:
  2398. - Cards
  2399. parameters:
  2400. - name: board
  2401. in: path
  2402. description: |
  2403. the board ID
  2404. type: string
  2405. required: true
  2406. - name: swimlane
  2407. in: path
  2408. description: |
  2409. the swimlane ID
  2410. type: string
  2411. required: true
  2412. produces:
  2413. - application/json
  2414. security:
  2415. - UserSecurity: []
  2416. responses:
  2417. '200':
  2418. description: |-
  2419. 200 response
  2420. schema:
  2421. type: array
  2422. items:
  2423. type: object
  2424. properties:
  2425. _id:
  2426. type: string
  2427. title:
  2428. type: string
  2429. description:
  2430. type: string
  2431. listId:
  2432. type: string
  2433. /api/boards_count:
  2434. get:
  2435. operationId: get_boards_count
  2436. summary: Get public and private boards count
  2437. tags:
  2438. - Boards
  2439. produces:
  2440. - application/json
  2441. security:
  2442. - UserSecurity: []
  2443. responses:
  2444. '200':
  2445. description: |-
  2446. 200 response
  2447. schema:
  2448. type: object
  2449. properties:
  2450. private:
  2451. type: integer
  2452. public:
  2453. type: integer
  2454. /api/createtoken/{user}:
  2455. post:
  2456. operationId: create_user_token
  2457. summary: Create a user token
  2458. description: |
  2459. Only the admin user (the first user) can call the REST API.
  2460. tags:
  2461. - Users
  2462. consumes:
  2463. - multipart/form-data
  2464. - application/json
  2465. parameters:
  2466. - name: user
  2467. in: path
  2468. description: |
  2469. the ID of the user to create token for.
  2470. type: string
  2471. required: true
  2472. produces:
  2473. - application/json
  2474. security:
  2475. - UserSecurity: []
  2476. responses:
  2477. '200':
  2478. description: |-
  2479. 200 response
  2480. schema:
  2481. type: object
  2482. properties:
  2483. _id:
  2484. type: string
  2485. /api/user:
  2486. get:
  2487. operationId: get_current_user
  2488. summary: returns the current user
  2489. tags:
  2490. - Users
  2491. produces:
  2492. - application/json
  2493. security:
  2494. - UserSecurity: []
  2495. responses:
  2496. '200':
  2497. description: |-
  2498. 200 response
  2499. schema:
  2500. $ref: "#/definitions/Users"
  2501. /api/users:
  2502. get:
  2503. operationId: get_all_users
  2504. summary: return all the users
  2505. description: |
  2506. Only the admin user (the first user) can call the REST API.
  2507. tags:
  2508. - Users
  2509. produces:
  2510. - application/json
  2511. security:
  2512. - UserSecurity: []
  2513. responses:
  2514. '200':
  2515. description: |-
  2516. 200 response
  2517. schema:
  2518. type: array
  2519. items:
  2520. type: object
  2521. properties:
  2522. _id:
  2523. type: string
  2524. username:
  2525. type: string
  2526. post:
  2527. operationId: new_user
  2528. summary: Create a new user
  2529. description: |
  2530. Only the admin user (the first user) can call the REST API.
  2531. tags:
  2532. - Users
  2533. consumes:
  2534. - multipart/form-data
  2535. - application/json
  2536. parameters:
  2537. - name: username
  2538. in: formData
  2539. description: |
  2540. the new username
  2541. type: string
  2542. required: true
  2543. - name: email
  2544. in: formData
  2545. description: |
  2546. the email of the new user
  2547. type: string
  2548. required: true
  2549. - name: password
  2550. in: formData
  2551. description: |
  2552. the password of the new user
  2553. type: string
  2554. required: true
  2555. produces:
  2556. - application/json
  2557. security:
  2558. - UserSecurity: []
  2559. responses:
  2560. '200':
  2561. description: |-
  2562. 200 response
  2563. schema:
  2564. type: object
  2565. properties:
  2566. _id:
  2567. type: string
  2568. /api/users/{user}:
  2569. get:
  2570. operationId: get_user
  2571. summary: get a given user
  2572. description: |
  2573. Only the admin user (the first user) can call the REST API.
  2574. tags:
  2575. - Users
  2576. parameters:
  2577. - name: user
  2578. in: path
  2579. description: |
  2580. the user ID or username
  2581. type: string
  2582. required: true
  2583. produces:
  2584. - application/json
  2585. security:
  2586. - UserSecurity: []
  2587. responses:
  2588. '200':
  2589. description: |-
  2590. 200 response
  2591. schema:
  2592. $ref: "#/definitions/Users"
  2593. put:
  2594. operationId: edit_user
  2595. summary: edit a given user
  2596. description: |
  2597. Only the admin user (the first user) can call the REST API.
  2598. Possible values for *action*:
  2599. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2600. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2601. - `enableLogin`: Enable a user
  2602. tags:
  2603. - Users
  2604. consumes:
  2605. - multipart/form-data
  2606. - application/json
  2607. parameters:
  2608. - name: action
  2609. in: formData
  2610. description: |
  2611. the action
  2612. type: string
  2613. required: true
  2614. - name: user
  2615. in: path
  2616. description: |
  2617. the user ID
  2618. type: string
  2619. required: true
  2620. produces:
  2621. - application/json
  2622. security:
  2623. - UserSecurity: []
  2624. responses:
  2625. '200':
  2626. description: |-
  2627. 200 response
  2628. schema:
  2629. type: object
  2630. properties:
  2631. _id:
  2632. type: string
  2633. title:
  2634. type: string
  2635. delete:
  2636. operationId: delete_user
  2637. summary: Delete a user
  2638. description: |
  2639. Only the admin user (the first user) can call the REST API.
  2640. tags:
  2641. - Users
  2642. parameters:
  2643. - name: user
  2644. in: path
  2645. description: |
  2646. the ID of the user to delete
  2647. type: string
  2648. required: true
  2649. produces:
  2650. - application/json
  2651. security:
  2652. - UserSecurity: []
  2653. responses:
  2654. '200':
  2655. description: |-
  2656. 200 response
  2657. schema:
  2658. type: object
  2659. properties:
  2660. _id:
  2661. type: string
  2662. /api/users/{user}/boards:
  2663. get:
  2664. operationId: get_boards_from_user
  2665. summary: Get all boards attached to a user
  2666. tags:
  2667. - Boards
  2668. parameters:
  2669. - name: user
  2670. in: path
  2671. description: |
  2672. the ID of the user to retrieve the data
  2673. type: string
  2674. required: true
  2675. produces:
  2676. - application/json
  2677. security:
  2678. - UserSecurity: []
  2679. responses:
  2680. '200':
  2681. description: |-
  2682. 200 response
  2683. schema:
  2684. type: array
  2685. items:
  2686. type: object
  2687. properties:
  2688. _id:
  2689. type: string
  2690. title:
  2691. type: string
  2692. definitions:
  2693. Boards:
  2694. type: object
  2695. description: This is a Board.
  2696. properties:
  2697. title:
  2698. description: |
  2699. The title of the board
  2700. type: string
  2701. slug:
  2702. description: |
  2703. The title slugified.
  2704. type: string
  2705. archived:
  2706. description: |
  2707. Is the board archived?
  2708. type: boolean
  2709. archivedAt:
  2710. description: |
  2711. Latest archiving time of the board
  2712. type: string
  2713. x-nullable: true
  2714. createdAt:
  2715. description: |
  2716. Creation time of the board
  2717. type: string
  2718. modifiedAt:
  2719. description: |
  2720. Last modification time of the board
  2721. type: string
  2722. x-nullable: true
  2723. stars:
  2724. description: |
  2725. How many stars the board has
  2726. type: number
  2727. labels:
  2728. description: |
  2729. List of labels attached to a board
  2730. type: array
  2731. items:
  2732. $ref: "#/definitions/BoardsLabels"
  2733. x-nullable: true
  2734. members:
  2735. description: |
  2736. List of members of a board
  2737. type: array
  2738. items:
  2739. $ref: "#/definitions/BoardsMembers"
  2740. permission:
  2741. description: |
  2742. visibility of the board
  2743. type: string
  2744. enum:
  2745. - public
  2746. - private
  2747. orgs:
  2748. description: |
  2749. the list of organizations that a board belongs to
  2750. type: array
  2751. items:
  2752. $ref: "#/definitions/BoardsOrgs"
  2753. x-nullable: true
  2754. teams:
  2755. description: |
  2756. the list of teams that a board belongs to
  2757. type: array
  2758. items:
  2759. $ref: "#/definitions/BoardsTeams"
  2760. x-nullable: true
  2761. color:
  2762. description: |
  2763. The color of the board.
  2764. type: string
  2765. enum:
  2766. - belize
  2767. - nephritis
  2768. - pomegranate
  2769. - pumpkin
  2770. - wisteria
  2771. - moderatepink
  2772. - strongcyan
  2773. - limegreen
  2774. - midnight
  2775. - dark
  2776. - relax
  2777. - corteza
  2778. - clearblue
  2779. - natural
  2780. - modern
  2781. - moderndark
  2782. description:
  2783. description: |
  2784. The description of the board
  2785. type: string
  2786. x-nullable: true
  2787. subtasksDefaultBoardId:
  2788. description: |
  2789. The default board ID assigned to subtasks.
  2790. type: string
  2791. x-nullable: true
  2792. subtasksDefaultListId:
  2793. description: |
  2794. The default List ID assigned to subtasks.
  2795. type: string
  2796. x-nullable: true
  2797. dateSettingsDefaultBoardId:
  2798. type: string
  2799. x-nullable: true
  2800. dateSettingsDefaultListId:
  2801. type: string
  2802. x-nullable: true
  2803. allowsSubtasks:
  2804. description: |
  2805. Does the board allows subtasks?
  2806. type: boolean
  2807. allowsAttachments:
  2808. description: |
  2809. Does the board allows attachments?
  2810. type: boolean
  2811. allowsChecklists:
  2812. description: |
  2813. Does the board allows checklists?
  2814. type: boolean
  2815. allowsComments:
  2816. description: |
  2817. Does the board allows comments?
  2818. type: boolean
  2819. allowsDescriptionTitle:
  2820. description: |
  2821. Does the board allows description title?
  2822. type: boolean
  2823. allowsDescriptionText:
  2824. description: |
  2825. Does the board allows description text?
  2826. type: boolean
  2827. allowsDescriptionTextOnMinicard:
  2828. description: |
  2829. Does the board allows description text on minicard?
  2830. type: boolean
  2831. allowsCardNumber:
  2832. description: |
  2833. Does the board allows card numbers?
  2834. type: boolean
  2835. allowsActivities:
  2836. description: |
  2837. Does the board allows comments?
  2838. type: boolean
  2839. allowsLabels:
  2840. description: |
  2841. Does the board allows labels?
  2842. type: boolean
  2843. allowsCreator:
  2844. description: |
  2845. Does the board allow creator?
  2846. type: boolean
  2847. allowsAssignee:
  2848. description: |
  2849. Does the board allows assignee?
  2850. type: boolean
  2851. allowsMembers:
  2852. description: |
  2853. Does the board allows members?
  2854. type: boolean
  2855. allowsRequestedBy:
  2856. description: |
  2857. Does the board allows requested by?
  2858. type: boolean
  2859. allowsCardSortingByNumber:
  2860. description: |
  2861. Does the board allows card sorting by number?
  2862. type: boolean
  2863. allowsShowLists:
  2864. description: |
  2865. Does the board allows show lists on the card?
  2866. type: boolean
  2867. allowsAssignedBy:
  2868. description: |
  2869. Does the board allows requested by?
  2870. type: boolean
  2871. allowsReceivedDate:
  2872. description: |
  2873. Does the board allows received date?
  2874. type: boolean
  2875. allowsStartDate:
  2876. description: |
  2877. Does the board allows start date?
  2878. type: boolean
  2879. allowsEndDate:
  2880. description: |
  2881. Does the board allows end date?
  2882. type: boolean
  2883. allowsDueDate:
  2884. description: |
  2885. Does the board allows due date?
  2886. type: boolean
  2887. presentParentTask:
  2888. description: |
  2889. Controls how to present the parent task:
  2890. - `prefix-with-full-path`: add a prefix with the full path
  2891. - `prefix-with-parent`: add a prefisx with the parent name
  2892. - `subtext-with-full-path`: add a subtext with the full path
  2893. - `subtext-with-parent`: add a subtext with the parent name
  2894. - `no-parent`: does not show the parent at all
  2895. type: string
  2896. enum:
  2897. - prefix-with-full-path
  2898. - prefix-with-parent
  2899. - subtext-with-full-path
  2900. - subtext-with-parent
  2901. - no-parent
  2902. x-nullable: true
  2903. receivedAt:
  2904. description: |
  2905. Date the card was received
  2906. type: string
  2907. x-nullable: true
  2908. startAt:
  2909. description: |
  2910. Starting date of the board.
  2911. type: string
  2912. x-nullable: true
  2913. dueAt:
  2914. description: |
  2915. Due date of the board.
  2916. type: string
  2917. x-nullable: true
  2918. endAt:
  2919. description: |
  2920. End date of the board.
  2921. type: string
  2922. x-nullable: true
  2923. spentTime:
  2924. description: |
  2925. Time spent in the board.
  2926. type: number
  2927. x-nullable: true
  2928. isOvertime:
  2929. description: |
  2930. Is the board overtimed?
  2931. type: boolean
  2932. x-nullable: true
  2933. type:
  2934. description: |
  2935. The type of board
  2936. possible values: board, template-board, template-container
  2937. type: string
  2938. enum:
  2939. - board
  2940. - template-board
  2941. - template-container
  2942. sort:
  2943. description: |
  2944. Sort value
  2945. type: number
  2946. required:
  2947. - title
  2948. - slug
  2949. - archived
  2950. - createdAt
  2951. - stars
  2952. - members
  2953. - permission
  2954. - color
  2955. - allowsSubtasks
  2956. - allowsAttachments
  2957. - allowsChecklists
  2958. - allowsComments
  2959. - allowsDescriptionTitle
  2960. - allowsDescriptionText
  2961. - allowsDescriptionTextOnMinicard
  2962. - allowsCardNumber
  2963. - allowsActivities
  2964. - allowsLabels
  2965. - allowsCreator
  2966. - allowsAssignee
  2967. - allowsMembers
  2968. - allowsRequestedBy
  2969. - allowsCardSortingByNumber
  2970. - allowsShowLists
  2971. - allowsAssignedBy
  2972. - allowsReceivedDate
  2973. - allowsStartDate
  2974. - allowsEndDate
  2975. - allowsDueDate
  2976. - type
  2977. - sort
  2978. BoardsLabels:
  2979. type: object
  2980. properties:
  2981. _id:
  2982. description: |
  2983. Unique id of a label
  2984. type: string
  2985. name:
  2986. description: |
  2987. Name of a label
  2988. type: string
  2989. color:
  2990. description: |
  2991. color of a label.
  2992. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  2993. `blue`, `sky`, `lime`, `pink`, `black`,
  2994. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  2995. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  2996. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  2997. type: string
  2998. enum:
  2999. - white
  3000. - green
  3001. - yellow
  3002. - orange
  3003. - red
  3004. - purple
  3005. - blue
  3006. - sky
  3007. - lime
  3008. - pink
  3009. - black
  3010. - silver
  3011. - peachpuff
  3012. - crimson
  3013. - plum
  3014. - darkgreen
  3015. - slateblue
  3016. - magenta
  3017. - gold
  3018. - navy
  3019. - gray
  3020. - saddlebrown
  3021. - paleturquoise
  3022. - mistyrose
  3023. - indigo
  3024. required:
  3025. - _id
  3026. - color
  3027. BoardsMembers:
  3028. type: object
  3029. properties:
  3030. userId:
  3031. description: |
  3032. The uniq ID of the member
  3033. type: string
  3034. isAdmin:
  3035. description: |
  3036. Is the member an admin of the board?
  3037. type: boolean
  3038. isActive:
  3039. description: |
  3040. Is the member active?
  3041. type: boolean
  3042. isNoComments:
  3043. description: |
  3044. Is the member not allowed to make comments
  3045. type: boolean
  3046. isCommentOnly:
  3047. description: |
  3048. Is the member only allowed to comment on the board
  3049. type: boolean
  3050. isWorker:
  3051. description: |
  3052. Is the member only allowed to move card, assign himself to card and comment
  3053. type: boolean
  3054. required:
  3055. - userId
  3056. - isAdmin
  3057. - isActive
  3058. BoardsOrgs:
  3059. type: object
  3060. properties:
  3061. orgId:
  3062. description: |
  3063. The uniq ID of the organization
  3064. type: string
  3065. orgDisplayName:
  3066. description: |
  3067. The display name of the organization
  3068. type: string
  3069. isActive:
  3070. description: |
  3071. Is the organization active?
  3072. type: boolean
  3073. required:
  3074. - orgId
  3075. - orgDisplayName
  3076. - isActive
  3077. BoardsTeams:
  3078. type: object
  3079. properties:
  3080. teamId:
  3081. description: |
  3082. The uniq ID of the team
  3083. type: string
  3084. teamDisplayName:
  3085. description: |
  3086. The display name of the team
  3087. type: string
  3088. isActive:
  3089. description: |
  3090. Is the team active?
  3091. type: boolean
  3092. required:
  3093. - teamId
  3094. - teamDisplayName
  3095. - isActive
  3096. CardComments:
  3097. type: object
  3098. description: A comment on a card
  3099. properties:
  3100. boardId:
  3101. description: |
  3102. the board ID
  3103. type: string
  3104. cardId:
  3105. description: |
  3106. the card ID
  3107. type: string
  3108. text:
  3109. description: |
  3110. the text of the comment
  3111. type: string
  3112. createdAt:
  3113. description: |
  3114. when was the comment created
  3115. type: string
  3116. modifiedAt:
  3117. type: string
  3118. userId:
  3119. description: |
  3120. the author ID of the comment
  3121. type: string
  3122. required:
  3123. - boardId
  3124. - cardId
  3125. - text
  3126. - createdAt
  3127. - modifiedAt
  3128. - userId
  3129. Cards:
  3130. type: object
  3131. properties:
  3132. title:
  3133. description: |
  3134. the title of the card
  3135. type: string
  3136. x-nullable: true
  3137. archived:
  3138. description: |
  3139. is the card archived
  3140. type: boolean
  3141. archivedAt:
  3142. description: |
  3143. latest archiving date
  3144. type: string
  3145. x-nullable: true
  3146. parentId:
  3147. description: |
  3148. ID of the parent card
  3149. type: string
  3150. x-nullable: true
  3151. listId:
  3152. description: |
  3153. List ID where the card is
  3154. type: string
  3155. x-nullable: true
  3156. swimlaneId:
  3157. description: |
  3158. Swimlane ID where the card is
  3159. type: string
  3160. boardId:
  3161. description: |
  3162. Board ID of the card
  3163. type: string
  3164. x-nullable: true
  3165. coverId:
  3166. description: |
  3167. Cover ID of the card
  3168. type: string
  3169. x-nullable: true
  3170. color:
  3171. type: string
  3172. enum:
  3173. - white
  3174. - green
  3175. - yellow
  3176. - orange
  3177. - red
  3178. - purple
  3179. - blue
  3180. - sky
  3181. - lime
  3182. - pink
  3183. - black
  3184. - silver
  3185. - peachpuff
  3186. - crimson
  3187. - plum
  3188. - darkgreen
  3189. - slateblue
  3190. - magenta
  3191. - gold
  3192. - navy
  3193. - gray
  3194. - saddlebrown
  3195. - paleturquoise
  3196. - mistyrose
  3197. - indigo
  3198. x-nullable: true
  3199. createdAt:
  3200. description: |
  3201. creation date
  3202. type: string
  3203. modifiedAt:
  3204. type: string
  3205. customFields:
  3206. description: |
  3207. list of custom fields
  3208. type: array
  3209. items:
  3210. $ref: "#/definitions/CardsCustomfields"
  3211. x-nullable: true
  3212. dateLastActivity:
  3213. description: |
  3214. Date of last activity
  3215. type: string
  3216. description:
  3217. description: |
  3218. description of the card
  3219. type: string
  3220. x-nullable: true
  3221. requestedBy:
  3222. description: |
  3223. who requested the card (ID of the user)
  3224. type: string
  3225. x-nullable: true
  3226. assignedBy:
  3227. description: |
  3228. who assigned the card (ID of the user)
  3229. type: string
  3230. x-nullable: true
  3231. labelIds:
  3232. description: |
  3233. list of labels ID the card has
  3234. type: array
  3235. items:
  3236. type: string
  3237. x-nullable: true
  3238. x-nullable: true
  3239. members:
  3240. description: |
  3241. list of members (user IDs)
  3242. type: array
  3243. items:
  3244. type: string
  3245. x-nullable: true
  3246. x-nullable: true
  3247. assignees:
  3248. description: |
  3249. who is assignee of the card (user ID),
  3250. maximum one ID of assignee in array.
  3251. type: array
  3252. items:
  3253. type: string
  3254. x-nullable: true
  3255. x-nullable: true
  3256. receivedAt:
  3257. description: |
  3258. Date the card was received
  3259. type: string
  3260. x-nullable: true
  3261. startAt:
  3262. description: |
  3263. Date the card was started to be worked on
  3264. type: string
  3265. x-nullable: true
  3266. dueAt:
  3267. description: |
  3268. Date the card is due
  3269. type: string
  3270. x-nullable: true
  3271. endAt:
  3272. description: |
  3273. Date the card ended
  3274. type: string
  3275. x-nullable: true
  3276. spentTime:
  3277. description: |
  3278. How much time has been spent on this
  3279. type: number
  3280. x-nullable: true
  3281. isOvertime:
  3282. description: |
  3283. is the card over time?
  3284. type: boolean
  3285. x-nullable: true
  3286. userId:
  3287. description: |
  3288. user ID of the author of the card
  3289. type: string
  3290. sort:
  3291. description: |
  3292. Sort value
  3293. type: number
  3294. x-nullable: true
  3295. subtaskSort:
  3296. description: |
  3297. subtask sort value
  3298. type: number
  3299. x-nullable: true
  3300. type:
  3301. description: |
  3302. type of the card
  3303. type: string
  3304. linkedId:
  3305. description: |
  3306. ID of the linked card
  3307. type: string
  3308. x-nullable: true
  3309. vote:
  3310. description: |
  3311. vote object, see below
  3312. $ref: "#/definitions/CardsVote"
  3313. x-nullable: true
  3314. poker:
  3315. description: |
  3316. poker object, see below
  3317. $ref: "#/definitions/CardsPoker"
  3318. x-nullable: true
  3319. targetId_gantt:
  3320. description: |
  3321. ID of card which is the child link in gantt view
  3322. type: array
  3323. items:
  3324. type: string
  3325. x-nullable: true
  3326. x-nullable: true
  3327. linkType_gantt:
  3328. description: |
  3329. ID of card which is the parent link in gantt view
  3330. type: array
  3331. items:
  3332. type: number
  3333. x-nullable: true
  3334. x-nullable: true
  3335. linkId_gantt:
  3336. description: |
  3337. ID of card which is the parent link in gantt view
  3338. type: array
  3339. items:
  3340. type: string
  3341. x-nullable: true
  3342. x-nullable: true
  3343. cardNumber:
  3344. description: |
  3345. A boardwise sequentially increasing number that is assigned
  3346. to every newly created card
  3347. type: number
  3348. x-nullable: true
  3349. required:
  3350. - archived
  3351. - swimlaneId
  3352. - createdAt
  3353. - modifiedAt
  3354. - dateLastActivity
  3355. - userId
  3356. - type
  3357. CardsVote:
  3358. type: object
  3359. properties:
  3360. question:
  3361. type: string
  3362. positive:
  3363. description: |
  3364. list of members (user IDs)
  3365. type: array
  3366. items:
  3367. type: string
  3368. x-nullable: true
  3369. negative:
  3370. description: |
  3371. list of members (user IDs)
  3372. type: array
  3373. items:
  3374. type: string
  3375. x-nullable: true
  3376. end:
  3377. type: string
  3378. public:
  3379. type: boolean
  3380. allowNonBoardMembers:
  3381. type: boolean
  3382. required:
  3383. - question
  3384. - public
  3385. - allowNonBoardMembers
  3386. CardsPoker:
  3387. type: object
  3388. properties:
  3389. question:
  3390. type: boolean
  3391. one:
  3392. description: |
  3393. poker card one
  3394. type: array
  3395. items:
  3396. type: string
  3397. x-nullable: true
  3398. two:
  3399. description: |
  3400. poker card two
  3401. type: array
  3402. items:
  3403. type: string
  3404. x-nullable: true
  3405. three:
  3406. description: |
  3407. poker card three
  3408. type: array
  3409. items:
  3410. type: string
  3411. x-nullable: true
  3412. five:
  3413. description: |
  3414. poker card five
  3415. type: array
  3416. items:
  3417. type: string
  3418. x-nullable: true
  3419. eight:
  3420. description: |
  3421. poker card eight
  3422. type: array
  3423. items:
  3424. type: string
  3425. x-nullable: true
  3426. thirteen:
  3427. description: |
  3428. poker card thirteen
  3429. type: array
  3430. items:
  3431. type: string
  3432. x-nullable: true
  3433. twenty:
  3434. description: |
  3435. poker card twenty
  3436. type: array
  3437. items:
  3438. type: string
  3439. x-nullable: true
  3440. forty:
  3441. description: |
  3442. poker card forty
  3443. type: array
  3444. items:
  3445. type: string
  3446. x-nullable: true
  3447. oneHundred:
  3448. description: |
  3449. poker card oneHundred
  3450. type: array
  3451. items:
  3452. type: string
  3453. x-nullable: true
  3454. unsure:
  3455. description: |
  3456. poker card unsure
  3457. type: array
  3458. items:
  3459. type: string
  3460. x-nullable: true
  3461. end:
  3462. type: string
  3463. allowNonBoardMembers:
  3464. type: boolean
  3465. estimation:
  3466. description: |
  3467. poker estimation value
  3468. type: number
  3469. required:
  3470. - question
  3471. - allowNonBoardMembers
  3472. CardsCustomfields:
  3473. type: object
  3474. ChecklistItems:
  3475. type: object
  3476. description: An item in a checklist
  3477. properties:
  3478. title:
  3479. description: |
  3480. the text of the item
  3481. type: string
  3482. sort:
  3483. description: |
  3484. the sorting field of the item
  3485. type: number
  3486. isFinished:
  3487. description: |
  3488. Is the item checked?
  3489. type: boolean
  3490. checklistId:
  3491. description: |
  3492. the checklist ID the item is attached to
  3493. type: string
  3494. cardId:
  3495. description: |
  3496. the card ID the item is attached to
  3497. type: string
  3498. createdAt:
  3499. type: string
  3500. x-nullable: true
  3501. modifiedAt:
  3502. type: string
  3503. required:
  3504. - title
  3505. - sort
  3506. - isFinished
  3507. - checklistId
  3508. - cardId
  3509. - modifiedAt
  3510. Checklists:
  3511. type: object
  3512. description: A Checklist
  3513. properties:
  3514. cardId:
  3515. description: |
  3516. The ID of the card the checklist is in
  3517. type: string
  3518. title:
  3519. description: |
  3520. the title of the checklist
  3521. type: string
  3522. finishedAt:
  3523. description: |
  3524. When was the checklist finished
  3525. type: string
  3526. x-nullable: true
  3527. createdAt:
  3528. description: |
  3529. Creation date of the checklist
  3530. type: string
  3531. modifiedAt:
  3532. type: string
  3533. sort:
  3534. description: |
  3535. sorting value of the checklist
  3536. type: number
  3537. required:
  3538. - cardId
  3539. - title
  3540. - createdAt
  3541. - modifiedAt
  3542. - sort
  3543. CustomFields:
  3544. type: object
  3545. description: A custom field on a card in the board
  3546. properties:
  3547. boardIds:
  3548. description: |
  3549. the ID of the board
  3550. type: array
  3551. items:
  3552. type: string
  3553. name:
  3554. description: |
  3555. name of the custom field
  3556. type: string
  3557. type:
  3558. description: |
  3559. type of the custom field
  3560. type: string
  3561. enum:
  3562. - text
  3563. - number
  3564. - date
  3565. - dropdown
  3566. - checkbox
  3567. - currency
  3568. - stringtemplate
  3569. settings:
  3570. description: |
  3571. settings of the custom field
  3572. $ref: "#/definitions/CustomFieldsSettings"
  3573. showOnCard:
  3574. description: |
  3575. should we show on the cards this custom field
  3576. type: boolean
  3577. automaticallyOnCard:
  3578. description: |
  3579. should the custom fields automatically be added on cards?
  3580. type: boolean
  3581. alwaysOnCard:
  3582. description: |
  3583. should the custom field be automatically added to all cards?
  3584. type: boolean
  3585. showLabelOnMiniCard:
  3586. description: |
  3587. should the label of the custom field be shown on minicards?
  3588. type: boolean
  3589. showSumAtTopOfList:
  3590. description: |
  3591. should the sum of the custom fields be shown at top of list?
  3592. type: boolean
  3593. createdAt:
  3594. type: string
  3595. x-nullable: true
  3596. modifiedAt:
  3597. type: string
  3598. required:
  3599. - boardIds
  3600. - name
  3601. - type
  3602. - settings
  3603. - showOnCard
  3604. - automaticallyOnCard
  3605. - alwaysOnCard
  3606. - showLabelOnMiniCard
  3607. - showSumAtTopOfList
  3608. - modifiedAt
  3609. CustomFieldsSettings:
  3610. type: object
  3611. properties:
  3612. currencyCode:
  3613. type: string
  3614. dropdownItems:
  3615. description: |
  3616. list of drop down items objects
  3617. type: array
  3618. items:
  3619. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3620. stringtemplateFormat:
  3621. type: string
  3622. stringtemplateSeparator:
  3623. type: string
  3624. CustomFieldsSettingsDropdownitems:
  3625. type: object
  3626. Integrations:
  3627. type: object
  3628. description: Integration with third-party applications
  3629. properties:
  3630. enabled:
  3631. description: |
  3632. is the integration enabled?
  3633. type: boolean
  3634. title:
  3635. description: |
  3636. name of the integration
  3637. type: string
  3638. x-nullable: true
  3639. type:
  3640. description: |
  3641. type of the integratation (Default to 'outgoing-webhooks')
  3642. type: string
  3643. activities:
  3644. description: |
  3645. activities the integration gets triggered (list)
  3646. type: array
  3647. items:
  3648. type: string
  3649. url:
  3650. type: string
  3651. token:
  3652. description: |
  3653. token of the integration
  3654. type: string
  3655. x-nullable: true
  3656. boardId:
  3657. description: |
  3658. Board ID of the integration
  3659. type: string
  3660. createdAt:
  3661. description: |
  3662. Creation date of the integration
  3663. type: string
  3664. modifiedAt:
  3665. type: string
  3666. userId:
  3667. description: |
  3668. user ID who created the interation
  3669. type: string
  3670. required:
  3671. - enabled
  3672. - type
  3673. - activities
  3674. - url
  3675. - boardId
  3676. - createdAt
  3677. - modifiedAt
  3678. - userId
  3679. Lists:
  3680. type: object
  3681. description: A list (column) in the Wekan board.
  3682. properties:
  3683. title:
  3684. description: |
  3685. the title of the list
  3686. type: string
  3687. starred:
  3688. description: |
  3689. if a list is stared
  3690. then we put it on the top
  3691. type: boolean
  3692. x-nullable: true
  3693. archived:
  3694. description: |
  3695. is the list archived
  3696. type: boolean
  3697. archivedAt:
  3698. description: |
  3699. latest archiving date
  3700. type: string
  3701. x-nullable: true
  3702. boardId:
  3703. description: |
  3704. the board associated to this list
  3705. type: string
  3706. swimlaneId:
  3707. description: |
  3708. the swimlane associated to this list. Used for templates
  3709. type: string
  3710. createdAt:
  3711. description: |
  3712. creation date
  3713. type: string
  3714. sort:
  3715. description: |
  3716. is the list sorted
  3717. type: number
  3718. x-nullable: true
  3719. updatedAt:
  3720. description: |
  3721. last update of the list
  3722. type: string
  3723. x-nullable: true
  3724. modifiedAt:
  3725. type: string
  3726. wipLimit:
  3727. description: |
  3728. WIP object, see below
  3729. $ref: "#/definitions/ListsWiplimit"
  3730. x-nullable: true
  3731. color:
  3732. description: |
  3733. the color of the list
  3734. type: string
  3735. enum:
  3736. - white
  3737. - green
  3738. - yellow
  3739. - orange
  3740. - red
  3741. - purple
  3742. - blue
  3743. - sky
  3744. - lime
  3745. - pink
  3746. - black
  3747. - silver
  3748. - peachpuff
  3749. - crimson
  3750. - plum
  3751. - darkgreen
  3752. - slateblue
  3753. - magenta
  3754. - gold
  3755. - navy
  3756. - gray
  3757. - saddlebrown
  3758. - paleturquoise
  3759. - mistyrose
  3760. - indigo
  3761. x-nullable: true
  3762. type:
  3763. description: |
  3764. The type of list
  3765. type: string
  3766. required:
  3767. - title
  3768. - archived
  3769. - boardId
  3770. - swimlaneId
  3771. - createdAt
  3772. - modifiedAt
  3773. - type
  3774. ListsWiplimit:
  3775. type: object
  3776. properties:
  3777. value:
  3778. description: |
  3779. value of the WIP
  3780. type: number
  3781. enabled:
  3782. description: |
  3783. is the WIP enabled
  3784. type: boolean
  3785. soft:
  3786. description: |
  3787. is the WIP a soft or hard requirement
  3788. type: boolean
  3789. required:
  3790. - value
  3791. - enabled
  3792. - soft
  3793. Swimlanes:
  3794. type: object
  3795. description: A swimlane is an line in the kaban board.
  3796. properties:
  3797. title:
  3798. description: |
  3799. the title of the swimlane
  3800. type: string
  3801. archived:
  3802. description: |
  3803. is the swimlane archived?
  3804. type: boolean
  3805. archivedAt:
  3806. description: |
  3807. latest archiving date of the swimlane
  3808. type: string
  3809. x-nullable: true
  3810. boardId:
  3811. description: |
  3812. the ID of the board the swimlane is attached to
  3813. type: string
  3814. createdAt:
  3815. description: |
  3816. creation date of the swimlane
  3817. type: string
  3818. sort:
  3819. description: |
  3820. the sort value of the swimlane
  3821. type: number
  3822. x-nullable: true
  3823. color:
  3824. description: |
  3825. the color of the swimlane
  3826. type: string
  3827. enum:
  3828. - white
  3829. - green
  3830. - yellow
  3831. - orange
  3832. - red
  3833. - purple
  3834. - blue
  3835. - sky
  3836. - lime
  3837. - pink
  3838. - black
  3839. - silver
  3840. - peachpuff
  3841. - crimson
  3842. - plum
  3843. - darkgreen
  3844. - slateblue
  3845. - magenta
  3846. - gold
  3847. - navy
  3848. - gray
  3849. - saddlebrown
  3850. - paleturquoise
  3851. - mistyrose
  3852. - indigo
  3853. x-nullable: true
  3854. updatedAt:
  3855. description: |
  3856. when was the swimlane last edited
  3857. type: string
  3858. x-nullable: true
  3859. modifiedAt:
  3860. type: string
  3861. type:
  3862. description: |
  3863. The type of swimlane
  3864. type: string
  3865. required:
  3866. - title
  3867. - archived
  3868. - boardId
  3869. - createdAt
  3870. - modifiedAt
  3871. - type
  3872. Users:
  3873. type: object
  3874. description: A User in wekan
  3875. properties:
  3876. username:
  3877. description: |
  3878. the username of the user
  3879. type: string
  3880. x-nullable: true
  3881. orgs:
  3882. description: |
  3883. the list of organizations that a user belongs to
  3884. type: array
  3885. items:
  3886. $ref: "#/definitions/UsersOrgs"
  3887. x-nullable: true
  3888. teams:
  3889. description: |
  3890. the list of teams that a user belongs to
  3891. type: array
  3892. items:
  3893. $ref: "#/definitions/UsersTeams"
  3894. x-nullable: true
  3895. emails:
  3896. description: |
  3897. the list of emails attached to a user
  3898. type: array
  3899. items:
  3900. $ref: "#/definitions/UsersEmails"
  3901. x-nullable: true
  3902. createdAt:
  3903. description: |
  3904. creation date of the user
  3905. type: string
  3906. modifiedAt:
  3907. type: string
  3908. profile:
  3909. description: |
  3910. profile settings
  3911. $ref: "#/definitions/UsersProfile"
  3912. x-nullable: true
  3913. services:
  3914. description: |
  3915. services field of the user
  3916. type: object
  3917. x-nullable: true
  3918. heartbeat:
  3919. description: |
  3920. last time the user has been seen
  3921. type: string
  3922. x-nullable: true
  3923. isAdmin:
  3924. description: |
  3925. is the user an admin of the board?
  3926. type: boolean
  3927. x-nullable: true
  3928. createdThroughApi:
  3929. description: |
  3930. was the user created through the API?
  3931. type: boolean
  3932. x-nullable: true
  3933. loginDisabled:
  3934. description: |
  3935. loginDisabled field of the user
  3936. type: boolean
  3937. x-nullable: true
  3938. authenticationMethod:
  3939. description: |
  3940. authentication method of the user
  3941. type: string
  3942. sessionData:
  3943. description: |
  3944. profile settings
  3945. $ref: "#/definitions/UsersSessiondata"
  3946. x-nullable: true
  3947. importUsernames:
  3948. description: |
  3949. username for imported
  3950. type: array
  3951. items:
  3952. type: string
  3953. x-nullable: true
  3954. x-nullable: true
  3955. required:
  3956. - createdAt
  3957. - modifiedAt
  3958. - authenticationMethod
  3959. UsersProfile:
  3960. type: object
  3961. properties:
  3962. avatarUrl:
  3963. description: |
  3964. URL of the avatar of the user
  3965. type: string
  3966. emailBuffer:
  3967. description: |
  3968. list of email buffers of the user
  3969. type: array
  3970. items:
  3971. type: string
  3972. x-nullable: true
  3973. fullname:
  3974. description: |
  3975. full name of the user
  3976. type: string
  3977. showDesktopDragHandles:
  3978. description: |
  3979. does the user want to show desktop drag handles?
  3980. type: boolean
  3981. hideCheckedItems:
  3982. description: |
  3983. does the user want to hide checked checklist items?
  3984. type: boolean
  3985. cardMaximized:
  3986. description: |
  3987. has user clicked maximize card?
  3988. type: boolean
  3989. customFieldsGrid:
  3990. description: |
  3991. has user at card Custom Fields have Grid (false) or one per row (true) layout?
  3992. type: boolean
  3993. hiddenSystemMessages:
  3994. description: |
  3995. does the user want to hide system messages?
  3996. type: boolean
  3997. hiddenMinicardLabelText:
  3998. description: |
  3999. does the user want to hide minicard label texts?
  4000. type: boolean
  4001. initials:
  4002. description: |
  4003. initials of the user
  4004. type: string
  4005. invitedBoards:
  4006. description: |
  4007. board IDs the user has been invited to
  4008. type: array
  4009. items:
  4010. type: string
  4011. x-nullable: true
  4012. language:
  4013. description: |
  4014. language of the user
  4015. type: string
  4016. moveAndCopyDialog:
  4017. description: |
  4018. move and copy card dialog
  4019. type: object
  4020. moveChecklistDialog:
  4021. description: |
  4022. move checklist dialog
  4023. type: object
  4024. copyChecklistDialog:
  4025. description: |
  4026. copy checklist dialog
  4027. type: object
  4028. notifications:
  4029. description: |
  4030. enabled notifications for the user
  4031. type: array
  4032. items:
  4033. $ref: "#/definitions/UsersProfileNotifications"
  4034. showCardsCountAt:
  4035. description: |
  4036. showCardCountAt field of the user
  4037. type: number
  4038. startDayOfWeek:
  4039. description: |
  4040. startDayOfWeek field of the user
  4041. type: number
  4042. starredBoards:
  4043. description: |
  4044. list of starred board IDs
  4045. type: array
  4046. items:
  4047. type: string
  4048. x-nullable: true
  4049. icode:
  4050. description: |
  4051. icode
  4052. type: string
  4053. boardView:
  4054. description: |
  4055. boardView field of the user
  4056. type: string
  4057. enum:
  4058. - board-view-swimlanes
  4059. - board-view-lists
  4060. - board-view-cal
  4061. listSortBy:
  4062. description: |
  4063. default sort list for user
  4064. type: string
  4065. enum:
  4066. - -modifiedat
  4067. - modifiedat
  4068. - -title
  4069. - title
  4070. - -sort
  4071. - sort
  4072. templatesBoardId:
  4073. description: |
  4074. Reference to the templates board
  4075. type: string
  4076. cardTemplatesSwimlaneId:
  4077. description: |
  4078. Reference to the card templates swimlane Id
  4079. type: string
  4080. listTemplatesSwimlaneId:
  4081. description: |
  4082. Reference to the list templates swimlane Id
  4083. type: string
  4084. boardTemplatesSwimlaneId:
  4085. description: |
  4086. Reference to the board templates swimlane Id
  4087. type: string
  4088. required:
  4089. - templatesBoardId
  4090. - cardTemplatesSwimlaneId
  4091. - listTemplatesSwimlaneId
  4092. - boardTemplatesSwimlaneId
  4093. UsersSessiondata:
  4094. type: object
  4095. properties:
  4096. totalHits:
  4097. description: |
  4098. Total hits from last searchquery['members.userId'] = Meteor.userId();
  4099. last hit that was returned
  4100. type: number
  4101. UsersOrgs:
  4102. type: object
  4103. properties:
  4104. orgId:
  4105. description: |
  4106. The uniq ID of the organization
  4107. type: string
  4108. orgDisplayName:
  4109. description: |
  4110. The display name of the organization
  4111. type: string
  4112. required:
  4113. - orgId
  4114. - orgDisplayName
  4115. UsersTeams:
  4116. type: object
  4117. properties:
  4118. teamId:
  4119. description: |
  4120. The uniq ID of the team
  4121. type: string
  4122. teamDisplayName:
  4123. description: |
  4124. The display name of the team
  4125. type: string
  4126. required:
  4127. - teamId
  4128. - teamDisplayName
  4129. UsersEmails:
  4130. type: object
  4131. properties:
  4132. address:
  4133. description: |
  4134. The email address
  4135. type: string
  4136. verified:
  4137. description: |
  4138. Has the email been verified
  4139. type: boolean
  4140. required:
  4141. - address
  4142. - verified
  4143. UsersProfileMoveandcopydialog:
  4144. type: object
  4145. properties:
  4146. boardId:
  4147. description: |
  4148. last selected board id
  4149. type: string
  4150. swimlaneId:
  4151. description: |
  4152. last selected swimlane id
  4153. type: string
  4154. listId:
  4155. description: |
  4156. last selected list id
  4157. type: string
  4158. required:
  4159. - boardId
  4160. - swimlaneId
  4161. - listId
  4162. UsersProfileMovechecklistdialog:
  4163. type: object
  4164. properties:
  4165. boardId:
  4166. description: |
  4167. last selected board id
  4168. type: string
  4169. swimlaneId:
  4170. description: |
  4171. last selected swimlane id
  4172. type: string
  4173. listId:
  4174. description: |
  4175. last selected list id
  4176. type: string
  4177. cardId:
  4178. description: |
  4179. last selected card id
  4180. type: string
  4181. required:
  4182. - boardId
  4183. - swimlaneId
  4184. - listId
  4185. - cardId
  4186. UsersProfileCopychecklistdialog:
  4187. type: object
  4188. properties:
  4189. boardId:
  4190. description: |
  4191. last selected board id
  4192. type: string
  4193. swimlaneId:
  4194. description: |
  4195. last selected swimlane id
  4196. type: string
  4197. listId:
  4198. description: |
  4199. last selected list id
  4200. type: string
  4201. cardId:
  4202. description: |
  4203. last selected card id
  4204. type: string
  4205. required:
  4206. - boardId
  4207. - swimlaneId
  4208. - listId
  4209. - cardId
  4210. UsersProfileNotifications:
  4211. type: object
  4212. properties:
  4213. activity:
  4214. description: |
  4215. The id of the activity this notification references
  4216. type: string
  4217. read:
  4218. description: |
  4219. the date on which this notification was read
  4220. type: string
  4221. required:
  4222. - activity