Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error validation failed on meta properties #66

Open
ustadstar opened this issue Aug 7, 2024 · 0 comments
Open

Error validation failed on meta properties #66

ustadstar opened this issue Aug 7, 2024 · 0 comments

Comments

@ustadstar
Copy link

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:

  1. Get a content item trough the management API
  2. Update a property e.g. name
  3. Submit the update with the update function of IContentService
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant