UpdateContact
Updates a contact.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateContact |
update |
*Contact
|
None | None |
Request syntax
PATCH /contact/{contactId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| contactId |
string |
Yes |
The contact ID. |
testId |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
|
string |
No |
The email address of the contact. |
test@aliyun.com |
|
| lang |
string |
No |
The language. Valid values:
|
zh_CN |
| name |
string |
No |
The name of the contact. |
test |
| phone |
string |
No |
The mobile phone number of the contact. Currently, only mobile phone numbers in China are supported. |
150123456789 |
| phoneCode |
string |
No |
The country code of the mobile phone number, which is typically +86 for China. |
+86 |
| imUserIds |
object |
No |
The mapping of instant messaging (IM) user IDs. Multiple IM tools are supported. |
{"dingtalk":"abc123","wechat":"def456"} |
|
string |
No |
The IM user ID mapping. |
{"dingtalk": "abc123", "wechat": "def456"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The unique ID of the request. |
8FDE2569-626B-5176-9844-28877A***** |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s is missing or invalid. | The parameter %s is missing or invalid. |
| 400 | InvalidParameterValue | Invalid request: %s | |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
| 500 | InternalError | %s. | %s |
| 404 | ResourceNotFound | The specified resource %s is not found. | The specified resource% s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.