Merging two contacts and delete related one

POST /api-v1/contact/merging

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

application/json

Body Required

  • targetId integer
  • sourceId integer

Responses

  • 200 application/json

    OK

  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/contact/merging
curl \
 --request POST 'https://wyzio.app/api-v1/contact/merging' \
 --header "Content-Type: application/json" \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --data '{"targetId":42,"sourceId":42}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42

# Payload
{
  "targetId": 42,
  "sourceId": 42
}
Response examples (200)
{}