curl --request PATCH \
--url https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_fields": {
"deal_size": 50000,
"account_tier": "enterprise"
}
}
'import requests
url = "https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields"
payload = { "custom_fields": {
"deal_size": 50000,
"account_tier": "enterprise"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_fields: {deal_size: 50000, account_tier: 'enterprise'}})
};
fetch('https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields', 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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields",
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([
'custom_fields' => [
'deal_size' => 50000,
'account_tier' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields"
payload := strings.NewReader("{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"field_identifier": "industry",
"field_key": "industry",
"field_type": "text",
"value": "Technology",
"source": "manual",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}Set multiple custom field values on an organisation
Set one or more custom field values in a single request (at most 50 per request). Unknown field keys are created automatically, with their type inferred from the value — so an integration does not have to pre-create fields. Values are validated against each field’s type, and for select/status/multi-select fields against the field’s defined options; an unusable value, an off-list option, or a bad key returns a 422 naming the offending key. Validation covers the whole payload before anything is written, so a rejected key never leaves earlier keys half-applied. Every value must be non-empty: sending an empty array does not clear a multi-select — use the DELETE custom-fields/ endpoint to remove a value.
curl --request PATCH \
--url https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_fields": {
"deal_size": 50000,
"account_tier": "enterprise"
}
}
'import requests
url = "https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields"
payload = { "custom_fields": {
"deal_size": 50000,
"account_tier": "enterprise"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_fields: {deal_size: 50000, account_tier: 'enterprise'}})
};
fetch('https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields', 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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields",
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([
'custom_fields' => [
'deal_size' => 50000,
'account_tier' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields"
payload := strings.NewReader("{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snitcher.com/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/custom-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_fields\": {\n \"deal_size\": 50000,\n \"account_tier\": \"enterprise\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"field_identifier": "industry",
"field_key": "industry",
"field_type": "text",
"value": "Technology",
"source": "manual",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}Authorizations
Enter your personal access token (PAT) to authenticate
Path Parameters
The UUID of the workspace
"550e8400-e29b-41d4-a716-446655440000"
The UUID of the organisation
"550e8400-e29b-41d4-a716-446655440000"
Body
Map of field key to value (at most 50 keys per request). Unknown keys are created automatically, with their type inferred from the value. Every value must be non-empty — sending an empty array does not clear a multi-select; use the DELETE custom-fields/{key} endpoint to remove a value.
{
"deal_size": 50000,
"account_tier": "enterprise"
}