Remove a product from an offering
DELETEhttps://euwest.api.elasticpath.com/v2/subscriptions/offerings/:offering_uuid/products/:product_uuid
After saving an offering, you can remove products from it at any time.
Removing a product from an offering does not affect any existing active subscriptions. The changes take effect on all new subscriptions that are created.
Request
Path Parameters
offering_uuid UUIDrequired
The unique identifier of the offering.
product_uuid UUIDrequired
The unique identifier of the product.
Responses
- 204
- 400
- 403
Success. The subscription product is removed from the offering.
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- missing-name
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Validation Error",
"status": "400",
"detail": "data.attributes.name: \"name\" is required"
}
]
}
Forbidden. The operation is forbidden on this entity.
- application/json
- Schema
- Example (from schema)
- not-found
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Permission denied",
"status": "404",
"detail": "Permission denied: plan tenancy mismatch"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X DELETE 'https://euwest.api.elasticpath.com/v2/subscriptions/offerings/:offering_uuid/products/:product_uuid' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear