Mega icon

Mega

Work with Mega API

Custom Filter → Create

AI-generated

Summary

Create a custom filter in the Mega system by specifying its name, type, and a query object defining the filter criteria.

Inputs

  • Name (required) — Specify the name of the custom filter to create.
  • Type (required) — Select the type of the custom filter, one of Contact, Conversation, or Report.
  • Query (required) — Provide the JSON query object that defines the filter criteria to be saved with the custom filter.

Output shape

a single record representing the newly created custom filter

The output contains the properties of the created custom filter, including name, type, and query details. Errors returned on failure.

Links

Discussion