添加訊息通知連絡人。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "2DFCE4C9-04A9-4C83-BB14-FE791275EC53",
"Contact": {
"ContactId": "c-qL4HqKONzOM7****",
"CreateDate": "2023-03-27 17:19:21"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。