MessageFragments
Detach an offering from a message fragment
Removes an offering from the fragment's offerings list. After removal the fragment will no longer be selected for emails whose booking only contains the detached offering. If the resulting offerings list is empty the fragment reverts to applying to every offering at the site (the global fallback behaviour).
Removing an offering that is not attached is a no-op. Requires the update ability on the target fragment.
delete/shop/message-fragments/{messageFragmentId}/offerings/{offeringId}
Response
The message fragment was successfully retrieved.
Example response
{
"data": {
"id": "65d4a6f7f4c1b22a3c5d4e8a",
"name": "Spa - arrival instructions",
"message_type": "basket_confirmed",
"message": "<p>Hi {{ customer.first_name }} - we're looking forward to\nseeing you on {{ booking.starts_at|date }}. Please arrive\n15 minutes early to check in at reception.</p>\n",
"priority": 10,
"offerings": [
{
"offering_name": "Twilight massage",
"offering_type": "appointment"
}
],
"permitted_membership_type_ids": [
"65a1c4f7f4c1b22a3c5d1234"
]
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.