---
title: Product
slug: docs/product
docTags: 
createdAt: 2021-08-04T18:22:29.000Z
---

# The product endpoint

:::CodeblockTabs
HTTP

```none
POST https://www.regpack.com/reg/api2/products/
```
:::

The product endpoint allows you to create and update products, which can then be added to users with the user api actions.

# Basic structure

Each call to the API requires `action` and a `group_id`.

| Name       | Type    | Required | Description                                                                                                                                 |
| ---------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `action`   | string  | true     | This describes what you would like to do with the api. For status, the only action is `create`.                                             |
| `group_id` | integer | true     | This designates which project the change should be applied to. `API-id` in the header must be part of the organization that owns the group. |
| `doc`      | JSON    | true     | This is the status data you would like to include in the request, formatted as JSON.                                                        |



# Example call


This would be an example cURL which creates a status.

```curl
curl -X POST "https://www.regpack.com/reg/api2/products/" \ 
     -H "Content-Type: application/json" \ 
     -H "Accept: application/json" \ 
     -H "Api-Id: 15263" \ 
     -H "Api-user: api_admin@regpacks.com" \ 
     -H "Api-Token: cd2e514f-7gab-3cde-62fg-51abcd4e7362" \ 
     -d '{
    "action": "create",
    "group_id": 100909072,
    "doc": {
        "base_product_type": 7,
        "product_name": "Ed Bickert - Blonde Fender Telecaster 1965",
        "product_price": "1100",
        "quota_cart": 1
    }
}
```

Example response



```json
{
    "msg": "Product created successfully.",
    "msg_type": "info",
    "product_id": 76867,
    "success": true
}
```






