diff --git a/src/Api/Controllers/UpdateHeaderItemController.php b/src/Api/Controllers/UpdateHeaderItemController.php index 58d02ca..a647321 100644 --- a/src/Api/Controllers/UpdateHeaderItemController.php +++ b/src/Api/Controllers/UpdateHeaderItemController.php @@ -58,8 +58,8 @@ protected function data(ServerRequestInterface $request, Document $document) $id = Arr::get($request->getQueryParams(), 'id'); $data = $request->getParsedBody(); - if (Arr::has($data, 'attributes.header')) { - Arr::set($data, 'attributes.header', Header::decode(Arr::get($data, 'attributes.header'))); + if (Arr::has($data, 'data.attributes.header')) { + Arr::set($data, 'data.attributes.header', Header::decode(Arr::get($data, 'data.attributes.header'))); } $this->validator->assertValid($data);