Skip to main content

Delete Product Group

Permanently deletes a product group. The products in the group are not deleted.

HTTP Request​

  • URL: /productGroup/{id}
  • Method: DELETE
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_WRITE_PRODUCTGROUP

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the product group to delete.

cURL Example​

curl --location --request DELETE '<BASE_URL>/productGroup/66d220c8f57178681728212e' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The product group was deleted successfully.
  • 400 Bad Request: The access token is missing or invalid, or the product group ID is not valid.

Sample JSON Response​

{
"success": true,
"message": "ProductGroup deleted Successfully"
}

Response Details​

FieldTypeDescription
successBooleanWhether the request succeeded.
messageStringResult message.

Notes​

  • Deleting a product group also removes it from all of its products and from the access rules of all companies, company groups and customers.