Updates a policy.
Each time the policy is updated, revision
increments by 1. The existing revision
must be included when updating the policy. This ensures you're working with the latest policy and prevents unintended overwrites.
You can only call this method when authenticated as a Wix app or Wix user identity.
Policy ID.
Policy to update.
The updated policy.
curl -X PATCH 'https://www.wixapis.com/events/v2/policies/7243931d-74e4-4d6a-91f0-4835fa79161e' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
--data-binary '{
"policy": {
"name": "Terms and Conditions Event 4",
"body": "If the Event is rescheduled, changed, moved or cancelled the Organiser cannot be held responsible for any resulting costs you may incur for travel, accommodation and other related goods, services or compensation.",
"eventId": "9d720f99-1b5a-4141-9877-d32985391e18",
"revision": "1"
}
}'
{
"policy": {
"id": "7243931d-74e4-4d6a-91f0-4835fa79161e",
"revision": "2",
"createdDate": "2023-02-14T11:54:08.379Z",
"updatedDate": "2023-02-14T13:22:13.564Z",
"name": "Terms and Conditions Event 4",
"body": "If the Event is rescheduled, changed, moved or cancelled the Organiser cannot be held responsible for any resulting costs you may incur for travel, accommodation and other related goods, services or compensation.",
"eventId": "9d720f99-1b5a-4141-9877-d32985391e18"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.