Admin API/REST Reference - "Create a new draft product" example request. Is this example valid?

Solved
pmd85
Tourist
17 0 1

There is "Create a new draft product" example in reference and I don't understand shop property(object) in the request.

This property is not described anywhere and it does nothing. It does not make sense use this property in this request.

Is this example valid?

 

https://shopify.dev/docs/admin-api/rest/reference/products/product#create-2021-04

 

{
"product": {
"title": "Burton Custom Freestyle 151",
"body_html": "<strong>Good snowboard!</strong>",
"vendor": "Burton",
"product_type": "Snowboard",
"shop": {
"id": 690933842,
"name": "Apple Computers",
"email": "steve@apple.com",
"domain": "apple.myshopify.com",
...
0 Likes
GrahamS
Shopify Staff
Shopify Staff
52 9 4

This is an accepted solution.

Hey @pmd85 ,

Thanks for pointing this out. The field "Shop" does not need to be included in that particular example payload. We've notified the API Documentation team to have this reviewed.

Thanks again!

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes