Skip to content

POST (create new item) with nested data #1363

@GonZOO82

Description

@GonZOO82

I would like POST with nested data, but don't succeed.

Sample:

{
    "title": "test",
    "cover": {  //ManyToOne connection to MediaItem Entity
        "id": 1 // This MediaItem is exist
    }
}

Response: Update is not allowed for this operation.

but when I update item (PUT) then process is good.

I don't want to use this code:

{
    "title": "test",
    "cover": "/media_item/1"
}

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