Update a product group
Updates a product group with ID by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
POST
/v1/hq/product_groups/{id}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
Path Parameters
id*string
Product Group ID
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.
Format
int32Example
1is_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.
Example
falsegroup_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/string" \ -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