Products{identifier}
Update Product
Creates a new product or updates an existing one (upsert). Returns 201 if created, 200 if updated.
Authorization<token>
API key authentication using Bearer token format. Use: Bearer
In: header
Path Parameters
identifierstring
Product identifier
Product data
assets?array<v1.CreateAssetRequest>
Assets (images) to attach to the product
familyId?integer
ID of the product family to assign (optional)
name?string
Human-readable product name (optional, only updates if provided)
values?object
Attribute values keyed by attribute key (without entity prefix). Use formats like "123.45 SEK" for prices and "5.5 kg" for weights.
Empty Object
variants?array<v1.CreateVariantRequest>
Variants to create or update under this product
Response Body
curl -X PATCH "https://api.emfas.ai/v1/products/string" \ -H "Content-Type: application/json" \ -d '{}'{
"result": {
"identifier": "my-product-123",
"name": "Blue T-Shirt",
"updatedAt": "2024-01-15T10:30:00Z"
}
}{
"result": {
"identifier": "my-product-123",
"name": "Blue T-Shirt",
"updatedAt": "2024-01-15T10:30:00Z"
}
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}