public Task UpdateOrCreateTemplate(
TemplateDto templateItem,
Guid companyId,
UserSessionData createdBy,
CancellationToken cancellationToken = default
)| UnauthorizedAccessException | Thrown if the user createdBy did not have the correct permissions |
| ArgumentNullException | Thrown if templateItem or createdBy are |
| ResourceInvalidStateException | Thrown if templateItem is in an invalid state. |