Update council data from Zapier
curl --request PATCH \
--url https://{domain}/wp-json/sagescreen/v1/zapier/council/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Greenville City Council",
"phone": "(800) 555-1234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10
}
}
'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
payload = {
"name": "Greenville City Council",
"phone": "(800) 555-1234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Greenville City Council',
phone: '(800) 555-1234',
address: {
line1: '123 Main St',
city: 'Greenville',
state: 'SC',
postal_code: '29601',
country: 'US'
},
credits: {type: 'credits', action: 'add', amount: 10}
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/zapier/council/{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://{domain}/wp-json/sagescreen/v1/zapier/council/{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' => 'Greenville City Council',
'phone' => '(800) 555-1234',
'address' => [
'line1' => '123 Main St',
'city' => 'Greenville',
'state' => 'SC',
'postal_code' => '29601',
'country' => 'US'
],
'credits' => [
'type' => 'credits',
'action' => 'add',
'amount' => 10
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
payload := strings.NewReader("{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"post_id": 123,
"updated": {
"name": "Greenville City Council",
"phone": "18005551234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10,
"running_balance": 60
}
}
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "council_not_found",
"message": "Council not found",
"data": {
"status": 404
}
}{
"code": "api_not_configured",
"message": "Zapier API key not configured",
"data": {
"status": 500
}
}Council – REST
Update council data from Zapier
Partially updates a council. All fields are optional — only provided fields are changed.
Supports updating: name, phone, address, Pipedrive company ID, and credit adjustments (add/subtract screen or sage credits).
Phone numbers are stripped to digits; 10-digit US numbers get 1
prepended automatically.
Requires the X-API-Key header (Zapier API key).
PATCH
/
zapier
/
council
/
{id}
Update council data from Zapier
curl --request PATCH \
--url https://{domain}/wp-json/sagescreen/v1/zapier/council/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Greenville City Council",
"phone": "(800) 555-1234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10
}
}
'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
payload = {
"name": "Greenville City Council",
"phone": "(800) 555-1234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Greenville City Council',
phone: '(800) 555-1234',
address: {
line1: '123 Main St',
city: 'Greenville',
state: 'SC',
postal_code: '29601',
country: 'US'
},
credits: {type: 'credits', action: 'add', amount: 10}
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/zapier/council/{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://{domain}/wp-json/sagescreen/v1/zapier/council/{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' => 'Greenville City Council',
'phone' => '(800) 555-1234',
'address' => [
'line1' => '123 Main St',
'city' => 'Greenville',
'state' => 'SC',
'postal_code' => '29601',
'country' => 'US'
],
'credits' => [
'type' => 'credits',
'action' => 'add',
'amount' => 10
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
payload := strings.NewReader("{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Greenville City Council\",\n \"phone\": \"(800) 555-1234\",\n \"address\": {\n \"line1\": \"123 Main St\",\n \"city\": \"Greenville\",\n \"state\": \"SC\",\n \"postal_code\": \"29601\",\n \"country\": \"US\"\n },\n \"credits\": {\n \"type\": \"credits\",\n \"action\": \"add\",\n \"amount\": 10\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"post_id": 123,
"updated": {
"name": "Greenville City Council",
"phone": "18005551234",
"address": {
"line1": "123 Main St",
"city": "Greenville",
"state": "SC",
"postal_code": "29601",
"country": "US"
},
"credits": {
"type": "credits",
"action": "add",
"amount": 10,
"running_balance": 60
}
}
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "council_not_found",
"message": "Council not found",
"data": {
"status": 404
}
}{
"code": "api_not_configured",
"message": "Zapier API key not configured",
"data": {
"status": 500
}
}Authorizations
SageScreen API key stored in ss_zapier_api_key option
Path Parameters
WordPress post ID (numeric) or council_id UUID
Examples:
"123"
"c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6"
Body
application/json
Partial update payload for council
New council name (updates post_title)
Example:
"Greenville City Council"
Phone number (any format — stripped to digits)
Example:
"(800) 555-1234"
Show child attributes
Show child attributes
External Pipedrive CRM company ID
Example:
"12345"
Credit adjustment
Show child attributes
Show child attributes
⌘I