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.
You can only call this method when authenticated as a Wix app or Wix user identity.
Policy info.
Created policy.
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"
}
}'
{
"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"
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.