wekan.yml 105 KB

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