Skip to content

Error validation failed on meta properties #66

Open
@ustadstar

Description

@ustadstar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions