## Move a message `email_security.investigate.move.create(strpostfix_id, MoveCreateParams**kwargs) -> SyncSinglePage[MoveCreateResponse]` **post** `/accounts/{account_id}/email-security/investigate/{postfix_id}/move` Moves a single email message to a different folder or changes its quarantine status. ### Parameters - `account_id: str` Account Identifier - `postfix_id: str` The identifier of the message. - `destination: Literal["Inbox", "JunkEmail", "DeletedItems", 2 more]` - `"Inbox"` - `"JunkEmail"` - `"DeletedItems"` - `"RecoverableItemsDeletions"` - `"RecoverableItemsPurges"` ### Returns - `class MoveCreateResponse: …` - `completed_timestamp: datetime` Deprecated, use `completed_at` instead - `item_count: int` - `success: bool` - `completed_at: Optional[datetime]` - `destination: Optional[str]` - `message_id: Optional[str]` - `operation: Optional[str]` - `recipient: Optional[str]` - `status: Optional[str]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted ) page = client.email_security.investigate.move.create( postfix_id="4Njp3P0STMz2c02Q", account_id="023e105f4ecef8ad9ca31a8372d0c353", destination="Inbox", ) page = page.result[0] print(page.message_id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "completed_timestamp": "2019-12-27T18:11:19.117Z", "item_count": 0, "success": true, "completed_at": "2019-12-27T18:11:19.117Z", "destination": "destination", "message_id": "message_id", "operation": "operation", "recipient": "recipient", "status": "status" } ], "success": true } ```