Update a custom filter
Update a custom filter’s attributes
PUT
/
api
/
v1
/
accounts
/
{account_id}
/
custom_filters
/
{custom_filter_id}
Update a custom filter
curl --request PUT \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "My Custom Filter",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
}
}
'const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Custom Filter',
type: 'conversation',
query: {source: 'api', segment: 'enterprise'}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}"
payload = {
"name": "My Custom Filter",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
}
}
headers = {
"api_access_token": "<api-key>",
"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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}",
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' => 'My Custom Filter',
'type' => 'conversation',
'query' => [
'source' => 'api',
'segment' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}"
payload := strings.NewReader("{\n \"name\": \"My Custom Filter\",\n \"type\": \"conversation\",\n \"query\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Custom Filter\",\n \"type\": \"conversation\",\n \"query\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
},
"created_at": "2026-05-20T12:00:00Z",
"updated_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}Autorizações
Parâmetros de caminho
Corpo
application/json
Resposta
Success
⌘I
Update a custom filter
curl --request PUT \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "My Custom Filter",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
}
}
'const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Custom Filter',
type: 'conversation',
query: {source: 'api', segment: 'enterprise'}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}"
payload = {
"name": "My Custom Filter",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
}
}
headers = {
"api_access_token": "<api-key>",
"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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}",
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' => 'My Custom Filter',
'type' => 'conversation',
'query' => [
'source' => 'api',
'segment' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}"
payload := strings.NewReader("{\n \"name\": \"My Custom Filter\",\n \"type\": \"conversation\",\n \"query\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Custom Filter\",\n \"type\": \"conversation\",\n \"query\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"type": "conversation",
"query": {
"source": "api",
"segment": "enterprise"
},
"created_at": "2026-05-20T12:00:00Z",
"updated_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}