AnsweredAssumed Answered

api update record using put

Question asked by Daniel Alexander Montoya Herrera on Jan 25, 2019
Latest reply on Jan 28, 2019 by Daniel Alexander Montoya Herrera

I'm trying to update  the status of an existing Lead using PUT, it always return that error.

 

 

Also, I did tried on a local and ondemand instance with different records getting the same result.

 

 

 

curl -X PUT \
https://gnutresatest.sugarcrmcolombia.com/rest/v10/Leads/16836e54-1bdf-11e8-b72a-06f7b71ab966 \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: db20478a-df98-40ab-896b-d49a0454a3c2' \
-H 'cache-control: no-cache' \
-H 'oauth-token: 0d50fcf0-64a5-4e6a-90f3-5ae0c2213cea' \
-d '{
"id":"ec0656ac-1dc0-11e9-944d-065ea33167622",
"status":"Finalizado Duplicado"
}'

 

 

Response

{
"error": "not_found",
"error_message": "Could not find record: 16836e54-1bdf-11e8-b72a-06f7b71ab966 in module: Leads"

}

 

 

 

 

 

Outcomes