ContactMerge
Quick Reference
Method |
Endpoint |
Description |
|---|---|---|
POST |
/api/contacts/{mergeToId}/merge/preview |
|
PUT |
/api/contacts/{mergeToId}/merge |
POST /api/contacts/{mergeToId}/merge/preview
Parameters:
Path Parameters:
mergeToId (integer, path) (required): No description available
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/contacts/{mergeToId}/merge/preview"
,
mergeToId=789e0123-e89b-12d3-a456-426614174002
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/contacts/{mergeToId}/merge/preview \
mergeToId=789e0123-e89b-12d3-a456-426614174002
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/contacts/789e0123-e89b-12d3-a456-426614174002/merge/preview'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
PUT /api/contacts/{mergeToId}/merge
Parameters:
Path Parameters:
mergeToId (integer, path) (required): No description available
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.put(
"/api/contacts/{mergeToId}/merge"
,
mergeToId=789e0123-e89b-12d3-a456-426614174002
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw put /api/contacts/{mergeToId}/merge \
mergeToId=789e0123-e89b-12d3-a456-426614174002
curl -X PUT \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/contacts/789e0123-e89b-12d3-a456-426614174002/merge'
Sample Response:
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "status": "updated",
4 "message": "Resource updated successfully"
5}