ProductsDelete a Product Item Group

Delete a Product Item Group

Deletes the product item group with this identifier. The request has no body. A product item group that is still assigned can be deleted: products assigned to the item group are kept.

curl -X DELETE "https://connect.wholechain.com/Integration/ItemGroup/ITEMGROUP-001" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: example_string" \
  -H "accept: */*"
{}
DELETE
/Integration/ItemGroup/{identifier}
DELETE
Base URLstring

Target server for requests. Edit to use your own host.

path
identifierstring
Required

The identifier of the product item group to delete.

header
X-API-KEYstring
Required

Your Wholechain API key.

header
acceptstring

Response content type.

Options: */*
Request Preview
Response

Response will appear here after sending the request

Responses

Introduction

This API deletes a product item group from Wholechain.

Provide the identifier of the product item group in the URL path.

To manage item groups in the Wholechain app, see Trade Item Groups.


Endpoint

MethodURL
DELETEhttps://connect.wholechain.com/Integration/ItemGroup/{identifier}

Request Headers

HeaderDescriptionExample Value
X-API-KEYYour Wholechain API key.<YOUR_API_KEY>
acceptResponse content type.*/*

Path Parameters

ParameterData TypeDescriptionRequired
identifierSTRINGThe identifier of the product item group to delete.Yes

This endpoint has no request body.


Example Request

DELETE https://connect.wholechain.com/Integration/ItemGroup/ITEMGROUP-001
X-API-KEY: YOUR_API_KEY

cURL

curl -X 'DELETE' \
  'https://connect.wholechain.com/Integration/ItemGroup/ITEMGROUP-001' \
  -H 'accept: */*' \
  -H 'X-API-KEY: YOUR_API_KEY'

Responses

204 — No Content

The product item group is deleted. The response has no body.

404 — Not Found

No product item group with this identifier exists, for example because it was already deleted.

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
  "title": "Product item group not found: ITEMGROUP-001",
  "status": 404,
  "traceId": "<trace-id>"
}

Important Notes

  • The request has no body.
  • You can delete a product item group that is still assigned to products. The products are kept.
  • To create a product item group, see Create a Product Item Group.