wekan.yml 72 KB

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