Update public inbox
Updates public inbox.
PUT
/
public
/
api
/
v1
/
inboxes
/
{inbox_identifier}
Update public inbox
curl --request PUT \
--url https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sample Inbox",
"description": "Created from the API documentation example"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Sample Inbox',
description: 'Created from the API documentation example'
})
};
fetch('https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}"
payload = {
"name": "Sample Inbox",
"description": "Created from the API documentation example"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Sample Inbox',
'description' => 'Created from the API documentation example'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}"
payload := strings.NewReader("{\n \"name\": \"Sample Inbox\",\n \"description\": \"Created from the API documentation example\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Sample Inbox\",\n \"description\": \"Created from the API documentation example\"\n}")
.asString();{
"id": 1,
"message": "Resource saved successfully"
}{
"error": "Unauthorized"
}⌘I
Update public inbox
curl --request PUT \
--url https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sample Inbox",
"description": "Created from the API documentation example"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Sample Inbox',
description: 'Created from the API documentation example'
})
};
fetch('https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}"
payload = {
"name": "Sample Inbox",
"description": "Created from the API documentation example"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Sample Inbox',
'description' => 'Created from the API documentation example'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}"
payload := strings.NewReader("{\n \"name\": \"Sample Inbox\",\n \"description\": \"Created from the API documentation example\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://chat.wiseapp360.com/public/api/v1/inboxes/{inbox_identifier}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Sample Inbox\",\n \"description\": \"Created from the API documentation example\"\n}")
.asString();{
"id": 1,
"message": "Resource saved successfully"
}{
"error": "Unauthorized"
}