Change Product Bundle
POST
/api/v1/cases/:caseIdChanges the product bundle associated with an existing case.
cv-api-key
Production
https://api.care360-next.carevalidate.com/api/v1/cases/:caseIdStaging
https://api-staging.care360-next.carevalidate.com/api/v1/cases/:caseIdParameters
Path Parameters
caseIdstringrequiredThe unique identifier (UUID) of the case.
Headers
cv-api-keystringrequiredYour unique API key for authentication.
Content-TypestringrequiredMust be application/json.
Request Body
actionstringrequiredAction to perform. Must be `CHANGE_PRODUCT_BUNDLE`.
Values:CHANGE_PRODUCT_BUNDLE
productBundleobjectrequiredProduct bundle to assign.
Show 1 child property
idstringrequiredThe unique identifier (UUID) of the product bundle to assign to the case.
Examples
- cURL
curl --location '<BASE_URL>/api/v1/cases/:caseId' \
--header 'cv-api-key: <redacted>' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "CHANGE_PRODUCT_BUNDLE",
"productBundle": {
"id": "a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6"
}
}'
Responses
▶200SuccessProduct bundle changed successfully.
{
"status": 200,
"success": true,
"message": "Case product bundle changed successfully",
"data": {
"productBundle": {
"id": "a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
"name": "Premium Bundle"
}
}
}
▶400Invalid ActionReturned when the action field is not a recognized value.
{
"status": 400,
"success": false,
"message": "Invalid request",
"error": "Invalid action"
}
▶400Missing Required FieldsReturned when the productBundle.id field is missing or empty.
{
"status": 400,
"success": false,
"message": "Invalid request",
"error": "Product Bundle is required"
}
▶404Case Not FoundReturned when no case exists with the provided caseId.
{
"status": 404,
"success": false,
"message": "Invalid request",
"error": "No Case found for provided details!"
}
▶403Permission DeniedReturned when the case belongs to a different organization.
{
"status": 403,
"success": false,
"message": "Invalid request",
"error": "Permission denied!"
}
▶400Invalid Product BundleReturned when the provided product bundle ID does not exist or is invalid.
{
"status": 400,
"success": false,
"message": "Invalid request",
"error": "Invalid product bundle ID"
}
Try It Out
Try itAPI Playground
▶