wekan.yml 85 KB

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