Mega icon

Mega

Work with Mega API

Conversation → Toggle Status

AI-generated

Summary

Set the status of a specific conversation identified by its ID, optionally defining a snooze expiration time when setting the status to 'snoozed'.

Inputs

  • Conversation ID (required) — The unique identifier number of the conversation whose status you want to update.
  • Status (required) — The new status to apply to the conversation; choices are 'open', 'pending', 'resolved', or 'snoozed'.
  • Snoozed Until — A Unix timestamp (in seconds) specifying when the snoozed status should end. This input is only applicable when the status is set to 'snoozed'.

Output shape

a single updated conversation record reflecting the new status

The output will include the conversation after its status is changed. The 'Snoozed Until' parameter must be provided only when the status is 'snoozed'; otherwise, it is ignored.

Links

Discussion