---
updatedAt: 2026-10-29T11:59:26.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Add/remove products

Add or remove products from a product group.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API V1 (legacy)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your access token (utoken). Generate it with [Yotpo authentication](ref:yotpo-authentication). Older integrations can send it as `utoken` in the request body instead."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/v1/apps/{app_key}/products_groups/{group_name}": {
      "put": {
        "summary": "Add/remove products",
        "description": "Add or remove products from a product group.",
        "operationId": "add-products-to-a-product-group-update",
        "parameters": [
          {
            "name": "app_key",
            "in": "path",
            "description": "The store ID",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "group_name",
            "in": "path",
            "description": "Product group name (the one you used when you created it)",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "utoken": {
                    "type": "string",
                    "description": "Your access token (utoken). Optional when you send it in the `X-Yotpo-Token` header, which is preferred. See [Yotpo authentication](ref:yotpo-authentication)."
                  },
                  "product_ids_to_add": {
                    "type": "array",
                    "description": "Your product id to add to the group (use the same id's you use in your store, like SKUs)",
                    "items": {
                      "type": "string"
                    }
                  },
                  "product_ids_to_remove": {
                    "type": "array",
                    "description": "Your product id to remove from the group (use the same id's you used when added the products)",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "minProperties": 1
              },
              "examples": {
                "Add products": {
                  "value": {
                    "product_ids_to_add": [
                      "PRODUCT_ID_1",
                      "PRODUCT_ID_2"
                    ]
                  }
                },
                "Remove products": {
                  "value": {
                    "product_ids_to_remove": [
                      "PRODUCT_ID_1"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": {\n        \"code\": 200,\n        \"message\": \"ok\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 200,
                          "default": 0,
                          "description": "The HTTP status code, repeated in the body."
                        },
                        "message": {
                          "type": "string",
                          "example": "ok",
                          "description": "A short status message, for example `OK`."
                        }
                      },
                      "description": "The request status."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A product is already in another group (a product can be in only one group).",
            "content": {
              "application/json": {
                "examples": {
                  "Product in another group": {
                    "value": "{\n  \"code\": 400,\n  \"error\": \"Duplicate product in group\",\n  \"details\": \"product ids [56057006] already belongs to another group\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "The request was rejected.",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "The HTTP status code, repeated in the body."
                    },
                    "error": {
                      "type": "string",
                      "description": "What went wrong, for example `Duplicate product in group`."
                    },
                    "details": {
                      "type": "string",
                      "description": "More detail, for example which products already belong to another group."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired access token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "description": "Error details.",
                      "properties": {
                        "message": {
                          "type": "string",
                          "description": "Error message."
                        },
                        "code": {
                          "type": "integer",
                          "description": "HTTP status code."
                        },
                        "error_type": {
                          "type": "string",
                          "description": "Error type."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Not authorized": {
                    "value": "{\n  \"status\": {\n    \"message\": \"You are not authorized to access this page.\",\n    \"code\": 401,\n    \"error_type\": \"Exceptions::AccessDenied\"\n  }\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```