Contents
Product parts
Attributes, one translation, categories and images of a product.
Base URL, authentication and conventions of this API are on the Catalog API page.
- put
/products/{product}/attributesSet attribute values - put
/products/{product}/translations/{locale}Set one translation - put
/products/{product}/categoriesSet the categories - post
/products/{product}/imagesAdd an image - patch
/products/{product}/images/{image}Change alt text or position - DEL
/products/{product}/images/{image}Delete an image
/products/{product}/attributesSet attribute values
The values sent, by attribute code (GET /attributes); other attributes keep their value. For an
attribute with options, send the option code or its label: a value the attribute does not have yet
becomes a new option.
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Request bodyapplication/json
attributesobjectrequiredattribute_setstringName or id of the attribute set to assign.
Responses
200The product as it is now, and what happened.application/json
dataProductrequiredChild attributes
idintegerskustringexternal_idstring | nullThe id this key gave the product.
titlestring | nulldescriptionstring | nullhandlestring | nullstatusstring | nullproduct_typestring | nullbrandstring | nullattribute_setstring | nullmodel_codestring | nullgenderstring | nullseasonstring | nullThe latest season of the product.
seasonsarray of stringCodes of every season the product is active in (
GET /seasons).colorstring | nullmaterialstring | nullmade_instring | nullcompositionstring | nullcategoriesarray of ProductCategoryCategories the product is in, including smart categories whose rule it matches. Draft categories are left out.
Attributes of each item
idintegernamestringpathstringExample:Clothing > Tops
attributesobjectValues by attribute code. Options as their code; several options as their codes, comma separated.
translationsobjectLocales other than the default one.
seoobjectThe product's own SEO (not a channel's), written with
PUT /products/{product}/translations/{locale}.nullwhere the SEO rule of the catalog applies.Child attributes
meta_titlestring | nullmeta_descriptionstring | nullhandlestring | nulltranslationsobjectLocales other than the default one, where the product has SEO of its own.
imagesarray of ImageAttributes of each item
idintegerurlstringaltstring | nullpositionintegerwidthinteger | nullheightinteger | null
variantsarray of VariantAttributes of each item
idintegerskustringbarcodestring | nulloptionsobjectThe options that tell variants apart: attribute code → option code (
{"size": "m"}). Option codes are normalised, so a size sent asMcomes back asm.coststring | nullPurchase or production cost of this variant, as a string with two decimals (
"12.50");nullwhen none is set. No currency is stored with it.weightnumber | nullweight_unitstring | nullpricesarray of objectAttributes of each item
price_liststringcurrencystring | nullpricestring | nullExample:19.90sale_pricestring | nullPrice after the sale running today on this list (a sale price list in Pricing), or the discounted price set on the row;
nullwhen neither applies.
stockarray of objectRead only after creation: the quantity Nucleo Commerce last reported for each location.
Attributes of each item
locationstringavailableintegeron_handinteger
updated_atstring (date-time) | nullWhen the product last changed;
nullif it has not changed since this field exists.
resultWriteResultrequiredChild attributes
statusstringrequiredpartial: some variants or attribute values could not be written (seeerrors), the rest was. An attribute outside the product's attribute set is one of them.skipped: nothing to write (only empty values). An attribute the catalog doesn't know is a400, not a skip.One ofcreatedupdatedpartialskippederrorsarray of objectrequiredAttributes of each item
variant_skustring | nullmessagestring
notesarray of stringrequiredFields not written and why.
400The request must change:
validation_failed(seedetails, one list of messages per field),invalid_json,invalid_cursor,product_not_written,variant_not_written,not_written,image_not_downloadable. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X PUT https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/attributes \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44' \
-H 'Content-Type: application/json' \
-d '{
"attributes": {
"color": "red",
"fit": "regular"
}
}'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/attributes", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
"Content-Type": "application/json",
},
body: JSON.stringify({
"attributes": {
"color": "red",
"fit": "regular"
}
}),
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('PUT', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/attributes', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'json' => [
'attributes' => [
'color' => 'red',
'fit' => 'regular',
],
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"data": {
"id": 1,
"sku": "string",
"external_id": "string",
"title": "string",
"description": "string",
"handle": "string",
"status": "string",
"product_type": "string",
"brand": "string",
"attribute_set": "string",
"model_code": "string",
"gender": "string",
"season": "string",
"seasons": [
"string"
],
"color": "string",
"material": "string",
"made_in": "string",
"composition": "string",
"categories": [
{
"id": 1,
"name": "string",
"path": "Clothing > Tops"
}
],
"attributes": {},
"translations": {},
"seo": {
"meta_title": "string",
"meta_description": "string",
"handle": "string",
"translations": {}
},
"images": [
{
"id": 1,
"url": "string",
"alt": "string",
"position": 1,
"width": 1,
"height": 1
}
],
"variants": [
{
"id": 1,
"sku": "string",
"barcode": "string",
"options": {},
"cost": "string",
"weight": 1.5,
"weight_unit": "string",
"prices": [
{
"price_list": "string",
"currency": "string",
"price": "19.90",
"sale_price": "string"
}
],
"stock": [
{
"location": "string",
"available": 1,
"on_hand": 1
}
]
}
],
"updated_at": "2026-10-01T09:30:00Z"
},
"result": {
"status": "created",
"errors": [
{
"variant_sku": "string",
"message": "string"
}
],
"notes": [
"string"
]
}
}{
"error": {
"code": "validation_failed",
"message": "The request is not valid: see details.",
"request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
"details": {
"variants.0.prices.0.price_list": [
"Unknown price list \"usa\". GET /price-lists lists them."
]
}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}/products/{product}/translations/{locale}Set one translation
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001localestringrequiredA locale code of the catalog (
GET /locales). The default locale writes the product's own title, description and SEO.Example:it
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Request bodyapplication/json
titlestringmax length 255descriptionstringHTML, up to 65,000 characters.
attributesobjectTranslated values of the product's translatable attributes (
translatable: trueinGET /attributes), by attribute code. A list attribute takes an array.nullor""removes the translation. Not accepted for the default locale (its values are the product'sattributes): that is a400, like an unknown or non-translatable attribute. Attributes you do not send are left as they are.seoobjectThe product's SEO in this locale, for every channel that does not set its own (a channel's SEO is in
PUT /products/{product}/channels/{channel}/texts/{locale}). Only the fields you send change;nullor""removes a value, so the SEO rule of the catalog applies.Child attributes
meta_titlestring | nullmax length 255meta_descriptionstring | nullmax length 1000handlestring | nullLowercase letters, digits and hyphens.
max length 255pattern ^[a-z0-9][a-z0-9-]*$
Responses
200The product as it is now, and what happened.application/json
dataProductrequiredChild attributes
idintegerskustringexternal_idstring | nullThe id this key gave the product.
titlestring | nulldescriptionstring | nullhandlestring | nullstatusstring | nullproduct_typestring | nullbrandstring | nullattribute_setstring | nullmodel_codestring | nullgenderstring | nullseasonstring | nullThe latest season of the product.
seasonsarray of stringCodes of every season the product is active in (
GET /seasons).colorstring | nullmaterialstring | nullmade_instring | nullcompositionstring | nullcategoriesarray of ProductCategoryCategories the product is in, including smart categories whose rule it matches. Draft categories are left out.
Attributes of each item
idintegernamestringpathstringExample:Clothing > Tops
attributesobjectValues by attribute code. Options as their code; several options as their codes, comma separated.
translationsobjectLocales other than the default one.
seoobjectThe product's own SEO (not a channel's), written with
PUT /products/{product}/translations/{locale}.nullwhere the SEO rule of the catalog applies.Child attributes
meta_titlestring | nullmeta_descriptionstring | nullhandlestring | nulltranslationsobjectLocales other than the default one, where the product has SEO of its own.
imagesarray of ImageAttributes of each item
idintegerurlstringaltstring | nullpositionintegerwidthinteger | nullheightinteger | null
variantsarray of VariantAttributes of each item
idintegerskustringbarcodestring | nulloptionsobjectThe options that tell variants apart: attribute code → option code (
{"size": "m"}). Option codes are normalised, so a size sent asMcomes back asm.coststring | nullPurchase or production cost of this variant, as a string with two decimals (
"12.50");nullwhen none is set. No currency is stored with it.weightnumber | nullweight_unitstring | nullpricesarray of objectAttributes of each item
price_liststringcurrencystring | nullpricestring | nullExample:19.90sale_pricestring | nullPrice after the sale running today on this list (a sale price list in Pricing), or the discounted price set on the row;
nullwhen neither applies.
stockarray of objectRead only after creation: the quantity Nucleo Commerce last reported for each location.
Attributes of each item
locationstringavailableintegeron_handinteger
updated_atstring (date-time) | nullWhen the product last changed;
nullif it has not changed since this field exists.
resultWriteResultrequiredChild attributes
statusstringrequiredpartial: some variants or attribute values could not be written (seeerrors), the rest was. An attribute outside the product's attribute set is one of them.skipped: nothing to write (only empty values). An attribute the catalog doesn't know is a400, not a skip.One ofcreatedupdatedpartialskippederrorsarray of objectrequiredAttributes of each item
variant_skustring | nullmessagestring
notesarray of stringrequiredFields not written and why.
400The request must change:
validation_failed(seedetails, one list of messages per field),invalid_json,invalid_cursor,product_not_written,variant_not_written,not_written,image_not_downloadable. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X PUT https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/translations/it \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44' \
-H 'Content-Type: application/json' \
-d '{
"title": "Maglietta basic",
"description": "<p>Cotone biologico.</p>",
"attributes": {
"care": "Lavare a mano"
},
"seo": {
"meta_title": "Maglietta basic in cotone"
}
}'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/translations/it", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
"Content-Type": "application/json",
},
body: JSON.stringify({
"title": "Maglietta basic",
"description": "<p>Cotone biologico.</p>",
"attributes": {
"care": "Lavare a mano"
},
"seo": {
"meta_title": "Maglietta basic in cotone"
}
}),
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('PUT', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/translations/it', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'json' => [
'title' => 'Maglietta basic',
'description' => '<p>Cotone biologico.</p>',
'attributes' => [
'care' => 'Lavare a mano',
],
'seo' => [
'meta_title' => 'Maglietta basic in cotone',
],
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"data": {
"id": 1,
"sku": "string",
"external_id": "string",
"title": "string",
"description": "string",
"handle": "string",
"status": "string",
"product_type": "string",
"brand": "string",
"attribute_set": "string",
"model_code": "string",
"gender": "string",
"season": "string",
"seasons": [
"string"
],
"color": "string",
"material": "string",
"made_in": "string",
"composition": "string",
"categories": [
{
"id": 1,
"name": "string",
"path": "Clothing > Tops"
}
],
"attributes": {},
"translations": {},
"seo": {
"meta_title": "string",
"meta_description": "string",
"handle": "string",
"translations": {}
},
"images": [
{
"id": 1,
"url": "string",
"alt": "string",
"position": 1,
"width": 1,
"height": 1
}
],
"variants": [
{
"id": 1,
"sku": "string",
"barcode": "string",
"options": {},
"cost": "string",
"weight": 1.5,
"weight_unit": "string",
"prices": [
{
"price_list": "string",
"currency": "string",
"price": "19.90",
"sale_price": "string"
}
],
"stock": [
{
"location": "string",
"available": 1,
"on_hand": 1
}
]
}
],
"updated_at": "2026-10-01T09:30:00Z"
},
"result": {
"status": "created",
"errors": [
{
"variant_sku": "string",
"message": "string"
}
],
"notes": [
"string"
]
}
}{
"error": {
"code": "validation_failed",
"message": "The request is not valid: see details.",
"request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
"details": {
"variants.0.prices.0.price_list": [
"Unknown price list \"usa\". GET /price-lists lists them."
]
}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}/products/{product}/categoriesSet the categories
The full set of categories of the product, by id (GET /categories): categories not in the list are
removed, and an empty list removes them all.
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Request bodyapplication/json
category_idsarray of integerrequiredmax items 200
Responses
200The categories of the product now.application/json
dataarray of ProductCategoryrequiredAttributes of each item
idintegernamestringpathstringExample:Clothing > Tops
400The request must change:
validation_failed(seedetails, one list of messages per field),invalid_json,invalid_cursor,product_not_written,variant_not_written,not_written,image_not_downloadable. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
409
idempotency_key_reused,idempotency_key_in_progress,webhook_limit. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X PUT https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/categories \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44' \
-H 'Content-Type: application/json' \
-d '{
"category_ids": [
12,
31
]
}'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/categories", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
"Content-Type": "application/json",
},
body: JSON.stringify({
"category_ids": [
12,
31
]
}),
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('PUT', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/categories', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'json' => [
'category_ids' => [
12,
31,
],
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"data": [
{
"id": 1,
"name": "string",
"path": "Clothing > Tops"
}
]
}{
"error": {
"code": "validation_failed",
"message": "The request is not valid: see details.",
"request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
"details": {
"variants.0.prices.0.price_list": [
"Unknown price list \"usa\". GET /price-lists lists them."
]
}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}/products/{product}/imagesAdd an image
Either JSON with the url of the image, or multipart/form-data with the file in image.
- From a URL, Nucleo downloads the image and stores it: no link to your server remains. Only
public
http(s)addresses; JPEG, PNG, WebP, GIF, AVIF, HEIC, TIFF or BMP up to 40 MB; never SVG. The same URL sent again for the same product returns the image already there (200). - As a file: JPEG, PNG or WebP up to 10 MB.
position starts at 1; without it the image goes last.
Image URLs sent in image_urls of a product are different: they are linked as they are, not downloaded.
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Request bodyapplication/json, multipart/form-data
urlstring (uri)requiredmax length 2000altstringmax length 255positionintegermin 1
Responses
200The image.application/json
dataImagerequiredChild attributes
idintegerurlstringaltstring | nullpositionintegerwidthinteger | nullheightinteger | null
201The image.application/json
dataImagerequiredChild attributes
idintegerurlstringaltstring | nullpositionintegerwidthinteger | nullheightinteger | null
400The request must change:
validation_failed(seedetails, one list of messages per field),invalid_json,invalid_cursor,product_not_written,variant_not_written,not_written,image_not_downloadable. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
409
idempotency_key_reused,idempotency_key_in_progress,webhook_limit. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X POST https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://cdn.acme.example/tee-001-back.jpg",
"alt": "Back view",
"position": 2
}'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://cdn.acme.example/tee-001-back.jpg",
"alt": "Back view",
"position": 2
}),
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('POST', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'json' => [
'url' => 'https://cdn.acme.example/tee-001-back.jpg',
'alt' => 'Back view',
'position' => 2,
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"data": {
"id": 1,
"url": "string",
"alt": "string",
"position": 1,
"width": 1,
"height": 1
}
}{
"data": {
"id": 1,
"url": "string",
"alt": "string",
"position": 1,
"width": 1,
"height": 1
}
}{
"error": {
"code": "validation_failed",
"message": "The request is not valid: see details.",
"request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
"details": {
"variants.0.prices.0.price_list": [
"Unknown price list \"usa\". GET /price-lists lists them."
]
}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}/products/{product}/images/{image}Change alt text or position
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001imageintegerrequired
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Request bodyapplication/json
altstring | nullmax length 255positionintegerNew position; the other images move.
min 1
Responses
200The image.application/json
dataImagerequiredChild attributes
idintegerurlstringaltstring | nullpositionintegerwidthinteger | nullheightinteger | null
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
409
idempotency_key_reused,idempotency_key_in_progress,webhook_limit. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X PATCH 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}' \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44' \
-H 'Content-Type: application/json' \
-d '{
"alt": "string",
"position": 1
}'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
"Content-Type": "application/json",
},
body: JSON.stringify({
"alt": "string",
"position": 1
}),
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('PATCH', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'json' => [
'alt' => 'string',
'position' => 1,
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();{
"data": {
"id": 1,
"url": "string",
"alt": "string",
"position": 1,
"width": 1,
"height": 1
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}/products/{product}/images/{image}Delete an image
Path parameters
productstringrequiredProduct id or SKU.
Example:TEE-001imageintegerrequired
Headers
Idempotency-KeystringAny string of 1–255 printable ASCII characters, unique per change you mean (a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work again (header
Idempotent-Replayed: true). The same key with a different request is a409 idempotency_key_reused; while the first request is still running,409 idempotency_key_in_progresswithRetry-After: 1. Answers429and5xxare not stored: retry them with the same key. Webhook secrets are never stored: a replayed webhook creation or rotation answers withsecret: null.max length 255Example:2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44
Responses
204Deleted.
404
product_not_found,variant_not_found,image_not_found,import_not_found,webhook_not_found,channel_not_found,locale_not_found, ornot_foundfor a path that does not exist.application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
409
idempotency_key_reused,idempotency_key_in_progress,webhook_limit. application/jsonerrorobjectrequiredChild attributes
codestringrequiredStable machine-readable code. Branch on it, not on the message.
messagestringrequiredrequest_idstringrequiredSame as the
X-Request-Idheader. Quote it to support.detailsobject
curl -X DELETE 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}' \
-H "Authorization: Bearer $NUCLEO_ACCESS_TOKEN" \
-H 'Idempotency-Key: 2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44'const res = await fetch("https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.NUCLEO_ACCESS_TOKEN}`,
"Idempotency-Key": "2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44",
},
});
const data = await res.json();
console.log(res.status, data);<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://api-catalog.nucleoplatform.com/api/catalog/v1/products/TEE-001/images/{image}', [
'headers' => [
'Authorization' => 'Bearer ' . getenv('NUCLEO_ACCESS_TOKEN'),
'Idempotency-Key' => '2b5c0d2e-7d2a-4f6e-9a51-0c8a1e7f3b44',
],
'http_errors' => false,
]);
echo $response->getStatusCode(), PHP_EOL;
echo $response->getBody();HTTP 204 — Deleted.{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"details": {}
}
}