連絡先を追加します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
連絡先の名前。 名前はリソースディレクトリ内で一意である必要があります。 名前は 2~12 文字の長さで、英字のみ使用できます。 |
tom |
| EmailAddress |
string |
必須 |
連絡先のメールアドレス。 メールアドレスを指定した後、SendEmailVerificationForMessageContact を呼び出して、そのメールアドレスに検証情報を送信する必要があります。検証に合格すると、メールアドレスが有効になります。 |
someone***@example.com |
| PhoneNumber |
string |
任意 |
連絡先の携帯電話番号。 携帯電話番号は 説明
中国本土の 携帯電話番号を指定した後、SendPhoneVerificationForMessageContact を呼び出して、その携帯電話番号に検証情報を送信する必要があります。検証に合格すると、携帯電話番号が有効になります。 |
86-139****1234 |
| Title |
string |
必須 |
連絡先の役職。 有効な値:
列挙値:
|
TechnicalDirector |
| MessageTypes |
array |
必須 |
連絡先が受信するメッセージのタイプ。 |
|
|
string |
任意 |
連絡先が受信するメッセージのタイプ。 有効な値:
列挙値:
|
AccountExpenses |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返された結果。 |
||
| RequestId |
string |
リクエスト ID。 |
2DFCE4C9-04A9-4C83-BB14-FE791275EC53 |
| Contact |
object |
連絡先の情報。 |
|
| ContactId |
string |
連絡先 ID。 |
c-qL4HqKONzOM7**** |
| CreateDate |
string |
連絡先が作成された時刻。 |
2023-03-27 17:19:21 |
例
成功レスポンス
JSONJSON
{
"RequestId": "2DFCE4C9-04A9-4C83-BB14-FE791275EC53",
"Contact": {
"ContactId": "c-qL4HqKONzOM7****",
"CreateDate": "2023-03-27 17:19:21"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.Name | You must specify Name. | |
| 400 | InvalidParameter.Name | The Name is invalid. | |
| 400 | InvalidParameter.Name.Length | The Name exceeds the length limit. | |
| 400 | InvalidParameter.Name.AlreadyUsed | The Name already exists. Please change to another name. | |
| 400 | MissingParameter.EmailAddress | You must specify EmailAddress. | |
| 400 | InvalidParameter.EmailAddress | The EmailAddress is invalid. | |
| 400 | MissingParameter.PhoneNumber | You must specify PhoneNumber. | |
| 400 | InvalidParameter.PhoneNumber | The PhoneNumber is invalid. | |
| 400 | MissingParameter.Title | You must specify Title. | |
| 400 | InvalidParameter.Title | The Title is invalid. | |
| 400 | MissingParameter.MessageTypes | You must specify MessageTypes. | |
| 400 | InvalidParameter.MessageTypes | The MessageTypes is invalid. | |
| 400 | LimitExceeded.Contacts | The maximum number of contacts in a resource directory exceeds the limit. | |
| 400 | InvalidParameter.MobileCountryCode | The current site does not support the country code. | |
| 400 | InvalidParameter.EmailAddress.Length | The EmailAddress exceeds the length limit. | |
| 429 | ConcurrentCallNotSupported | The operation conflicts with other operations. Please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。