Update a contact
contact.update(strid, ContactUpdateParams**kwargs) -> ContactUpdateResponse
POST/v1/contacts/{id}
Updates an existing contact by ID. Only included fields and relationships are modified.
Supports idempotency via the Idempotency-Key header.
Required scope: contacts:update
Rate limit category: Write
Parameters
id: str
Unique identifier of the contact to update.
Returns
Update a contact
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
contact_update_response = client.contact.update(
id="id",
)
print(contact_update_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}