全部產品
Search
文件中心

Resource Management:AddMessageContact - 新增連絡人...

更新時間:Dec 21, 2025

添加訊息通知連絡人。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

Name

string

連絡人的名稱。

連絡人的名稱在資來源目錄內必須唯一。

格式:2~12 個英文字母或漢字。

tom

EmailAddress

string

連絡人的郵箱地址。

添加郵箱地址後,您需要繼續調用 SendEmailVerificationForMessageContact 向該郵箱地址發送驗證資訊,通過驗證後,該連絡人的郵箱地址才會生效。

someone***@example.com

PhoneNumber

string

連絡人的手機號碼。

格式:<國家碼>-<手機號碼>

說明

僅支援填寫86-<手機號碼>的中國內地手機號碼。

添加手機號碼後,您需要繼續調用 SendPhoneVerificationForMessageContact 向該手機號碼發送驗證資訊,通過驗證後,該連絡人的手機號碼才會生效。

86-139****1234

Title

string

連絡人的職位。

枚舉值:

  • FinanceDirector :

    財務負責人

  • TechnicalDirector :

    技術負責人

  • MaintenanceDirector :

    營運負責人

  • CEO :

    CEO

  • ProjectDirector :

    專案負責人

  • Other :

    其它

TechnicalDirector

MessageTypes

array

連絡人接收的訊息分類。

string

連絡人接收的訊息分類。

枚舉值:

  • ServiceMessage :

    服務訊息

  • FaultMessage :

    故障訊息

  • AccountExpenses :

    帳號資金訊息

  • SecurityMessage :

    安全訊息

  • ActivityMessage :

    活動訊息

  • ProductMessage :

    產品訊息

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情