I am in the middle of upgrading a project from API 2.7 to API 3.0 and have trouble with this POST route
This is my request body:
[
{
"name": "firstName",
"width": "10%",
"priority": 1
},
{
"name": "lastName",
"width": "10%",
"priority": 1
}
]
The error output is:
"@context": "/api/contexts/Error",
"@type": "hydra:Error",
"hydra:title": "An error occurred",
"hydra:description": "ApiPlatform\\Serializer\\AbstractItemNormalizer::canAccessAttributePostDenormalize(): Argument #3 ($attribute) must be of type string, int given
I had a similar issue on another route and defining uriVariables
solved it, but that did not work this time.