Given that the Event template locking feature is turned on for a given tenant, you can obtain a lock and release a lock on an event template for safe updates.
Create
POST /v2/b2b/locks/lock/EventTemplate/{eventTemplateId}
Locks the specified event template so that only the current user (the user associated via the session or api-key) can update that template. (Locks for 4 hours by default or the time specified in the tenant settings)
Input
id: The id of the template to lock.
Response:
{ "success" : true , "objectId" : "<eventTemplateId>" } |
Example
curl "https://demo-api.acmeticketing.net/v2/b2b/locks/lock/EventTemplate/[eventTemplateId]" -H "x-acme-api-key:[API-KEY]" -H "Content-Type:Application/JSON"
Delete
DELETE /v2/b2b/locks/lock/EventTemplate/1
Unlocks the specified event template so that other users can update it. Note: Request must be made by the same user that locked the template. (the user associated via the session or api-key)
Input
id: The id of the template to unlock.
Response:
{ "success" : true , "objectId" : "<eventTemplateId>" } |
Example
curl "https://demo-api.acmeticketing.net/v2/b2b/locks/lock/EventTemplate/[eventTemplateId]" -X DELETE -H "x-acme-api-key:[API-KEY]"