Merge two custom object records
merge.merge_object_values(strentity_slug, MergeMergeObjectValuesParams**kwargs) -> MergeMergeObjectValuesResponse
POST/v1/objects/{entitySlug}/merge
Merges two records of the specified custom object type into one. The primary record retains its ID; the duplicate is soft-deleted. Both records must belong to the custom object type named in the path.
Required scopes: custom_objects:update + custom_objects:delete
Rate limit category: Write
Merge two custom object records
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
merge_merge_object_values_response = client.merge.merge_object_values(
entity_slug="entitySlug",
duplicate_id="duplicateId",
primary_id="primaryId",
)
print(merge_merge_object_values_response.merge){
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}Returns Examples
{
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}