Update board
Endpoint
POST /v3/rooms/board
To update a board, pass the allowed arguments in your request.
Parameters
Key | Type | Description |
---|---|---|
name |
optional (String) | a valid value of the board name. |
slug |
optional (String) | a valid value of the board slug. |
closingMessage |
optional (String) | a valid value of the board description. |
membersIds |
optional (Array) | a valid array consisting of member IDs |
isActive |
optional (Boolean) | a valid value of the board activity status. |
hasWaitingList |
optional (Boolean) | a valid value of the board waiting list. |
Returns
Returns an updated object of the board.
Bash
curl --location --request POST 'https://api.meedio.me/api/v3/rooms/board/board-id-example' \
--header 'API_KEY: meedio_key' \
--header 'API_SECRET: meedio_secret' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "meedio_name",
"slug": "meedio_slug",
"closingMessage": "meedio_closing_message",
"membersIds": ["888d83dc-66a0-44df-b071-37d32da08524"],
"isActive": "true"
}'
Ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.meedio.me/api/v3/rooms/board/board-id-example")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API_KEY"] = "meedio_key"
request["API_SECRET"] = "meedio_secret"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"name": "meedio_name",
"slug": "meedio_slug",
"closingMessage": "meedio_closing_message",
"membersIds": [
"888d83dc-66a0-44df-b071-37d32da08524"
],
"isActive": "true"
})
response = https.request(request)
puts response.read_body
JavaScript
var axios = require("axios");
var data = JSON.stringify({
name: "meedio_name",
slug: "meedio_slug",
closingMessage: "meedio_closing_message",
membersIds: ["888d83dc-66a0-44df-b071-37d32da08524"],
isActive: "true",
});
var config = {
method: "post",
url: "https://api.meedio.me/api/v3/rooms/board/board-id-example",
headers: {
API_KEY: "meedio_key",
API_SECRET: "meedio_secret",
"Content-Type": "application/json",
},
data: data,
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Python
import requests
import json
url = "https://api.meedio.me/api/v3/rooms/board/board-id-example"
payload = json.dumps({
"name": "meedio_name",
"slug": "meedio_slug",
"closingMessage": "meedio_closing_message",
"membersIds": [
"888d83dc-66a0-44df-b071-37d32da08524"
],
"isActive": "true"
})
headers = {
'API_KEY': 'meedio_key',
'API_SECRET': 'meedio_secret',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
PHP
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.meedio.me/api/v3/rooms/board/board-id-example');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'API_KEY' => 'meedio_key',
'API_SECRET' => 'meedio_secret',
'Content-Type' => 'application/json'
));
$request->setBody('{\n "name": "meedio_name",\n "slug": "meedio_slug",\n "closingMessage": "meedio_closing_message",\n "membersIds": ["888d83dc-66a0-44df-b071-37d32da08524"],\n "isActive": "true"\n}');
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
Go
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.meedio.me/api/v3/rooms/board/board-id-example"
method := "POST"
payload := strings.NewReader(`{
"name": "meedio_name",
"slug": "meedio_slug",
"closingMessage": "meedio_closing_message",
"membersIds": ["888d83dc-66a0-44df-b071-37d32da08524"],
"isActive": "true"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("API_KEY", "meedio_key")
req.Header.Add("API_SECRET", "meedio_secret")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}