Variants{identifier}
Update variant
Updates an existing variant. The parent product is resolved from the variant's identifier.
Authorization<token>
API key authentication using Bearer token format. Use: Bearer
In: header
Path Parameters
identifierstring
Variant identifier
Variant data
name?string
Human-readable variant name (optional, only updates if provided)
skus?array<v1.CreateSKURequest>
SKUs to create or update under this variant
values?object
Attribute values keyed by attribute key (without entity prefix)
Empty Object
Response Body
curl -X PATCH "https://api.emfas.ai/v1/variants/string" \ -H "Content-Type: application/json" \ -d '{}'{
"result": {
"identifier": "my-variant-123",
"name": "Small",
"selfUpdatedAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}{
"error": "Internal server error"
}