0

I am trying to test rest api as mentioned here from Postman. I followed this thread here and tried importing the curl request in Postman but it's failing with the following error:

enter image description here

Here is the complete curl command:

curl \
 --header "X-OpenIDM-Username: openidm-admin" \
 --header "X-OpenIDM-Password: openidm-admin" \
 --header "Content-Type: application/json" \
 --request PATCH \
 --data '[
    {
       "operation": "add",
       "field": "/members/-",
       "value": {"_ref" : "managed/user/scarter"}
    }
 ]' \
 "http://localhost:8080/openidm/managed/role/cedadaed-5774-4d65-b4a2-41d455ed524a"
{
  "_id": "cedadaed-5774-4d65-b4a2-41d455ed524a",
  "_rev": "2",
  "name": "employee",
  "description": "Role granted to workers on the company payroll"
}
n-verbitsky
  • 552
  • 2
  • 9
  • 20
Chaitanya K
  • 1,827
  • 4
  • 32
  • 67
  • 1
    curl request is not valid.. valid till `"http://localhost:8080/openidm/managed/role/cedadaed-5774-4d65-b4a2-41d455ed524a"` not sure what you;re trying then! – Divyang Desai Sep 13 '19 at 19:04
  • You better create it manually adding head header and parameters – LucaP Sep 25 '19 at 09:53

0 Answers0