Update a contact
$ lightfield contact update
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
--fields: optional object { "$email", "$name", "$profilePhotoUrl" }
Field values to update — only provided fields are modified; omitted fields are left unchanged. System fields use a $ prefix (e.g. $email); custom attributes use their bare slug. Note: $name is an object { firstName, lastName }, not a plain string. Call the definitions endpoint for available fields and types. See Fields and relationships for value type details.
Update a contact
lightfield contact update \
--api-key 'My API Key' \
--id id{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}