This endpoint both saves and updates a product. The product is identified by the id
path parameter. If the product ID does not exist, then a new product with the corresponding ID will be created. Otherwise, the existing product will be modified.
OK. The product was updated.
Created. The product was created.
Bad Request. Returned if the request body is invalid.
Unauthorized. Returned if no valid authentication was provided.
Conflict. Returned when missing a reference to the entitlement.
{- "label": "Gold Subscription",
- "description": "The most premium subscription.",
- "entitlement": {
- "id": "gold-bundle",
- "type": "bundle",
- "entitlementTenant": "company"
}, - "mapping": {
- "braintree_one_off": {
- "price_points": [
- {
- "id": "ten",
- "label": "Ten Dollars",
- "price": 10
}
]
}
}, - "sharingLimit": 5
}
{- "message": "Product updated successfully",
}