POST/users/{userId}/mail/{mailId}/move

Move a specific message to a designated folder.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

mail

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/mail/{mailId}/move

Path Parameters

ParameterTypeDescription
userId string 

Member ID (must be URL-encoded)

  • User ID
  • Login ID (email)
  • Me

required
example : me 
mailId string 

Message ID


required
example : 1 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
folderId integer 

Destination Folder ID


required
minimum : 0
format : int32 

Request Example

example

1{2  "folderId": 10063}

Response

HTTP 204

No Content

HTTP 400

Bad Request

HTTP 404

Not Found