Wekan REST API v7.30
+Wekan REST API v7.31
@@ -4692,6 +4697,223 @@ System.out.println(response.toString()); To perform this operation, you must be authenticated by means of one of the following methods: UserSecurity +Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
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
@@ -5070,7 +5292,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
user: the ID of the user to retrieve the data
Example responses
@@ -5313,7 +5535,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
@@ -5598,7 +5820,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
@@ -5838,7 +6060,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the ID of the checklist
@@ -6147,7 +6369,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
@@ -6421,7 +6643,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the ID of the checklist
@@ -6669,7 +6891,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the checklist ID
@@ -6944,7 +7166,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the checklist ID
@@ -7194,7 +7416,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
card: the card ID
checklist: the checklist ID
@@ -7430,7 +7652,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
card: the ID of the card
@@ -7723,7 +7945,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
card: the ID of the card
@@ -7963,7 +8185,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
card: the ID of the card
comment: the ID of the comment to retrieve
@@ -8187,7 +8409,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
card: the ID of the card
comment: the ID of the comment to delete
@@ -8429,7 +8651,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
customField: the list ID
customFieldValue: the value to look for
@@ -8690,7 +8912,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
Example responses
@@ -8922,7 +9144,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
list: the list ID
@@ -9255,7 +9477,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the new card
list: the list ID of the new card
@@ -9495,7 +9717,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
list: the list ID of the card
card: the card ID
@@ -10099,7 +10321,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
list: the list ID of the card
card: the ID of the card
@@ -10342,7 +10564,7 @@ is not put in the recycle bin. -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
list: the list ID of the card
card: the ID of the card
@@ -10623,7 +10845,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID of the card
list: the list ID of the card
card: the ID of the card
@@ -10866,7 +11088,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
list: the List ID
@@ -11099,7 +11321,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
swimlane: the swimlane ID
@@ -11925,7 +12147,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
customField: the ID of the custom field
Example responses
@@ -12500,7 +12722,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
customField: the ID of the custom field
Example responses
@@ -13494,7 +13716,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
Example responses
@@ -13834,7 +14056,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
Example responses
@@ -14066,7 +14288,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
int: the integration ID
@@ -14360,7 +14582,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
int: the integration ID
@@ -14593,7 +14815,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
int: the integration ID
@@ -14826,7 +15048,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
int: the integration ID
@@ -15080,7 +15302,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
int: the integration ID
@@ -15296,7 +15518,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
Example responses
@@ -15563,7 +15785,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
Example responses
@@ -15795,7 +16017,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the board ID
list: the List ID
@@ -16024,7 +16246,7 @@ The list is not put in the recycle bin. -Detailed descriptions
+Detailed descriptions
board: the board ID
list: the ID of the list to remove
@@ -16251,7 +16473,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
Example responses
@@ -16518,7 +16740,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
Example responses
@@ -16750,7 +16972,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
swimlane: the ID of the swimlane
@@ -17002,7 +17224,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
swimlane: the ID of the swimlane to edit
@@ -17236,7 +17458,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
swimlane: the ID of the swimlane
diff --git a/public/api/wekan.yml b/public/api/wekan.yml index 4e0ce27b4..3f8ed8abd 100644 --- a/public/api/wekan.yml +++ b/public/api/wekan.yml @@ -1,7 +1,7 @@ swagger: '2.0' info: title: Wekan REST API - version: v7.30 + version: v7.31 description: | The REST API allows you to control and extend Wekan with ease. @@ -2503,6 +2503,36 @@ paths: type: string listId: type: string + /api/boards/{board}/title: + put: + operationId: update_board_title + summary: Update the title of a board + tags: + - Boards + consumes: + - multipart/form-data + - application/json + parameters: + - name: title + in: formData + description: | + the new title for the board + type: string + required: true + - name: board + in: path + description: | + the ID of the board to update + type: string + required: true + produces: + - application/json + security: + - UserSecurity: [] + responses: + '200': + description: |- + 200 response /api/boards_count: get: operationId: get_boards_count diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index 11a085899..67467be46 100644 --- a/sandstorm-pkgdef.capnp +++ b/sandstorm-pkgdef.capnp @@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = ( appTitle = (defaultText = "Wekan"), # The name of the app as it is displayed to the user. - appVersion = 730, + appVersion = 731, # Increment this for every release. - appMarketingVersion = (defaultText = "7.30.0~2024-01-28"), + appMarketingVersion = (defaultText = "7.31.0~2024-02-17"), # Human-readable presentation of the app version. minUpgradableAppVersion = 0, diff --git a/snapcraft.yaml b/snapcraft.yaml index 594a0a72c..b24c954b1 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: wekan -version: '7.30' +version: '7.31' base: core20 summary: Open Source kanban description: | @@ -170,9 +170,9 @@ parts: # Cleanup mkdir .build cd .build - wget https://github.com/wekan/wekan/releases/download/v7.30/wekan-7.30-amd64.zip - unzip wekan-7.30-amd64.zip - rm wekan-7.30-amd64.zip + wget https://github.com/wekan/wekan/releases/download/v7.31/wekan-7.31-amd64.zip + unzip wekan-7.31-amd64.zip + rm wekan-7.31-amd64.zip cd .. ##cd .build/bundle ##find . -type d -name '*-garbage*' | xargs rm -rf