Delete a contact
contact.delete(strid, ContactDeleteParams**kwargs) -> ContactDeleteResponse
DELETE/v1/contacts/{id}
Moves a contact to the trash. The contact is soft-deleted and may be restored from the Lightfield UI.
Calling delete on an already-trashed contact is a no-op and returns the existing record.
Required scope: contacts:delete
Rate limit category: Write
Delete a contact
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
contact_delete_response = client.contact.delete(
id="id",
)
print(contact_delete_response.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"
}