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)

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)

Sample Response:

1{
2  "id": "123e4567-e89b-12d3-a456-426614174000",
3  "status": "updated",
4  "message": "Resource updated successfully"
5}