Hello Everybody
I’m new in postman and I really need some help
I want to post request in json format but It doesn’t allow multiple items in one request:
[
{
"categoryId": 6,
"url": "https://www.example.com",
"tags": [
"Test",
"Test2"
],
"comment": "Reason for LocalSite Request"
},
{
"categoryId": 7,
"url": "https://www.example2.com",
"tags": [
"Test",
"Test3"
],
"comment": "Reason for LocalSite Request"
}
]
So is there are option how I can post several arrays by one request?
Thank you. Kind regards, Thien
This will be down to the API and what the API will accept.
This would normally be a case of reviewing the API specification to see if it allows multiple items.
Thank you for the fast response.
Yess I already asked the software manufacturer.
They say that this is allow.
They told me I have to put every post as an array.
But unfortunately I don’t know how to create an array with several items in it.
That is an array with multiple objects.
How this has to be formatted will be down to the API specification.
Do you have a link to the API specification that can be shared.
A good API specification will have examples.
Otherwise, speak to the supplier and get them to provide you with an example request.
system
(system)
Closed
August 11, 2024, 10:59am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.