Skip to content

How to create multiple entities using HTTP POST in OData V2 #25

@mainakaich

Description

@mainakaich

Hi @qmacro ,

Suppose in TripIn OData V2 service, I want to create 2 person entities in entityset People.

Now, instead of sending 2 separate HTTP post request each containing the person details in request body, can I send both the person details in the same request body as an array? If I send as an array, I can just send one HTTP POST to create 2 person entities. But currently the OData service doesn't accept it when I pass an array of persons to the OData service.

So, wanted to understand is it working as expected or I am doing something wrong here? If it accepts only one entity creation at a time, then shall I collect them in a batch request and send it?

Thanks,
Mainak

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