API

Create a product group

Creates a new product group for users company.

POST/v1/hq/product_groups
AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Query Parameters

select?array<string>
expand?array<string>

Request Body

application/json

company?string
Example"7awdXwZoedakjad37a"
title*string
Example"Shampoo"
description?string
Example"All shampoo"
color?string
Example"#FCB834"
parent_group_id?string
Example"7awdUaw31aiwdjIDw"
order?integer

Used to control how a product group is ordered with respect to siblings.

Formatint32
Example1
is_default_group?boolean

If true the product group is a special, uneditable, group that contains all products that have not been added to user created product groups.

Examplefalse
group_products?
import_job?string

ID of the import job that created this product group.

Example"FzGMKqFnCX79N3zWk"

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/product_groups" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "7awdXwZoedakjad37a",
  "company": "7awdXwZoedakjad37a",
  "title": "Shampoo",
  "description": "All shampoo",
  "color": "#FCB834",
  "parent_group_id": "7awdUaw31aiwdjIDw",
  "order": 1,
  "is_default_group": false,
  "group_products": [
    {
      "id": "7dj29KiAE1wdjw731",
      "order": 1
    }
  ],
  "import_job": "FzGMKqFnCX79N3zWk",
  "created_at": 1631558908,
  "updated_at": 1631558908
}
Empty