Products
Get products assigned to category
Path parameters
categoryIdstringRequiredExample:
(Required)
<integer>
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
GET /V1/categories/{categoryId}/products HTTP/1.1
Host: {{baseurl}}
Accept: */*
[
{
"category_id": "veniam velit est",
"sku": "pariatur esse proident enim",
"position": -29910339,
"extension_attributes": {}
},
{
"category_id": "anim ad officia do",
"sku": "reprehenderit amet",
"position": 81500133,
"extension_attributes": {}
}
]
Assign a product to the required category
Path parameters
categoryIdstringRequiredExample:
(Required)
<string>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"productLink":{"category_id":"aliq","sku":"Ut","position":84191798,"extension_attributes":{}}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/categories/{categoryId}/products HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"productLink": {
"category_id": "aliq",
"sku": "Ut",
"position": 84191798,
"extension_attributes": {}
}
}
{}
Assign a product to the required category
Path parameters
categoryIdstringRequiredExample:
(Required)
<string>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"productLink":{"category_id":"aliq","sku":"Ut","position":84191798,"extension_attributes":{}}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
PUT /V1/categories/{categoryId}/products HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"productLink": {
"category_id": "aliq",
"sku": "Ut",
"position": 84191798,
"extension_attributes": {}
}
}
{}
Remove the product assignment from the category by category id and sku
Path parameters
categoryIdstringRequiredExample:
(Required)
<integer>
skustringRequiredExample:
(Required)
<string>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE /V1/categories/{categoryId}/products/{sku} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true