Reorder funnel stages
Reorders funnel stages. Administrators may reorder any funnel; kanban_manage may reorder only assigned funnels.
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
funnels
/
{id}
/
reorder
Reorder funnel stages
curl --request PATCH \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder \
--header 'api_access_token: <api-key>'const options = {method: 'PATCH', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder', 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}/reorder"
headers = {"api_access_token": "<api-key>"}
response = requests.patch(url, 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}/reorder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder")
.header("api_access_token", "<api-key>")
.asString();{
"id": 1,
"message": "Resource saved successfully"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}Autorizações
Parâmetros de caminho
Resposta
Success
Successful response payload. The exact fields depend on the endpoint.
⌘I
Reorder funnel stages
curl --request PATCH \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder \
--header 'api_access_token: <api-key>'const options = {method: 'PATCH', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder', 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}/reorder"
headers = {"api_access_token": "<api-key>"}
response = requests.patch(url, 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}/reorder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels/{id}/reorder")
.header("api_access_token", "<api-key>")
.asString();{
"id": 1,
"message": "Resource saved successfully"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}