PATCH

Update Policy


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.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Policies
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/events-policies/v2/policies/{policy.id}

Path Params
policy.idstringRequired

Policy ID.

Body Params
policyPolicyRequired

Policy to update.

Response Object
policyPolicy

The updated policy.

Update Policy
Request
cURL
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" } }'
Response
JSON
{ "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" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?