# Repzo API - Product Group

OpenAPI specification for Repzo Product Group endpoints.

**Version:** 1.0.0

## Overview

### Base URLs

- \*\*\*\*: `https://sv.api.repzo.me`

## Authentication

No authentication required.

## Endpoints

### `/product-group`

#### GET /product-group

**Summary:** Find product groups

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `params` | query | object | No | Query parameters for filtering product groups |

##### Responses

**200** - A list of product groups

Content-Type: `application/json`

---

#### POST /product-group

**Summary:** Create a product group

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**201** - Product group created

Content-Type: `application/json`

---

### `/product-group/{id}`

#### GET /product-group/{id}

**Summary:** Get a product group by ID

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Responses

**200** - Product group details

Content-Type: `application/json`

---

#### PUT /product-group/{id}

**Summary:** Update a product group

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**200** - Product group updated

Content-Type: `application/json`

---

#### DELETE /product-group/{id}

**Summary:** Remove a product group

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Responses

**200** - Product group removed

Content-Type: `application/json`

---

## Data Models

### ProductGroupFindResult

Result of finding product groups

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `data` | array | No | No description |

| `total_result` | number | No | Total number of product groups |

| `current_count` | number | No | Count of product groups in current page |

| `total_pages` | number | No | Total number of pages |

| `current_page` | number | No | Current page number |

| `per_page` | number | No | Number of product groups per page |

| `first_page_url` | string | No | URL for the first page |

| `last_page_url` | string | No | URL for the last page |

| `next_page_url` | string | No | URL for the next page |

| `prev_page_url` | string | No | URL for the previous page |

| `path` | string | No | Base URL path |

### ProductGroupSchema

Product group schema

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Unique identifier for the product group |

| `name` | string | No | Name of the product group |

| `local_name` | string | No | Localized name of the product group |

| `disabled` | boolean | No | Whether the product group is disabled |

| `company_namespace` | array | No | Company namespaces |

| `createdAt` | string | No | Creation timestamp |

| `updatedAt` | string | No | Last update timestamp |

| `__v` | number | No | Version number |

### ProductGroupCreateBody

Body for creating a product group

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `name` | string | Yes | Name of the product group |

| `local_name` | string | No | Localized name of the product group |

| `disabled` | boolean | No | Whether the product group is disabled |

| `company_namespace` | array | No | Company namespaces |

### ProductGroupCreateResult

Result of creating a product group

### ProductGroupGetResult

Result of getting a product group

### ProductGroupUpdateBody

Body for updating a product group

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `name` | string | No | Name of the product group |

| `local_name` | string | No | Localized name of the product group |

| `disabled` | boolean | No | Whether the product group is disabled |

| `company_namespace` | array | No | Company namespaces |

| `_id` | string | No | Unique identifier for the product group |

| `createdAt` | string | No | Creation timestamp |

| `updatedAt` | string | No | Last update timestamp |

| `__v` | number | No | Version number |

### ProductGroupUpdateResult

Result of updating a product group

### ProductGroupRemoveResult

Result of removing a product group

## TypeScript Usage

See [product-group-examples.md](./product-group-examples.md) for detailed TypeScript usage examples.
