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

# Create product group

> 🚧 Note:
>
> Product group is limited to 100 lowercase alphanumeric characters (a...z, 0...9) and the "\_" and\
> "-" symbols, without spaces.

> 📘 Adding products to a group
>
> The simplest way to group products is to set `group_name` on each product with [Create mass products](https://docs.yotpo.com/reference/create-mass-products) or [Update mass products](https://docs.yotpo.com/reference/update-mass-products). The group is created with its first product.

# 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": {
      "post": {
        "summary": "Create product group",
        "description": "",
        "operationId": "create-a-product-group",
        "parameters": [
          {
            "name": "app_key",
            "in": "path",
            "description": "The store ID",
            "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)."
                  },
                  "group_name": {
                    "type": "string",
                    "description": "The group name: up to 100 lowercase letters, digits, `_` and `-`, no spaces."
                  }
                },
                "required": [
                  "group_name"
                ]
              },
              "examples": {
                "Create product group": {
                  "value": {
                    "group_name": "surfboards"
                  }
                }
              }
            }
          }
        },
        "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": "`group_name` is missing or invalid.",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid name": {
                    "value": "{\n  \"code\": 400,\n  \"errors\": [\n    \"Validation failed: Display name is invalid\"\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "The request was rejected.",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "The HTTP status code, repeated in the body."
                    },
                    "errors": {
                      "type": "array",
                      "description": "The error messages.",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "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
}
```