curl --request PATCH \
--url https://api.cope.com/v1/commerce/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"headline": "Rewritten for 2026, with two new teardowns",
"name": "The Quiet Launch Playbook (2nd edition)"
}
}
'import requests
url = "https://api.cope.com/v1/commerce/products/{id}"
payload = { "product": {
"headline": "Rewritten for 2026, with two new teardowns",
"name": "The Quiet Launch Playbook (2nd edition)"
} }
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({
product: {
headline: 'Rewritten for 2026, with two new teardowns',
name: 'The Quiet Launch Playbook (2nd edition)'
}
})
};
fetch('https://api.cope.com/v1/commerce/products/{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.cope.com/v1/commerce/products/{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([
'product' => [
'headline' => 'Rewritten for 2026, with two new teardowns',
'name' => 'The Quiet Launch Playbook (2nd edition)'
]
]),
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.cope.com/v1/commerce/products/{id}"
payload := strings.NewReader("{\n \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\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.cope.com/v1/commerce/products/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cope.com/v1/commerce/products/{id}")
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 \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\n }\n}"
response = http.request(request)
puts response.read_bodyUpdate a product
Any accepted change, a tags-only one included, takes the product off sale and back to review (status inactive, approval_status review) until COPE approves it and it is published again. The one exception is an approved product of a business COPE trusts to skip re-review, which keeps its status and approval.
Requires the products permission at write. An API key holds a permission at the lower of its own level (read for a read-only key) and its holder’s role; a key without it is refused with 403.
curl --request PATCH \
--url https://api.cope.com/v1/commerce/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"headline": "Rewritten for 2026, with two new teardowns",
"name": "The Quiet Launch Playbook (2nd edition)"
}
}
'import requests
url = "https://api.cope.com/v1/commerce/products/{id}"
payload = { "product": {
"headline": "Rewritten for 2026, with two new teardowns",
"name": "The Quiet Launch Playbook (2nd edition)"
} }
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({
product: {
headline: 'Rewritten for 2026, with two new teardowns',
name: 'The Quiet Launch Playbook (2nd edition)'
}
})
};
fetch('https://api.cope.com/v1/commerce/products/{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.cope.com/v1/commerce/products/{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([
'product' => [
'headline' => 'Rewritten for 2026, with two new teardowns',
'name' => 'The Quiet Launch Playbook (2nd edition)'
]
]),
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.cope.com/v1/commerce/products/{id}"
payload := strings.NewReader("{\n \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\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.cope.com/v1/commerce/products/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cope.com/v1/commerce/products/{id}")
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 \"product\": {\n \"headline\": \"Rewritten for 2026, with two new teardowns\",\n \"name\": \"The Quiet Launch Playbook (2nd edition)\"\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Headers
Optional. At most 255 characters of valid UTF-8 with no NUL byte. When sent, a retry that carries the same key and the same body returns the original response instead of performing the write a second time, and the same key with a different body is refused with 409 idempotency_conflict. Keys are remembered for 24 hours. A returned original response carries the header Idempotent-Replayed: true. Without the header the write is performed every time it is sent.
255Path Parameters
Was this page helpful?