How to POST list of resources (more then 1)?

Options

I have POST endpoint for resource "Thought"
Query Parameters:
Body
{
"description": "string",
"percent_believe": integer
}
It is easy.

But my interface has option of adding some resources "Thoughts" when user clicks button "Save". If user doesn't click button "Save" then thoughts haven't to be saved.

{
[
{"description": "thought 1",
"percent_believe": 90
},
{"description": "thought 2",
"percent_believe": 100
}

]
}

How to POST some resources (more then 1).

Tagged:

Best Answers

Answers

  • gymeney
    gymeney Member
    Options

    Pawel, that is what I need! Perfect! Thanks!

    But I haven't tried JSON in Inputs. I'll learn about JSON in Inputs and bulk operations. How

  • gymeney
    gymeney Member
    Options

    Pawel, thanks for array of JSON objects

    And where I can find "add multiple records in bulk"?