MessageFragments
Update a message fragment
Updates an existing message fragment. Omitting permitted_membership_type_ids (or sending an empty array) clears the membership filter so the fragment becomes available to all customers; supply the field with the desired IDs to keep or change the restriction. Requires the SETTINGS_MANAGE permission on the fragment's site.
put/shop/message-fragments/{messageFragmentId}
Request body
Example request
{
"name": "Spa - arrival instructions",
"message": "<p>Hi {{ customer.first_name }} - we're looking forward\nto seeing you soon.</p>\n",
"priority": 10,
"offerings": [
{
"offering_name": "Twilight massage",
"offering_type": "appointment"
}
]
}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"
]
}
}