Description
Issue description
We are using the library to get content items from heartcore and updating the content item trough the management api.
Since the latest upgrade of heartcore the update endpoint seems to be changed, I have contacted umbraco support, they recommended opening an issue here.
The issue can be reproduced as follows:
- Get a content item trough the management API
- Update a property e.g. name
- Submit the update with the update function of IContentService
- The api responds with a 422 and error description:
{"error":{"code":"ValidationFailed","message":"Validation error.","details":{"errors":{"_id":["Property with alias '_id' was not found on content type with alias 'mediaItem'."],"_level":["Property with alias '_level' was not found on content type with alias 'mediaItem'."],"_links":["Property with alias '_links' was not found on content type with alias 'mediaItem'."],"_createDate":["Property with alias '_createDate' was not found on content type with alias 'mediaItem'."],"_updateDate":["Property with alias '_updateDate' was not found on content type with alias 'mediaItem'."],"_hasChildren":["Property with alias '_hasChildren' was not found on content type with alias 'mediaItem'."],"_currentVersionState":["Property with alias '_currentVersionState' was not found on content type with alias 'mediaItem'."]}}}}
If I do this call trough the API explorer in the backoffice I get the same error, but when I remove the meta / default properties (_id, _level etc) then the call succeeds.