---
title: "Move multiple message groups to spam"
method: POST
path: "/v0/message-groups/move-to-spam"
tags: ["Message Groups"]
---

# Move multiple message groups to spam

`POST /v0/message-groups/move-to-spam`

## Request

- Base URL: `https://platform.sublime.security`
- URL: `https://platform.sublime.security/v0/message-groups/move-to-spam`
- Auth: HTTP bearer

Move to Spam all messages in multiple groups, including future messages.

## Request body

- MoveToSpamMultipleMessageGroupsInput
  - `classification` 'malicious' | 'benign' | 'spam' | 'graymail' | 'simulation' | 'unwanted' | 'violation' | 'non-violation': Classification to apply to the messages being reviewed. Optional.
  - `message_group_ids` string[], required: Canonical IDs of the message groups to move to spam
  - `report_label` 'spam' | 'phishing' | 'false_positive' | 'false_negative' | 'phishing_simulation' | 'graymail' | 'violation' | 'non-violation': Label to apply to messages being reviewed. Optional.
  - `review_comment` string, nullable: Comment describing reason for action

## Response `202`

Accepted

- HandlerTypesTaskAccepted
  - `task_id` string, uuid, required: Task ID. Use the /v0/tasks/:id endpoint to check the task status.

## Changes

- **2026-11-03** `081203bd7147`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sublime/apis/sublime-platform-api/changes/v0/message-groups/move-to-spam/post.md)

---

[API](https://skmtc.dev/sublime/apis/sublime-platform-api.md) - [All operations](https://skmtc.dev/sublime/apis/sublime-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sublime/apis/sublime-platform-api/revisions/081203bd7147?raw)
