wekan.yml 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v6.90
  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:
  528. post:
  529. operationId: new_checklist_item
  530. summary: add a new item to a checklist
  531. tags:
  532. - ChecklistItems
  533. consumes:
  534. - multipart/form-data
  535. - application/json
  536. parameters:
  537. - name: title
  538. in: formData
  539. description: |
  540. the title of the new item
  541. type: string
  542. required: true
  543. - name: board
  544. in: path
  545. description: |
  546. the board ID
  547. type: string
  548. required: true
  549. - name: card
  550. in: path
  551. description: |
  552. the card ID
  553. type: string
  554. required: true
  555. - name: checklist
  556. in: path
  557. description: |
  558. the ID of the checklist
  559. type: string
  560. required: true
  561. produces:
  562. - application/json
  563. security:
  564. - UserSecurity: []
  565. responses:
  566. '200':
  567. description: |-
  568. 200 response
  569. schema:
  570. type: object
  571. properties:
  572. _id:
  573. type: string
  574. /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}:
  575. get:
  576. operationId: get_checklist_item
  577. summary: Get a checklist item
  578. tags:
  579. - ChecklistItems
  580. - Checklists
  581. parameters:
  582. - name: board
  583. in: path
  584. description: |
  585. the board ID
  586. type: string
  587. required: true
  588. - name: card
  589. in: path
  590. description: |
  591. the card ID
  592. type: string
  593. required: true
  594. - name: checklist
  595. in: path
  596. description: |
  597. the checklist ID
  598. type: string
  599. required: true
  600. - name: item
  601. in: path
  602. description: |
  603. the ID of the item
  604. type: string
  605. required: true
  606. produces:
  607. - application/json
  608. security:
  609. - UserSecurity: []
  610. responses:
  611. '200':
  612. description: |-
  613. 200 response
  614. schema:
  615. $ref: "#/definitions/ChecklistItems"
  616. put:
  617. operationId: edit_checklist_item
  618. summary: Edit a checklist item
  619. tags:
  620. - ChecklistItems
  621. - Checklists
  622. consumes:
  623. - multipart/form-data
  624. - application/json
  625. parameters:
  626. - name: isFinished
  627. in: formData
  628. description: |
  629. is the item checked?
  630. type: string
  631. required: false
  632. - name: title
  633. in: formData
  634. description: |
  635. the new text of the item
  636. type: string
  637. required: false
  638. - name: board
  639. in: path
  640. description: |
  641. the board ID
  642. type: string
  643. required: true
  644. - name: card
  645. in: path
  646. description: |
  647. the card ID
  648. type: string
  649. required: true
  650. - name: checklist
  651. in: path
  652. description: |
  653. the checklist ID
  654. type: string
  655. required: true
  656. - name: item
  657. in: path
  658. description: |
  659. the ID of the item
  660. type: string
  661. required: true
  662. produces:
  663. - application/json
  664. security:
  665. - UserSecurity: []
  666. responses:
  667. '200':
  668. description: |-
  669. 200 response
  670. schema:
  671. type: object
  672. properties:
  673. _id:
  674. type: string
  675. delete:
  676. operationId: delete_checklist_item
  677. summary: Delete a checklist item
  678. description: |
  679. Note: this operation can't be reverted.
  680. tags:
  681. - ChecklistItems
  682. - Checklists
  683. parameters:
  684. - name: board
  685. in: path
  686. description: |
  687. the board ID
  688. type: string
  689. required: true
  690. - name: card
  691. in: path
  692. description: |
  693. the card ID
  694. type: string
  695. required: true
  696. - name: checklist
  697. in: path
  698. description: |
  699. the checklist ID
  700. type: string
  701. required: true
  702. - name: item
  703. in: path
  704. description: |
  705. the ID of the item to be removed
  706. type: string
  707. required: true
  708. produces:
  709. - application/json
  710. security:
  711. - UserSecurity: []
  712. responses:
  713. '200':
  714. description: |-
  715. 200 response
  716. schema:
  717. type: object
  718. properties:
  719. _id:
  720. type: string
  721. /api/boards/{board}/cards/{card}/comments:
  722. get:
  723. operationId: get_all_comments
  724. summary: Get all comments attached to a card
  725. tags:
  726. - CardComments
  727. parameters:
  728. - name: board
  729. in: path
  730. description: |
  731. the board ID of the card
  732. type: string
  733. required: true
  734. - name: card
  735. in: path
  736. description: |
  737. the ID of the card
  738. type: string
  739. required: true
  740. produces:
  741. - application/json
  742. security:
  743. - UserSecurity: []
  744. responses:
  745. '200':
  746. description: |-
  747. 200 response
  748. schema:
  749. type: array
  750. items:
  751. type: object
  752. properties:
  753. _id:
  754. type: string
  755. comment:
  756. type: string
  757. authorId:
  758. type: string
  759. post:
  760. operationId: new_comment
  761. summary: Add a comment on a card
  762. tags:
  763. - CardComments
  764. consumes:
  765. - multipart/form-data
  766. - application/json
  767. parameters:
  768. - name: authorId
  769. in: formData
  770. description: |
  771. the user who 'posted' the comment
  772. type: string
  773. required: true
  774. - name: comment
  775. in: formData
  776. description: the comment value
  777. type: string
  778. required: true
  779. - name: board
  780. in: path
  781. description: |
  782. the board ID of the card
  783. type: string
  784. required: true
  785. - name: card
  786. in: path
  787. description: |
  788. the ID of the card
  789. type: string
  790. required: true
  791. produces:
  792. - application/json
  793. security:
  794. - UserSecurity: []
  795. responses:
  796. '200':
  797. description: |-
  798. 200 response
  799. schema:
  800. type: object
  801. properties:
  802. _id:
  803. type: string
  804. /api/boards/{board}/cards/{card}/comments/{comment}:
  805. get:
  806. operationId: get_comment
  807. summary: Get a comment on a card
  808. tags:
  809. - CardComments
  810. parameters:
  811. - name: board
  812. in: path
  813. description: |
  814. the board ID of the card
  815. type: string
  816. required: true
  817. - name: card
  818. in: path
  819. description: |
  820. the ID of the card
  821. type: string
  822. required: true
  823. - name: comment
  824. in: path
  825. description: |
  826. the ID of the comment to retrieve
  827. type: string
  828. required: true
  829. produces:
  830. - application/json
  831. security:
  832. - UserSecurity: []
  833. responses:
  834. '200':
  835. description: |-
  836. 200 response
  837. schema:
  838. $ref: "#/definitions/CardComments"
  839. delete:
  840. operationId: delete_comment
  841. summary: Delete a comment on a card
  842. tags:
  843. - CardComments
  844. parameters:
  845. - name: board
  846. in: path
  847. description: |
  848. the board ID of the card
  849. type: string
  850. required: true
  851. - name: card
  852. in: path
  853. description: |
  854. the ID of the card
  855. type: string
  856. required: true
  857. - name: comment
  858. in: path
  859. description: |
  860. the ID of the comment to delete
  861. type: string
  862. required: true
  863. produces:
  864. - application/json
  865. security:
  866. - UserSecurity: []
  867. responses:
  868. '200':
  869. description: |-
  870. 200 response
  871. schema:
  872. type: object
  873. properties:
  874. _id:
  875. type: string
  876. /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}:
  877. get:
  878. operationId: get_cards_by_custom_field
  879. summary: Get all Cards that matchs a value of a specific custom field
  880. tags:
  881. - Cards
  882. parameters:
  883. - name: board
  884. in: path
  885. description: |
  886. the board ID
  887. type: string
  888. required: true
  889. - name: customField
  890. in: path
  891. description: |
  892. the list ID
  893. type: string
  894. required: true
  895. - name: customFieldValue
  896. in: path
  897. description: |
  898. the value to look for
  899. type: string
  900. required: true
  901. produces:
  902. - application/json
  903. security:
  904. - UserSecurity: []
  905. responses:
  906. '200':
  907. description: |-
  908. 200 response
  909. schema:
  910. type: array
  911. items:
  912. type: object
  913. properties:
  914. _id:
  915. type: string
  916. title:
  917. type: string
  918. description:
  919. type: string
  920. listId:
  921. type: string
  922. swinlaneId:
  923. type: string
  924. /api/boards/{board}/cards_count:
  925. get:
  926. operationId: get_board_cards_count
  927. summary: Get a cards count to a board
  928. tags:
  929. - Cards
  930. parameters:
  931. - name: board
  932. in: path
  933. description: |
  934. the board ID
  935. type: string
  936. required: true
  937. produces:
  938. - application/json
  939. security:
  940. - UserSecurity: []
  941. responses:
  942. '200':
  943. description: |-
  944. 200 response
  945. schema:
  946. type: object
  947. properties:
  948. board_cards_count:
  949. type: integer
  950. /api/boards/{board}/custom-fields:
  951. get:
  952. operationId: get_all_custom_fields
  953. summary: Get the list of Custom Fields attached to a board
  954. tags:
  955. - CustomFields
  956. parameters:
  957. - name: board
  958. in: path
  959. description: the board value
  960. type: string
  961. required: true
  962. produces:
  963. - application/json
  964. security:
  965. - UserSecurity: []
  966. responses:
  967. '200':
  968. description: |-
  969. 200 response
  970. schema:
  971. type: array
  972. items:
  973. type: object
  974. properties:
  975. _id:
  976. type: string
  977. name:
  978. type: string
  979. type:
  980. type: string
  981. post:
  982. operationId: new_custom_field
  983. summary: Create a Custom Field
  984. tags:
  985. - CustomFields
  986. consumes:
  987. - multipart/form-data
  988. - application/json
  989. parameters:
  990. - name: name
  991. in: formData
  992. description: |
  993. the name of the custom field
  994. type: string
  995. required: true
  996. - name: type
  997. in: formData
  998. description: |
  999. the type of the custom field
  1000. type: string
  1001. required: true
  1002. - name: settings
  1003. in: formData
  1004. description: |
  1005. the settings object of the custom field
  1006. type: string
  1007. required: true
  1008. - name: showOnCard
  1009. in: formData
  1010. description: |
  1011. should we show the custom field on cards?
  1012. type: boolean
  1013. required: true
  1014. - name: automaticallyOnCard
  1015. in: formData
  1016. description: |
  1017. should the custom fields automatically be added on cards?
  1018. type: boolean
  1019. required: true
  1020. - name: showLabelOnMiniCard
  1021. in: formData
  1022. description: |
  1023. should the label of the custom field be shown on minicards?
  1024. type: boolean
  1025. required: true
  1026. - name: showSumAtTopOfList
  1027. in: formData
  1028. description: |
  1029. should the sum of the custom fields be shown at top of list?
  1030. type: boolean
  1031. required: true
  1032. - name: authorId
  1033. in: formData
  1034. description: the authorId value
  1035. type: string
  1036. required: true
  1037. - name: board
  1038. in: path
  1039. description: the board value
  1040. type: string
  1041. required: true
  1042. produces:
  1043. - application/json
  1044. security:
  1045. - UserSecurity: []
  1046. responses:
  1047. '200':
  1048. description: |-
  1049. 200 response
  1050. schema:
  1051. type: object
  1052. properties:
  1053. _id:
  1054. type: string
  1055. /api/boards/{board}/custom-fields/{customField}:
  1056. get:
  1057. operationId: get_custom_field
  1058. summary: Get a Custom Fields attached to a board
  1059. tags:
  1060. - CustomFields
  1061. parameters:
  1062. - name: board
  1063. in: path
  1064. description: the board value
  1065. type: string
  1066. required: true
  1067. - name: customField
  1068. in: path
  1069. description: |
  1070. the ID of the custom field
  1071. type: string
  1072. required: true
  1073. produces:
  1074. - application/json
  1075. security:
  1076. - UserSecurity: []
  1077. responses:
  1078. '200':
  1079. description: |-
  1080. 200 response
  1081. schema:
  1082. type: array
  1083. items:
  1084. type: object
  1085. properties:
  1086. _id:
  1087. type: string
  1088. boardIds:
  1089. type: string
  1090. put:
  1091. operationId: edit_custom_field
  1092. summary: Update a Custom Field
  1093. tags:
  1094. - CustomFields
  1095. consumes:
  1096. - multipart/form-data
  1097. - application/json
  1098. parameters:
  1099. - name: name
  1100. in: formData
  1101. description: |
  1102. the name of the custom field
  1103. type: string
  1104. required: true
  1105. - name: type
  1106. in: formData
  1107. description: |
  1108. the type of the custom field
  1109. type: string
  1110. required: true
  1111. - name: settings
  1112. in: formData
  1113. description: |
  1114. the settings object of the custom field
  1115. type: string
  1116. required: true
  1117. - name: showOnCard
  1118. in: formData
  1119. description: |
  1120. should we show the custom field on cards
  1121. type: boolean
  1122. required: true
  1123. - name: automaticallyOnCard
  1124. in: formData
  1125. description: |
  1126. should the custom fields automatically be added on cards
  1127. type: boolean
  1128. required: true
  1129. - name: alwaysOnCard
  1130. in: formData
  1131. description: the alwaysOnCard value
  1132. type: string
  1133. required: true
  1134. - name: showLabelOnMiniCard
  1135. in: formData
  1136. description: |
  1137. should the label of the custom field be shown on minicards
  1138. type: boolean
  1139. required: true
  1140. - name: showSumAtTopOfList
  1141. in: formData
  1142. description: |
  1143. should the sum of the custom fields be shown at top of list
  1144. type: boolean
  1145. required: true
  1146. - name: board
  1147. in: path
  1148. description: the board value
  1149. type: string
  1150. required: true
  1151. - name: customField
  1152. in: path
  1153. description: the customField value
  1154. type: string
  1155. required: true
  1156. produces:
  1157. - application/json
  1158. security:
  1159. - UserSecurity: []
  1160. responses:
  1161. '200':
  1162. description: |-
  1163. 200 response
  1164. schema:
  1165. type: object
  1166. properties:
  1167. _id:
  1168. type: string
  1169. delete:
  1170. operationId: delete_custom_field
  1171. summary: Delete a Custom Fields attached to a board
  1172. description: |
  1173. The Custom Field can't be retrieved after this operation
  1174. tags:
  1175. - CustomFields
  1176. parameters:
  1177. - name: board
  1178. in: path
  1179. description: the board value
  1180. type: string
  1181. required: true
  1182. - name: customField
  1183. in: path
  1184. description: |
  1185. the ID of the custom field
  1186. type: string
  1187. required: true
  1188. produces:
  1189. - application/json
  1190. security:
  1191. - UserSecurity: []
  1192. responses:
  1193. '200':
  1194. description: |-
  1195. 200 response
  1196. schema:
  1197. type: object
  1198. properties:
  1199. _id:
  1200. type: string
  1201. /api/boards/{board}/custom-fields/{customField}/dropdown-items:
  1202. post:
  1203. operationId: add_custom_field_dropdown_items
  1204. summary: Update a Custom Field's dropdown items
  1205. tags:
  1206. - CustomFields
  1207. consumes:
  1208. - multipart/form-data
  1209. - application/json
  1210. parameters:
  1211. - name: items
  1212. in: formData
  1213. description: |
  1214. names of the custom field
  1215. type: string
  1216. required: false
  1217. - name: board
  1218. in: path
  1219. description: the board value
  1220. type: string
  1221. required: true
  1222. - name: customField
  1223. in: path
  1224. description: the customField value
  1225. type: string
  1226. required: true
  1227. produces:
  1228. - application/json
  1229. security:
  1230. - UserSecurity: []
  1231. responses:
  1232. '200':
  1233. description: |-
  1234. 200 response
  1235. schema:
  1236. type: object
  1237. properties:
  1238. _id:
  1239. type: string
  1240. /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}:
  1241. put:
  1242. operationId: edit_custom_field_dropdown_item
  1243. summary: Update a Custom Field's dropdown item
  1244. tags:
  1245. - CustomFields
  1246. consumes:
  1247. - multipart/form-data
  1248. - application/json
  1249. parameters:
  1250. - name: name
  1251. in: formData
  1252. description: |
  1253. names of the custom field
  1254. type: string
  1255. required: true
  1256. - name: board
  1257. in: path
  1258. description: the board value
  1259. type: string
  1260. required: true
  1261. - name: customField
  1262. in: path
  1263. description: the customField value
  1264. type: string
  1265. required: true
  1266. - name: dropdownItem
  1267. in: path
  1268. description: the dropdownItem value
  1269. type: string
  1270. required: true
  1271. produces:
  1272. - application/json
  1273. security:
  1274. - UserSecurity: []
  1275. responses:
  1276. '200':
  1277. description: |-
  1278. 200 response
  1279. schema:
  1280. type: object
  1281. properties:
  1282. _id:
  1283. type: string
  1284. delete:
  1285. operationId: delete_custom_field_dropdown_item
  1286. summary: Update a Custom Field's dropdown items
  1287. tags:
  1288. - CustomFields
  1289. parameters:
  1290. - name: board
  1291. in: path
  1292. description: the board value
  1293. type: string
  1294. required: true
  1295. - name: customField
  1296. in: path
  1297. description: the customField value
  1298. type: string
  1299. required: true
  1300. - name: dropdownItem
  1301. in: path
  1302. description: the dropdownItem value
  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}/export:
  1319. get:
  1320. operationId: exportJson
  1321. summary: This route is used to export the board to a json file format.
  1322. description: |
  1323. If user is already logged-in, pass loginToken as param
  1324. "authToken": '/api/boards/:boardId/export?authToken=:token'
  1325. See https://blog.kayla.com.au/server-side-route-authentication-in-meteor/
  1326. for detailed explanations
  1327. tags:
  1328. - Boards
  1329. parameters:
  1330. - name: board
  1331. in: path
  1332. description: |
  1333. the ID of the board we are exporting
  1334. type: string
  1335. required: true
  1336. produces:
  1337. - application/json
  1338. security:
  1339. - UserSecurity: []
  1340. responses:
  1341. '200':
  1342. description: |-
  1343. 200 response
  1344. /api/boards/{board}/integrations:
  1345. get:
  1346. operationId: get_all_integrations
  1347. summary: Get all integrations in board
  1348. tags:
  1349. - Integrations
  1350. parameters:
  1351. - name: board
  1352. in: path
  1353. description: |
  1354. the board ID
  1355. type: string
  1356. required: true
  1357. produces:
  1358. - application/json
  1359. security:
  1360. - UserSecurity: []
  1361. responses:
  1362. '200':
  1363. description: |-
  1364. 200 response
  1365. schema:
  1366. type: array
  1367. items:
  1368. $ref: "#/definitions/Integrations"
  1369. post:
  1370. operationId: new_integration
  1371. summary: Create a new integration
  1372. tags:
  1373. - Integrations
  1374. consumes:
  1375. - multipart/form-data
  1376. - application/json
  1377. parameters:
  1378. - name: url
  1379. in: formData
  1380. description: |
  1381. the URL of the integration
  1382. type: string
  1383. required: true
  1384. - name: board
  1385. in: path
  1386. description: |
  1387. the board ID
  1388. type: string
  1389. required: true
  1390. produces:
  1391. - application/json
  1392. security:
  1393. - UserSecurity: []
  1394. responses:
  1395. '200':
  1396. description: |-
  1397. 200 response
  1398. schema:
  1399. type: object
  1400. properties:
  1401. _id:
  1402. type: string
  1403. /api/boards/{board}/integrations/{int}:
  1404. get:
  1405. operationId: get_integration
  1406. summary: Get a single integration in board
  1407. tags:
  1408. - Integrations
  1409. parameters:
  1410. - name: board
  1411. in: path
  1412. description: |
  1413. the board ID
  1414. type: string
  1415. required: true
  1416. - name: int
  1417. in: path
  1418. description: |
  1419. the integration ID
  1420. type: string
  1421. required: true
  1422. produces:
  1423. - application/json
  1424. security:
  1425. - UserSecurity: []
  1426. responses:
  1427. '200':
  1428. description: |-
  1429. 200 response
  1430. schema:
  1431. $ref: "#/definitions/Integrations"
  1432. put:
  1433. operationId: edit_integration
  1434. summary: Edit integration data
  1435. tags:
  1436. - Integrations
  1437. consumes:
  1438. - multipart/form-data
  1439. - application/json
  1440. parameters:
  1441. - name: enabled
  1442. in: formData
  1443. description: |
  1444. is the integration enabled?
  1445. type: string
  1446. required: false
  1447. - name: title
  1448. in: formData
  1449. description: |
  1450. new name of the integration
  1451. type: string
  1452. required: false
  1453. - name: url
  1454. in: formData
  1455. description: |
  1456. new URL of the integration
  1457. type: string
  1458. required: false
  1459. - name: token
  1460. in: formData
  1461. description: |
  1462. new token of the integration
  1463. type: string
  1464. required: false
  1465. - name: activities
  1466. in: formData
  1467. description: |
  1468. new list of activities of the integration
  1469. type: string
  1470. required: false
  1471. - name: board
  1472. in: path
  1473. description: |
  1474. the board ID
  1475. type: string
  1476. required: true
  1477. - name: int
  1478. in: path
  1479. description: |
  1480. the integration ID
  1481. type: string
  1482. required: true
  1483. produces:
  1484. - application/json
  1485. security:
  1486. - UserSecurity: []
  1487. responses:
  1488. '200':
  1489. description: |-
  1490. 200 response
  1491. schema:
  1492. type: object
  1493. properties:
  1494. _id:
  1495. type: string
  1496. delete:
  1497. operationId: delete_integration
  1498. summary: Delete integration
  1499. tags:
  1500. - Integrations
  1501. parameters:
  1502. - name: board
  1503. in: path
  1504. description: |
  1505. the board ID
  1506. type: string
  1507. required: true
  1508. - name: int
  1509. in: path
  1510. description: |
  1511. the integration ID
  1512. type: string
  1513. required: true
  1514. produces:
  1515. - application/json
  1516. security:
  1517. - UserSecurity: []
  1518. responses:
  1519. '200':
  1520. description: |-
  1521. 200 response
  1522. schema:
  1523. type: object
  1524. properties:
  1525. _id:
  1526. type: string
  1527. /api/boards/{board}/integrations/{int}/activities:
  1528. delete:
  1529. operationId: delete_integration_activities
  1530. summary: Delete subscribed activities
  1531. tags:
  1532. - Integrations
  1533. parameters:
  1534. - name: board
  1535. in: path
  1536. description: |
  1537. the board ID
  1538. type: string
  1539. required: true
  1540. - name: int
  1541. in: path
  1542. description: |
  1543. the integration ID
  1544. type: string
  1545. required: true
  1546. produces:
  1547. - application/json
  1548. security:
  1549. - UserSecurity: []
  1550. responses:
  1551. '200':
  1552. description: |-
  1553. 200 response
  1554. schema:
  1555. $ref: "#/definitions/Integrations"
  1556. post:
  1557. operationId: new_integration_activities
  1558. summary: Add subscribed activities
  1559. tags:
  1560. - Integrations
  1561. consumes:
  1562. - multipart/form-data
  1563. - application/json
  1564. parameters:
  1565. - name: activities
  1566. in: formData
  1567. description: the activities value
  1568. type: string
  1569. required: true
  1570. - name: board
  1571. in: path
  1572. description: |
  1573. the board ID
  1574. type: string
  1575. required: true
  1576. - name: int
  1577. in: path
  1578. description: |
  1579. the integration ID
  1580. type: string
  1581. required: true
  1582. produces:
  1583. - application/json
  1584. security:
  1585. - UserSecurity: []
  1586. responses:
  1587. '200':
  1588. description: |-
  1589. 200 response
  1590. schema:
  1591. $ref: "#/definitions/Integrations"
  1592. /api/boards/{board}/labels:
  1593. put:
  1594. operationId: add_board_label
  1595. summary: Add a label to a board
  1596. description: |
  1597. If the board doesn't have the name/color label, this function
  1598. adds the label to the board.
  1599. tags:
  1600. - Boards
  1601. consumes:
  1602. - multipart/form-data
  1603. - application/json
  1604. parameters:
  1605. - name: label
  1606. in: formData
  1607. description: the label value
  1608. type: string
  1609. required: true
  1610. - name: board
  1611. in: path
  1612. description: |
  1613. the board
  1614. type: string
  1615. required: true
  1616. produces:
  1617. - application/json
  1618. security:
  1619. - UserSecurity: []
  1620. responses:
  1621. '200':
  1622. description: |-
  1623. 200 response
  1624. schema:
  1625. type: string
  1626. /api/boards/{board}/lists:
  1627. get:
  1628. operationId: get_all_lists
  1629. summary: Get the list of Lists attached to a board
  1630. tags:
  1631. - Lists
  1632. parameters:
  1633. - name: board
  1634. in: path
  1635. description: |
  1636. the board ID
  1637. type: string
  1638. required: true
  1639. produces:
  1640. - application/json
  1641. security:
  1642. - UserSecurity: []
  1643. responses:
  1644. '200':
  1645. description: |-
  1646. 200 response
  1647. schema:
  1648. type: array
  1649. items:
  1650. type: object
  1651. properties:
  1652. _id:
  1653. type: string
  1654. title:
  1655. type: string
  1656. post:
  1657. operationId: new_list
  1658. summary: Add a List to a board
  1659. tags:
  1660. - Lists
  1661. consumes:
  1662. - multipart/form-data
  1663. - application/json
  1664. parameters:
  1665. - name: title
  1666. in: formData
  1667. description: |
  1668. the title of the List
  1669. type: string
  1670. required: true
  1671. - name: board
  1672. in: path
  1673. description: |
  1674. the board ID
  1675. type: string
  1676. required: true
  1677. produces:
  1678. - application/json
  1679. security:
  1680. - UserSecurity: []
  1681. responses:
  1682. '200':
  1683. description: |-
  1684. 200 response
  1685. schema:
  1686. type: object
  1687. properties:
  1688. _id:
  1689. type: string
  1690. /api/boards/{board}/lists/{list}:
  1691. get:
  1692. operationId: get_list
  1693. summary: Get a List attached to a board
  1694. tags:
  1695. - Lists
  1696. parameters:
  1697. - name: board
  1698. in: path
  1699. description: |
  1700. the board ID
  1701. type: string
  1702. required: true
  1703. - name: list
  1704. in: path
  1705. description: |
  1706. the List ID
  1707. type: string
  1708. required: true
  1709. produces:
  1710. - application/json
  1711. security:
  1712. - UserSecurity: []
  1713. responses:
  1714. '200':
  1715. description: |-
  1716. 200 response
  1717. schema:
  1718. $ref: "#/definitions/Lists"
  1719. delete:
  1720. operationId: delete_list
  1721. summary: Delete a List
  1722. description: |
  1723. This **deletes** a list from a board.
  1724. The list is not put in the recycle bin.
  1725. tags:
  1726. - Lists
  1727. parameters:
  1728. - name: board
  1729. in: path
  1730. description: |
  1731. the board ID
  1732. type: string
  1733. required: true
  1734. - name: list
  1735. in: path
  1736. description: |
  1737. the ID of the list to remove
  1738. type: string
  1739. required: true
  1740. produces:
  1741. - application/json
  1742. security:
  1743. - UserSecurity: []
  1744. responses:
  1745. '200':
  1746. description: |-
  1747. 200 response
  1748. schema:
  1749. type: object
  1750. properties:
  1751. _id:
  1752. type: string
  1753. /api/boards/{board}/lists/{list}/cards:
  1754. get:
  1755. operationId: get_all_cards
  1756. summary: Get all Cards attached to a List
  1757. tags:
  1758. - Cards
  1759. parameters:
  1760. - name: board
  1761. in: path
  1762. description: |
  1763. the board ID
  1764. type: string
  1765. required: true
  1766. - name: list
  1767. in: path
  1768. description: |
  1769. the list ID
  1770. type: string
  1771. required: true
  1772. produces:
  1773. - application/json
  1774. security:
  1775. - UserSecurity: []
  1776. responses:
  1777. '200':
  1778. description: |-
  1779. 200 response
  1780. schema:
  1781. type: array
  1782. items:
  1783. type: object
  1784. properties:
  1785. _id:
  1786. type: string
  1787. title:
  1788. type: string
  1789. description:
  1790. type: string
  1791. post:
  1792. operationId: new_card
  1793. summary: Create a new Card
  1794. tags:
  1795. - Cards
  1796. consumes:
  1797. - multipart/form-data
  1798. - application/json
  1799. parameters:
  1800. - name: authorId
  1801. in: formData
  1802. description: the authorId value
  1803. type: string
  1804. required: true
  1805. - name: members
  1806. in: formData
  1807. description: |
  1808. the member IDs list of the new card
  1809. type: string
  1810. required: false
  1811. - name: assignees
  1812. in: formData
  1813. description: |
  1814. the array of maximum one ID of assignee of the new card
  1815. type: string
  1816. required: false
  1817. - name: title
  1818. in: formData
  1819. description: |
  1820. the title of the new card
  1821. type: string
  1822. required: true
  1823. - name: description
  1824. in: formData
  1825. description: |
  1826. the description of the new card
  1827. type: string
  1828. required: true
  1829. - name: swimlaneId
  1830. in: formData
  1831. description: |
  1832. the swimlane ID of the new card
  1833. type: string
  1834. required: true
  1835. - name: board
  1836. in: path
  1837. description: |
  1838. the board ID of the new card
  1839. type: string
  1840. required: true
  1841. - name: list
  1842. in: path
  1843. description: |
  1844. the list ID of the new card
  1845. type: string
  1846. required: true
  1847. produces:
  1848. - application/json
  1849. security:
  1850. - UserSecurity: []
  1851. responses:
  1852. '200':
  1853. description: |-
  1854. 200 response
  1855. schema:
  1856. type: object
  1857. properties:
  1858. _id:
  1859. type: string
  1860. /api/boards/{board}/lists/{list}/cards/{card}:
  1861. get:
  1862. operationId: get_card
  1863. summary: Get a Card
  1864. tags:
  1865. - Cards
  1866. parameters:
  1867. - name: board
  1868. in: path
  1869. description: |
  1870. the board ID
  1871. type: string
  1872. required: true
  1873. - name: list
  1874. in: path
  1875. description: |
  1876. the list ID of the card
  1877. type: string
  1878. required: true
  1879. - name: card
  1880. in: path
  1881. description: |
  1882. the card ID
  1883. type: string
  1884. required: true
  1885. produces:
  1886. - application/json
  1887. security:
  1888. - UserSecurity: []
  1889. responses:
  1890. '200':
  1891. description: |-
  1892. 200 response
  1893. schema:
  1894. $ref: "#/definitions/Cards"
  1895. put:
  1896. operationId: edit_card
  1897. summary: Edit Fields in a Card
  1898. description: |
  1899. Edit a card
  1900. The color has to be chosen between `white`, `green`, `yellow`, `orange`,
  1901. `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`,
  1902. `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`,
  1903. `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`,
  1904. `indigo`:
  1905. <img src="/card-colors.png" width="40%" alt="Wekan card colors" />
  1906. Note: setting the color to white has the same effect than removing it.
  1907. tags:
  1908. - Cards
  1909. consumes:
  1910. - multipart/form-data
  1911. - application/json
  1912. parameters:
  1913. - name: title
  1914. in: formData
  1915. description: |
  1916. the new title of the card
  1917. type: string
  1918. required: false
  1919. - name: sort
  1920. in: formData
  1921. description: |
  1922. the new sort value of the card
  1923. type: string
  1924. required: false
  1925. - name: parentId
  1926. in: formData
  1927. description: |
  1928. change the parent of the card
  1929. type: string
  1930. required: false
  1931. - name: description
  1932. in: formData
  1933. description: |
  1934. the new description of the card
  1935. type: string
  1936. required: false
  1937. - name: color
  1938. in: formData
  1939. description: |
  1940. the new color of the card
  1941. type: string
  1942. required: false
  1943. - name: vote
  1944. in: formData
  1945. description: |
  1946. the vote object
  1947. type: object
  1948. required: false
  1949. - name: poker
  1950. in: formData
  1951. description: |
  1952. the poker object
  1953. type: object
  1954. required: false
  1955. - name: labelIds
  1956. in: formData
  1957. description: |
  1958. the new list of label IDs attached to the card
  1959. type: string
  1960. required: false
  1961. - name: requestedBy
  1962. in: formData
  1963. description: |
  1964. the new requestedBy field of the card
  1965. type: string
  1966. required: false
  1967. - name: assignedBy
  1968. in: formData
  1969. description: |
  1970. the new assignedBy field of the card
  1971. type: string
  1972. required: false
  1973. - name: receivedAt
  1974. in: formData
  1975. description: |
  1976. the new receivedAt field of the card
  1977. type: string
  1978. required: false
  1979. - name: startAt
  1980. in: formData
  1981. description: |
  1982. the new startAt field of the card
  1983. type: string
  1984. required: false
  1985. - name: dueAt
  1986. in: formData
  1987. description: |
  1988. the new dueAt field of the card
  1989. type: string
  1990. required: false
  1991. - name: endAt
  1992. in: formData
  1993. description: |
  1994. the new endAt field of the card
  1995. type: string
  1996. required: false
  1997. - name: spentTime
  1998. in: formData
  1999. description: |
  2000. the new spentTime field of the card
  2001. type: string
  2002. required: false
  2003. - name: isOverTime
  2004. in: formData
  2005. description: |
  2006. the new isOverTime field of the card
  2007. type: boolean
  2008. required: false
  2009. - name: customFields
  2010. in: formData
  2011. description: |
  2012. the new customFields value of the card
  2013. type: string
  2014. required: false
  2015. - name: members
  2016. in: formData
  2017. description: |
  2018. the new list of member IDs attached to the card
  2019. type: string
  2020. required: false
  2021. - name: assignees
  2022. in: formData
  2023. description: |
  2024. the array of maximum one ID of assignee attached to the card
  2025. type: string
  2026. required: false
  2027. - name: swimlaneId
  2028. in: formData
  2029. description: |
  2030. the new swimlane ID of the card
  2031. type: string
  2032. required: false
  2033. - name: listId
  2034. in: formData
  2035. description: |
  2036. the new list ID of the card (move operation)
  2037. type: string
  2038. required: false
  2039. - name: authorId
  2040. in: formData
  2041. description: |
  2042. change the owner of the card
  2043. type: string
  2044. required: false
  2045. - name: board
  2046. in: path
  2047. description: |
  2048. the board ID of the card
  2049. type: string
  2050. required: true
  2051. - name: list
  2052. in: path
  2053. description: |
  2054. the list ID of the card
  2055. type: string
  2056. required: true
  2057. - name: card
  2058. in: path
  2059. description: |
  2060. the ID of the card
  2061. type: string
  2062. required: true
  2063. produces:
  2064. - application/json
  2065. security:
  2066. - UserSecurity: []
  2067. responses:
  2068. '200':
  2069. description: |-
  2070. 200 response
  2071. schema:
  2072. type: object
  2073. properties:
  2074. _id:
  2075. type: string
  2076. delete:
  2077. operationId: delete_card
  2078. summary: Delete a card from a board
  2079. description: |
  2080. This operation **deletes** a card, and therefore the card
  2081. is not put in the recycle bin.
  2082. tags:
  2083. - Cards
  2084. parameters:
  2085. - name: board
  2086. in: path
  2087. description: |
  2088. the board ID of the card
  2089. type: string
  2090. required: true
  2091. - name: list
  2092. in: path
  2093. description: |
  2094. the list ID of the card
  2095. type: string
  2096. required: true
  2097. - name: card
  2098. in: path
  2099. description: |
  2100. the ID of the card
  2101. type: string
  2102. required: true
  2103. produces:
  2104. - application/json
  2105. security:
  2106. - UserSecurity: []
  2107. responses:
  2108. '200':
  2109. description: |-
  2110. 200 response
  2111. schema:
  2112. type: object
  2113. properties:
  2114. _id:
  2115. type: string
  2116. /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}:
  2117. post:
  2118. operationId: edit_card_custom_field
  2119. summary: Edit Custom Field in a Card
  2120. description: |
  2121. Edit a custom field value in a card
  2122. tags:
  2123. - Cards
  2124. consumes:
  2125. - multipart/form-data
  2126. - application/json
  2127. parameters:
  2128. - name: value
  2129. in: formData
  2130. description: |
  2131. the new custom field value
  2132. type: string
  2133. required: true
  2134. - name: board
  2135. in: path
  2136. description: |
  2137. the board ID of the card
  2138. type: string
  2139. required: true
  2140. - name: list
  2141. in: path
  2142. description: |
  2143. the list ID of the card
  2144. type: string
  2145. required: true
  2146. - name: card
  2147. in: path
  2148. description: |
  2149. the ID of the card
  2150. type: string
  2151. required: true
  2152. - name: customField
  2153. in: path
  2154. description: |
  2155. the ID of the custom field
  2156. type: string
  2157. required: true
  2158. produces:
  2159. - application/json
  2160. security:
  2161. - UserSecurity: []
  2162. responses:
  2163. '200':
  2164. description: |-
  2165. 200 response
  2166. schema:
  2167. type: object
  2168. properties:
  2169. _id:
  2170. type: string
  2171. customFields:
  2172. type: object
  2173. /api/boards/{board}/lists/{list}/cards_count:
  2174. get:
  2175. operationId: get_list_cards_count
  2176. summary: Get a cards count to a list
  2177. tags:
  2178. - Cards
  2179. parameters:
  2180. - name: board
  2181. in: path
  2182. description: |
  2183. the board ID
  2184. type: string
  2185. required: true
  2186. - name: list
  2187. in: path
  2188. description: |
  2189. the List ID
  2190. type: string
  2191. required: true
  2192. produces:
  2193. - application/json
  2194. security:
  2195. - UserSecurity: []
  2196. responses:
  2197. '200':
  2198. description: |-
  2199. 200 response
  2200. schema:
  2201. type: object
  2202. properties:
  2203. list_cards_count:
  2204. type: integer
  2205. /api/boards/{board}/members/{member}:
  2206. post:
  2207. operationId: set_board_member_permission
  2208. summary: Change the permission of a member of a board
  2209. tags:
  2210. - Boards
  2211. - Users
  2212. consumes:
  2213. - multipart/form-data
  2214. - application/json
  2215. parameters:
  2216. - name: isAdmin
  2217. in: formData
  2218. description: |
  2219. admin capability
  2220. type: boolean
  2221. required: true
  2222. - name: isNoComments
  2223. in: formData
  2224. description: |
  2225. NoComments capability
  2226. type: boolean
  2227. required: true
  2228. - name: isCommentOnly
  2229. in: formData
  2230. description: |
  2231. CommentsOnly capability
  2232. type: boolean
  2233. required: true
  2234. - name: isWorker
  2235. in: formData
  2236. description: |
  2237. Worker capability
  2238. type: boolean
  2239. required: true
  2240. - name: board
  2241. in: path
  2242. description: |
  2243. the ID of the board that we are changing
  2244. type: string
  2245. required: true
  2246. - name: member
  2247. in: path
  2248. description: |
  2249. the ID of the user to change permissions
  2250. type: string
  2251. required: true
  2252. produces:
  2253. - application/json
  2254. security:
  2255. - UserSecurity: []
  2256. responses:
  2257. '200':
  2258. description: |-
  2259. 200 response
  2260. /api/boards/{board}/members/{user}/add:
  2261. post:
  2262. operationId: add_board_member
  2263. summary: Add New Board Member with Role
  2264. description: |
  2265. Only the admin user (the first user) can call the REST API.
  2266. **Note**: see [Boards.set_board_member_permission](#set_board_member_permission)
  2267. to later change the permissions.
  2268. tags:
  2269. - Users
  2270. - Boards
  2271. consumes:
  2272. - multipart/form-data
  2273. - application/json
  2274. parameters:
  2275. - name: action
  2276. in: formData
  2277. description: |
  2278. the action (needs to be `add`)
  2279. type: string
  2280. required: true
  2281. - name: isAdmin
  2282. in: formData
  2283. description: |
  2284. is the user an admin of the board
  2285. type: boolean
  2286. required: true
  2287. - name: isNoComments
  2288. in: formData
  2289. description: |
  2290. disable comments
  2291. type: boolean
  2292. required: true
  2293. - name: isCommentOnly
  2294. in: formData
  2295. description: |
  2296. only enable comments
  2297. type: boolean
  2298. required: true
  2299. - name: isWorker
  2300. in: formData
  2301. description: |
  2302. is the user a board worker
  2303. type: boolean
  2304. required: true
  2305. - name: board
  2306. in: path
  2307. description: |
  2308. the board ID
  2309. type: string
  2310. required: true
  2311. - name: user
  2312. in: path
  2313. description: |
  2314. the user ID
  2315. type: string
  2316. required: true
  2317. produces:
  2318. - application/json
  2319. security:
  2320. - UserSecurity: []
  2321. responses:
  2322. '200':
  2323. description: |-
  2324. 200 response
  2325. schema:
  2326. type: object
  2327. properties:
  2328. _id:
  2329. type: string
  2330. title:
  2331. type: string
  2332. /api/boards/{board}/members/{user}/remove:
  2333. post:
  2334. operationId: remove_board_member
  2335. summary: Remove Member from Board
  2336. description: |
  2337. Only the admin user (the first user) can call the REST API.
  2338. tags:
  2339. - Users
  2340. - Boards
  2341. consumes:
  2342. - multipart/form-data
  2343. - application/json
  2344. parameters:
  2345. - name: action
  2346. in: formData
  2347. description: |
  2348. the action (needs to be `remove`)
  2349. type: string
  2350. required: true
  2351. - name: board
  2352. in: path
  2353. description: |
  2354. the board ID
  2355. type: string
  2356. required: true
  2357. - name: user
  2358. in: path
  2359. description: |
  2360. the user ID
  2361. type: string
  2362. required: true
  2363. produces:
  2364. - application/json
  2365. security:
  2366. - UserSecurity: []
  2367. responses:
  2368. '200':
  2369. description: |-
  2370. 200 response
  2371. schema:
  2372. type: object
  2373. properties:
  2374. _id:
  2375. type: string
  2376. title:
  2377. type: string
  2378. /api/boards/{board}/swimlanes:
  2379. get:
  2380. operationId: get_all_swimlanes
  2381. summary: Get the list of swimlanes attached to a board
  2382. tags:
  2383. - Swimlanes
  2384. parameters:
  2385. - name: board
  2386. in: path
  2387. description: |
  2388. the ID of the board
  2389. type: string
  2390. required: true
  2391. produces:
  2392. - application/json
  2393. security:
  2394. - UserSecurity: []
  2395. responses:
  2396. '200':
  2397. description: |-
  2398. 200 response
  2399. schema:
  2400. type: array
  2401. items:
  2402. type: object
  2403. properties:
  2404. _id:
  2405. type: string
  2406. title:
  2407. type: string
  2408. post:
  2409. operationId: new_swimlane
  2410. summary: Add a swimlane to a board
  2411. tags:
  2412. - Swimlanes
  2413. consumes:
  2414. - multipart/form-data
  2415. - application/json
  2416. parameters:
  2417. - name: title
  2418. in: formData
  2419. description: |
  2420. the new title of the swimlane
  2421. type: string
  2422. required: true
  2423. - name: board
  2424. in: path
  2425. description: |
  2426. the ID of the board
  2427. type: string
  2428. required: true
  2429. produces:
  2430. - application/json
  2431. security:
  2432. - UserSecurity: []
  2433. responses:
  2434. '200':
  2435. description: |-
  2436. 200 response
  2437. schema:
  2438. type: object
  2439. properties:
  2440. _id:
  2441. type: string
  2442. /api/boards/{board}/swimlanes/{swimlane}:
  2443. get:
  2444. operationId: get_swimlane
  2445. summary: Get a swimlane
  2446. tags:
  2447. - Swimlanes
  2448. parameters:
  2449. - name: board
  2450. in: path
  2451. description: |
  2452. the ID of the board
  2453. type: string
  2454. required: true
  2455. - name: swimlane
  2456. in: path
  2457. description: |
  2458. the ID of the swimlane
  2459. type: string
  2460. required: true
  2461. produces:
  2462. - application/json
  2463. security:
  2464. - UserSecurity: []
  2465. responses:
  2466. '200':
  2467. description: |-
  2468. 200 response
  2469. schema:
  2470. $ref: "#/definitions/Swimlanes"
  2471. delete:
  2472. operationId: delete_swimlane
  2473. summary: Delete a swimlane
  2474. description: |
  2475. The swimlane will be deleted, not moved to the recycle bin
  2476. tags:
  2477. - Swimlanes
  2478. parameters:
  2479. - name: board
  2480. in: path
  2481. description: |
  2482. the ID of the board
  2483. type: string
  2484. required: true
  2485. - name: swimlane
  2486. in: path
  2487. description: |
  2488. the ID of the swimlane
  2489. type: string
  2490. required: true
  2491. produces:
  2492. - application/json
  2493. security:
  2494. - UserSecurity: []
  2495. responses:
  2496. '200':
  2497. description: |-
  2498. 200 response
  2499. schema:
  2500. type: object
  2501. properties:
  2502. _id:
  2503. type: string
  2504. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2505. get:
  2506. operationId: get_swimlane_cards
  2507. summary: get all cards attached to a swimlane
  2508. tags:
  2509. - Cards
  2510. parameters:
  2511. - name: board
  2512. in: path
  2513. description: |
  2514. the board ID
  2515. type: string
  2516. required: true
  2517. - name: swimlane
  2518. in: path
  2519. description: |
  2520. the swimlane ID
  2521. type: string
  2522. required: true
  2523. produces:
  2524. - application/json
  2525. security:
  2526. - UserSecurity: []
  2527. responses:
  2528. '200':
  2529. description: |-
  2530. 200 response
  2531. schema:
  2532. type: array
  2533. items:
  2534. type: object
  2535. properties:
  2536. _id:
  2537. type: string
  2538. title:
  2539. type: string
  2540. description:
  2541. type: string
  2542. listId:
  2543. type: string
  2544. /api/boards_count:
  2545. get:
  2546. operationId: get_boards_count
  2547. summary: Get public and private boards count
  2548. tags:
  2549. - Boards
  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. private:
  2562. type: integer
  2563. public:
  2564. type: integer
  2565. /api/createtoken/{user}:
  2566. post:
  2567. operationId: create_user_token
  2568. summary: Create a user token
  2569. description: |
  2570. Only the admin user (the first user) can call the REST API.
  2571. tags:
  2572. - Users
  2573. consumes:
  2574. - multipart/form-data
  2575. - application/json
  2576. parameters:
  2577. - name: user
  2578. in: path
  2579. description: |
  2580. the ID of the user to create token for.
  2581. type: string
  2582. required: true
  2583. produces:
  2584. - application/json
  2585. security:
  2586. - UserSecurity: []
  2587. responses:
  2588. '200':
  2589. description: |-
  2590. 200 response
  2591. schema:
  2592. type: object
  2593. properties:
  2594. _id:
  2595. type: string
  2596. /api/deletetoken:
  2597. post:
  2598. operationId: delete_user_token
  2599. summary: Delete one or all user token.
  2600. description: |
  2601. Only the admin user (the first user) can call the REST API.
  2602. tags:
  2603. - Users
  2604. consumes:
  2605. - multipart/form-data
  2606. - application/json
  2607. parameters:
  2608. - name: userId
  2609. in: formData
  2610. description: |
  2611. the user ID
  2612. type: string
  2613. required: true
  2614. - name: token
  2615. in: formData
  2616. description: |
  2617. the user hashedToken
  2618. type: string
  2619. required: true
  2620. produces:
  2621. - application/json
  2622. security:
  2623. - UserSecurity: []
  2624. responses:
  2625. '200':
  2626. description: |-
  2627. 200 response
  2628. schema:
  2629. type: object
  2630. properties:
  2631. message:
  2632. type: string
  2633. /api/user:
  2634. get:
  2635. operationId: get_current_user
  2636. summary: returns the current user
  2637. tags:
  2638. - Users
  2639. produces:
  2640. - application/json
  2641. security:
  2642. - UserSecurity: []
  2643. responses:
  2644. '200':
  2645. description: |-
  2646. 200 response
  2647. schema:
  2648. $ref: "#/definitions/Users"
  2649. /api/users:
  2650. get:
  2651. operationId: get_all_users
  2652. summary: return all the users
  2653. description: |
  2654. Only the admin user (the first user) can call the REST API.
  2655. tags:
  2656. - Users
  2657. produces:
  2658. - application/json
  2659. security:
  2660. - UserSecurity: []
  2661. responses:
  2662. '200':
  2663. description: |-
  2664. 200 response
  2665. schema:
  2666. type: array
  2667. items:
  2668. type: object
  2669. properties:
  2670. _id:
  2671. type: string
  2672. username:
  2673. type: string
  2674. post:
  2675. operationId: new_user
  2676. summary: Create a new user
  2677. description: |
  2678. Only the admin user (the first user) can call the REST API.
  2679. tags:
  2680. - Users
  2681. consumes:
  2682. - multipart/form-data
  2683. - application/json
  2684. parameters:
  2685. - name: username
  2686. in: formData
  2687. description: |
  2688. the new username
  2689. type: string
  2690. required: true
  2691. - name: email
  2692. in: formData
  2693. description: |
  2694. the email of the new user
  2695. type: string
  2696. required: true
  2697. - name: password
  2698. in: formData
  2699. description: |
  2700. the password of the new user
  2701. type: string
  2702. required: true
  2703. produces:
  2704. - application/json
  2705. security:
  2706. - UserSecurity: []
  2707. responses:
  2708. '200':
  2709. description: |-
  2710. 200 response
  2711. schema:
  2712. type: object
  2713. properties:
  2714. _id:
  2715. type: string
  2716. /api/users/{user}:
  2717. get:
  2718. operationId: get_user
  2719. summary: get a given user
  2720. description: |
  2721. Only the admin user (the first user) can call the REST API.
  2722. tags:
  2723. - Users
  2724. parameters:
  2725. - name: user
  2726. in: path
  2727. description: |
  2728. the user ID or username
  2729. type: string
  2730. required: true
  2731. produces:
  2732. - application/json
  2733. security:
  2734. - UserSecurity: []
  2735. responses:
  2736. '200':
  2737. description: |-
  2738. 200 response
  2739. schema:
  2740. $ref: "#/definitions/Users"
  2741. put:
  2742. operationId: edit_user
  2743. summary: edit a given user
  2744. description: |
  2745. Only the admin user (the first user) can call the REST API.
  2746. Possible values for *action*:
  2747. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2748. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2749. - `enableLogin`: Enable a user
  2750. tags:
  2751. - Users
  2752. consumes:
  2753. - multipart/form-data
  2754. - application/json
  2755. parameters:
  2756. - name: action
  2757. in: formData
  2758. description: |
  2759. the action
  2760. type: string
  2761. required: true
  2762. - name: user
  2763. in: path
  2764. description: |
  2765. the user ID
  2766. type: string
  2767. required: true
  2768. produces:
  2769. - application/json
  2770. security:
  2771. - UserSecurity: []
  2772. responses:
  2773. '200':
  2774. description: |-
  2775. 200 response
  2776. schema:
  2777. type: object
  2778. properties:
  2779. _id:
  2780. type: string
  2781. title:
  2782. type: string
  2783. delete:
  2784. operationId: delete_user
  2785. summary: Delete a user
  2786. description: |
  2787. Only the admin user (the first user) can call the REST API.
  2788. tags:
  2789. - Users
  2790. parameters:
  2791. - name: user
  2792. in: path
  2793. description: |
  2794. the ID of the user to delete
  2795. type: string
  2796. required: true
  2797. produces:
  2798. - application/json
  2799. security:
  2800. - UserSecurity: []
  2801. responses:
  2802. '200':
  2803. description: |-
  2804. 200 response
  2805. schema:
  2806. type: object
  2807. properties:
  2808. _id:
  2809. type: string
  2810. /api/users/{user}/boards:
  2811. get:
  2812. operationId: get_boards_from_user
  2813. summary: Get all boards attached to a user
  2814. tags:
  2815. - Boards
  2816. parameters:
  2817. - name: user
  2818. in: path
  2819. description: |
  2820. the ID of the user to retrieve the data
  2821. type: string
  2822. required: true
  2823. produces:
  2824. - application/json
  2825. security:
  2826. - UserSecurity: []
  2827. responses:
  2828. '200':
  2829. description: |-
  2830. 200 response
  2831. schema:
  2832. type: array
  2833. items:
  2834. type: object
  2835. properties:
  2836. _id:
  2837. type: string
  2838. title:
  2839. type: string
  2840. definitions:
  2841. Boards:
  2842. type: object
  2843. description: This is a Board.
  2844. properties:
  2845. title:
  2846. description: |
  2847. The title of the board
  2848. type: string
  2849. slug:
  2850. description: |
  2851. The title slugified.
  2852. type: string
  2853. archived:
  2854. description: |
  2855. Is the board archived?
  2856. type: boolean
  2857. archivedAt:
  2858. description: |
  2859. Latest archiving time of the board
  2860. type: string
  2861. x-nullable: true
  2862. createdAt:
  2863. description: |
  2864. Creation time of the board
  2865. type: string
  2866. modifiedAt:
  2867. description: |
  2868. Last modification time of the board
  2869. type: string
  2870. x-nullable: true
  2871. stars:
  2872. description: |
  2873. How many stars the board has
  2874. type: number
  2875. labels:
  2876. description: |
  2877. List of labels attached to a board
  2878. type: array
  2879. items:
  2880. $ref: "#/definitions/BoardsLabels"
  2881. x-nullable: true
  2882. members:
  2883. description: |
  2884. List of members of a board
  2885. type: array
  2886. items:
  2887. $ref: "#/definitions/BoardsMembers"
  2888. permission:
  2889. description: |
  2890. visibility of the board
  2891. type: string
  2892. enum:
  2893. - public
  2894. - private
  2895. orgs:
  2896. description: |
  2897. the list of organizations that a board belongs to
  2898. type: array
  2899. items:
  2900. $ref: "#/definitions/BoardsOrgs"
  2901. x-nullable: true
  2902. teams:
  2903. description: |
  2904. the list of teams that a board belongs to
  2905. type: array
  2906. items:
  2907. $ref: "#/definitions/BoardsTeams"
  2908. x-nullable: true
  2909. color:
  2910. description: |
  2911. The color of the board.
  2912. type: string
  2913. enum:
  2914. - belize
  2915. - nephritis
  2916. - pomegranate
  2917. - pumpkin
  2918. - wisteria
  2919. - moderatepink
  2920. - strongcyan
  2921. - limegreen
  2922. - midnight
  2923. - dark
  2924. - relax
  2925. - corteza
  2926. - clearblue
  2927. - natural
  2928. - modern
  2929. - moderndark
  2930. - exodark
  2931. allowsCardCounterList:
  2932. description: |
  2933. Show card counter per list
  2934. type: boolean
  2935. allowsBoardMemberList:
  2936. description: |
  2937. Show board member list
  2938. type: boolean
  2939. description:
  2940. description: |
  2941. The description of the board
  2942. type: string
  2943. x-nullable: true
  2944. subtasksDefaultBoardId:
  2945. description: |
  2946. The default board ID assigned to subtasks.
  2947. type: string
  2948. x-nullable: true
  2949. subtasksDefaultListId:
  2950. description: |
  2951. The default List ID assigned to subtasks.
  2952. type: string
  2953. x-nullable: true
  2954. dateSettingsDefaultBoardId:
  2955. type: string
  2956. x-nullable: true
  2957. dateSettingsDefaultListId:
  2958. type: string
  2959. x-nullable: true
  2960. allowsSubtasks:
  2961. description: |
  2962. Does the board allows subtasks?
  2963. type: boolean
  2964. allowsAttachments:
  2965. description: |
  2966. Does the board allows attachments?
  2967. type: boolean
  2968. allowsChecklists:
  2969. description: |
  2970. Does the board allows checklists?
  2971. type: boolean
  2972. allowsComments:
  2973. description: |
  2974. Does the board allows comments?
  2975. type: boolean
  2976. allowsDescriptionTitle:
  2977. description: |
  2978. Does the board allows description title?
  2979. type: boolean
  2980. allowsDescriptionText:
  2981. description: |
  2982. Does the board allows description text?
  2983. type: boolean
  2984. allowsDescriptionTextOnMinicard:
  2985. description: |
  2986. Does the board allows description text on minicard?
  2987. type: boolean
  2988. allowsCardNumber:
  2989. description: |
  2990. Does the board allows card numbers?
  2991. type: boolean
  2992. allowsActivities:
  2993. description: |
  2994. Does the board allows comments?
  2995. type: boolean
  2996. allowsLabels:
  2997. description: |
  2998. Does the board allows labels?
  2999. type: boolean
  3000. allowsCreator:
  3001. description: |
  3002. Does the board allow creator?
  3003. type: boolean
  3004. allowsAssignee:
  3005. description: |
  3006. Does the board allows assignee?
  3007. type: boolean
  3008. allowsMembers:
  3009. description: |
  3010. Does the board allows members?
  3011. type: boolean
  3012. allowsRequestedBy:
  3013. description: |
  3014. Does the board allows requested by?
  3015. type: boolean
  3016. allowsCardSortingByNumber:
  3017. description: |
  3018. Does the board allows card sorting by number?
  3019. type: boolean
  3020. allowsShowLists:
  3021. description: |
  3022. Does the board allows show lists on the card?
  3023. type: boolean
  3024. allowsAssignedBy:
  3025. description: |
  3026. Does the board allows requested by?
  3027. type: boolean
  3028. allowsReceivedDate:
  3029. description: |
  3030. Does the board allows received date?
  3031. type: boolean
  3032. allowsStartDate:
  3033. description: |
  3034. Does the board allows start date?
  3035. type: boolean
  3036. allowsEndDate:
  3037. description: |
  3038. Does the board allows end date?
  3039. type: boolean
  3040. allowsDueDate:
  3041. description: |
  3042. Does the board allows due date?
  3043. type: boolean
  3044. presentParentTask:
  3045. description: |
  3046. Controls how to present the parent task:
  3047. - `prefix-with-full-path`: add a prefix with the full path
  3048. - `prefix-with-parent`: add a prefisx with the parent name
  3049. - `subtext-with-full-path`: add a subtext with the full path
  3050. - `subtext-with-parent`: add a subtext with the parent name
  3051. - `no-parent`: does not show the parent at all
  3052. type: string
  3053. enum:
  3054. - prefix-with-full-path
  3055. - prefix-with-parent
  3056. - subtext-with-full-path
  3057. - subtext-with-parent
  3058. - no-parent
  3059. x-nullable: true
  3060. receivedAt:
  3061. description: |
  3062. Date the card was received
  3063. type: string
  3064. x-nullable: true
  3065. startAt:
  3066. description: |
  3067. Starting date of the board.
  3068. type: string
  3069. x-nullable: true
  3070. dueAt:
  3071. description: |
  3072. Due date of the board.
  3073. type: string
  3074. x-nullable: true
  3075. endAt:
  3076. description: |
  3077. End date of the board.
  3078. type: string
  3079. x-nullable: true
  3080. spentTime:
  3081. description: |
  3082. Time spent in the board.
  3083. type: number
  3084. x-nullable: true
  3085. isOvertime:
  3086. description: |
  3087. Is the board overtimed?
  3088. type: boolean
  3089. x-nullable: true
  3090. type:
  3091. description: |
  3092. The type of board
  3093. possible values: board, template-board, template-container
  3094. type: string
  3095. enum:
  3096. - board
  3097. - template-board
  3098. - template-container
  3099. sort:
  3100. description: |
  3101. Sort value
  3102. type: number
  3103. required:
  3104. - title
  3105. - slug
  3106. - archived
  3107. - createdAt
  3108. - stars
  3109. - members
  3110. - permission
  3111. - color
  3112. - allowsCardCounterList
  3113. - allowsBoardMemberList
  3114. - allowsSubtasks
  3115. - allowsAttachments
  3116. - allowsChecklists
  3117. - allowsComments
  3118. - allowsDescriptionTitle
  3119. - allowsDescriptionText
  3120. - allowsDescriptionTextOnMinicard
  3121. - allowsCardNumber
  3122. - allowsActivities
  3123. - allowsLabels
  3124. - allowsCreator
  3125. - allowsAssignee
  3126. - allowsMembers
  3127. - allowsRequestedBy
  3128. - allowsCardSortingByNumber
  3129. - allowsShowLists
  3130. - allowsAssignedBy
  3131. - allowsReceivedDate
  3132. - allowsStartDate
  3133. - allowsEndDate
  3134. - allowsDueDate
  3135. - type
  3136. - sort
  3137. BoardsLabels:
  3138. type: object
  3139. properties:
  3140. _id:
  3141. description: |
  3142. Unique id of a label
  3143. type: string
  3144. name:
  3145. description: |
  3146. Name of a label
  3147. type: string
  3148. color:
  3149. description: |
  3150. color of a label.
  3151. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  3152. `blue`, `sky`, `lime`, `pink`, `black`,
  3153. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  3154. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  3155. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  3156. type: string
  3157. enum:
  3158. - white
  3159. - green
  3160. - yellow
  3161. - orange
  3162. - red
  3163. - purple
  3164. - blue
  3165. - sky
  3166. - lime
  3167. - pink
  3168. - black
  3169. - silver
  3170. - peachpuff
  3171. - crimson
  3172. - plum
  3173. - darkgreen
  3174. - slateblue
  3175. - magenta
  3176. - gold
  3177. - navy
  3178. - gray
  3179. - saddlebrown
  3180. - paleturquoise
  3181. - mistyrose
  3182. - indigo
  3183. required:
  3184. - _id
  3185. - color
  3186. BoardsMembers:
  3187. type: object
  3188. properties:
  3189. userId:
  3190. description: |
  3191. The uniq ID of the member
  3192. type: string
  3193. isAdmin:
  3194. description: |
  3195. Is the member an admin of the board?
  3196. type: boolean
  3197. isActive:
  3198. description: |
  3199. Is the member active?
  3200. type: boolean
  3201. isNoComments:
  3202. description: |
  3203. Is the member not allowed to make comments
  3204. type: boolean
  3205. isCommentOnly:
  3206. description: |
  3207. Is the member only allowed to comment on the board
  3208. type: boolean
  3209. isWorker:
  3210. description: |
  3211. Is the member only allowed to move card, assign himself to card and comment
  3212. type: boolean
  3213. required:
  3214. - userId
  3215. - isAdmin
  3216. - isActive
  3217. BoardsOrgs:
  3218. type: object
  3219. properties:
  3220. orgId:
  3221. description: |
  3222. The uniq ID of the organization
  3223. type: string
  3224. orgDisplayName:
  3225. description: |
  3226. The display name of the organization
  3227. type: string
  3228. isActive:
  3229. description: |
  3230. Is the organization active?
  3231. type: boolean
  3232. required:
  3233. - orgId
  3234. - orgDisplayName
  3235. - isActive
  3236. BoardsTeams:
  3237. type: object
  3238. properties:
  3239. teamId:
  3240. description: |
  3241. The uniq ID of the team
  3242. type: string
  3243. teamDisplayName:
  3244. description: |
  3245. The display name of the team
  3246. type: string
  3247. isActive:
  3248. description: |
  3249. Is the team active?
  3250. type: boolean
  3251. required:
  3252. - teamId
  3253. - teamDisplayName
  3254. - isActive
  3255. CardComments:
  3256. type: object
  3257. description: A comment on a card
  3258. properties:
  3259. boardId:
  3260. description: |
  3261. the board ID
  3262. type: string
  3263. cardId:
  3264. description: |
  3265. the card ID
  3266. type: string
  3267. text:
  3268. description: |
  3269. the text of the comment
  3270. type: string
  3271. createdAt:
  3272. description: |
  3273. when was the comment created
  3274. type: string
  3275. modifiedAt:
  3276. type: string
  3277. userId:
  3278. description: |
  3279. the author ID of the comment
  3280. type: string
  3281. required:
  3282. - boardId
  3283. - cardId
  3284. - text
  3285. - createdAt
  3286. - modifiedAt
  3287. - userId
  3288. Cards:
  3289. type: object
  3290. properties:
  3291. title:
  3292. description: |
  3293. the title of the card
  3294. type: string
  3295. x-nullable: true
  3296. archived:
  3297. description: |
  3298. is the card archived
  3299. type: boolean
  3300. archivedAt:
  3301. description: |
  3302. latest archiving date
  3303. type: string
  3304. x-nullable: true
  3305. parentId:
  3306. description: |
  3307. ID of the parent card
  3308. type: string
  3309. x-nullable: true
  3310. listId:
  3311. description: |
  3312. List ID where the card is
  3313. type: string
  3314. x-nullable: true
  3315. swimlaneId:
  3316. description: |
  3317. Swimlane ID where the card is
  3318. type: string
  3319. boardId:
  3320. description: |
  3321. Board ID of the card
  3322. type: string
  3323. x-nullable: true
  3324. coverId:
  3325. description: |
  3326. Cover ID of the card
  3327. type: string
  3328. x-nullable: true
  3329. color:
  3330. type: string
  3331. enum:
  3332. - white
  3333. - green
  3334. - yellow
  3335. - orange
  3336. - red
  3337. - purple
  3338. - blue
  3339. - sky
  3340. - lime
  3341. - pink
  3342. - black
  3343. - silver
  3344. - peachpuff
  3345. - crimson
  3346. - plum
  3347. - darkgreen
  3348. - slateblue
  3349. - magenta
  3350. - gold
  3351. - navy
  3352. - gray
  3353. - saddlebrown
  3354. - paleturquoise
  3355. - mistyrose
  3356. - indigo
  3357. x-nullable: true
  3358. createdAt:
  3359. description: |
  3360. creation date
  3361. type: string
  3362. modifiedAt:
  3363. type: string
  3364. customFields:
  3365. description: |
  3366. list of custom fields
  3367. type: array
  3368. items:
  3369. $ref: "#/definitions/CardsCustomfields"
  3370. x-nullable: true
  3371. dateLastActivity:
  3372. description: |
  3373. Date of last activity
  3374. type: string
  3375. description:
  3376. description: |
  3377. description of the card
  3378. type: string
  3379. x-nullable: true
  3380. requestedBy:
  3381. description: |
  3382. who requested the card (ID of the user)
  3383. type: string
  3384. x-nullable: true
  3385. assignedBy:
  3386. description: |
  3387. who assigned the card (ID of the user)
  3388. type: string
  3389. x-nullable: true
  3390. labelIds:
  3391. description: |
  3392. list of labels ID the card has
  3393. type: array
  3394. items:
  3395. type: string
  3396. x-nullable: true
  3397. x-nullable: true
  3398. members:
  3399. description: |
  3400. list of members (user IDs)
  3401. type: array
  3402. items:
  3403. type: string
  3404. x-nullable: true
  3405. x-nullable: true
  3406. assignees:
  3407. description: |
  3408. who is assignee of the card (user ID),
  3409. maximum one ID of assignee in array.
  3410. type: array
  3411. items:
  3412. type: string
  3413. x-nullable: true
  3414. x-nullable: true
  3415. receivedAt:
  3416. description: |
  3417. Date the card was received
  3418. type: string
  3419. x-nullable: true
  3420. startAt:
  3421. description: |
  3422. Date the card was started to be worked on
  3423. type: string
  3424. x-nullable: true
  3425. dueAt:
  3426. description: |
  3427. Date the card is due
  3428. type: string
  3429. x-nullable: true
  3430. endAt:
  3431. description: |
  3432. Date the card ended
  3433. type: string
  3434. x-nullable: true
  3435. spentTime:
  3436. description: |
  3437. How much time has been spent on this
  3438. type: number
  3439. x-nullable: true
  3440. isOvertime:
  3441. description: |
  3442. is the card over time?
  3443. type: boolean
  3444. x-nullable: true
  3445. userId:
  3446. description: |
  3447. user ID of the author of the card
  3448. type: string
  3449. sort:
  3450. description: |
  3451. Sort value
  3452. type: number
  3453. x-nullable: true
  3454. subtaskSort:
  3455. description: |
  3456. subtask sort value
  3457. type: number
  3458. x-nullable: true
  3459. type:
  3460. description: |
  3461. type of the card
  3462. type: string
  3463. linkedId:
  3464. description: |
  3465. ID of the linked card
  3466. type: string
  3467. x-nullable: true
  3468. vote:
  3469. description: |
  3470. vote object, see below
  3471. $ref: "#/definitions/CardsVote"
  3472. x-nullable: true
  3473. poker:
  3474. description: |
  3475. poker object, see below
  3476. $ref: "#/definitions/CardsPoker"
  3477. x-nullable: true
  3478. targetId_gantt:
  3479. description: |
  3480. ID of card which is the child link in gantt view
  3481. type: array
  3482. items:
  3483. type: string
  3484. x-nullable: true
  3485. x-nullable: true
  3486. linkType_gantt:
  3487. description: |
  3488. ID of card which is the parent link in gantt view
  3489. type: array
  3490. items:
  3491. type: number
  3492. x-nullable: true
  3493. x-nullable: true
  3494. linkId_gantt:
  3495. description: |
  3496. ID of card which is the parent link in gantt view
  3497. type: array
  3498. items:
  3499. type: string
  3500. x-nullable: true
  3501. x-nullable: true
  3502. cardNumber:
  3503. description: |
  3504. A boardwise sequentially increasing number that is assigned
  3505. to every newly created card
  3506. type: number
  3507. x-nullable: true
  3508. required:
  3509. - archived
  3510. - swimlaneId
  3511. - createdAt
  3512. - modifiedAt
  3513. - dateLastActivity
  3514. - userId
  3515. - type
  3516. CardsVote:
  3517. type: object
  3518. properties:
  3519. question:
  3520. type: string
  3521. positive:
  3522. description: |
  3523. list of members (user IDs)
  3524. type: array
  3525. items:
  3526. type: string
  3527. x-nullable: true
  3528. negative:
  3529. description: |
  3530. list of members (user IDs)
  3531. type: array
  3532. items:
  3533. type: string
  3534. x-nullable: true
  3535. end:
  3536. type: string
  3537. public:
  3538. type: boolean
  3539. allowNonBoardMembers:
  3540. type: boolean
  3541. required:
  3542. - question
  3543. - public
  3544. - allowNonBoardMembers
  3545. CardsPoker:
  3546. type: object
  3547. properties:
  3548. question:
  3549. type: boolean
  3550. one:
  3551. description: |
  3552. poker card one
  3553. type: array
  3554. items:
  3555. type: string
  3556. x-nullable: true
  3557. two:
  3558. description: |
  3559. poker card two
  3560. type: array
  3561. items:
  3562. type: string
  3563. x-nullable: true
  3564. three:
  3565. description: |
  3566. poker card three
  3567. type: array
  3568. items:
  3569. type: string
  3570. x-nullable: true
  3571. five:
  3572. description: |
  3573. poker card five
  3574. type: array
  3575. items:
  3576. type: string
  3577. x-nullable: true
  3578. eight:
  3579. description: |
  3580. poker card eight
  3581. type: array
  3582. items:
  3583. type: string
  3584. x-nullable: true
  3585. thirteen:
  3586. description: |
  3587. poker card thirteen
  3588. type: array
  3589. items:
  3590. type: string
  3591. x-nullable: true
  3592. twenty:
  3593. description: |
  3594. poker card twenty
  3595. type: array
  3596. items:
  3597. type: string
  3598. x-nullable: true
  3599. forty:
  3600. description: |
  3601. poker card forty
  3602. type: array
  3603. items:
  3604. type: string
  3605. x-nullable: true
  3606. oneHundred:
  3607. description: |
  3608. poker card oneHundred
  3609. type: array
  3610. items:
  3611. type: string
  3612. x-nullable: true
  3613. unsure:
  3614. description: |
  3615. poker card unsure
  3616. type: array
  3617. items:
  3618. type: string
  3619. x-nullable: true
  3620. end:
  3621. type: string
  3622. allowNonBoardMembers:
  3623. type: boolean
  3624. estimation:
  3625. description: |
  3626. poker estimation value
  3627. type: number
  3628. required:
  3629. - question
  3630. - allowNonBoardMembers
  3631. CardsCustomfields:
  3632. type: object
  3633. ChecklistItems:
  3634. type: object
  3635. description: An item in a checklist
  3636. properties:
  3637. title:
  3638. description: |
  3639. the text of the item
  3640. type: string
  3641. sort:
  3642. description: |
  3643. the sorting field of the item
  3644. type: number
  3645. isFinished:
  3646. description: |
  3647. Is the item checked?
  3648. type: boolean
  3649. checklistId:
  3650. description: |
  3651. the checklist ID the item is attached to
  3652. type: string
  3653. cardId:
  3654. description: |
  3655. the card ID the item is attached to
  3656. type: string
  3657. createdAt:
  3658. type: string
  3659. x-nullable: true
  3660. modifiedAt:
  3661. type: string
  3662. required:
  3663. - title
  3664. - sort
  3665. - isFinished
  3666. - checklistId
  3667. - cardId
  3668. - modifiedAt
  3669. Checklists:
  3670. type: object
  3671. description: A Checklist
  3672. properties:
  3673. cardId:
  3674. description: |
  3675. The ID of the card the checklist is in
  3676. type: string
  3677. title:
  3678. description: |
  3679. the title of the checklist
  3680. type: string
  3681. finishedAt:
  3682. description: |
  3683. When was the checklist finished
  3684. type: string
  3685. x-nullable: true
  3686. createdAt:
  3687. description: |
  3688. Creation date of the checklist
  3689. type: string
  3690. modifiedAt:
  3691. type: string
  3692. sort:
  3693. description: |
  3694. sorting value of the checklist
  3695. type: number
  3696. required:
  3697. - cardId
  3698. - title
  3699. - createdAt
  3700. - modifiedAt
  3701. - sort
  3702. CustomFields:
  3703. type: object
  3704. description: A custom field on a card in the board
  3705. properties:
  3706. boardIds:
  3707. description: |
  3708. the ID of the board
  3709. type: array
  3710. items:
  3711. type: string
  3712. name:
  3713. description: |
  3714. name of the custom field
  3715. type: string
  3716. type:
  3717. description: |
  3718. type of the custom field
  3719. type: string
  3720. enum:
  3721. - text
  3722. - number
  3723. - date
  3724. - dropdown
  3725. - checkbox
  3726. - currency
  3727. - stringtemplate
  3728. settings:
  3729. description: |
  3730. settings of the custom field
  3731. $ref: "#/definitions/CustomFieldsSettings"
  3732. showOnCard:
  3733. description: |
  3734. should we show on the cards this custom field
  3735. type: boolean
  3736. automaticallyOnCard:
  3737. description: |
  3738. should the custom fields automatically be added on cards?
  3739. type: boolean
  3740. alwaysOnCard:
  3741. description: |
  3742. should the custom field be automatically added to all cards?
  3743. type: boolean
  3744. showLabelOnMiniCard:
  3745. description: |
  3746. should the label of the custom field be shown on minicards?
  3747. type: boolean
  3748. showSumAtTopOfList:
  3749. description: |
  3750. should the sum of the custom fields be shown at top of list?
  3751. type: boolean
  3752. createdAt:
  3753. type: string
  3754. x-nullable: true
  3755. modifiedAt:
  3756. type: string
  3757. required:
  3758. - boardIds
  3759. - name
  3760. - type
  3761. - settings
  3762. - showOnCard
  3763. - automaticallyOnCard
  3764. - alwaysOnCard
  3765. - showLabelOnMiniCard
  3766. - showSumAtTopOfList
  3767. - modifiedAt
  3768. CustomFieldsSettings:
  3769. type: object
  3770. properties:
  3771. currencyCode:
  3772. type: string
  3773. dropdownItems:
  3774. description: |
  3775. list of drop down items objects
  3776. type: array
  3777. items:
  3778. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3779. stringtemplateFormat:
  3780. type: string
  3781. stringtemplateSeparator:
  3782. type: string
  3783. CustomFieldsSettingsDropdownitems:
  3784. type: object
  3785. Integrations:
  3786. type: object
  3787. description: Integration with third-party applications
  3788. properties:
  3789. enabled:
  3790. description: |
  3791. is the integration enabled?
  3792. type: boolean
  3793. title:
  3794. description: |
  3795. name of the integration
  3796. type: string
  3797. x-nullable: true
  3798. type:
  3799. description: |
  3800. type of the integratation (Default to 'outgoing-webhooks')
  3801. type: string
  3802. activities:
  3803. description: |
  3804. activities the integration gets triggered (list)
  3805. type: array
  3806. items:
  3807. type: string
  3808. url:
  3809. type: string
  3810. token:
  3811. description: |
  3812. token of the integration
  3813. type: string
  3814. x-nullable: true
  3815. boardId:
  3816. description: |
  3817. Board ID of the integration
  3818. type: string
  3819. createdAt:
  3820. description: |
  3821. Creation date of the integration
  3822. type: string
  3823. modifiedAt:
  3824. type: string
  3825. userId:
  3826. description: |
  3827. user ID who created the interation
  3828. type: string
  3829. required:
  3830. - enabled
  3831. - type
  3832. - activities
  3833. - url
  3834. - boardId
  3835. - createdAt
  3836. - modifiedAt
  3837. - userId
  3838. Lists:
  3839. type: object
  3840. description: A list (column) in the Wekan board.
  3841. properties:
  3842. title:
  3843. description: |
  3844. the title of the list
  3845. type: string
  3846. starred:
  3847. description: |
  3848. if a list is stared
  3849. then we put it on the top
  3850. type: boolean
  3851. x-nullable: true
  3852. archived:
  3853. description: |
  3854. is the list archived
  3855. type: boolean
  3856. archivedAt:
  3857. description: |
  3858. latest archiving date
  3859. type: string
  3860. x-nullable: true
  3861. boardId:
  3862. description: |
  3863. the board associated to this list
  3864. type: string
  3865. swimlaneId:
  3866. description: |
  3867. the swimlane associated to this list. Used for templates
  3868. type: string
  3869. createdAt:
  3870. description: |
  3871. creation date
  3872. type: string
  3873. sort:
  3874. description: |
  3875. is the list sorted
  3876. type: number
  3877. x-nullable: true
  3878. width:
  3879. description: |
  3880. list width, default 270px
  3881. type: string
  3882. x-nullable: true
  3883. height:
  3884. description: |
  3885. list height
  3886. type: string
  3887. x-nullable: true
  3888. updatedAt:
  3889. description: |
  3890. last update of the list
  3891. type: string
  3892. x-nullable: true
  3893. modifiedAt:
  3894. type: string
  3895. wipLimit:
  3896. description: |
  3897. WIP object, see below
  3898. $ref: "#/definitions/ListsWiplimit"
  3899. x-nullable: true
  3900. color:
  3901. description: |
  3902. the color of the list
  3903. type: string
  3904. enum:
  3905. - white
  3906. - green
  3907. - yellow
  3908. - orange
  3909. - red
  3910. - purple
  3911. - blue
  3912. - sky
  3913. - lime
  3914. - pink
  3915. - black
  3916. - silver
  3917. - peachpuff
  3918. - crimson
  3919. - plum
  3920. - darkgreen
  3921. - slateblue
  3922. - magenta
  3923. - gold
  3924. - navy
  3925. - gray
  3926. - saddlebrown
  3927. - paleturquoise
  3928. - mistyrose
  3929. - indigo
  3930. x-nullable: true
  3931. type:
  3932. description: |
  3933. The type of list
  3934. type: string
  3935. required:
  3936. - title
  3937. - archived
  3938. - boardId
  3939. - swimlaneId
  3940. - createdAt
  3941. - modifiedAt
  3942. - type
  3943. ListsWiplimit:
  3944. type: object
  3945. properties:
  3946. value:
  3947. description: |
  3948. value of the WIP
  3949. type: number
  3950. enabled:
  3951. description: |
  3952. is the WIP enabled
  3953. type: boolean
  3954. soft:
  3955. description: |
  3956. is the WIP a soft or hard requirement
  3957. type: boolean
  3958. required:
  3959. - value
  3960. - enabled
  3961. - soft
  3962. Swimlanes:
  3963. type: object
  3964. description: A swimlane is an line in the kaban board.
  3965. properties:
  3966. title:
  3967. description: |
  3968. the title of the swimlane
  3969. type: string
  3970. archived:
  3971. description: |
  3972. is the swimlane archived?
  3973. type: boolean
  3974. archivedAt:
  3975. description: |
  3976. latest archiving date of the swimlane
  3977. type: string
  3978. x-nullable: true
  3979. boardId:
  3980. description: |
  3981. the ID of the board the swimlane is attached to
  3982. type: string
  3983. createdAt:
  3984. description: |
  3985. creation date of the swimlane
  3986. type: string
  3987. sort:
  3988. description: |
  3989. the sort value of the swimlane
  3990. type: number
  3991. x-nullable: true
  3992. color:
  3993. description: |
  3994. the color of the swimlane
  3995. type: string
  3996. enum:
  3997. - white
  3998. - green
  3999. - yellow
  4000. - orange
  4001. - red
  4002. - purple
  4003. - blue
  4004. - sky
  4005. - lime
  4006. - pink
  4007. - black
  4008. - silver
  4009. - peachpuff
  4010. - crimson
  4011. - plum
  4012. - darkgreen
  4013. - slateblue
  4014. - magenta
  4015. - gold
  4016. - navy
  4017. - gray
  4018. - saddlebrown
  4019. - paleturquoise
  4020. - mistyrose
  4021. - indigo
  4022. x-nullable: true
  4023. updatedAt:
  4024. description: |
  4025. when was the swimlane last edited
  4026. type: string
  4027. x-nullable: true
  4028. modifiedAt:
  4029. type: string
  4030. type:
  4031. description: |
  4032. The type of swimlane
  4033. type: string
  4034. required:
  4035. - title
  4036. - archived
  4037. - boardId
  4038. - createdAt
  4039. - modifiedAt
  4040. - type
  4041. Users:
  4042. type: object
  4043. description: A User in wekan
  4044. properties:
  4045. username:
  4046. description: |
  4047. the username of the user
  4048. type: string
  4049. x-nullable: true
  4050. orgs:
  4051. description: |
  4052. the list of organizations that a user belongs to
  4053. type: array
  4054. items:
  4055. $ref: "#/definitions/UsersOrgs"
  4056. x-nullable: true
  4057. teams:
  4058. description: |
  4059. the list of teams that a user belongs to
  4060. type: array
  4061. items:
  4062. $ref: "#/definitions/UsersTeams"
  4063. x-nullable: true
  4064. emails:
  4065. description: |
  4066. the list of emails attached to a user
  4067. type: array
  4068. items:
  4069. $ref: "#/definitions/UsersEmails"
  4070. x-nullable: true
  4071. createdAt:
  4072. description: |
  4073. creation date of the user
  4074. type: string
  4075. modifiedAt:
  4076. type: string
  4077. profile:
  4078. description: |
  4079. profile settings
  4080. $ref: "#/definitions/UsersProfile"
  4081. x-nullable: true
  4082. services:
  4083. description: |
  4084. services field of the user
  4085. type: object
  4086. x-nullable: true
  4087. heartbeat:
  4088. description: |
  4089. last time the user has been seen
  4090. type: string
  4091. x-nullable: true
  4092. isAdmin:
  4093. description: |
  4094. is the user an admin of the board?
  4095. type: boolean
  4096. x-nullable: true
  4097. createdThroughApi:
  4098. description: |
  4099. was the user created through the API?
  4100. type: boolean
  4101. x-nullable: true
  4102. loginDisabled:
  4103. description: |
  4104. loginDisabled field of the user
  4105. type: boolean
  4106. x-nullable: true
  4107. authenticationMethod:
  4108. description: |
  4109. authentication method of the user
  4110. type: string
  4111. sessionData:
  4112. description: |
  4113. profile settings
  4114. $ref: "#/definitions/UsersSessiondata"
  4115. x-nullable: true
  4116. importUsernames:
  4117. description: |
  4118. username for imported
  4119. type: array
  4120. items:
  4121. type: string
  4122. x-nullable: true
  4123. x-nullable: true
  4124. lastConnectionDate:
  4125. type: string
  4126. x-nullable: true
  4127. required:
  4128. - createdAt
  4129. - modifiedAt
  4130. - authenticationMethod
  4131. UsersProfile:
  4132. type: object
  4133. properties:
  4134. avatarUrl:
  4135. description: |
  4136. URL of the avatar of the user
  4137. type: string
  4138. emailBuffer:
  4139. description: |
  4140. list of email buffers of the user
  4141. type: array
  4142. items:
  4143. type: string
  4144. x-nullable: true
  4145. fullname:
  4146. description: |
  4147. full name of the user
  4148. type: string
  4149. showDesktopDragHandles:
  4150. description: |
  4151. does the user want to show desktop drag handles?
  4152. type: boolean
  4153. hideCheckedItems:
  4154. description: |
  4155. does the user want to hide checked checklist items?
  4156. type: boolean
  4157. cardMaximized:
  4158. description: |
  4159. has user clicked maximize card?
  4160. type: boolean
  4161. customFieldsGrid:
  4162. description: |
  4163. has user at card Custom Fields have Grid (false) or one per row (true) layout?
  4164. type: boolean
  4165. hiddenSystemMessages:
  4166. description: |
  4167. does the user want to hide system messages?
  4168. type: boolean
  4169. hiddenMinicardLabelText:
  4170. description: |
  4171. does the user want to hide minicard label texts?
  4172. type: boolean
  4173. initials:
  4174. description: |
  4175. initials of the user
  4176. type: string
  4177. invitedBoards:
  4178. description: |
  4179. board IDs the user has been invited to
  4180. type: array
  4181. items:
  4182. type: string
  4183. x-nullable: true
  4184. language:
  4185. description: |
  4186. language of the user
  4187. type: string
  4188. moveAndCopyDialog:
  4189. description: |
  4190. move and copy card dialog
  4191. type: object
  4192. moveChecklistDialog:
  4193. description: |
  4194. move checklist dialog
  4195. type: object
  4196. copyChecklistDialog:
  4197. description: |
  4198. copy checklist dialog
  4199. type: object
  4200. notifications:
  4201. description: |
  4202. enabled notifications for the user
  4203. type: array
  4204. items:
  4205. $ref: "#/definitions/UsersProfileNotifications"
  4206. rescueCardDescription:
  4207. description: |
  4208. show dialog for saving card description on unintentional card closing
  4209. type: boolean
  4210. showCardsCountAt:
  4211. description: |
  4212. showCardCountAt field of the user
  4213. type: number
  4214. startDayOfWeek:
  4215. description: |
  4216. startDayOfWeek field of the user
  4217. type: number
  4218. starredBoards:
  4219. description: |
  4220. list of starred board IDs
  4221. type: array
  4222. items:
  4223. type: string
  4224. x-nullable: true
  4225. icode:
  4226. description: |
  4227. icode
  4228. type: string
  4229. boardView:
  4230. description: |
  4231. boardView field of the user
  4232. type: string
  4233. enum:
  4234. - board-view-swimlanes
  4235. - board-view-lists
  4236. - board-view-cal
  4237. listSortBy:
  4238. description: |
  4239. default sort list for user
  4240. type: string
  4241. enum:
  4242. - -modifiedat
  4243. - modifiedat
  4244. - -title
  4245. - title
  4246. - -sort
  4247. - sort
  4248. templatesBoardId:
  4249. description: |
  4250. Reference to the templates board
  4251. type: string
  4252. cardTemplatesSwimlaneId:
  4253. description: |
  4254. Reference to the card templates swimlane Id
  4255. type: string
  4256. listTemplatesSwimlaneId:
  4257. description: |
  4258. Reference to the list templates swimlane Id
  4259. type: string
  4260. boardTemplatesSwimlaneId:
  4261. description: |
  4262. Reference to the board templates swimlane Id
  4263. type: string
  4264. required:
  4265. - templatesBoardId
  4266. - cardTemplatesSwimlaneId
  4267. - listTemplatesSwimlaneId
  4268. - boardTemplatesSwimlaneId
  4269. UsersSessiondata:
  4270. type: object
  4271. properties:
  4272. totalHits:
  4273. description: |
  4274. Total hits from last searchquery['members.userId'] = Meteor.userId();
  4275. last hit that was returned
  4276. type: number
  4277. UsersOrgs:
  4278. type: object
  4279. properties:
  4280. orgId:
  4281. description: |
  4282. The uniq ID of the organization
  4283. type: string
  4284. orgDisplayName:
  4285. description: |
  4286. The display name of the organization
  4287. type: string
  4288. required:
  4289. - orgId
  4290. - orgDisplayName
  4291. UsersTeams:
  4292. type: object
  4293. properties:
  4294. teamId:
  4295. description: |
  4296. The uniq ID of the team
  4297. type: string
  4298. teamDisplayName:
  4299. description: |
  4300. The display name of the team
  4301. type: string
  4302. required:
  4303. - teamId
  4304. - teamDisplayName
  4305. UsersEmails:
  4306. type: object
  4307. properties:
  4308. address:
  4309. description: |
  4310. The email address
  4311. type: string
  4312. verified:
  4313. description: |
  4314. Has the email been verified
  4315. type: boolean
  4316. required:
  4317. - address
  4318. - verified
  4319. UsersProfileMoveandcopydialog:
  4320. type: object
  4321. properties:
  4322. boardId:
  4323. description: |
  4324. last selected board id
  4325. type: string
  4326. swimlaneId:
  4327. description: |
  4328. last selected swimlane id
  4329. type: string
  4330. listId:
  4331. description: |
  4332. last selected list id
  4333. type: string
  4334. required:
  4335. - boardId
  4336. - swimlaneId
  4337. - listId
  4338. UsersProfileMovechecklistdialog:
  4339. type: object
  4340. properties:
  4341. boardId:
  4342. description: |
  4343. last selected board id
  4344. type: string
  4345. swimlaneId:
  4346. description: |
  4347. last selected swimlane id
  4348. type: string
  4349. listId:
  4350. description: |
  4351. last selected list id
  4352. type: string
  4353. cardId:
  4354. description: |
  4355. last selected card id
  4356. type: string
  4357. required:
  4358. - boardId
  4359. - swimlaneId
  4360. - listId
  4361. - cardId
  4362. UsersProfileCopychecklistdialog:
  4363. type: object
  4364. properties:
  4365. boardId:
  4366. description: |
  4367. last selected board id
  4368. type: string
  4369. swimlaneId:
  4370. description: |
  4371. last selected swimlane id
  4372. type: string
  4373. listId:
  4374. description: |
  4375. last selected list id
  4376. type: string
  4377. cardId:
  4378. description: |
  4379. last selected card id
  4380. type: string
  4381. required:
  4382. - boardId
  4383. - swimlaneId
  4384. - listId
  4385. - cardId
  4386. UsersProfileNotifications:
  4387. type: object
  4388. properties:
  4389. activity:
  4390. description: |
  4391. The id of the activity this notification references
  4392. type: string
  4393. read:
  4394. description: |
  4395. the date on which this notification was read
  4396. type: string
  4397. required:
  4398. - activity