This commit is contained in:
Lauri Ojansivu 2023-04-07 00:24:34 +03:00
parent bbf1f3a43f
commit 8df318bced
8 changed files with 36 additions and 19 deletions

View file

@ -7,7 +7,7 @@
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Wekan REST API v6.81</title>
<title>Wekan REST API v6.82</title>
<style>
</style>
@ -1558,7 +1558,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
<ul class="toc-list-h1">
<li>
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v6.81">Wekan REST API v6.81</a>
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v6.82">Wekan REST API v6.82</a>
</li>
@ -2161,7 +2161,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
<div class="page-wrapper">
<div class="dark-box"></div>
<div class="content">
<h1 id="wekan-rest-api">Wekan REST API v6.81</h1>
<h1 id="wekan-rest-api">Wekan REST API v6.82</h1>
<blockquote>
<p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
</blockquote>
@ -15579,7 +15579,8 @@ Accept: application/json
&quot;action&quot;: &quot;string&quot;,
&quot;isAdmin&quot;: true,
&quot;isNoComments&quot;: true,
&quot;isCommentOnly&quot;: true
&quot;isCommentOnly&quot;: true,
&quot;isWorker&quot;: true
}&#x27;</span>;
<span class="hljs-keyword">const</span> headers = {
<span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
@ -15605,7 +15606,8 @@ fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x2
<span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
<span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
<span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
};
<span class="hljs-keyword">const</span> headers = {
<span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
@ -15732,6 +15734,7 @@ to later change the permissions.</p>
<span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
</code></pre>
<h3 id="add_board_member-parameters">Parameters</h3>
@ -15772,7 +15775,7 @@ to later change the permissions.</p>
<td>body</td>
<td>string</td>
<td>true</td>
<td>the action value</td>
<td>the action (needs to be <code>add</code>)</td>
</tr>
<tr>
<td>» isAdmin</td>
@ -15795,6 +15798,13 @@ to later change the permissions.</p>
<td>true</td>
<td>only enable comments</td>
</tr>
<tr>
<td>» isWorker</td>
<td>body</td>
<td>boolean</td>
<td>true</td>
<td>is the user a board worker</td>
</tr>
</tbody>
</table>
<h4 id="detailed-descriptions-42">Detailed descriptions</h4>

View file

@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: Wekan REST API
version: v6.81
version: v6.82
description: |
The REST API allows you to control and extend Wekan with ease.
@ -2185,7 +2185,8 @@ paths:
parameters:
- name: action
in: formData
description: the action value
description: |
the action (needs to be `add`)
type: string
required: true
- name: isAdmin
@ -2206,6 +2207,12 @@ paths:
only enable comments
type: boolean
required: true
- name: isWorker
in: formData
description: |
is the user a board worker
type: boolean
required: true
- name: board
in: path
description: |