Update contact
Updates mutable contact fields. Omitted fields remain unchanged. When the effective contact type is phone and the value changes, phone-derived metadata is refreshed automatically.
Authorization
bearerAuth In: header
Path Parameters
Contact identifier.
id path parameter
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/counterparties/contacts/string" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",
"type": "string",
"value": "string",
"validated": true,
"preferred": true,
"active": true,
"created_at": "2019-08-24T14:15:22Z",
"created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
"modified_at": "2019-08-24T14:15:22Z",
"modified_by": "e8d4374d-93a1-4e98-a6c6-fdcf00c5059f",
"metadata": {}
}{
"error": "string",
"message": "string",
"details": {}
}{
"error": "string",
"message": "string",
"details": {}
}{
"error": "string",
"message": "string",
"details": {}
}{
"error": "string",
"message": "string",
"details": {}
}{
"error": "string",
"message": "string",
"details": {}
}Creates a contact linked to a counterparty. Parent update access is verified before insertion, the write is executed transactionally, and phone contacts normalize metadata fields such as country_number, number, and region_code.
Returns standalone counterparty crypto wallets visible to the requesting user in the standard Corebanq getAll response shape.