Publish a product group from test to production environment. Uses UPSERT behavior — you can re-publish after making changes, unlike product publishing which only supports the first publish.
POST /v1/actions/subscription-product-group/publish-group
Authentication: API Key
Do not include the X-Environment header for this endpoint. Publishing is always one-way from test to production.
Request Body
| Field | Type | Required | Description |
|---|
id | string | Yes | Group ID (UUID format, must be a test environment group) |
Example Request
await client.subscriptionProductGroups.publish({
id: "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a",
});
Unlike product publishing, group publishing supports repeated UPSERT operations. You can update a test group and re-publish it to production at any time. The production group will be created or updated to match the current test group.
Error Responses
| Status | Condition |
|---|
400 | Group is not in the test environment |
400 | Group has an empty productIds list |
404 | Group not found |