Wekan REST API v7.85
+Wekan REST API v7.80
@@ -1995,47 +2100,28 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reducScroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
# You can also use wget
curl -X POST /users/login \
- -H 'Content-Type: application/x-www-form-urlencoded' \
- -H 'Accept: */*'
+ -H 'Content-Type: application/x-www-form-urlencoded' \
+ -H 'Accept: */*'
-POST /users/login HTTP/1.1
+POST /users/login HTTP/1.1
-Content-Type: application/x-www-form-urlencoded
-Accept: */*
+Content-Type: application/x-www-form-urlencoded
+Accept: */*
-
-var headers = {
- 'Content-Type':'application/x-www-form-urlencoded',
- 'Accept':'*/*'
-
-};
-
-$.ajax({
- url: '/users/login',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
-const inputBody = '{
- "username": "string",
- "password": "pa$$word"
-}';
+
+const inputBody = '{
+ "username": "string",
+ "password": "pa$$word"
+}';
const headers = {
- 'Content-Type':'application/x-www-form-urlencoded',
- 'Accept':'*/*'
-
+ 'Content-Type':'application/x-www-form-urlencoded',
+ 'Accept':'*/*'
};
-fetch('/users/login',
+fetch('/users/login',
{
- method: 'POST',
+ method: 'POST',
body: inputBody,
headers: headers
})
@@ -2046,15 +2132,38 @@ fetch('/users/login',
});
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+const inputBody = {
+ "username": "string",
+ "password": "pa$$word"
+};
+const headers = {
+ 'Content-Type':'application/x-www-form-urlencoded',
+ 'Accept':'*/*'
+};
+
+fetch('/users/login',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Content-Type' => 'application/x-www-form-urlencoded',
- 'Accept' => '*/*'
+ 'Content-Type' => 'application/x-www-form-urlencoded',
+ 'Accept' => '*/*'
}
-result = RestClient.post '/users/login',
+result = RestClient.post '/users/login',
params: {
}, headers: headers
@@ -2063,20 +2172,18 @@ p JSON.parse(result)
import requests
headers = {
- 'Content-Type': 'application/x-www-form-urlencoded',
- 'Accept': '*/*'
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'Accept': '*/*'
}
-r = requests.post('/users/login', params={
+r = requests.post('/users/login', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/users/login");
+URL obj = new URL("/users/login");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("POST");
+con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -2092,20 +2199,19 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Content-Type": []string{"application/x-www-form-urlencoded"},
- "Accept": []string{"*/*"},
-
+ "Content-Type": []string{"application/x-www-form-urlencoded"},
+ "Accept": []string{"*/*"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("POST", "/users/login", data)
+ req, err := http.NewRequest("POST", "/users/login", data)
req.Header = headers
client := &http.Client{}
@@ -2113,6 +2219,31 @@ System.out.println(response.toString());
// ...
}
+
+ 'application/x-www-form-urlencoded',
+ 'Accept' => '*/*',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/users/login', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
POST /users/login
Login with REST API
@@ -2139,7 +2270,7 @@ System.out.println(response.toString());
body
body
object
-false
+true
none
@@ -2269,48 +2400,29 @@ This operation does not require authentication
# You can also use wget
curl -X POST /users/register \
- -H 'Content-Type: application/x-www-form-urlencoded' \
- -H 'Accept: */*'
+ -H 'Content-Type: application/x-www-form-urlencoded' \
+ -H 'Accept: */*'
-POST /users/register HTTP/1.1
+POST /users/register HTTP/1.1
-Content-Type: application/x-www-form-urlencoded
-Accept: */*
+Content-Type: application/x-www-form-urlencoded
+Accept: */*
-
-var headers = {
- 'Content-Type':'application/x-www-form-urlencoded',
- 'Accept':'*/*'
-
-};
-
-$.ajax({
- url: '/users/register',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
-const inputBody = '{
- "username": "string",
- "password": "pa$$word",
- "email": "string"
-}';
+
+const inputBody = '{
+ "username": "string",
+ "password": "pa$$word",
+ "email": "string"
+}';
const headers = {
- 'Content-Type':'application/x-www-form-urlencoded',
- 'Accept':'*/*'
-
+ 'Content-Type':'application/x-www-form-urlencoded',
+ 'Accept':'*/*'
};
-fetch('/users/register',
+fetch('/users/register',
{
- method: 'POST',
+ method: 'POST',
body: inputBody,
headers: headers
})
@@ -2321,15 +2433,39 @@ fetch('/users/register',
});
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+const inputBody = {
+ "username": "string",
+ "password": "pa$$word",
+ "email": "string"
+};
+const headers = {
+ 'Content-Type':'application/x-www-form-urlencoded',
+ 'Accept':'*/*'
+};
+
+fetch('/users/register',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Content-Type' => 'application/x-www-form-urlencoded',
- 'Accept' => '*/*'
+ 'Content-Type' => 'application/x-www-form-urlencoded',
+ 'Accept' => '*/*'
}
-result = RestClient.post '/users/register',
+result = RestClient.post '/users/register',
params: {
}, headers: headers
@@ -2338,20 +2474,18 @@ p JSON.parse(result)
import requests
headers = {
- 'Content-Type': 'application/x-www-form-urlencoded',
- 'Accept': '*/*'
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'Accept': '*/*'
}
-r = requests.post('/users/register', params={
+r = requests.post('/users/register', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/users/register");
+URL obj = new URL("/users/register");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("POST");
+con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -2367,20 +2501,19 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Content-Type": []string{"application/x-www-form-urlencoded"},
- "Accept": []string{"*/*"},
-
+ "Content-Type": []string{"application/x-www-form-urlencoded"},
+ "Accept": []string{"*/*"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("POST", "/users/register", data)
+ req, err := http.NewRequest("POST", "/users/register", data)
req.Header = headers
client := &http.Client{}
@@ -2388,6 +2521,31 @@ System.out.println(response.toString());
// ...
}
+
+ 'application/x-www-form-urlencoded',
+ 'Accept' => '*/*',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/users/register', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
POST /users/register
Register with REST API
@@ -2419,7 +2577,7 @@ System.out.println(response.toString());
body
body
object
-false
+true
none
@@ -2550,45 +2708,31 @@ System.out.println(response.toString());
This operation does not require authentication
Boards
-exportJson
-
+get_public_boards
+
Code samples
# You can also use wget
-curl -X GET /api/boards/{board}/export \
- -H 'Authorization: API_KEY'
+curl -X GET /api/boards \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-GET /api/boards/{board}/export HTTP/1.1
+GET /api/boards HTTP/1.1
-
-var headers = {
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/export',
- method: 'get',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
+Accept: application/json
+
+
const headers = {
- 'Authorization':'API_KEY'
-
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/export',
+fetch('/api/boards',
{
- method: 'GET',
+ method: 'GET',
headers: headers
})
@@ -2599,14 +2743,35 @@ fetch('/api/boards/{board}/export',
});
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Authorization' => 'API_KEY'
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
}
-result = RestClient.get '/api/boards/{board}/export',
+result = RestClient.get '/api/boards',
params: {
}, headers: headers
@@ -2615,19 +2780,18 @@ p JSON.parse(result)
import requests
headers = {
- 'Authorization': 'API_KEY'
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
}
-r = requests.get('/api/boards/{board}/export', params={
+r = requests.get('/api/boards', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/api/boards/{board}/export");
+URL obj = new URL("/api/boards");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("GET");
+con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -2643,19 +2807,19 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Authorization": []string{"API_KEY"},
-
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("GET", "/api/boards/{board}/export", data)
+ req, err := http.NewRequest("GET", "/api/boards", data)
req.Header = headers
client := &http.Client{}
@@ -2663,6 +2827,1339 @@ System.out.println(response.toString());
// ...
}
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+GET /api/boards
+Get all public boards
+
+Example responses
+
+
+200 Response
+
+[
+ {
+ "_id": "string",
+ "title": "string"
+ }
+]
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Inline
+
+
+
+Response Schema
+Status Code 200
+
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+
+» _id
+string
+false
+none
+none
+
+
+» title
+string
+false
+none
+none
+
+
+
+
+new_board
+
+
+Code samples
+
+# You can also use wget
+curl -X POST /api/boards \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+POST /api/boards HTTP/1.1
+
+Content-Type: multipart/form-data
+Accept: application/json
+
+
+const inputBody = '{
+ "title": "string",
+ "owner": "string",
+ "isAdmin": true,
+ "isActive": true,
+ "isNoComments": true,
+ "isCommentOnly": true,
+ "isWorker": true,
+ "permission": "string",
+ "color": "string"
+}';
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+const inputBody = {
+ "title": "string",
+ "owner": "string",
+ "isAdmin": true,
+ "isActive": true,
+ "isNoComments": true,
+ "isCommentOnly": true,
+ "isWorker": true,
+ "permission": "string",
+ "color": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Content-Type' => 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.post '/api/boards',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Content-Type': 'multipart/form-data',
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.post('/api/boards', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("POST");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Content-Type": []string{"multipart/form-data"},
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("POST", "/api/boards", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/api/boards', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+POST /api/boards
+Create a board
+This allows to create a board.
+The color has to be chosen between belize
, nephritis
, pomegranate
,
+pumpkin
, wisteria
, moderatepink
, strongcyan
,
+limegreen
, midnight
, dark
, relax
, corteza
:
+
+
+Body parameter
+
+title: string
+owner: string
+isAdmin: true
+isActive: true
+isNoComments: true
+isCommentOnly: true
+isWorker: true
+permission: string
+color: string
+
+
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+body
+body
+object
+true
+none
+
+
+» title
+body
+string
+true
+the new title of the board
+
+
+» owner
+body
+string
+true
+"ABCDE12345" <= User ID in Wekan.
+
+
+» isAdmin
+body
+boolean
+false
+is the owner an admin of the board (default true)
+
+
+» isActive
+body
+boolean
+false
+is the board active (default true)
+
+
+» isNoComments
+body
+boolean
+false
+disable comments (default false)
+
+
+» isCommentOnly
+body
+boolean
+false
+only enable comments (default false)
+
+
+» isWorker
+body
+boolean
+false
+only move cards, assign himself to card and comment (default false)
+
+
+» permission
+body
+string
+false
+"private" board <== Set to "public" if you
+
+
+» color
+body
+string
+false
+the color of the board
+
+
+
+Detailed descriptions
+» owner: "ABCDE12345" <= User ID in Wekan.
+(Not username or email)
+» permission: "private" board <== Set to "public" if you
+want public Wekan board
+
+Example responses
+
+
+200 Response
+
+{
+ "_id": "string",
+ "defaultSwimlaneId": "string"
+}
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Inline
+
+
+
+Response Schema
+Status Code 200
+
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+
+» _id
+string
+false
+none
+none
+
+
+» defaultSwimlaneId
+string
+false
+none
+none
+
+
+
+
+get_board
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/boards/{board} \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/boards/{board} HTTP/1.1
+
+Accept: application/json
+
+
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/boards/{board}',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/boards/{board}', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/boards/{board}", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards/{board}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+GET /api/boards/{board}
+Get the board with that particular ID
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the ID of the board to retrieve the data
+
+
+
+Detailed descriptions
+board: the ID of the board to retrieve the data
+
+Example responses
+
+
+200 Response
+
+{
+ "title": "string",
+ "slug": "string",
+ "archived": true,
+ "archivedAt": "string",
+ "createdAt": "string",
+ "modifiedAt": "string",
+ "stars": 0,
+ "labels": [
+ {
+ "_id": "string",
+ "name": "string",
+ "color": "white"
+ }
+ ],
+ "members": [
+ {
+ "userId": "string",
+ "isAdmin": true,
+ "isActive": true,
+ "isNoComments": true,
+ "isCommentOnly": true,
+ "isWorker": true
+ }
+ ],
+ "permission": "public",
+ "orgs": [
+ {
+ "orgId": "string",
+ "orgDisplayName": "string",
+ "isActive": true
+ }
+ ],
+ "teams": [
+ {
+ "teamId": "string",
+ "teamDisplayName": "string",
+ "isActive": true
+ }
+ ],
+ "color": "belize",
+ "backgroundImageURL": "string",
+ "allowsCardCounterList": true,
+ "allowsBoardMemberList": true,
+ "description": "string",
+ "subtasksDefaultBoardId": "string",
+ "subtasksDefaultListId": "string",
+ "dateSettingsDefaultBoardId": "string",
+ "dateSettingsDefaultListId": "string",
+ "allowsSubtasks": true,
+ "allowsAttachments": true,
+ "allowsChecklists": true,
+ "allowsComments": true,
+ "allowsDescriptionTitle": true,
+ "allowsDescriptionText": true,
+ "allowsDescriptionTextOnMinicard": true,
+ "allowsCoverAttachmentOnMinicard": true,
+ "allowsBadgeAttachmentOnMinicard": true,
+ "allowsCardSortingByNumberOnMinicard": true,
+ "allowsCardNumber": true,
+ "allowsActivities": true,
+ "allowsLabels": true,
+ "allowsCreator": true,
+ "allowsCreatorOnMinicard": true,
+ "allowsAssignee": true,
+ "allowsMembers": true,
+ "allowsRequestedBy": true,
+ "allowsCardSortingByNumber": true,
+ "allowsShowLists": true,
+ "allowsAssignedBy": true,
+ "allowsReceivedDate": true,
+ "allowsStartDate": true,
+ "allowsEndDate": true,
+ "allowsDueDate": true,
+ "presentParentTask": "prefix-with-full-path",
+ "receivedAt": "string",
+ "startAt": "string",
+ "dueAt": "string",
+ "endAt": "string",
+ "spentTime": 0,
+ "isOvertime": true,
+ "type": "board",
+ "sort": 0
+}
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Boards
+
+
+
+
+delete_board
+
+
+Code samples
+
+# You can also use wget
+curl -X DELETE /api/boards/{board} \
+ -H 'Authorization: API_KEY'
+
+
+DELETE /api/boards/{board} HTTP/1.1
+
+
+
+const headers = {
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}',
+{
+ method: 'DELETE',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}',
+{
+ method: 'DELETE',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.delete '/api/boards/{board}',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.delete('/api/boards/{board}', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("DELETE");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("DELETE", "/api/boards/{board}", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('DELETE','/api/boards/{board}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+DELETE /api/boards/{board}
+Delete a board
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the ID of the board
+
+
+
+Detailed descriptions
+board: the ID of the board
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+None
+
+
+
+
+get_board_attachments
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/boards/{board}/attachments \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/boards/{board}/attachments HTTP/1.1
+
+Accept: application/json
+
+
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/attachments',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/attachments',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/boards/{board}/attachments',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/boards/{board}/attachments', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/attachments");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/boards/{board}/attachments", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards/{board}/attachments', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+GET /api/boards/{board}/attachments
+Get the list of attachments of a board
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the board ID
+
+
+
+Detailed descriptions
+board: the board ID
+
+Example responses
+
+
+200 Response
+
+[
+ {
+ "attachmentId": "string",
+ "attachmentName": "string",
+ "attachmentType": "string",
+ "url": "string",
+ "urlDownload": "string",
+ "boardId": "string",
+ "swimlaneId": "string",
+ "listId": "string",
+ "cardId": "string"
+ }
+]
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Inline
+
+
+
+Response Schema
+Status Code 200
+
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+
+» attachmentId
+string
+false
+none
+none
+
+
+» attachmentName
+string
+false
+none
+none
+
+
+» attachmentType
+string
+false
+none
+none
+
+
+» url
+string
+false
+none
+none
+
+
+» urlDownload
+string
+false
+none
+none
+
+
+» boardId
+string
+false
+none
+none
+
+
+» swimlaneId
+string
+false
+none
+none
+
+
+» listId
+string
+false
+none
+none
+
+
+» cardId
+string
+false
+none
+none
+
+
+
+
+exportJson
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/boards/{board}/export \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/boards/{board}/export HTTP/1.1
+
+
+
+const headers = {
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/export',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/export',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/boards/{board}/export',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/boards/{board}/export', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/export");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/boards/{board}/export", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards/{board}/export', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
GET /api/boards/{board}/export
This route is used to export the board to a json file format.
@@ -2691,7 +4188,7 @@ for detailed explanations
-Detailed descriptions
+Detailed descriptions
board: the ID of the board we are exporting
Responses
@@ -2716,52 +4213,37 @@ for detailed explanations
To perform this operation, you must be authenticated by means of one of the following methods:
UserSecurity
-Checklists
-get_all_checklists
-
+copy_board
+
Code samples
# You can also use wget
-curl -X GET /api/boards/{board}/cards/{card}/checklists \
- -H 'Accept: application/json' \
- -H 'Authorization: API_KEY'
+curl -X POST /api/boards/{board}/copy \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-GET /api/boards/{board}/cards/{card}/checklists HTTP/1.1
+POST /api/boards/{board}/copy HTTP/1.1
-Accept: application/json
-
-
-var headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/cards/{card}/checklists',
- method: 'get',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
+Content-Type: multipart/form-data
+Accept: application/json
+
+const inputBody = '{
+ "title": "string"
+}';
const headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/cards/{card}/checklists',
+fetch('/api/boards/{board}/copy',
{
- method: 'GET',
-
+ method: 'POST',
+ body: inputBody,
headers: headers
})
.then(function(res) {
@@ -2771,15 +4253,39 @@ fetch('/api/boards/{board}/cards/{card}/checklists'
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+const inputBody = {
+ "title": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/copy',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Accept' => 'application/json',
- 'Authorization' => 'API_KEY'
+ 'Content-Type' => 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
}
-result = RestClient.get '/api/boards/{board}/cards/{card}/checklists',
+result = RestClient.post '/api/boards/{board}/copy',
params: {
}, headers: headers
@@ -2788,20 +4294,19 @@ p JSON.parse(result)
import requests
headers = {
- 'Accept': 'application/json',
- 'Authorization': 'API_KEY'
+ 'Content-Type': 'multipart/form-data',
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
}
-r = requests.get('/api/boards/{board}/cards/{card}/checklists', params={
+r = requests.post('/api/boards/{board}/copy', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/api/boards/{board}/cards/{card}/checklists");
+URL obj = new URL("/api/boards/{board}/copy");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("GET");
+con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -2817,20 +4322,20 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Accept": []string{"application/json"},
- "Authorization": []string{"API_KEY"},
-
+ "Content-Type": []string{"multipart/form-data"},
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("GET", "/api/boards/{board}/cards/{card}/checklists", data)
+ req, err := http.NewRequest("POST", "/api/boards/{board}/copy", data)
req.Header = headers
client := &http.Client{}
@@ -2838,6 +4343,1408 @@ System.out.println(response.toString());
// ...
}
+
+ 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/api/boards/{board}/copy', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+POST /api/boards/{board}/copy
+Copy a board to a new one
+If your are board admin or wekan admin, this copies the
+given board to a new one.
+
+Body parameter
+
+title: string
+
+
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the board
+
+
+body
+body
+object
+true
+none
+
+
+» title
+body
+string
+true
+the title of the new board (default to old one)
+
+
+
+Detailed descriptions
+board: the board
+
+Example responses
+
+
+200 Response
+
+"string"
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+string
+
+
+
+
+add_board_label
+
+
+Code samples
+
+# You can also use wget
+curl -X PUT /api/boards/{board}/labels \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+PUT /api/boards/{board}/labels HTTP/1.1
+
+Content-Type: multipart/form-data
+Accept: application/json
+
+
+const inputBody = '{
+ "label": "string"
+}';
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/labels',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+const inputBody = {
+ "label": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/labels',
+{
+ method: 'PUT',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Content-Type' => 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.put '/api/boards/{board}/labels',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Content-Type': 'multipart/form-data',
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.put('/api/boards/{board}/labels', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/labels");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("PUT");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Content-Type": []string{"multipart/form-data"},
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("PUT", "/api/boards/{board}/labels", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('PUT','/api/boards/{board}/labels', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+PUT /api/boards/{board}/labels
+Add a label to a board
+If the board doesn't have the name/color label, this function
+adds the label to the board.
+
+Body parameter
+
+label: string
+
+
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the board
+
+
+body
+body
+object
+true
+none
+
+
+» label
+body
+string
+true
+the label value
+
+
+
+Detailed descriptions
+board: the board
+
+Example responses
+
+
+200 Response
+
+"string"
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+string
+
+
+
+
+set_board_member_permission
+
+
+Code samples
+
+# You can also use wget
+curl -X POST /api/boards/{board}/members/{member} \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Authorization: API_KEY'
+
+
+POST /api/boards/{board}/members/{member} HTTP/1.1
+
+Content-Type: multipart/form-data
+
+
+const inputBody = '{
+ "isAdmin": true,
+ "isNoComments": true,
+ "isCommentOnly": true,
+ "isWorker": true
+}';
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/members/{member}',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+const inputBody = {
+ "isAdmin": true,
+ "isNoComments": true,
+ "isCommentOnly": true,
+ "isWorker": true
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/members/{member}',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Content-Type' => 'multipart/form-data',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.post '/api/boards/{board}/members/{member}',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Content-Type': 'multipart/form-data',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.post('/api/boards/{board}/members/{member}', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/members/{member}");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("POST");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Content-Type": []string{"multipart/form-data"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("POST", "/api/boards/{board}/members/{member}", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'multipart/form-data',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/api/boards/{board}/members/{member}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+POST /api/boards/{board}/members/{member}
+Change the permission of a member of a board
+
+Body parameter
+
+isAdmin: true
+isNoComments: true
+isCommentOnly: true
+isWorker: true
+
+
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the ID of the board that we are changing
+
+
+member
+path
+string
+true
+the ID of the user to change permissions
+
+
+body
+body
+object
+true
+none
+
+
+» isAdmin
+body
+boolean
+true
+admin capability
+
+
+» isNoComments
+body
+boolean
+true
+NoComments capability
+
+
+» isCommentOnly
+body
+boolean
+true
+CommentsOnly capability
+
+
+» isWorker
+body
+boolean
+true
+Worker capability
+
+
+
+Detailed descriptions
+board: the ID of the board that we are changing
+member: the ID of the user to change permissions
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+None
+
+
+
+
+update_board_title
+
+
+Code samples
+
+# You can also use wget
+curl -X PUT /api/boards/{board}/title \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Authorization: API_KEY'
+
+
+PUT /api/boards/{board}/title HTTP/1.1
+
+Content-Type: multipart/form-data
+
+
+const inputBody = '{
+ "title": "string"
+}';
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/title',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+const inputBody = {
+ "title": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/title',
+{
+ method: 'PUT',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Content-Type' => 'multipart/form-data',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.put '/api/boards/{board}/title',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Content-Type': 'multipart/form-data',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.put('/api/boards/{board}/title', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/title");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("PUT");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Content-Type": []string{"multipart/form-data"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("PUT", "/api/boards/{board}/title", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'multipart/form-data',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('PUT','/api/boards/{board}/title', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+PUT /api/boards/{board}/title
+Update the title of a board
+
+Body parameter
+
+title: string
+
+
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+board
+path
+string
+true
+the ID of the board to update
+
+
+body
+body
+object
+true
+none
+
+
+» title
+body
+string
+true
+the new title for the board
+
+
+
+Detailed descriptions
+board: the ID of the board to update
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+None
+
+
+
+
+get_boards_count
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/boards_count \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/boards_count HTTP/1.1
+
+Accept: application/json
+
+
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards_count',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards_count',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/boards_count',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/boards_count', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards_count");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/boards_count", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards_count', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+GET /api/boards_count
+Get public and private boards count
+
+Example responses
+
+
+200 Response
+
+{
+ "private": 0,
+ "public": 0
+}
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Inline
+
+
+
+Response Schema
+Status Code 200
+
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+
+» private
+integer
+false
+none
+none
+
+
+» public
+integer
+false
+none
+none
+
+
+
+
+get_boards_from_user
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/users/{user}/boards \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/users/{user}/boards HTTP/1.1
+
+Accept: application/json
+
+
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/users/{user}/boards',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/users/{user}/boards',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/users/{user}/boards',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/users/{user}/boards', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/users/{user}/boards");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/users/{user}/boards", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/users/{user}/boards', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+GET /api/users/{user}/boards
+Get all boards attached to a user
+Parameters
+
+
+
+Name
+In
+Type
+Required
+Description
+
+
+
+
+user
+path
+string
+true
+the ID of the user to retrieve the data
+
+
+
+Detailed descriptions
+user: the ID of the user to retrieve the data
+
+Example responses
+
+
+200 Response
+
+[
+ {
+ "_id": "string",
+ "title": "string"
+ }
+]
+
+Responses
+
+
+
+Status
+Meaning
+Description
+Schema
+
+
+
+
+200
+OK
+200 response
+Inline
+
+
+
+Response Schema
+Status Code 200
+
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+
+» _id
+string
+false
+none
+none
+
+
+» title
+string
+false
+none
+none
+
+
+
+
+Checklists
+get_all_checklists
+
+
+Code samples
+
+# You can also use wget
+curl -X GET /api/boards/{board}/cards/{card}/checklists \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+GET /api/boards/{board}/cards/{card}/checklists HTTP/1.1
+
+Accept: application/json
+
+
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/cards/{card}/checklists',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/cards/{card}/checklists',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.get '/api/boards/{board}/cards/{card}/checklists',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.get('/api/boards/{board}/cards/{card}/checklists', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/cards/{card}/checklists");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("GET");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("GET", "/api/boards/{board}/cards/{card}/checklists", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards/{board}/cards/{card}/checklists', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
GET /api/boards/{board}/cards/{card}/checklists
Get the list of checklists attached to a card
@@ -2869,7 +5776,7 @@ System.out.println(response.toString());
-Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
@@ -2880,8 +5787,8 @@ System.out.println(response.toString());
[
{
- "_id": "string",
- "title": "string"
+ "_id": "string",
+ "title": "string"
}
]
@@ -2944,50 +5851,30 @@ UserSecurity
# You can also use wget
curl -X POST /api/boards/{board}/cards/{card}/checklists \
- -H 'Content-Type: multipart/form-data' \
- -H 'Accept: application/json' \
- -H 'Authorization: API_KEY'
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-POST /api/boards/{board}/cards/{card}/checklists HTTP/1.1
+POST /api/boards/{board}/cards/{card}/checklists HTTP/1.1
Content-Type: multipart/form-data
Accept: application/json
-var headers = {
- 'Content-Type':'multipart/form-data',
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/cards/{card}/checklists',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
-const inputBody = '{
- "title": "string",
- "items": "string"
-}';
+const inputBody = '{
+ "title": "string",
+ "items": "string"
+}';
const headers = {
- 'Content-Type':'multipart/form-data',
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/cards/{card}/checklists',
+fetch('/api/boards/{board}/cards/{card}/checklists',
{
- method: 'POST',
+ method: 'POST',
body: inputBody,
headers: headers
})
@@ -2998,16 +5885,40 @@ fetch('/api/boards/{board}/cards/{card}/checklists'
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+const inputBody = {
+ "title": "string",
+ "items": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/cards/{card}/checklists',
+{
+ method: 'POST',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Content-Type' => 'multipart/form-data',
- 'Accept' => 'application/json',
- 'Authorization' => 'API_KEY'
+ 'Content-Type' => 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
}
-result = RestClient.post '/api/boards/{board}/cards/{card}/checklists',
+result = RestClient.post '/api/boards/{board}/cards/{card}/checklists',
params: {
}, headers: headers
@@ -3016,21 +5927,19 @@ p JSON.parse(result)
import requests
headers = {
- 'Content-Type': 'multipart/form-data',
- 'Accept': 'application/json',
- 'Authorization': 'API_KEY'
+ 'Content-Type': 'multipart/form-data',
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
}
-r = requests.post('/api/boards/{board}/cards/{card}/checklists', params={
+r = requests.post('/api/boards/{board}/cards/{card}/checklists', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/api/boards/{board}/cards/{card}/checklists");
+URL obj = new URL("/api/boards/{board}/cards/{card}/checklists");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("POST");
+con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -3046,21 +5955,20 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Content-Type": []string{"multipart/form-data"},
- "Accept": []string{"application/json"},
- "Authorization": []string{"API_KEY"},
-
+ "Content-Type": []string{"multipart/form-data"},
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("POST", "/api/boards/{board}/cards/{card}/checklists", data)
+ req, err := http.NewRequest("POST", "/api/boards/{board}/cards/{card}/checklists", data)
req.Header = headers
client := &http.Client{}
@@ -3068,6 +5976,32 @@ System.out.println(response.toString());
// ...
}
+
+ 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('POST','/api/boards/{board}/cards/{card}/checklists', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
POST /api/boards/{board}/cards/{card}/checklists
create a new checklist
@@ -3108,7 +6042,7 @@ System.out.println(response.toString());
body
body
object
-false
+true
none
@@ -3127,7 +6061,7 @@ System.out.println(response.toString());
-Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
@@ -3137,7 +6071,7 @@ System.out.println(response.toString());
200 Response
{
- "_id": "string"
+ "_id": "string"
}
Responses
@@ -3192,43 +6126,24 @@ UserSecurity
# You can also use wget
curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
- -H 'Accept: application/json' \
- -H 'Authorization: API_KEY'
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-GET /api/boards/{board}/cards/{card}/checklists/{checklist} HTTP/1.1
+GET /api/boards/{board}/cards/{card}/checklists/{checklist} HTTP/1.1
-Accept: application/json
-
-
-var headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/cards/{card}/checklists/{checklist}',
- method: 'get',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
+Accept: application/json
+
+
const headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
+fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
{
- method: 'GET',
+ method: 'GET',
headers: headers
})
@@ -3239,15 +6154,35 @@ fetch('/api/boards/{board}/cards/{card}/checklists/{ch
});
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
+{
+ method: 'GET',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Accept' => 'application/json',
- 'Authorization' => 'API_KEY'
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
}
-result = RestClient.get '/api/boards/{board}/cards/{card}/checklists/{checklist}',
+result = RestClient.get '/api/boards/{board}/cards/{card}/checklists/{checklist}',
params: {
}, headers: headers
@@ -3256,20 +6191,18 @@ p JSON.parse(result)
import requests
headers = {
- 'Accept': 'application/json',
- 'Authorization': 'API_KEY'
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
}
-r = requests.get('/api/boards/{board}/cards/{card}/checklists/{checklist}', params={
+r = requests.get('/api/boards/{board}/cards/{card}/checklists/{checklist}', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/api/boards/{board}/cards/{card}/checklists/{checklist}");
+URL obj = new URL("/api/boards/{board}/cards/{card}/checklists/{checklist}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("GET");
+con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -3285,20 +6218,19 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Accept": []string{"application/json"},
- "Authorization": []string{"API_KEY"},
-
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("GET", "/api/boards/{board}/cards/{card}/checklists/{checklist}", data)
+ req, err := http.NewRequest("GET", "/api/boards/{board}/cards/{card}/checklists/{checklist}", data)
req.Header = headers
client := &http.Client{}
@@ -3306,6 +6238,31 @@ System.out.println(response.toString());
// ...
}
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('GET','/api/boards/{board}/cards/{card}/checklists/{checklist}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
GET /api/boards/{board}/cards/{card}/checklists/{checklist}
Get a checklist
@@ -3344,7 +6301,7 @@ System.out.println(response.toString());
-Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the ID of the checklist
@@ -3355,16 +6312,16 @@ System.out.println(response.toString());
200 Response
{
- "cardId": "string",
- "title": "string",
- "finishedAt": "string",
- "createdAt": "string",
- "sort": 0,
- "items": [
+ "cardId": "string",
+ "title": "string",
+ "finishedAt": "string",
+ "createdAt": "string",
+ "sort": 0,
+ "items": [
{
- "_id": "string",
- "title": "string",
- "isFinished": true
+ "_id": "string",
+ "title": "string",
+ "isFinished": true
}
]
}
@@ -3477,43 +6434,24 @@ UserSecurity
# You can also use wget
curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
- -H 'Accept: application/json' \
- -H 'Authorization: API_KEY'
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} HTTP/1.1
+DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} HTTP/1.1
-Accept: application/json
-
-
-var headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/cards/{card}/checklists/{checklist}',
- method: 'delete',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
+Accept: application/json
+
+
const headers = {
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
+fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
{
- method: 'DELETE',
+ method: 'DELETE',
headers: headers
})
@@ -3524,15 +6462,35 @@ fetch('/api/boards/{board}/cards/{card}/checklists/{ch
});
-require 'rest-client'
-require 'json'
+const fetch = require('node-fetch');
+
+const headers = {
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}',
+{
+ method: 'DELETE',
+
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
headers = {
- 'Accept' => 'application/json',
- 'Authorization' => 'API_KEY'
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
}
-result = RestClient.delete '/api/boards/{board}/cards/{card}/checklists/{checklist}',
+result = RestClient.delete '/api/boards/{board}/cards/{card}/checklists/{checklist}',
params: {
}, headers: headers
@@ -3541,20 +6499,18 @@ p JSON.parse(result)
import requests
headers = {
- 'Accept': 'application/json',
- 'Authorization': 'API_KEY'
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
}
-r = requests.delete('/api/boards/{board}/cards/{card}/checklists/{checklist}', params={
+r = requests.delete('/api/boards/{board}/cards/{card}/checklists/{checklist}', headers = headers)
-}, headers = headers)
-
-print r.json()
+print(r.json())
-URL obj = new URL("/api/boards/{board}/cards/{card}/checklists/{checklist}");
+URL obj = new URL("/api/boards/{board}/cards/{card}/checklists/{checklist}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
-con.setRequestMethod("DELETE");
+con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
@@ -3570,20 +6526,19 @@ System.out.println(response.toString());
package main
import (
- "bytes"
- "net/http"
+ "bytes"
+ "net/http"
)
func main() {
headers := map[string][]string{
- "Accept": []string{"application/json"},
- "Authorization": []string{"API_KEY"},
-
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
}
data := bytes.NewBuffer([]byte{jsonReq})
- req, err := http.NewRequest("DELETE", "/api/boards/{board}/cards/{card}/checklists/{checklist}", data)
+ req, err := http.NewRequest("DELETE", "/api/boards/{board}/cards/{card}/checklists/{checklist}", data)
req.Header = headers
client := &http.Client{}
@@ -3591,6 +6546,31 @@ System.out.println(response.toString());
// ...
}
+
+ 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('DELETE','/api/boards/{board}/cards/{card}/checklists/{checklist}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}
Delete a checklist
@@ -3630,7 +6610,7 @@ System.out.println(response.toString());
-Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the ID of the checklist to remove
@@ -3641,7 +6621,7 @@ System.out.println(response.toString());
200 Response
{
- "_id": "string"
+ "_id": "string"
}
Responses
@@ -3697,49 +6677,29 @@ UserSecurity
# You can also use wget
curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
- -H 'Content-Type: multipart/form-data' \
- -H 'Accept: application/json' \
- -H 'Authorization: API_KEY'
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
-POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items HTTP/1.1
+POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items HTTP/1.1
Content-Type: multipart/form-data
Accept: application/json
-var headers = {
- 'Content-Type':'multipart/form-data',
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
-};
-
-$.ajax({
- url: '/api/boards/{board}/cards/{card}/checklists/{checklist}/items',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
-})
-
-
-const fetch = require('node-fetch');
-const inputBody = '{
- "title": "string"
-}';
+const inputBody = '{
+ "title": "string"
+}';
const headers = {
- 'Content-Type':'multipart/form-data',
- 'Accept':'application/json',
- 'Authorization':'API_KEY'
-
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
};
-fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}/items',
+fetch('/api/boards/{board}/cards/{card}/checklists/{checklist}/items',
{
- method: 'POST',
+ method: 'POST',
body: inputBody,
headers: headers
})
@@ -3750,16 +6710,39 @@ fetch('/api/boards/{board}/cards/{card}/checklists/{ch
});
-require 'rest-client'
-require 'json'
+