curl --request PATCH \
--url https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
]
}
'import requests
url = "https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}"
payload = { "blocks": [
{
"data": { "body": "Three generations of bakers." },
"type": "text_section"
}
] }
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({
blocks: [
{
data: {body: JSON.stringify('Three generations of bakers.')},
type: 'text_section'
}
]
})
};
fetch('https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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([
'blocks' => [
[
'data' => [
'body' => 'Three generations of bakers.'
],
'type' => 'text_section'
]
]
]),
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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}"
payload := strings.NewReader("{\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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 \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"brand_name_override": "",
"created": "2026-06-01T09:00:00Z",
"id": "sT4uV6wX8yZ2aB3cD5eF7g",
"modified": "2026-06-19T14:30:00Z",
"name": "Our bakery story",
"primary_color": "#0a84ff",
"tagline": "Made by hand in Portland"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Update a brand story page
Change a story page. Send only the fields you are changing; null is refused with 422. The result must still be a valid page: the same checks as creating one apply. Requires the Owner, Manager or Editor role on the organization that owns the brand; a read-only key is refused with 403.
curl --request PATCH \
--url https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
]
}
'import requests
url = "https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}"
payload = { "blocks": [
{
"data": { "body": "Three generations of bakers." },
"type": "text_section"
}
] }
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({
blocks: [
{
data: {body: JSON.stringify('Three generations of bakers.')},
type: 'text_section'
}
]
})
};
fetch('https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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([
'blocks' => [
[
'data' => [
'body' => 'Three generations of bakers.'
],
'type' => 'text_section'
]
]
]),
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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}"
payload := strings.NewReader("{\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\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://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/brands/{id}/story-pages/{page_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 \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"brand_name_override": "",
"created": "2026-06-01T09:00:00Z",
"id": "sT4uV6wX8yZ2aB3cD5eF7g",
"modified": "2026-06-19T14:30:00Z",
"name": "Our bakery story",
"primary_color": "#0a84ff",
"tagline": "Made by hand in Portland"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Path Parameters
URL-safe brand identifier.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Identifier of the page, as listed.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Body
Payload to change a story page.
Internal label, 1 to 120 characters, unique among the brand's pages of this kind; a name already in use is refused with 422.
1 - 120^[^\x00]{1,120}$Header brand name to show instead of the brand's own; empty to use the brand's name.
120^[^\x00]{0,120}$One-line tagline under the brand name; empty for none.
160^[^\x00]{0,160}$Header background colour, a 6-digit hex value such as #0a84ff.
^#[0-9A-Fa-f]{6}$Button and link colour, a 6-digit hex value such as #ff9500.
^#[0-9A-Fa-f]{6}$The full list of content blocks, replacing the current list. Types: hero_image, text_section, image_text, certification_badges, image_gallery and cta.
Response
OK
A brand-styled product story page made of ordered content blocks.
Identifier of the page.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Internal label shown to brand managers when picking a page for a rule.
Header brand name shown instead of the brand's own; empty to use the brand's name.
One-line tagline under the brand name; empty when none.
Header background colour, a 6-digit hex value such as #0a84ff.
Button and link colour, a 6-digit hex value such as #ff9500.
ISO-8601 creation timestamp.
ISO-8601 last-modified timestamp.
Ordered content blocks, each a {type, data} object. Types: hero_image, text_section, image_text, certification_badges, image_gallery and cta. A malformed block is refused with 422.