I'm testing the API in order to update some addressee informations (eg. the street_number) using the API Explore page. In any test:
CRM.api3('Address', 'replace', {
"id": 204,
"street_number": 556
}).done(function(result) {
// do something
});
or
CRM.api3('Address', 'replace', {
"contact_id": 202,
"location_type_id": "Casa",
"street_number_suffix": 556
}).done(function(result) {
// do something
});
I obtain the following result:
{
"is_error": 1,
"error_message": "Mandatory key(s) missing from params array: values"
}
How can I set the key?