On 29/05/2017 13:05, rajkumar wrote:
Hi,
Really thanks for your quick reply, But the URL you have shared given the
Java coding but i want to do this bulk deletion using any API client.
I see, ok.
Below
are the values i am using to achieve the same and let me know if am doing
any mistake here.
*URL *: http://52.58.169.64:8080/syncope/rest/users
*Type* : Delete
*Payload*: {
"operation":"DELETE",
"targets":[
*"{id}"*
]
}
*content-type* - application/json
This cannot work.
But deleting single user is working fine with below details:
*URL *: http://52.58.169.64:8080/syncope/rest/users/{userId}
*Type* : Delete
This is fine, of course.
*Also please let me know, is there a way to run multiple HTTP request at
same time in postman.*
I would suggest to enable Swagger UI in your deployment and look at POST
/user/bulk under _users; it should be something like as
*URL *: http://52.58.169.64:8080/syncope/rest/users/bulk
*Type* : POST
*Payload*: {
"type":"DELETE",
"targets":[
*"{key}"*
]
}
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/