---
title: "Create a new predefined item group"
description: "POST /predefined_item_groups — Creates a predefined item group. name is required and must be unique on the account, and items_ids lists the predefined items to bundle (up to 200)."
canonical_url: https://developer.onepagecrm.com/api/reference/predefined-item-groups/post-predefined_item_groups/
source: Markdown mirror of https://developer.onepagecrm.com/api/reference/predefined-item-groups/post-predefined_item_groups/
---

`POST /predefined_item_groups`

Creates a predefined item group. name is required and must be unique on the account, and items_ids lists the predefined items to bundle (up to 200). The group's cost and price are derived from its members.

Resource: [Predefined Item Groups](https://developer.onepagecrm.com/api/reference/predefined-item-groups/) · [API Reference](https://developer.onepagecrm.com/api/reference/)

## Request

```bash
curl -X POST "https://app.onepagecrm.com/api/v3/predefined_item_groups" \
  -u $user_id:$api_key \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Electronics",
    "deal_items": [
      "5c79510e9007ba3f7519e819",
      "5c9a53349007ba58f13c8118"
    ]
  }'
```

Authentication is HTTP Basic — `user_id` as username, `api_key` as password.
See https://developer.onepagecrm.com/api/authentication/.

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string |  | Name of the predefined item group |
| `deal_items` | array<string (bson-id)> |  | List of IDs of the predefined/deal items in the predefined item group |

## Responses

### 201

Created

```json
{
  "status": 0,
  "message": "OK",
  "timestamp": 1528373119,
  "data": {
    "predefined_item": {
      "id": "5c79510e9007ba3f7519e819",
      "name": "Electronics",
      "position": 1,
      "count": 2,
      "item_ids": [
        "5c79510e9007ba3f7519e819",
        "5c9a53349007ba58f13c8118"
      ]
    }
  }
}
```

Standard error responses: 400, 401, 403, 404, 409, 500 — shared across the API. See https://developer.onepagecrm.com/api/errors/.

## Related guides

- [Authentication](https://developer.onepagecrm.com/api/authentication/)
- [Errors](https://developer.onepagecrm.com/api/errors/)
- [Rate limits](https://developer.onepagecrm.com/api/rate-limits/)
