POST/users/{userId}/mail/mailfolders

メールフォルダを追加する。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

mail

HTTP Request

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

Path Parameters

ParameterTypeDescription
userId string 

ユーザーを特定する ID (URL エンコードする)

  • ユーザー ID (userId)
  • ログイン ID (email)
  • 自身 ("me")

required
example : me 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
folderName string 

メールフォルダ名


required
minLength : 1
maxLength : 100 

Request Example

example

1{2  "folderName": "FolderName"3}

Response

HTTP 201

OK

PropertyTypeDescription
folderName string 

メールフォルダ名


required
minLength : 1 
folderId integer 

メールフォルダ ID


required
format : int32 

Response Example

example

1{2  "folderId": 10001,3  "folderName": "test"4}

HTTP 409

Conflict