wekan.yml 76 KB

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