Updates the specified contact by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Authorization
authorization In: header
Path Parameters
The ID of the contact to update.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://api.surge.app/contacts/ctc_01j9dy8mdzfn3r0e8x1tbdrdrf" \ -H "Content-Type: application/json" \ -d '{ "email": "dom@toretto.family", "first_name": "Dominic", "last_name": "Toretto", "metadata": { "car": "1970 Dodge Charger R/T" }, "phone_number": "+18015551234" }'{
"email": "dom@toretto.family",
"first_name": "Dominic",
"id": "ctc_01j9dy8mdzfn3r0e8x1tbdrdrf",
"last_name": "Toretto",
"metadata": {
"car": "1970 Dodge Charger R/T"
},
"phone_number": "+18015551234"
}{
"error": {
"message": "The requested resource could not be found.",
"type": "not_found"
}
}