wekan.yml 76 KB

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