Custom fields associated with a product.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
Gets custom fields associated with a product.
GET /stores/{store_hash}/v2/products/{product_id}/custom_fields
There are no filter parameters specific to custom_fields.
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 custom_fields are returned by default.
Example JSON returned in the response:
Gets a custom field associated with a product.
GET /stores/{store_hash}/v2/products/{product_id}/custom_fields/{id}
Example JSON returned in the response:
Gets a count of the number of custom fields in the store.
GET /stores/{store_hash}/v2/products/custom_fields/count
Example JSON returned in the response:
Creates a new custom field associated with a product
POST /stores/{store_hash}/v2/products/{product_id}/custom_fields
The following properties of the custom field are read-only. If one or more of these properties are included in the request, it will be rejected.
The following properties of the custom field are required. The request won’t be fulfilled unless these properties are valid.
Example request object:
Example JSON returned in the response:
Updates an existing custom field associated with a product.
PUT /stores/{store_hash}/v2/products/{product_id}/custom_fields/{id}
The following properties of the custom field are read-only. If one or more of these properties are included in the request, it will be rejected.
The following properties of the custom field are required. The request won’t be fulfilled unless these properties are valid.
Example request object:
Example JSON returned in the response:
Deletes a custom field associated with a product.
DELETE /stores/{store_hash}/v2/products/{product_id}/custom_fields/{id}
Deletes multiple custom fields associated with a product.
DELETE /stores/{store_hash}/v2/products/{product_id}/custom_fields
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 custom_fields are returned by default.