POST

Create Policy


Creates a policy. You can create up to 3 policies per event. If you try to create more than 3, you'll get the "Maximum number of policies for the event has been reached" error.

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
POST
https://www.wixapis.com/events-policies/v2/policies

Body Params
policyPolicyRequired

Policy info.

Response Object
policyPolicy

Created policy.

Create Policy
Request
cURL
curl -X POST 'https://www.wixapis.com/events/v2/policies' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ --data-binary '{ "policy": { "name": "Terms and Conditions Event 1", "body": "Tickets to this Event are issued on behalf of the <b>Organiser</b> and are subject to the following terms and conditions.", "eventId": "9d720f99-1b5a-4141-9877-d32985391e18" } }'
Response
JSON
{ "policy": { "id": "eef70fb3-8567-4861-9f77-ebd2ad3682d5", "revision": "1", "createdDate": "2023-02-14T11:54:51.037Z", "updatedDate": "2023-02-14T11:54:51.037Z", "name": "Terms and Conditions Event 1", "body": "Tickets to this Event are issued on behalf of the <b>Organiser</b> and are subject to the following terms and conditions.", "eventId": "9d720f99-1b5a-4141-9877-d32985391e18" } }
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

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