Mega icon

Mega

Work with Mega API

Contact → Remove Labels

AI-generated

Summary

Remove specified labels from a contact by providing the contact's ID and an array of labels to remove.

Inputs

  • Contact ID (required) — The unique numeric ID of the contact from which labels will be removed.
  • Labels (required) — A JSON array containing the labels to be removed from the contact.

Output shape

a single updated contact record including its remaining labels

The output reflects the contact after the specified labels have been removed. If labels do not exist on the contact, no error occurs but they are simply not removed.

Examples

Example 1: Removing labels ['VIP', 'Prospect'] from contact with ID 12345

Set Contact ID to 12345 and provide ['VIP', 'Prospect'] as the Labels array.

Links

Discussion