文档

UpdateMessageContact - 更新联系人信息

更新时间:

更新联系人信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
resourcemanager:UpdateMessageContactWrite
  • MessageContact
    acs:resourcemanager:*:{#accountId}:messagecontact/{#MessageContactId}

请求参数

名称类型必填描述示例值
ContactIdstring

联系人 ID。

c-qL4HqKONzOM7****
Namestring

联系人的名称。

tom
EmailAddressstring

联系人的邮箱地址。

添加邮箱地址后,您需要继续调用 SendEmailVerificationForMessageContact 向该邮箱地址发送验证信息,通过验证后,该联系人的邮箱地址才能生效。

someone***@example.com
PhoneNumberstring

联系人的手机号码。

格式:<国家码>-<手机号码>

说明 仅支持填写86-<手机号码>的中国内地手机号码。

添加手机号码后,您需要继续调用 SendPhoneVerificationForMessageContact 向该手机号码发送验证信息,通过验证后,该联系人的手机号码才能生效。

86-139****1234
Titlestring

联系人的职位。

枚举值:
  • FinanceDirector财务负责人
  • TechnicalDirector技术负责人
  • MaintenanceDirector运维负责人
  • CEOCEO
  • ProjectDirector项目负责人
  • Other其它
TechnicalDirector
MessageTypesarray

联系人接收的消息分类。

string

联系人接收的消息分类。

枚举值:
  • ServiceMessage服务消息
  • FaultMessage故障消息
  • AccountExpenses账号资金消息
  • SecurityMessage安全消息
  • ActivityMessage活动消息
  • ProductMessage产品消息
AccountExpenses

返回参数

名称类型描述示例值
object

返回结果。

RequestIdstring

请求 ID。

9B34724D-54B0-4A51-B34D-4512372FE1BE

示例

正常返回示例

JSON格式

{
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameter.NameThe Name is invalid.Name参数非法,可以包含汉字、英文。
400InvalidParameter.Name.LengthThe Name exceeds the length limit.Name长度超限,必须为2~12字符,可以包含汉字、英文。
400InvalidParameter.Name.AlreadyUsedThe Name already exists. Please change to another name.资源目录中已存在该联系人名称,请更换。
400InvalidParameter.EmailAddressThe EmailAddress is invalid.邮箱格式无效。
400InvalidParameter.PhoneNumberThe PhoneNumber is invalid.手机号格式无效。
400InvalidParameter.TitleThe Title is invalid.职位参数无效。
400InvalidParameter.MessageTypesThe MessageTypes is invalid.消息分类参数无效。
400InvalidParameter.MobileCountryCodeThe current site does not support the country code.当前站点不支持您输入的国家码。
400InvalidParameter.ContactIdThe ContactId is invalid.ContactId无效。
400MissingParameter.ContactIdYou must specify ContactId.ContactId不能为空。
400InvalidParameter.EmailAddress.LengthThe EmailAddress exceeds the length limit.EmailAddress长度超限。
400ContactStatusMismatchActionThe status of the contact does not allow the specified operation.联系人的状态不支持当前操作。
404EntityNotExists.ContactThis Contact does not exist.Contact不存在。
429ConcurrentCallNotSupportedThe operation conflicts with other operations. Please try again later.当前操作与其他操作冲突,请稍后再试。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈