Enable automatic image processing for product enrichment
Enable automatic image processing for product enrichment
When enabled, all product images will be automatically standardized during the enrichment process. This includes format conversion, compression, and optimization.
GET https://api.commerceclarity.com/api/v1/profile/settings/image-standardization
{
"success": true,
"data": {
"image_standardization": true
}
}
PUT https://api.commerceclarity.com/api/v1/profile/settings/image-standardization
| Parameter | Type | Required | Description |
|---|---|---|---|
enabled |
boolean | Required | Set to true to enable automatic image standardization, false to disable |
curl -X PUT "https://api.commerceclarity.com/api/v1/profile/settings/image-standardization" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'
curl -X PUT "https://api.commerceclarity.com/api/v1/profile/settings/image-standardization" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'
$client = new \GuzzleHttp\Client();
$apiToken = 'your_api_token_here';
// Enable image standardization
$response = $client->put('https://api.commerceclarity.com/api/v1/profile/settings/image-standardization', [
'headers' => [
'Authorization' => 'Bearer ' . $apiToken,
'Content-Type' => 'application/json',
],
'json' => [
'enabled' => true
]
]);
$data = json_decode($response->getBody(), true);
const apiToken = 'your_api_token_here';
// Enable image standardization
const response = await fetch('https://api.commerceclarity.com/api/v1/profile/settings/image-standardization', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
enabled: true
})
});
const data = await response.json();
{
"success": true,
"data": {
"image_standardization": true
}
}
{
"success": false,
"errors": [
"The enabled field is required."
]
}