Deleting Variation
Endpoint: DELETE /admin/variations/{variation_id}
Purpose
This API allows administrators to delete a specific variation by its unique ID. It is used when a variation is no longer needed or has been created by mistake. Removing unnecessary variations helps maintain a clean and organized system.
Path Parameters
Parameter | Type | Description |
---|---|---|
variation_id | Integer | The unique ID of the variation to delete. |
Query Parameters
No query parameters for this endpoint.
Use Case
Administrators use this endpoint to remove a variation that is outdated or irrelevant. Once deleted, the variation and its associated options will be removed from the system and will no longer be available for use. This action ensures that only relevant and up-to-date variations remain active.
Request Body
This endpoint does not require a request body.
Response
A successful request returns a 204 No Content
response, indicating that the variation has been successfully deleted. No response body is returned.