public function updateSection($sectionId, Request $request)
{
$createStruct = $this->inputDispatcher->parse(new Message(array('Content-Type' => $request->headers->get('Content-Type')), $request->getContent()));
try {
return $this->sectionService->updateSection($this->sectionService->loadSection($sectionId), $this->mapToUpdateStruct($createStruct));
} catch (InvalidArgumentException $e) {
throw new ForbiddenException($e->getMessage());
}
}