docs
  1. Admin Api
  2. Resources
  3. Custom Data
  4. Product Variant
  5. Create Or Update Custom Data Key

Create or update custom data key

Create or update specific key of custom data of a product variant

Rate Limit: 1000 Max attempts within 1 minute.

Path Parameters

ParameterDetails
variantIdentifier
  • required
string
Examples:
  • ^[1-9][0-9]*$
  • ^key%3D[a-zA-Z0-9-_%\+\. ]*$
key
  • required
string
Example:
score

Query Parameters

ParameterDetails
locale
  • MaxLength: 5
string
Example:
de_DE

Request body

required
ParameterDetails
-
  • MinProps: 1
object

Responses

201
product variant custom data was successfully created or updated.
application/json
Success
property name
null
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
404
Not Found
application/json
Error
PUT/variants/{variantIdentifier}/custom-data/{key}

Request samples

Response samples

201
Shop Custom Data:
Content type: application/json
Provide Feedback