wekan.yml 97 KB

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