curl --request PATCH \
--url https://api.withallo.com/v2/api/crm/views/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme leads"
}
'import requests
url = "https://api.withallo.com/v2/api/crm/views/{id}"
payload = { "name": "Acme leads" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme leads'})
};
fetch('https://api.withallo.com/v2/api/crm/views/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.withallo.com/v2/api/crm/views/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme leads'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.withallo.com/v2/api/crm/views/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme leads\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<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.patch("https://api.withallo.com/v2/api/crm/views/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme leads\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/crm/views/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme leads\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cvw_2abc",
"name": "Acme leads",
"filters": [
{
"field": "company",
"operator": "CONTAINS",
"value": "Acme"
}
],
"sort": [
{
"field": "created_at",
"order": "desc"
}
],
"owner_type": "USER",
"user_id": "usr_2abc",
"team_id": null,
"created_at": "2026-10-23T10:00:00",
"updated_at": "2026-10-23T10:00:00"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Update view
Partially updates a view: only the fields you send change. filters: [] clears the filters. Updating a team view requires being its owner or a team ADMIN or MANAGER. Returns 400 INVALID_REQUEST_BODY (per-field errors[]) for a blank or too long name or more than 50 filters; INVALID_FILTER_FIELD, INVALID_FILTER_OPERATOR, INVALID_FILTER_VALUE, INVALID_SORT_FIELD or FIELD_NOT_SORTABLE for an invalid filter or sort; USER_HAS_NO_TEAM for owner_type: TEAM when the user has no team; 403 VIEW_PERMISSION_DENIED for a team view you do not own unless you are a team ADMIN or MANAGER; 404 VIEW_NOT_FOUND for a view you cannot see, such as another user’s private view.
curl --request PATCH \
--url https://api.withallo.com/v2/api/crm/views/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme leads"
}
'import requests
url = "https://api.withallo.com/v2/api/crm/views/{id}"
payload = { "name": "Acme leads" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme leads'})
};
fetch('https://api.withallo.com/v2/api/crm/views/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.withallo.com/v2/api/crm/views/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme leads'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.withallo.com/v2/api/crm/views/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme leads\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<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.patch("https://api.withallo.com/v2/api/crm/views/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme leads\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/crm/views/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme leads\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cvw_2abc",
"name": "Acme leads",
"filters": [
{
"field": "company",
"operator": "CONTAINS",
"value": "Acme"
}
],
"sort": [
{
"field": "created_at",
"order": "desc"
}
],
"owner_type": "USER",
"user_id": "usr_2abc",
"team_id": null,
"created_at": "2026-10-23T10:00:00",
"updated_at": "2026-10-23T10:00:00"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}CRM_WRITEfilters: [] to clear the filters.
Body fields
| Field | Type | Description |
|---|---|---|
name | string | New display name, up to 255 characters. Must not be blank when sent |
filters | array | Replaces all the conditions. [] clears them. Up to 50 |
sort | array | Replaces the sort. Up to 2 entries. field is a sortable built-in field (name, company, job_title, website, created_at, updated_at, last_activity) or the key of a sortable custom field from List custom fields |
owner_type | string | USER or TEAM |
{ "name": "Acme leads" }
Response
Returns200 with the updated view, in the same shape as Get view.
Errors
| Status | Code | When |
|---|---|---|
400 | INVALID_REQUEST_BODY | name is blank or longer than 255 characters, filters has more than 50 entries, or owner_type is not USER or TEAM. Field-level problems are listed in errors[] with the field (name or filters) |
400 | INVALID_FILTER_FIELD | A filter field is neither a built-in person field nor the key of a custom field from GET /v2/api/crm/attributes. param is filters |
400 | INVALID_FILTER_OPERATOR | A filter operator does not match the type of its field. The message names the field. param is filters |
400 | INVALID_FILTER_VALUE | A filter value cannot be read for the type of its field: a number field needs a numeric value, a date field needs an ISO 8601 date such as 2026-01-31 or 2026-01-31T00:00:00Z. The message names the value and the field. param is filters |
400 | INVALID_SORT_FIELD | A sort field is neither a built-in field nor a custom field key from GET /v2/api/crm/attributes. param is sort |
400 | FIELD_NOT_SORTABLE | A sort field exists but cannot be sorted on. Use a built-in sortable field or a sortable custom field. param is sort |
400 | USER_HAS_NO_TEAM | owner_type is TEAM but you do not belong to a team. Use USER. param is owner_type |
403 | API_KEY_INSUFFICIENT_SCOPE | The key does not hold CRM_WRITE |
403 | VIEW_PERMISSION_DENIED | The view is a team view and you are neither its owner nor a team ADMIN or MANAGER |
404 | VIEW_NOT_FOUND | No view with this ID, or you cannot see it (for example another user’s private view) |
Authorizations
Path Parameters
Public ID of the view, as returned by the list endpoint
"cvw_2abc"
Body
All fields are optional. An omitted field is unchanged. filters: [] clears the filters.
New name. Must not be blank when sent
255\S"Hot leads"
Conditions combined with AND. At most 50
50Show child attributes
Show child attributes
Up to 2 entries. Sortable built-in fields: name, company, job_title, website, created_at, updated_at, last_activity. A sortable custom field key from GET /v2/api/crm/attributes also works
2Show child attributes
Show child attributes
USER is private to the API key's user. TEAM is shared with the user's team; it returns 400 USER_HAS_NO_TEAM when the user has no team.
USER, TEAM "USER"
Response
The updated view
A saved view: a named filter and sort over people. Views created in the Allo app and with the API are the same objects.
Show child attributes
Show child attributes
Was this page helpful?