class PageService extends BasicService implements OwnerAPISupport<Page> {

	@PUT
	@Path("/pages/{pageId}/templatevalues")
	@Produces(MediaType.APPLICATION_JSON)
	public Page updateTemplateValues(@PathParam("pageId") long pageId, Page pageData) {
		Page existingPage = getExistingPage(pageId, false);
		if (!isAdmin() && !inAdminOwners(existingPage.getOwners()) && !inContentOwners(existingPage.getOwners())) {
			throwUnauthorized();
		}

		sanitizePageData(pageData);
		existingPage.setTemplateValues(pageData.getTemplateValues());

		return PageDAO.save(existingPage);
	}

}