Products

catalog Category Link Management V1Get Assigned Products Get

get

Get products assigned to category

Path parameters
categoryIdstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
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": {}
  }
]

catalog Category Link Repository V1Save Post

post

Assign a product to the required category

Path parameters
categoryIdstringRequired

(Required)

Example: <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
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": {}
  }
}
{}

catalog Category Link Repository V1Save Put

put

Assign a product to the required category

Path parameters
categoryIdstringRequired

(Required)

Example: <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
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": {}
  }
}
{}

catalog Category Link Repository V1Delete By Ids Delete

delete

Remove the product assignment from the category by category id and sku

Path parameters
categoryIdstringRequired

(Required)

Example: <integer>
skustringRequired

(Required)

Example: <string>
Responses
200

OK

application/json
Responseobject
delete
DELETE /V1/categories/{categoryId}/products/{sku} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true