Replace funnel
Updates a funnel. Administrators may update any funnel; kanban_manage may update only assigned funnels and cannot change the default or visibility mode.
PUT
/
api
/
v1
/
accounts
/
{account_id}
/
funnels
/
{id}
Replace funnel
curl --request PUT \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"funnel": {
"name": "Sample resource",
"description": "Sample text",
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
]
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
]
}
}
'const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
funnel: {
name: 'Sample resource',
description: 'Sample text',
active: true,
is_default: true,
unassigned_visibility: 'everyone',
stages: {source: 'api', segment: 'enterprise'},
settings: {agents: [1], inboxes: [1]},
global_custom_attributes: [{source: 'api', segment: 'enterprise'}]
}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{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}/funnels/{id}"
payload = { "funnel": {
"name": "Sample resource",
"description": "Sample text",
"active": True,
"is_default": True,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [1],
"inboxes": [1]
},
"global_custom_attributes": [
{
"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}/funnels/{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([
'funnel' => [
'name' => 'Sample resource',
'description' => 'Sample text',
'active' => true,
'is_default' => true,
'unassigned_visibility' => 'everyone',
'stages' => [
'source' => 'api',
'segment' => 'enterprise'
],
'settings' => [
'agents' => [
1
],
'inboxes' => [
1
]
],
'global_custom_attributes' => [
[
'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}/funnels/{id}"
payload := strings.NewReader("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n ]\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}/funnels/{id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n ]\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"description": "Sample text",
"account_id": 1,
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
],
"contact_panel_contact_wide_items": true
},
"capabilities": {
"can_edit": true,
"can_create": true,
"can_delete": true,
"can_change_visibility": true,
"can_set_default": true
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
],
"created_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}Autorizações
Parâmetros de caminho
Resposta
Success
⌘I
Replace funnel
curl --request PUT \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"funnel": {
"name": "Sample resource",
"description": "Sample text",
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
]
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
]
}
}
'const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
funnel: {
name: 'Sample resource',
description: 'Sample text',
active: true,
is_default: true,
unassigned_visibility: 'everyone',
stages: {source: 'api', segment: 'enterprise'},
settings: {agents: [1], inboxes: [1]},
global_custom_attributes: [{source: 'api', segment: 'enterprise'}]
}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{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}/funnels/{id}"
payload = { "funnel": {
"name": "Sample resource",
"description": "Sample text",
"active": True,
"is_default": True,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [1],
"inboxes": [1]
},
"global_custom_attributes": [
{
"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}/funnels/{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([
'funnel' => [
'name' => 'Sample resource',
'description' => 'Sample text',
'active' => true,
'is_default' => true,
'unassigned_visibility' => 'everyone',
'stages' => [
'source' => 'api',
'segment' => 'enterprise'
],
'settings' => [
'agents' => [
1
],
'inboxes' => [
1
]
],
'global_custom_attributes' => [
[
'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}/funnels/{id}"
payload := strings.NewReader("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n ]\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}/funnels/{id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n }\n ]\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"description": "Sample text",
"account_id": 1,
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
],
"contact_panel_contact_wide_items": true
},
"capabilities": {
"can_edit": true,
"can_create": true,
"can_delete": true,
"can_change_visibility": true,
"can_set_default": true
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
],
"created_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}