wekan.yml 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v3.92
  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. required:
  2199. - title
  2200. - slug
  2201. - archived
  2202. - createdAt
  2203. - stars
  2204. - labels
  2205. - members
  2206. - permission
  2207. - color
  2208. - allowsSubtasks
  2209. - allowsAttachments
  2210. - allowsChecklists
  2211. - allowsComments
  2212. - allowsDescriptionTitle
  2213. - allowsDescriptionText
  2214. - allowsActivities
  2215. - allowsLabels
  2216. - allowsAssignee
  2217. - allowsMembers
  2218. - allowsRequestedBy
  2219. - allowsAssignedBy
  2220. - allowsReceivedDate
  2221. - allowsStartDate
  2222. - allowsEndDate
  2223. - allowsDueDate
  2224. - type
  2225. BoardsLabels:
  2226. type: object
  2227. properties:
  2228. _id:
  2229. description: |
  2230. Unique id of a label
  2231. type: string
  2232. name:
  2233. description: |
  2234. Name of a label
  2235. type: string
  2236. color:
  2237. description: |
  2238. color of a label.
  2239. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  2240. `blue`, `sky`, `lime`, `pink`, `black`,
  2241. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  2242. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  2243. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  2244. type: string
  2245. enum:
  2246. - green
  2247. - yellow
  2248. - orange
  2249. - red
  2250. - purple
  2251. - blue
  2252. - sky
  2253. - lime
  2254. - pink
  2255. - black
  2256. - silver
  2257. - peachpuff
  2258. - crimson
  2259. - plum
  2260. - darkgreen
  2261. - slateblue
  2262. - magenta
  2263. - gold
  2264. - navy
  2265. - gray
  2266. - saddlebrown
  2267. - paleturquoise
  2268. - mistyrose
  2269. - indigo
  2270. required:
  2271. - _id
  2272. - color
  2273. BoardsMembers:
  2274. type: object
  2275. properties:
  2276. userId:
  2277. description: |
  2278. The uniq ID of the member
  2279. type: string
  2280. isAdmin:
  2281. description: |
  2282. Is the member an admin of the board?
  2283. type: boolean
  2284. isActive:
  2285. description: |
  2286. Is the member active?
  2287. type: boolean
  2288. isNoComments:
  2289. description: |
  2290. Is the member not allowed to make comments
  2291. type: boolean
  2292. isCommentOnly:
  2293. description: |
  2294. Is the member only allowed to comment on the board
  2295. type: boolean
  2296. isWorker:
  2297. description: |
  2298. Is the member only allowed to move card, assign himself to card and comment
  2299. type: boolean
  2300. required:
  2301. - userId
  2302. - isAdmin
  2303. - isActive
  2304. CardComments:
  2305. type: object
  2306. description: A comment on a card
  2307. properties:
  2308. boardId:
  2309. description: |
  2310. the board ID
  2311. type: string
  2312. cardId:
  2313. description: |
  2314. the card ID
  2315. type: string
  2316. text:
  2317. description: |
  2318. the text of the comment
  2319. type: string
  2320. createdAt:
  2321. description: |
  2322. when was the comment created
  2323. type: string
  2324. modifiedAt:
  2325. type: string
  2326. userId:
  2327. description: |
  2328. the author ID of the comment
  2329. type: string
  2330. required:
  2331. - boardId
  2332. - cardId
  2333. - text
  2334. - createdAt
  2335. - modifiedAt
  2336. - userId
  2337. Cards:
  2338. type: object
  2339. properties:
  2340. title:
  2341. description: |
  2342. the title of the card
  2343. type: string
  2344. x-nullable: true
  2345. archived:
  2346. description: |
  2347. is the card archived
  2348. type: boolean
  2349. parentId:
  2350. description: |
  2351. ID of the parent card
  2352. type: string
  2353. x-nullable: true
  2354. listId:
  2355. description: |
  2356. List ID where the card is
  2357. type: string
  2358. x-nullable: true
  2359. swimlaneId:
  2360. description: |
  2361. Swimlane ID where the card is
  2362. type: string
  2363. boardId:
  2364. description: |
  2365. Board ID of the card
  2366. type: string
  2367. x-nullable: true
  2368. coverId:
  2369. description: |
  2370. Cover ID of the card
  2371. type: string
  2372. x-nullable: true
  2373. color:
  2374. type: string
  2375. enum:
  2376. - white
  2377. - green
  2378. - yellow
  2379. - orange
  2380. - red
  2381. - purple
  2382. - blue
  2383. - sky
  2384. - lime
  2385. - pink
  2386. - black
  2387. - silver
  2388. - peachpuff
  2389. - crimson
  2390. - plum
  2391. - darkgreen
  2392. - slateblue
  2393. - magenta
  2394. - gold
  2395. - navy
  2396. - gray
  2397. - saddlebrown
  2398. - paleturquoise
  2399. - mistyrose
  2400. - indigo
  2401. x-nullable: true
  2402. createdAt:
  2403. description: |
  2404. creation date
  2405. type: string
  2406. modifiedAt:
  2407. type: string
  2408. customFields:
  2409. description: |
  2410. list of custom fields
  2411. type: array
  2412. items:
  2413. $ref: "#/definitions/CardsCustomfields"
  2414. x-nullable: true
  2415. dateLastActivity:
  2416. description: |
  2417. Date of last activity
  2418. type: string
  2419. description:
  2420. description: |
  2421. description of the card
  2422. type: string
  2423. x-nullable: true
  2424. requestedBy:
  2425. description: |
  2426. who requested the card (ID of the user)
  2427. type: string
  2428. x-nullable: true
  2429. assignedBy:
  2430. description: |
  2431. who assigned the card (ID of the user)
  2432. type: string
  2433. x-nullable: true
  2434. labelIds:
  2435. description: |
  2436. list of labels ID the card has
  2437. type: array
  2438. items:
  2439. type: string
  2440. x-nullable: true
  2441. x-nullable: true
  2442. members:
  2443. description: |
  2444. list of members (user IDs)
  2445. type: array
  2446. items:
  2447. type: string
  2448. x-nullable: true
  2449. x-nullable: true
  2450. assignees:
  2451. description: |
  2452. who is assignee of the card (user ID),
  2453. maximum one ID of assignee in array.
  2454. type: array
  2455. items:
  2456. type: string
  2457. x-nullable: true
  2458. x-nullable: true
  2459. receivedAt:
  2460. description: |
  2461. Date the card was received
  2462. type: string
  2463. x-nullable: true
  2464. startAt:
  2465. description: |
  2466. Date the card was started to be worked on
  2467. type: string
  2468. x-nullable: true
  2469. dueAt:
  2470. description: |
  2471. Date the card is due
  2472. type: string
  2473. x-nullable: true
  2474. endAt:
  2475. description: |
  2476. Date the card ended
  2477. type: string
  2478. x-nullable: true
  2479. spentTime:
  2480. description: |
  2481. How much time has been spent on this
  2482. type: number
  2483. x-nullable: true
  2484. isOvertime:
  2485. description: |
  2486. is the card over time?
  2487. type: boolean
  2488. x-nullable: true
  2489. userId:
  2490. description: |
  2491. user ID of the author of the card
  2492. type: string
  2493. sort:
  2494. description: |
  2495. Sort value
  2496. type: number
  2497. subtaskSort:
  2498. description: |
  2499. subtask sort value
  2500. type: number
  2501. x-nullable: true
  2502. type:
  2503. description: |
  2504. type of the card
  2505. type: string
  2506. linkedId:
  2507. description: |
  2508. ID of the linked card
  2509. type: string
  2510. x-nullable: true
  2511. vote:
  2512. description: |
  2513. vote object, see below
  2514. $ref: "#/definitions/CardsVote"
  2515. x-nullable: true
  2516. required:
  2517. - archived
  2518. - swimlaneId
  2519. - createdAt
  2520. - modifiedAt
  2521. - dateLastActivity
  2522. - userId
  2523. - sort
  2524. - type
  2525. CardsVote:
  2526. type: object
  2527. properties:
  2528. question:
  2529. type: string
  2530. positive:
  2531. description: |
  2532. list of members (user IDs)
  2533. type: array
  2534. items:
  2535. type: string
  2536. x-nullable: true
  2537. negative:
  2538. description: |
  2539. list of members (user IDs)
  2540. type: array
  2541. items:
  2542. type: string
  2543. x-nullable: true
  2544. end:
  2545. type: string
  2546. required:
  2547. - question
  2548. CardsCustomfields:
  2549. type: object
  2550. ChecklistItems:
  2551. type: object
  2552. description: An item in a checklist
  2553. properties:
  2554. title:
  2555. description: |
  2556. the text of the item
  2557. type: string
  2558. sort:
  2559. description: |
  2560. the sorting field of the item
  2561. type: number
  2562. isFinished:
  2563. description: |
  2564. Is the item checked?
  2565. type: boolean
  2566. checklistId:
  2567. description: |
  2568. the checklist ID the item is attached to
  2569. type: string
  2570. cardId:
  2571. description: |
  2572. the card ID the item is attached to
  2573. type: string
  2574. createdAt:
  2575. type: string
  2576. x-nullable: true
  2577. modifiedAt:
  2578. type: string
  2579. required:
  2580. - title
  2581. - sort
  2582. - isFinished
  2583. - checklistId
  2584. - cardId
  2585. - modifiedAt
  2586. Checklists:
  2587. type: object
  2588. description: A Checklist
  2589. properties:
  2590. cardId:
  2591. description: |
  2592. The ID of the card the checklist is in
  2593. type: string
  2594. title:
  2595. description: |
  2596. the title of the checklist
  2597. type: string
  2598. finishedAt:
  2599. description: |
  2600. When was the checklist finished
  2601. type: string
  2602. x-nullable: true
  2603. createdAt:
  2604. description: |
  2605. Creation date of the checklist
  2606. type: string
  2607. modifiedAt:
  2608. type: string
  2609. sort:
  2610. description: |
  2611. sorting value of the checklist
  2612. type: number
  2613. required:
  2614. - cardId
  2615. - title
  2616. - createdAt
  2617. - modifiedAt
  2618. - sort
  2619. CustomFields:
  2620. type: object
  2621. description: A custom field on a card in the board
  2622. properties:
  2623. boardIds:
  2624. description: |
  2625. the ID of the board
  2626. type: array
  2627. items:
  2628. type: string
  2629. name:
  2630. description: |
  2631. name of the custom field
  2632. type: string
  2633. type:
  2634. description: |
  2635. type of the custom field
  2636. type: string
  2637. enum:
  2638. - text
  2639. - number
  2640. - date
  2641. - dropdown
  2642. settings:
  2643. description: |
  2644. settings of the custom field
  2645. $ref: "#/definitions/CustomFieldsSettings"
  2646. showOnCard:
  2647. description: |
  2648. should we show on the cards this custom field
  2649. type: boolean
  2650. automaticallyOnCard:
  2651. description: |
  2652. should the custom fields automatically be added on cards?
  2653. type: boolean
  2654. showLabelOnMiniCard:
  2655. description: |
  2656. should the label of the custom field be shown on minicards?
  2657. type: boolean
  2658. createdAt:
  2659. type: string
  2660. x-nullable: true
  2661. modifiedAt:
  2662. type: string
  2663. required:
  2664. - boardIds
  2665. - name
  2666. - type
  2667. - settings
  2668. - showOnCard
  2669. - automaticallyOnCard
  2670. - showLabelOnMiniCard
  2671. - modifiedAt
  2672. CustomFieldsSettings:
  2673. type: object
  2674. properties:
  2675. dropdownItems:
  2676. description: |
  2677. list of drop down items objects
  2678. type: array
  2679. items:
  2680. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  2681. CustomFieldsSettingsDropdownitems:
  2682. type: object
  2683. Integrations:
  2684. type: object
  2685. description: Integration with third-party applications
  2686. properties:
  2687. enabled:
  2688. description: |
  2689. is the integration enabled?
  2690. type: boolean
  2691. title:
  2692. description: |
  2693. name of the integration
  2694. type: string
  2695. x-nullable: true
  2696. type:
  2697. description: |
  2698. type of the integratation (Default to 'outgoing-webhooks')
  2699. type: string
  2700. activities:
  2701. description: |
  2702. activities the integration gets triggered (list)
  2703. type: array
  2704. items:
  2705. type: string
  2706. url:
  2707. type: string
  2708. token:
  2709. description: |
  2710. token of the integration
  2711. type: string
  2712. x-nullable: true
  2713. boardId:
  2714. description: |
  2715. Board ID of the integration
  2716. type: string
  2717. createdAt:
  2718. description: |
  2719. Creation date of the integration
  2720. type: string
  2721. modifiedAt:
  2722. type: string
  2723. userId:
  2724. description: |
  2725. user ID who created the interation
  2726. type: string
  2727. required:
  2728. - enabled
  2729. - type
  2730. - activities
  2731. - url
  2732. - boardId
  2733. - createdAt
  2734. - modifiedAt
  2735. - userId
  2736. Lists:
  2737. type: object
  2738. description: A list (column) in the Wekan board.
  2739. properties:
  2740. title:
  2741. description: |
  2742. the title of the list
  2743. type: string
  2744. starred:
  2745. description: |
  2746. if a list is stared
  2747. then we put it on the top
  2748. type: boolean
  2749. x-nullable: true
  2750. archived:
  2751. description: |
  2752. is the list archived
  2753. type: boolean
  2754. boardId:
  2755. description: |
  2756. the board associated to this list
  2757. type: string
  2758. swimlaneId:
  2759. description: |
  2760. the swimlane associated to this list. Used for templates
  2761. type: string
  2762. createdAt:
  2763. description: |
  2764. creation date
  2765. type: string
  2766. sort:
  2767. description: |
  2768. is the list sorted
  2769. type: number
  2770. x-nullable: true
  2771. updatedAt:
  2772. description: |
  2773. last update of the list
  2774. type: string
  2775. x-nullable: true
  2776. modifiedAt:
  2777. type: string
  2778. wipLimit:
  2779. description: |
  2780. WIP object, see below
  2781. $ref: "#/definitions/ListsWiplimit"
  2782. x-nullable: true
  2783. color:
  2784. description: |
  2785. the color of the list
  2786. type: string
  2787. enum:
  2788. - white
  2789. - green
  2790. - yellow
  2791. - orange
  2792. - red
  2793. - purple
  2794. - blue
  2795. - sky
  2796. - lime
  2797. - pink
  2798. - black
  2799. - peachpuff
  2800. - crimson
  2801. - plum
  2802. - darkgreen
  2803. - slateblue
  2804. - magenta
  2805. - gold
  2806. - navy
  2807. - gray
  2808. - saddlebrown
  2809. - paleturquoise
  2810. - mistyrose
  2811. - indigo
  2812. x-nullable: true
  2813. type:
  2814. description: |
  2815. The type of list
  2816. type: string
  2817. required:
  2818. - title
  2819. - archived
  2820. - boardId
  2821. - swimlaneId
  2822. - createdAt
  2823. - modifiedAt
  2824. - type
  2825. ListsWiplimit:
  2826. type: object
  2827. properties:
  2828. value:
  2829. description: |
  2830. value of the WIP
  2831. type: number
  2832. enabled:
  2833. description: |
  2834. is the WIP enabled
  2835. type: boolean
  2836. soft:
  2837. description: |
  2838. is the WIP a soft or hard requirement
  2839. type: boolean
  2840. required:
  2841. - value
  2842. - enabled
  2843. - soft
  2844. Swimlanes:
  2845. type: object
  2846. description: A swimlane is an line in the kaban board.
  2847. properties:
  2848. title:
  2849. description: |
  2850. the title of the swimlane
  2851. type: string
  2852. archived:
  2853. description: |
  2854. is the swimlane archived?
  2855. type: boolean
  2856. boardId:
  2857. description: |
  2858. the ID of the board the swimlane is attached to
  2859. type: string
  2860. createdAt:
  2861. description: |
  2862. creation date of the swimlane
  2863. type: string
  2864. sort:
  2865. description: |
  2866. the sort value of the swimlane
  2867. type: number
  2868. x-nullable: true
  2869. color:
  2870. description: |
  2871. the color of the swimlane
  2872. type: string
  2873. enum:
  2874. - white
  2875. - green
  2876. - yellow
  2877. - orange
  2878. - red
  2879. - purple
  2880. - blue
  2881. - sky
  2882. - lime
  2883. - pink
  2884. - black
  2885. - peachpuff
  2886. - crimson
  2887. - plum
  2888. - darkgreen
  2889. - slateblue
  2890. - magenta
  2891. - gold
  2892. - navy
  2893. - gray
  2894. - saddlebrown
  2895. - paleturquoise
  2896. - mistyrose
  2897. - indigo
  2898. x-nullable: true
  2899. updatedAt:
  2900. description: |
  2901. when was the swimlane last edited
  2902. type: string
  2903. x-nullable: true
  2904. modifiedAt:
  2905. type: string
  2906. type:
  2907. description: |
  2908. The type of swimlane
  2909. type: string
  2910. required:
  2911. - title
  2912. - archived
  2913. - boardId
  2914. - createdAt
  2915. - modifiedAt
  2916. - type
  2917. Users:
  2918. type: object
  2919. description: A User in wekan
  2920. properties:
  2921. username:
  2922. description: |
  2923. the username of the user
  2924. type: string
  2925. x-nullable: true
  2926. emails:
  2927. description: |
  2928. the list of emails attached to a user
  2929. type: array
  2930. items:
  2931. $ref: "#/definitions/UsersEmails"
  2932. x-nullable: true
  2933. createdAt:
  2934. description: |
  2935. creation date of the user
  2936. type: string
  2937. modifiedAt:
  2938. type: string
  2939. profile:
  2940. description: |
  2941. profile settings
  2942. $ref: "#/definitions/UsersProfile"
  2943. x-nullable: true
  2944. services:
  2945. description: |
  2946. services field of the user
  2947. type: object
  2948. x-nullable: true
  2949. heartbeat:
  2950. description: |
  2951. last time the user has been seen
  2952. type: string
  2953. x-nullable: true
  2954. isAdmin:
  2955. description: |
  2956. is the user an admin of the board?
  2957. type: boolean
  2958. x-nullable: true
  2959. createdThroughApi:
  2960. description: |
  2961. was the user created through the API?
  2962. type: boolean
  2963. x-nullable: true
  2964. loginDisabled:
  2965. description: |
  2966. loginDisabled field of the user
  2967. type: boolean
  2968. x-nullable: true
  2969. authenticationMethod:
  2970. description: |
  2971. authentication method of the user
  2972. type: string
  2973. required:
  2974. - createdAt
  2975. - modifiedAt
  2976. - authenticationMethod
  2977. UsersEmails:
  2978. type: object
  2979. properties:
  2980. address:
  2981. description: |
  2982. The email address
  2983. type: string
  2984. verified:
  2985. description: |
  2986. Has the email been verified
  2987. type: boolean
  2988. required:
  2989. - address
  2990. - verified
  2991. UsersProfile:
  2992. type: object
  2993. properties:
  2994. avatarUrl:
  2995. description: |
  2996. URL of the avatar of the user
  2997. type: string
  2998. emailBuffer:
  2999. description: |
  3000. list of email buffers of the user
  3001. type: array
  3002. items:
  3003. type: string
  3004. x-nullable: true
  3005. fullname:
  3006. description: |
  3007. full name of the user
  3008. type: string
  3009. showDesktopDragHandles:
  3010. description: |
  3011. does the user want to hide system messages?
  3012. type: boolean
  3013. hiddenSystemMessages:
  3014. description: |
  3015. does the user want to hide system messages?
  3016. type: boolean
  3017. hiddenMinicardLabelText:
  3018. description: |
  3019. does the user want to hide minicard label texts?
  3020. type: boolean
  3021. initials:
  3022. description: |
  3023. initials of the user
  3024. type: string
  3025. invitedBoards:
  3026. description: |
  3027. board IDs the user has been invited to
  3028. type: array
  3029. items:
  3030. type: string
  3031. x-nullable: true
  3032. language:
  3033. description: |
  3034. language of the user
  3035. type: string
  3036. notifications:
  3037. description: |
  3038. enabled notifications for the user
  3039. type: array
  3040. items:
  3041. $ref: "#/definitions/UsersProfileNotifications"
  3042. activity:
  3043. description: |
  3044. The id of the activity this notification references
  3045. type: string
  3046. read:
  3047. description: |
  3048. the date on which this notification was read
  3049. type: string
  3050. showCardsCountAt:
  3051. description: |
  3052. showCardCountAt field of the user
  3053. type: number
  3054. starredBoards:
  3055. description: |
  3056. list of starred board IDs
  3057. type: array
  3058. items:
  3059. type: string
  3060. x-nullable: true
  3061. icode:
  3062. description: |
  3063. icode
  3064. type: string
  3065. boardView:
  3066. description: |
  3067. boardView field of the user
  3068. type: string
  3069. enum:
  3070. - board-view-lists
  3071. - board-view-swimlanes
  3072. - board-view-cal
  3073. listSortBy:
  3074. description: |
  3075. default sort list for user
  3076. type: string
  3077. enum:
  3078. - -modifiedat
  3079. - modifiedat
  3080. - -title
  3081. - title
  3082. - -sort
  3083. - sort
  3084. templatesBoardId:
  3085. description: |
  3086. Reference to the templates board
  3087. type: string
  3088. cardTemplatesSwimlaneId:
  3089. description: |
  3090. Reference to the card templates swimlane Id
  3091. type: string
  3092. listTemplatesSwimlaneId:
  3093. description: |
  3094. Reference to the list templates swimlane Id
  3095. type: string
  3096. boardTemplatesSwimlaneId:
  3097. description: |
  3098. Reference to the board templates swimlane Id
  3099. type: string
  3100. required:
  3101. - activity
  3102. - templatesBoardId
  3103. - cardTemplatesSwimlaneId
  3104. - listTemplatesSwimlaneId
  3105. - boardTemplatesSwimlaneId