Websites
Assign a product to the website
Path parameters
skustringRequiredExample:
(Required)
<string>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"productWebsiteLink":{"sku":"<string>","website_id":"<integer>"}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/products/{sku}/websites HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"productWebsiteLink": {
"sku": "<string>",
"website_id": "<integer>"
}
}
{}
Assign a product to the website
Path parameters
skustringRequiredExample:
(Required)
<string>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"productWebsiteLink":{"sku":"<string>","website_id":"<integer>"}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
PUT /V1/products/{sku}/websites HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"productWebsiteLink": {
"sku": "<string>",
"website_id": "<integer>"
}
}
{}
Remove the website assignment from the product by product sku
Path parameters
skustringRequiredExample:
(Required)
<string>
websiteIdstringRequiredExample:
(Required)
<integer>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE /V1/products/{sku}/websites/{websiteId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true