wekan.yml 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476
  1. swagger: '2.0'
  2. info:
  3. title: Wekan REST API
  4. version: v6.94
  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. put:
  2472. operationId: edit_swimlane
  2473. summary: Edit the title of a swimlane
  2474. tags:
  2475. - Swimlanes
  2476. consumes:
  2477. - multipart/form-data
  2478. - application/json
  2479. parameters:
  2480. - name: title
  2481. in: formData
  2482. description: |
  2483. the new title of the swimlane
  2484. type: string
  2485. required: true
  2486. - name: board
  2487. in: path
  2488. description: |
  2489. the ID of the board
  2490. type: string
  2491. required: true
  2492. - name: swimlane
  2493. in: path
  2494. description: |
  2495. the ID of the swimlane to edit
  2496. type: string
  2497. required: true
  2498. produces:
  2499. - application/json
  2500. security:
  2501. - UserSecurity: []
  2502. responses:
  2503. '200':
  2504. description: |-
  2505. 200 response
  2506. schema:
  2507. type: object
  2508. properties:
  2509. _id:
  2510. type: string
  2511. delete:
  2512. operationId: delete_swimlane
  2513. summary: Delete a swimlane
  2514. description: |
  2515. The swimlane will be deleted, not moved to the recycle bin
  2516. tags:
  2517. - Swimlanes
  2518. parameters:
  2519. - name: board
  2520. in: path
  2521. description: |
  2522. the ID of the board
  2523. type: string
  2524. required: true
  2525. - name: swimlane
  2526. in: path
  2527. description: |
  2528. the ID of the swimlane
  2529. type: string
  2530. required: true
  2531. produces:
  2532. - application/json
  2533. security:
  2534. - UserSecurity: []
  2535. responses:
  2536. '200':
  2537. description: |-
  2538. 200 response
  2539. schema:
  2540. type: object
  2541. properties:
  2542. _id:
  2543. type: string
  2544. /api/boards/{board}/swimlanes/{swimlane}/cards:
  2545. get:
  2546. operationId: get_swimlane_cards
  2547. summary: get all cards attached to a swimlane
  2548. tags:
  2549. - Cards
  2550. parameters:
  2551. - name: board
  2552. in: path
  2553. description: |
  2554. the board ID
  2555. type: string
  2556. required: true
  2557. - name: swimlane
  2558. in: path
  2559. description: |
  2560. the swimlane ID
  2561. type: string
  2562. required: true
  2563. produces:
  2564. - application/json
  2565. security:
  2566. - UserSecurity: []
  2567. responses:
  2568. '200':
  2569. description: |-
  2570. 200 response
  2571. schema:
  2572. type: array
  2573. items:
  2574. type: object
  2575. properties:
  2576. _id:
  2577. type: string
  2578. title:
  2579. type: string
  2580. description:
  2581. type: string
  2582. listId:
  2583. type: string
  2584. /api/boards_count:
  2585. get:
  2586. operationId: get_boards_count
  2587. summary: Get public and private boards count
  2588. tags:
  2589. - Boards
  2590. produces:
  2591. - application/json
  2592. security:
  2593. - UserSecurity: []
  2594. responses:
  2595. '200':
  2596. description: |-
  2597. 200 response
  2598. schema:
  2599. type: object
  2600. properties:
  2601. private:
  2602. type: integer
  2603. public:
  2604. type: integer
  2605. /api/createtoken/{user}:
  2606. post:
  2607. operationId: create_user_token
  2608. summary: Create a user token
  2609. description: |
  2610. Only the admin user (the first user) can call the REST API.
  2611. tags:
  2612. - Users
  2613. consumes:
  2614. - multipart/form-data
  2615. - application/json
  2616. parameters:
  2617. - name: user
  2618. in: path
  2619. description: |
  2620. the ID of the user to create token for.
  2621. type: string
  2622. required: true
  2623. produces:
  2624. - application/json
  2625. security:
  2626. - UserSecurity: []
  2627. responses:
  2628. '200':
  2629. description: |-
  2630. 200 response
  2631. schema:
  2632. type: object
  2633. properties:
  2634. _id:
  2635. type: string
  2636. /api/deletetoken:
  2637. post:
  2638. operationId: delete_user_token
  2639. summary: Delete one or all user token.
  2640. description: |
  2641. Only the admin user (the first user) can call the REST API.
  2642. tags:
  2643. - Users
  2644. consumes:
  2645. - multipart/form-data
  2646. - application/json
  2647. parameters:
  2648. - name: userId
  2649. in: formData
  2650. description: |
  2651. the user ID
  2652. type: string
  2653. required: true
  2654. - name: token
  2655. in: formData
  2656. description: |
  2657. the user hashedToken
  2658. type: string
  2659. required: true
  2660. produces:
  2661. - application/json
  2662. security:
  2663. - UserSecurity: []
  2664. responses:
  2665. '200':
  2666. description: |-
  2667. 200 response
  2668. schema:
  2669. type: object
  2670. properties:
  2671. message:
  2672. type: string
  2673. /api/user:
  2674. get:
  2675. operationId: get_current_user
  2676. summary: returns the current user
  2677. tags:
  2678. - Users
  2679. produces:
  2680. - application/json
  2681. security:
  2682. - UserSecurity: []
  2683. responses:
  2684. '200':
  2685. description: |-
  2686. 200 response
  2687. schema:
  2688. $ref: "#/definitions/Users"
  2689. /api/users:
  2690. get:
  2691. operationId: get_all_users
  2692. summary: return all the users
  2693. description: |
  2694. Only the admin user (the first user) can call the REST API.
  2695. tags:
  2696. - Users
  2697. produces:
  2698. - application/json
  2699. security:
  2700. - UserSecurity: []
  2701. responses:
  2702. '200':
  2703. description: |-
  2704. 200 response
  2705. schema:
  2706. type: array
  2707. items:
  2708. type: object
  2709. properties:
  2710. _id:
  2711. type: string
  2712. username:
  2713. type: string
  2714. post:
  2715. operationId: new_user
  2716. summary: Create a new user
  2717. description: |
  2718. Only the admin user (the first user) can call the REST API.
  2719. tags:
  2720. - Users
  2721. consumes:
  2722. - multipart/form-data
  2723. - application/json
  2724. parameters:
  2725. - name: username
  2726. in: formData
  2727. description: |
  2728. the new username
  2729. type: string
  2730. required: true
  2731. - name: email
  2732. in: formData
  2733. description: |
  2734. the email of the new user
  2735. type: string
  2736. required: true
  2737. - name: password
  2738. in: formData
  2739. description: |
  2740. the password of the new user
  2741. type: string
  2742. required: true
  2743. produces:
  2744. - application/json
  2745. security:
  2746. - UserSecurity: []
  2747. responses:
  2748. '200':
  2749. description: |-
  2750. 200 response
  2751. schema:
  2752. type: object
  2753. properties:
  2754. _id:
  2755. type: string
  2756. /api/users/{user}:
  2757. get:
  2758. operationId: get_user
  2759. summary: get a given user
  2760. description: |
  2761. Only the admin user (the first user) can call the REST API.
  2762. tags:
  2763. - Users
  2764. parameters:
  2765. - name: user
  2766. in: path
  2767. description: |
  2768. the user ID or username
  2769. type: string
  2770. required: true
  2771. produces:
  2772. - application/json
  2773. security:
  2774. - UserSecurity: []
  2775. responses:
  2776. '200':
  2777. description: |-
  2778. 200 response
  2779. schema:
  2780. $ref: "#/definitions/Users"
  2781. put:
  2782. operationId: edit_user
  2783. summary: edit a given user
  2784. description: |
  2785. Only the admin user (the first user) can call the REST API.
  2786. Possible values for *action*:
  2787. - `takeOwnership`: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.
  2788. - `disableLogin`: Disable a user (the user is not allowed to login and his login tokens are purged)
  2789. - `enableLogin`: Enable a user
  2790. tags:
  2791. - Users
  2792. consumes:
  2793. - multipart/form-data
  2794. - application/json
  2795. parameters:
  2796. - name: action
  2797. in: formData
  2798. description: |
  2799. the action
  2800. type: string
  2801. required: true
  2802. - name: user
  2803. in: path
  2804. description: |
  2805. the user ID
  2806. type: string
  2807. required: true
  2808. produces:
  2809. - application/json
  2810. security:
  2811. - UserSecurity: []
  2812. responses:
  2813. '200':
  2814. description: |-
  2815. 200 response
  2816. schema:
  2817. type: object
  2818. properties:
  2819. _id:
  2820. type: string
  2821. title:
  2822. type: string
  2823. delete:
  2824. operationId: delete_user
  2825. summary: Delete a user
  2826. description: |
  2827. Only the admin user (the first user) can call the REST API.
  2828. tags:
  2829. - Users
  2830. parameters:
  2831. - name: user
  2832. in: path
  2833. description: |
  2834. the ID of the user to delete
  2835. type: string
  2836. required: true
  2837. produces:
  2838. - application/json
  2839. security:
  2840. - UserSecurity: []
  2841. responses:
  2842. '200':
  2843. description: |-
  2844. 200 response
  2845. schema:
  2846. type: object
  2847. properties:
  2848. _id:
  2849. type: string
  2850. /api/users/{user}/boards:
  2851. get:
  2852. operationId: get_boards_from_user
  2853. summary: Get all boards attached to a user
  2854. tags:
  2855. - Boards
  2856. parameters:
  2857. - name: user
  2858. in: path
  2859. description: |
  2860. the ID of the user to retrieve the data
  2861. type: string
  2862. required: true
  2863. produces:
  2864. - application/json
  2865. security:
  2866. - UserSecurity: []
  2867. responses:
  2868. '200':
  2869. description: |-
  2870. 200 response
  2871. schema:
  2872. type: array
  2873. items:
  2874. type: object
  2875. properties:
  2876. _id:
  2877. type: string
  2878. title:
  2879. type: string
  2880. definitions:
  2881. Boards:
  2882. type: object
  2883. description: This is a Board.
  2884. properties:
  2885. title:
  2886. description: |
  2887. The title of the board
  2888. type: string
  2889. slug:
  2890. description: |
  2891. The title slugified.
  2892. type: string
  2893. archived:
  2894. description: |
  2895. Is the board archived?
  2896. type: boolean
  2897. archivedAt:
  2898. description: |
  2899. Latest archiving time of the board
  2900. type: string
  2901. x-nullable: true
  2902. createdAt:
  2903. description: |
  2904. Creation time of the board
  2905. type: string
  2906. modifiedAt:
  2907. description: |
  2908. Last modification time of the board
  2909. type: string
  2910. x-nullable: true
  2911. stars:
  2912. description: |
  2913. How many stars the board has
  2914. type: number
  2915. labels:
  2916. description: |
  2917. List of labels attached to a board
  2918. type: array
  2919. items:
  2920. $ref: "#/definitions/BoardsLabels"
  2921. x-nullable: true
  2922. members:
  2923. description: |
  2924. List of members of a board
  2925. type: array
  2926. items:
  2927. $ref: "#/definitions/BoardsMembers"
  2928. permission:
  2929. description: |
  2930. visibility of the board
  2931. type: string
  2932. enum:
  2933. - public
  2934. - private
  2935. orgs:
  2936. description: |
  2937. the list of organizations that a board belongs to
  2938. type: array
  2939. items:
  2940. $ref: "#/definitions/BoardsOrgs"
  2941. x-nullable: true
  2942. teams:
  2943. description: |
  2944. the list of teams that a board belongs to
  2945. type: array
  2946. items:
  2947. $ref: "#/definitions/BoardsTeams"
  2948. x-nullable: true
  2949. color:
  2950. description: |
  2951. The color of the board.
  2952. type: string
  2953. enum:
  2954. - belize
  2955. - nephritis
  2956. - pomegranate
  2957. - pumpkin
  2958. - wisteria
  2959. - moderatepink
  2960. - strongcyan
  2961. - limegreen
  2962. - midnight
  2963. - dark
  2964. - relax
  2965. - corteza
  2966. - clearblue
  2967. - natural
  2968. - modern
  2969. - moderndark
  2970. - exodark
  2971. backgroundImageURL:
  2972. description: |
  2973. The background image URL of the board.
  2974. type: string
  2975. x-nullable: true
  2976. allowsCardCounterList:
  2977. description: |
  2978. Show card counter per list
  2979. type: boolean
  2980. allowsBoardMemberList:
  2981. description: |
  2982. Show board member list
  2983. type: boolean
  2984. description:
  2985. description: |
  2986. The description of the board
  2987. type: string
  2988. x-nullable: true
  2989. subtasksDefaultBoardId:
  2990. description: |
  2991. The default board ID assigned to subtasks.
  2992. type: string
  2993. x-nullable: true
  2994. subtasksDefaultListId:
  2995. description: |
  2996. The default List ID assigned to subtasks.
  2997. type: string
  2998. x-nullable: true
  2999. dateSettingsDefaultBoardId:
  3000. type: string
  3001. x-nullable: true
  3002. dateSettingsDefaultListId:
  3003. type: string
  3004. x-nullable: true
  3005. allowsSubtasks:
  3006. description: |
  3007. Does the board allows subtasks?
  3008. type: boolean
  3009. allowsAttachments:
  3010. description: |
  3011. Does the board allows attachments?
  3012. type: boolean
  3013. allowsChecklists:
  3014. description: |
  3015. Does the board allows checklists?
  3016. type: boolean
  3017. allowsComments:
  3018. description: |
  3019. Does the board allows comments?
  3020. type: boolean
  3021. allowsDescriptionTitle:
  3022. description: |
  3023. Does the board allows description title?
  3024. type: boolean
  3025. allowsDescriptionText:
  3026. description: |
  3027. Does the board allows description text?
  3028. type: boolean
  3029. allowsDescriptionTextOnMinicard:
  3030. description: |
  3031. Does the board allows description text on minicard?
  3032. type: boolean
  3033. allowsCoverAttachmentOnMinicard:
  3034. description: |
  3035. Does the board allows cover attachment on minicard?
  3036. type: boolean
  3037. allowsBadgeAttachmentOnMinicard:
  3038. description: |
  3039. Does the board allows badge attachment on minicard?
  3040. type: boolean
  3041. allowsCardSortingByNumberOnMinicard:
  3042. description: |
  3043. Does the board allows card sorting by number on minicard?
  3044. type: boolean
  3045. allowsCardNumber:
  3046. description: |
  3047. Does the board allows card numbers?
  3048. type: boolean
  3049. allowsActivities:
  3050. description: |
  3051. Does the board allows comments?
  3052. type: boolean
  3053. allowsLabels:
  3054. description: |
  3055. Does the board allows labels?
  3056. type: boolean
  3057. allowsCreator:
  3058. description: |
  3059. Does the board allow creator?
  3060. type: boolean
  3061. allowsAssignee:
  3062. description: |
  3063. Does the board allows assignee?
  3064. type: boolean
  3065. allowsMembers:
  3066. description: |
  3067. Does the board allows members?
  3068. type: boolean
  3069. allowsRequestedBy:
  3070. description: |
  3071. Does the board allows requested by?
  3072. type: boolean
  3073. allowsCardSortingByNumber:
  3074. description: |
  3075. Does the board allows card sorting by number?
  3076. type: boolean
  3077. allowsShowLists:
  3078. description: |
  3079. Does the board allows show lists on the card?
  3080. type: boolean
  3081. allowsAssignedBy:
  3082. description: |
  3083. Does the board allows requested by?
  3084. type: boolean
  3085. allowsReceivedDate:
  3086. description: |
  3087. Does the board allows received date?
  3088. type: boolean
  3089. allowsStartDate:
  3090. description: |
  3091. Does the board allows start date?
  3092. type: boolean
  3093. allowsEndDate:
  3094. description: |
  3095. Does the board allows end date?
  3096. type: boolean
  3097. allowsDueDate:
  3098. description: |
  3099. Does the board allows due date?
  3100. type: boolean
  3101. presentParentTask:
  3102. description: |
  3103. Controls how to present the parent task:
  3104. - `prefix-with-full-path`: add a prefix with the full path
  3105. - `prefix-with-parent`: add a prefisx with the parent name
  3106. - `subtext-with-full-path`: add a subtext with the full path
  3107. - `subtext-with-parent`: add a subtext with the parent name
  3108. - `no-parent`: does not show the parent at all
  3109. type: string
  3110. enum:
  3111. - prefix-with-full-path
  3112. - prefix-with-parent
  3113. - subtext-with-full-path
  3114. - subtext-with-parent
  3115. - no-parent
  3116. x-nullable: true
  3117. receivedAt:
  3118. description: |
  3119. Date the card was received
  3120. type: string
  3121. x-nullable: true
  3122. startAt:
  3123. description: |
  3124. Starting date of the board.
  3125. type: string
  3126. x-nullable: true
  3127. dueAt:
  3128. description: |
  3129. Due date of the board.
  3130. type: string
  3131. x-nullable: true
  3132. endAt:
  3133. description: |
  3134. End date of the board.
  3135. type: string
  3136. x-nullable: true
  3137. spentTime:
  3138. description: |
  3139. Time spent in the board.
  3140. type: number
  3141. x-nullable: true
  3142. isOvertime:
  3143. description: |
  3144. Is the board overtimed?
  3145. type: boolean
  3146. x-nullable: true
  3147. type:
  3148. description: |
  3149. The type of board
  3150. possible values: board, template-board, template-container
  3151. type: string
  3152. enum:
  3153. - board
  3154. - template-board
  3155. - template-container
  3156. sort:
  3157. description: |
  3158. Sort value
  3159. type: number
  3160. required:
  3161. - title
  3162. - slug
  3163. - archived
  3164. - createdAt
  3165. - stars
  3166. - members
  3167. - permission
  3168. - color
  3169. - allowsCardCounterList
  3170. - allowsBoardMemberList
  3171. - allowsSubtasks
  3172. - allowsAttachments
  3173. - allowsChecklists
  3174. - allowsComments
  3175. - allowsDescriptionTitle
  3176. - allowsDescriptionText
  3177. - allowsDescriptionTextOnMinicard
  3178. - allowsCoverAttachmentOnMinicard
  3179. - allowsBadgeAttachmentOnMinicard
  3180. - allowsCardSortingByNumberOnMinicard
  3181. - allowsCardNumber
  3182. - allowsActivities
  3183. - allowsLabels
  3184. - allowsCreator
  3185. - allowsAssignee
  3186. - allowsMembers
  3187. - allowsRequestedBy
  3188. - allowsCardSortingByNumber
  3189. - allowsShowLists
  3190. - allowsAssignedBy
  3191. - allowsReceivedDate
  3192. - allowsStartDate
  3193. - allowsEndDate
  3194. - allowsDueDate
  3195. - type
  3196. - sort
  3197. BoardsLabels:
  3198. type: object
  3199. properties:
  3200. _id:
  3201. description: |
  3202. Unique id of a label
  3203. type: string
  3204. name:
  3205. description: |
  3206. Name of a label
  3207. type: string
  3208. color:
  3209. description: |
  3210. color of a label.
  3211. Can be amongst `green`, `yellow`, `orange`, `red`, `purple`,
  3212. `blue`, `sky`, `lime`, `pink`, `black`,
  3213. `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`,
  3214. `slateblue`, `magenta`, `gold`, `navy`, `gray`,
  3215. `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`
  3216. type: string
  3217. enum:
  3218. - white
  3219. - green
  3220. - yellow
  3221. - orange
  3222. - red
  3223. - purple
  3224. - blue
  3225. - sky
  3226. - lime
  3227. - pink
  3228. - black
  3229. - silver
  3230. - peachpuff
  3231. - crimson
  3232. - plum
  3233. - darkgreen
  3234. - slateblue
  3235. - magenta
  3236. - gold
  3237. - navy
  3238. - gray
  3239. - saddlebrown
  3240. - paleturquoise
  3241. - mistyrose
  3242. - indigo
  3243. required:
  3244. - _id
  3245. - color
  3246. BoardsMembers:
  3247. type: object
  3248. properties:
  3249. userId:
  3250. description: |
  3251. The uniq ID of the member
  3252. type: string
  3253. isAdmin:
  3254. description: |
  3255. Is the member an admin of the board?
  3256. type: boolean
  3257. isActive:
  3258. description: |
  3259. Is the member active?
  3260. type: boolean
  3261. isNoComments:
  3262. description: |
  3263. Is the member not allowed to make comments
  3264. type: boolean
  3265. isCommentOnly:
  3266. description: |
  3267. Is the member only allowed to comment on the board
  3268. type: boolean
  3269. isWorker:
  3270. description: |
  3271. Is the member only allowed to move card, assign himself to card and comment
  3272. type: boolean
  3273. required:
  3274. - userId
  3275. - isAdmin
  3276. - isActive
  3277. BoardsOrgs:
  3278. type: object
  3279. properties:
  3280. orgId:
  3281. description: |
  3282. The uniq ID of the organization
  3283. type: string
  3284. orgDisplayName:
  3285. description: |
  3286. The display name of the organization
  3287. type: string
  3288. isActive:
  3289. description: |
  3290. Is the organization active?
  3291. type: boolean
  3292. required:
  3293. - orgId
  3294. - orgDisplayName
  3295. - isActive
  3296. BoardsTeams:
  3297. type: object
  3298. properties:
  3299. teamId:
  3300. description: |
  3301. The uniq ID of the team
  3302. type: string
  3303. teamDisplayName:
  3304. description: |
  3305. The display name of the team
  3306. type: string
  3307. isActive:
  3308. description: |
  3309. Is the team active?
  3310. type: boolean
  3311. required:
  3312. - teamId
  3313. - teamDisplayName
  3314. - isActive
  3315. CardComments:
  3316. type: object
  3317. description: A comment on a card
  3318. properties:
  3319. boardId:
  3320. description: |
  3321. the board ID
  3322. type: string
  3323. cardId:
  3324. description: |
  3325. the card ID
  3326. type: string
  3327. text:
  3328. description: |
  3329. the text of the comment
  3330. type: string
  3331. createdAt:
  3332. description: |
  3333. when was the comment created
  3334. type: string
  3335. modifiedAt:
  3336. type: string
  3337. userId:
  3338. description: |
  3339. the author ID of the comment
  3340. type: string
  3341. required:
  3342. - boardId
  3343. - cardId
  3344. - text
  3345. - createdAt
  3346. - modifiedAt
  3347. - userId
  3348. Cards:
  3349. type: object
  3350. properties:
  3351. title:
  3352. description: |
  3353. the title of the card
  3354. type: string
  3355. x-nullable: true
  3356. archived:
  3357. description: |
  3358. is the card archived
  3359. type: boolean
  3360. archivedAt:
  3361. description: |
  3362. latest archiving date
  3363. type: string
  3364. x-nullable: true
  3365. parentId:
  3366. description: |
  3367. ID of the parent card
  3368. type: string
  3369. x-nullable: true
  3370. listId:
  3371. description: |
  3372. List ID where the card is
  3373. type: string
  3374. x-nullable: true
  3375. swimlaneId:
  3376. description: |
  3377. Swimlane ID where the card is
  3378. type: string
  3379. boardId:
  3380. description: |
  3381. Board ID of the card
  3382. type: string
  3383. x-nullable: true
  3384. coverId:
  3385. description: |
  3386. Cover ID of the card
  3387. type: string
  3388. x-nullable: true
  3389. color:
  3390. type: string
  3391. enum:
  3392. - white
  3393. - green
  3394. - yellow
  3395. - orange
  3396. - red
  3397. - purple
  3398. - blue
  3399. - sky
  3400. - lime
  3401. - pink
  3402. - black
  3403. - silver
  3404. - peachpuff
  3405. - crimson
  3406. - plum
  3407. - darkgreen
  3408. - slateblue
  3409. - magenta
  3410. - gold
  3411. - navy
  3412. - gray
  3413. - saddlebrown
  3414. - paleturquoise
  3415. - mistyrose
  3416. - indigo
  3417. x-nullable: true
  3418. createdAt:
  3419. description: |
  3420. creation date
  3421. type: string
  3422. modifiedAt:
  3423. type: string
  3424. customFields:
  3425. description: |
  3426. list of custom fields
  3427. type: array
  3428. items:
  3429. $ref: "#/definitions/CardsCustomfields"
  3430. x-nullable: true
  3431. dateLastActivity:
  3432. description: |
  3433. Date of last activity
  3434. type: string
  3435. description:
  3436. description: |
  3437. description of the card
  3438. type: string
  3439. x-nullable: true
  3440. requestedBy:
  3441. description: |
  3442. who requested the card (ID of the user)
  3443. type: string
  3444. x-nullable: true
  3445. assignedBy:
  3446. description: |
  3447. who assigned the card (ID of the user)
  3448. type: string
  3449. x-nullable: true
  3450. labelIds:
  3451. description: |
  3452. list of labels ID the card has
  3453. type: array
  3454. items:
  3455. type: string
  3456. x-nullable: true
  3457. x-nullable: true
  3458. members:
  3459. description: |
  3460. list of members (user IDs)
  3461. type: array
  3462. items:
  3463. type: string
  3464. x-nullable: true
  3465. x-nullable: true
  3466. assignees:
  3467. description: |
  3468. who is assignee of the card (user ID),
  3469. maximum one ID of assignee in array.
  3470. type: array
  3471. items:
  3472. type: string
  3473. x-nullable: true
  3474. x-nullable: true
  3475. receivedAt:
  3476. description: |
  3477. Date the card was received
  3478. type: string
  3479. x-nullable: true
  3480. startAt:
  3481. description: |
  3482. Date the card was started to be worked on
  3483. type: string
  3484. x-nullable: true
  3485. dueAt:
  3486. description: |
  3487. Date the card is due
  3488. type: string
  3489. x-nullable: true
  3490. endAt:
  3491. description: |
  3492. Date the card ended
  3493. type: string
  3494. x-nullable: true
  3495. spentTime:
  3496. description: |
  3497. How much time has been spent on this
  3498. type: number
  3499. x-nullable: true
  3500. isOvertime:
  3501. description: |
  3502. is the card over time?
  3503. type: boolean
  3504. x-nullable: true
  3505. userId:
  3506. description: |
  3507. user ID of the author of the card
  3508. type: string
  3509. sort:
  3510. description: |
  3511. Sort value
  3512. type: number
  3513. x-nullable: true
  3514. subtaskSort:
  3515. description: |
  3516. subtask sort value
  3517. type: number
  3518. x-nullable: true
  3519. type:
  3520. description: |
  3521. type of the card
  3522. type: string
  3523. linkedId:
  3524. description: |
  3525. ID of the linked card
  3526. type: string
  3527. x-nullable: true
  3528. vote:
  3529. description: |
  3530. vote object, see below
  3531. $ref: "#/definitions/CardsVote"
  3532. x-nullable: true
  3533. poker:
  3534. description: |
  3535. poker object, see below
  3536. $ref: "#/definitions/CardsPoker"
  3537. x-nullable: true
  3538. targetId_gantt:
  3539. description: |
  3540. ID of card which is the child link in gantt view
  3541. type: array
  3542. items:
  3543. type: string
  3544. x-nullable: true
  3545. x-nullable: true
  3546. linkType_gantt:
  3547. description: |
  3548. ID of card which is the parent link in gantt view
  3549. type: array
  3550. items:
  3551. type: number
  3552. x-nullable: true
  3553. x-nullable: true
  3554. linkId_gantt:
  3555. description: |
  3556. ID of card which is the parent link in gantt view
  3557. type: array
  3558. items:
  3559. type: string
  3560. x-nullable: true
  3561. x-nullable: true
  3562. cardNumber:
  3563. description: |
  3564. A boardwise sequentially increasing number that is assigned
  3565. to every newly created card
  3566. type: number
  3567. x-nullable: true
  3568. required:
  3569. - archived
  3570. - swimlaneId
  3571. - createdAt
  3572. - modifiedAt
  3573. - dateLastActivity
  3574. - userId
  3575. - type
  3576. CardsVote:
  3577. type: object
  3578. properties:
  3579. question:
  3580. type: string
  3581. positive:
  3582. description: |
  3583. list of members (user IDs)
  3584. type: array
  3585. items:
  3586. type: string
  3587. x-nullable: true
  3588. negative:
  3589. description: |
  3590. list of members (user IDs)
  3591. type: array
  3592. items:
  3593. type: string
  3594. x-nullable: true
  3595. end:
  3596. type: string
  3597. public:
  3598. type: boolean
  3599. allowNonBoardMembers:
  3600. type: boolean
  3601. required:
  3602. - question
  3603. - public
  3604. - allowNonBoardMembers
  3605. CardsPoker:
  3606. type: object
  3607. properties:
  3608. question:
  3609. type: boolean
  3610. one:
  3611. description: |
  3612. poker card one
  3613. type: array
  3614. items:
  3615. type: string
  3616. x-nullable: true
  3617. two:
  3618. description: |
  3619. poker card two
  3620. type: array
  3621. items:
  3622. type: string
  3623. x-nullable: true
  3624. three:
  3625. description: |
  3626. poker card three
  3627. type: array
  3628. items:
  3629. type: string
  3630. x-nullable: true
  3631. five:
  3632. description: |
  3633. poker card five
  3634. type: array
  3635. items:
  3636. type: string
  3637. x-nullable: true
  3638. eight:
  3639. description: |
  3640. poker card eight
  3641. type: array
  3642. items:
  3643. type: string
  3644. x-nullable: true
  3645. thirteen:
  3646. description: |
  3647. poker card thirteen
  3648. type: array
  3649. items:
  3650. type: string
  3651. x-nullable: true
  3652. twenty:
  3653. description: |
  3654. poker card twenty
  3655. type: array
  3656. items:
  3657. type: string
  3658. x-nullable: true
  3659. forty:
  3660. description: |
  3661. poker card forty
  3662. type: array
  3663. items:
  3664. type: string
  3665. x-nullable: true
  3666. oneHundred:
  3667. description: |
  3668. poker card oneHundred
  3669. type: array
  3670. items:
  3671. type: string
  3672. x-nullable: true
  3673. unsure:
  3674. description: |
  3675. poker card unsure
  3676. type: array
  3677. items:
  3678. type: string
  3679. x-nullable: true
  3680. end:
  3681. type: string
  3682. allowNonBoardMembers:
  3683. type: boolean
  3684. estimation:
  3685. description: |
  3686. poker estimation value
  3687. type: number
  3688. required:
  3689. - question
  3690. - allowNonBoardMembers
  3691. CardsCustomfields:
  3692. type: object
  3693. ChecklistItems:
  3694. type: object
  3695. description: An item in a checklist
  3696. properties:
  3697. title:
  3698. description: |
  3699. the text of the item
  3700. type: string
  3701. sort:
  3702. description: |
  3703. the sorting field of the item
  3704. type: number
  3705. isFinished:
  3706. description: |
  3707. Is the item checked?
  3708. type: boolean
  3709. checklistId:
  3710. description: |
  3711. the checklist ID the item is attached to
  3712. type: string
  3713. cardId:
  3714. description: |
  3715. the card ID the item is attached to
  3716. type: string
  3717. createdAt:
  3718. type: string
  3719. x-nullable: true
  3720. modifiedAt:
  3721. type: string
  3722. required:
  3723. - title
  3724. - sort
  3725. - isFinished
  3726. - checklistId
  3727. - cardId
  3728. - modifiedAt
  3729. Checklists:
  3730. type: object
  3731. description: A Checklist
  3732. properties:
  3733. cardId:
  3734. description: |
  3735. The ID of the card the checklist is in
  3736. type: string
  3737. title:
  3738. description: |
  3739. the title of the checklist
  3740. type: string
  3741. finishedAt:
  3742. description: |
  3743. When was the checklist finished
  3744. type: string
  3745. x-nullable: true
  3746. createdAt:
  3747. description: |
  3748. Creation date of the checklist
  3749. type: string
  3750. modifiedAt:
  3751. type: string
  3752. sort:
  3753. description: |
  3754. sorting value of the checklist
  3755. type: number
  3756. required:
  3757. - cardId
  3758. - title
  3759. - createdAt
  3760. - modifiedAt
  3761. - sort
  3762. CustomFields:
  3763. type: object
  3764. description: A custom field on a card in the board
  3765. properties:
  3766. boardIds:
  3767. description: |
  3768. the ID of the board
  3769. type: array
  3770. items:
  3771. type: string
  3772. name:
  3773. description: |
  3774. name of the custom field
  3775. type: string
  3776. type:
  3777. description: |
  3778. type of the custom field
  3779. type: string
  3780. enum:
  3781. - text
  3782. - number
  3783. - date
  3784. - dropdown
  3785. - checkbox
  3786. - currency
  3787. - stringtemplate
  3788. settings:
  3789. description: |
  3790. settings of the custom field
  3791. $ref: "#/definitions/CustomFieldsSettings"
  3792. showOnCard:
  3793. description: |
  3794. should we show on the cards this custom field
  3795. type: boolean
  3796. automaticallyOnCard:
  3797. description: |
  3798. should the custom fields automatically be added on cards?
  3799. type: boolean
  3800. alwaysOnCard:
  3801. description: |
  3802. should the custom field be automatically added to all cards?
  3803. type: boolean
  3804. showLabelOnMiniCard:
  3805. description: |
  3806. should the label of the custom field be shown on minicards?
  3807. type: boolean
  3808. showSumAtTopOfList:
  3809. description: |
  3810. should the sum of the custom fields be shown at top of list?
  3811. type: boolean
  3812. createdAt:
  3813. type: string
  3814. x-nullable: true
  3815. modifiedAt:
  3816. type: string
  3817. required:
  3818. - boardIds
  3819. - name
  3820. - type
  3821. - settings
  3822. - showOnCard
  3823. - automaticallyOnCard
  3824. - alwaysOnCard
  3825. - showLabelOnMiniCard
  3826. - showSumAtTopOfList
  3827. - modifiedAt
  3828. CustomFieldsSettings:
  3829. type: object
  3830. properties:
  3831. currencyCode:
  3832. type: string
  3833. dropdownItems:
  3834. description: |
  3835. list of drop down items objects
  3836. type: array
  3837. items:
  3838. $ref: "#/definitions/CustomFieldsSettingsDropdownitems"
  3839. stringtemplateFormat:
  3840. type: string
  3841. stringtemplateSeparator:
  3842. type: string
  3843. CustomFieldsSettingsDropdownitems:
  3844. type: object
  3845. Integrations:
  3846. type: object
  3847. description: Integration with third-party applications
  3848. properties:
  3849. enabled:
  3850. description: |
  3851. is the integration enabled?
  3852. type: boolean
  3853. title:
  3854. description: |
  3855. name of the integration
  3856. type: string
  3857. x-nullable: true
  3858. type:
  3859. description: |
  3860. type of the integratation (Default to 'outgoing-webhooks')
  3861. type: string
  3862. activities:
  3863. description: |
  3864. activities the integration gets triggered (list)
  3865. type: array
  3866. items:
  3867. type: string
  3868. url:
  3869. type: string
  3870. token:
  3871. description: |
  3872. token of the integration
  3873. type: string
  3874. x-nullable: true
  3875. boardId:
  3876. description: |
  3877. Board ID of the integration
  3878. type: string
  3879. createdAt:
  3880. description: |
  3881. Creation date of the integration
  3882. type: string
  3883. modifiedAt:
  3884. type: string
  3885. userId:
  3886. description: |
  3887. user ID who created the interation
  3888. type: string
  3889. required:
  3890. - enabled
  3891. - type
  3892. - activities
  3893. - url
  3894. - boardId
  3895. - createdAt
  3896. - modifiedAt
  3897. - userId
  3898. Lists:
  3899. type: object
  3900. description: A list (column) in the Wekan board.
  3901. properties:
  3902. title:
  3903. description: |
  3904. the title of the list
  3905. type: string
  3906. starred:
  3907. description: |
  3908. if a list is stared
  3909. then we put it on the top
  3910. type: boolean
  3911. x-nullable: true
  3912. archived:
  3913. description: |
  3914. is the list archived
  3915. type: boolean
  3916. archivedAt:
  3917. description: |
  3918. latest archiving date
  3919. type: string
  3920. x-nullable: true
  3921. boardId:
  3922. description: |
  3923. the board associated to this list
  3924. type: string
  3925. swimlaneId:
  3926. description: |
  3927. the swimlane associated to this list. Used for templates
  3928. type: string
  3929. createdAt:
  3930. description: |
  3931. creation date
  3932. type: string
  3933. sort:
  3934. description: |
  3935. is the list sorted
  3936. type: number
  3937. x-nullable: true
  3938. width:
  3939. description: |
  3940. list width, default 270px
  3941. type: string
  3942. x-nullable: true
  3943. height:
  3944. description: |
  3945. list height
  3946. type: string
  3947. x-nullable: true
  3948. updatedAt:
  3949. description: |
  3950. last update of the list
  3951. type: string
  3952. x-nullable: true
  3953. modifiedAt:
  3954. type: string
  3955. wipLimit:
  3956. description: |
  3957. WIP object, see below
  3958. $ref: "#/definitions/ListsWiplimit"
  3959. x-nullable: true
  3960. color:
  3961. description: |
  3962. the color of the list
  3963. type: string
  3964. enum:
  3965. - white
  3966. - green
  3967. - yellow
  3968. - orange
  3969. - red
  3970. - purple
  3971. - blue
  3972. - sky
  3973. - lime
  3974. - pink
  3975. - black
  3976. - silver
  3977. - peachpuff
  3978. - crimson
  3979. - plum
  3980. - darkgreen
  3981. - slateblue
  3982. - magenta
  3983. - gold
  3984. - navy
  3985. - gray
  3986. - saddlebrown
  3987. - paleturquoise
  3988. - mistyrose
  3989. - indigo
  3990. x-nullable: true
  3991. type:
  3992. description: |
  3993. The type of list
  3994. type: string
  3995. required:
  3996. - title
  3997. - archived
  3998. - boardId
  3999. - swimlaneId
  4000. - createdAt
  4001. - modifiedAt
  4002. - type
  4003. ListsWiplimit:
  4004. type: object
  4005. properties:
  4006. value:
  4007. description: |
  4008. value of the WIP
  4009. type: number
  4010. enabled:
  4011. description: |
  4012. is the WIP enabled
  4013. type: boolean
  4014. soft:
  4015. description: |
  4016. is the WIP a soft or hard requirement
  4017. type: boolean
  4018. required:
  4019. - value
  4020. - enabled
  4021. - soft
  4022. Swimlanes:
  4023. type: object
  4024. description: A swimlane is an line in the kaban board.
  4025. properties:
  4026. title:
  4027. description: |
  4028. the title of the swimlane
  4029. type: string
  4030. archived:
  4031. description: |
  4032. is the swimlane archived?
  4033. type: boolean
  4034. archivedAt:
  4035. description: |
  4036. latest archiving date of the swimlane
  4037. type: string
  4038. x-nullable: true
  4039. boardId:
  4040. description: |
  4041. the ID of the board the swimlane is attached to
  4042. type: string
  4043. createdAt:
  4044. description: |
  4045. creation date of the swimlane
  4046. type: string
  4047. sort:
  4048. description: |
  4049. the sort value of the swimlane
  4050. type: number
  4051. x-nullable: true
  4052. color:
  4053. description: |
  4054. the color of the swimlane
  4055. type: string
  4056. enum:
  4057. - white
  4058. - green
  4059. - yellow
  4060. - orange
  4061. - red
  4062. - purple
  4063. - blue
  4064. - sky
  4065. - lime
  4066. - pink
  4067. - black
  4068. - silver
  4069. - peachpuff
  4070. - crimson
  4071. - plum
  4072. - darkgreen
  4073. - slateblue
  4074. - magenta
  4075. - gold
  4076. - navy
  4077. - gray
  4078. - saddlebrown
  4079. - paleturquoise
  4080. - mistyrose
  4081. - indigo
  4082. x-nullable: true
  4083. updatedAt:
  4084. description: |
  4085. when was the swimlane last edited
  4086. type: string
  4087. x-nullable: true
  4088. modifiedAt:
  4089. type: string
  4090. type:
  4091. description: |
  4092. The type of swimlane
  4093. type: string
  4094. required:
  4095. - title
  4096. - archived
  4097. - boardId
  4098. - createdAt
  4099. - modifiedAt
  4100. - type
  4101. Users:
  4102. type: object
  4103. description: A User in wekan
  4104. properties:
  4105. username:
  4106. description: |
  4107. the username of the user
  4108. type: string
  4109. x-nullable: true
  4110. orgs:
  4111. description: |
  4112. the list of organizations that a user belongs to
  4113. type: array
  4114. items:
  4115. $ref: "#/definitions/UsersOrgs"
  4116. x-nullable: true
  4117. teams:
  4118. description: |
  4119. the list of teams that a user belongs to
  4120. type: array
  4121. items:
  4122. $ref: "#/definitions/UsersTeams"
  4123. x-nullable: true
  4124. emails:
  4125. description: |
  4126. the list of emails attached to a user
  4127. type: array
  4128. items:
  4129. $ref: "#/definitions/UsersEmails"
  4130. x-nullable: true
  4131. createdAt:
  4132. description: |
  4133. creation date of the user
  4134. type: string
  4135. modifiedAt:
  4136. type: string
  4137. profile:
  4138. description: |
  4139. profile settings
  4140. $ref: "#/definitions/UsersProfile"
  4141. x-nullable: true
  4142. services:
  4143. description: |
  4144. services field of the user
  4145. type: object
  4146. x-nullable: true
  4147. heartbeat:
  4148. description: |
  4149. last time the user has been seen
  4150. type: string
  4151. x-nullable: true
  4152. isAdmin:
  4153. description: |
  4154. is the user an admin of the board?
  4155. type: boolean
  4156. x-nullable: true
  4157. createdThroughApi:
  4158. description: |
  4159. was the user created through the API?
  4160. type: boolean
  4161. x-nullable: true
  4162. loginDisabled:
  4163. description: |
  4164. loginDisabled field of the user
  4165. type: boolean
  4166. x-nullable: true
  4167. authenticationMethod:
  4168. description: |
  4169. authentication method of the user
  4170. type: string
  4171. sessionData:
  4172. description: |
  4173. profile settings
  4174. $ref: "#/definitions/UsersSessiondata"
  4175. x-nullable: true
  4176. importUsernames:
  4177. description: |
  4178. username for imported
  4179. type: array
  4180. items:
  4181. type: string
  4182. x-nullable: true
  4183. x-nullable: true
  4184. lastConnectionDate:
  4185. type: string
  4186. x-nullable: true
  4187. required:
  4188. - createdAt
  4189. - modifiedAt
  4190. - authenticationMethod
  4191. UsersProfile:
  4192. type: object
  4193. properties:
  4194. avatarUrl:
  4195. description: |
  4196. URL of the avatar of the user
  4197. type: string
  4198. emailBuffer:
  4199. description: |
  4200. list of email buffers of the user
  4201. type: array
  4202. items:
  4203. type: string
  4204. x-nullable: true
  4205. fullname:
  4206. description: |
  4207. full name of the user
  4208. type: string
  4209. showDesktopDragHandles:
  4210. description: |
  4211. does the user want to show desktop drag handles?
  4212. type: boolean
  4213. hideCheckedItems:
  4214. description: |
  4215. does the user want to hide checked checklist items?
  4216. type: boolean
  4217. cardMaximized:
  4218. description: |
  4219. has user clicked maximize card?
  4220. type: boolean
  4221. customFieldsGrid:
  4222. description: |
  4223. has user at card Custom Fields have Grid (false) or one per row (true) layout?
  4224. type: boolean
  4225. hiddenSystemMessages:
  4226. description: |
  4227. does the user want to hide system messages?
  4228. type: boolean
  4229. hiddenMinicardLabelText:
  4230. description: |
  4231. does the user want to hide minicard label texts?
  4232. type: boolean
  4233. initials:
  4234. description: |
  4235. initials of the user
  4236. type: string
  4237. invitedBoards:
  4238. description: |
  4239. board IDs the user has been invited to
  4240. type: array
  4241. items:
  4242. type: string
  4243. x-nullable: true
  4244. language:
  4245. description: |
  4246. language of the user
  4247. type: string
  4248. moveAndCopyDialog:
  4249. description: |
  4250. move and copy card dialog
  4251. type: object
  4252. moveChecklistDialog:
  4253. description: |
  4254. move checklist dialog
  4255. type: object
  4256. copyChecklistDialog:
  4257. description: |
  4258. copy checklist dialog
  4259. type: object
  4260. notifications:
  4261. description: |
  4262. enabled notifications for the user
  4263. type: array
  4264. items:
  4265. $ref: "#/definitions/UsersProfileNotifications"
  4266. rescueCardDescription:
  4267. description: |
  4268. show dialog for saving card description on unintentional card closing
  4269. type: boolean
  4270. showCardsCountAt:
  4271. description: |
  4272. showCardCountAt field of the user
  4273. type: number
  4274. startDayOfWeek:
  4275. description: |
  4276. startDayOfWeek field of the user
  4277. type: number
  4278. starredBoards:
  4279. description: |
  4280. list of starred board IDs
  4281. type: array
  4282. items:
  4283. type: string
  4284. x-nullable: true
  4285. icode:
  4286. description: |
  4287. icode
  4288. type: string
  4289. boardView:
  4290. description: |
  4291. boardView field of the user
  4292. type: string
  4293. enum:
  4294. - board-view-swimlanes
  4295. - board-view-lists
  4296. - board-view-cal
  4297. listSortBy:
  4298. description: |
  4299. default sort list for user
  4300. type: string
  4301. enum:
  4302. - -modifiedat
  4303. - modifiedat
  4304. - -title
  4305. - title
  4306. - -sort
  4307. - sort
  4308. templatesBoardId:
  4309. description: |
  4310. Reference to the templates board
  4311. type: string
  4312. cardTemplatesSwimlaneId:
  4313. description: |
  4314. Reference to the card templates swimlane Id
  4315. type: string
  4316. listTemplatesSwimlaneId:
  4317. description: |
  4318. Reference to the list templates swimlane Id
  4319. type: string
  4320. boardTemplatesSwimlaneId:
  4321. description: |
  4322. Reference to the board templates swimlane Id
  4323. type: string
  4324. required:
  4325. - templatesBoardId
  4326. - cardTemplatesSwimlaneId
  4327. - listTemplatesSwimlaneId
  4328. - boardTemplatesSwimlaneId
  4329. UsersSessiondata:
  4330. type: object
  4331. properties:
  4332. totalHits:
  4333. description: |
  4334. Total hits from last searchquery['members.userId'] = Meteor.userId();
  4335. last hit that was returned
  4336. type: number
  4337. UsersOrgs:
  4338. type: object
  4339. properties:
  4340. orgId:
  4341. description: |
  4342. The uniq ID of the organization
  4343. type: string
  4344. orgDisplayName:
  4345. description: |
  4346. The display name of the organization
  4347. type: string
  4348. required:
  4349. - orgId
  4350. - orgDisplayName
  4351. UsersTeams:
  4352. type: object
  4353. properties:
  4354. teamId:
  4355. description: |
  4356. The uniq ID of the team
  4357. type: string
  4358. teamDisplayName:
  4359. description: |
  4360. The display name of the team
  4361. type: string
  4362. required:
  4363. - teamId
  4364. - teamDisplayName
  4365. UsersEmails:
  4366. type: object
  4367. properties:
  4368. address:
  4369. description: |
  4370. The email address
  4371. type: string
  4372. verified:
  4373. description: |
  4374. Has the email been verified
  4375. type: boolean
  4376. required:
  4377. - address
  4378. - verified
  4379. UsersProfileMoveandcopydialog:
  4380. type: object
  4381. properties:
  4382. boardId:
  4383. description: |
  4384. last selected board id
  4385. type: string
  4386. swimlaneId:
  4387. description: |
  4388. last selected swimlane id
  4389. type: string
  4390. listId:
  4391. description: |
  4392. last selected list id
  4393. type: string
  4394. required:
  4395. - boardId
  4396. - swimlaneId
  4397. - listId
  4398. UsersProfileMovechecklistdialog:
  4399. type: object
  4400. properties:
  4401. boardId:
  4402. description: |
  4403. last selected board id
  4404. type: string
  4405. swimlaneId:
  4406. description: |
  4407. last selected swimlane id
  4408. type: string
  4409. listId:
  4410. description: |
  4411. last selected list id
  4412. type: string
  4413. cardId:
  4414. description: |
  4415. last selected card id
  4416. type: string
  4417. required:
  4418. - boardId
  4419. - swimlaneId
  4420. - listId
  4421. - cardId
  4422. UsersProfileCopychecklistdialog:
  4423. type: object
  4424. properties:
  4425. boardId:
  4426. description: |
  4427. last selected board id
  4428. type: string
  4429. swimlaneId:
  4430. description: |
  4431. last selected swimlane id
  4432. type: string
  4433. listId:
  4434. description: |
  4435. last selected list id
  4436. type: string
  4437. cardId:
  4438. description: |
  4439. last selected card id
  4440. type: string
  4441. required:
  4442. - boardId
  4443. - swimlaneId
  4444. - listId
  4445. - cardId
  4446. UsersProfileNotifications:
  4447. type: object
  4448. properties:
  4449. activity:
  4450. description: |
  4451. The id of the activity this notification references
  4452. type: string
  4453. read:
  4454. description: |
  4455. the date on which this notification was read
  4456. type: string
  4457. required:
  4458. - activity