Mega icon

Mega

Work with Mega API

Contact → Set Labels

AI-generated

Summary

Set the labels assigned to a specific contact by providing the contact's ID and a JSON array of labels to apply. This operation replaces the contact's existing labels with the provided set.

Inputs

  • Contact ID (required) — The numerical ID of the contact to update, specified as an integer.
  • Labels (required) — A JSON array containing the labels to assign to the contact, replacing any existing labels.

Output shape

a single record representing the updated contact with its labels

Returned data shape depends on the underlying Mega API response; typically includes updated contact details reflecting the new set of labels.

Links

Discussion