为资源目录、资源夹或成员绑定联系人。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ContactId |
string |
否 |
联系人 ID。 |
c-qL4HqKONzOM7**** |
| Members |
array |
否 |
绑定目标。 |
|
|
string |
否 |
绑定目标。取值:
N 的取值范围:1~5,即每次最多添加 5 个绑定目标。 |
fd-ZDNPiT**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
95060F1D-6990-4645-8920-A81D1BBFE992 |
| Members |
array<object> |
绑定目标。 |
|
|
object |
绑定目标。 |
||
| ContactId |
string |
联系人 ID。 |
c-qL4HqKONzOM7**** |
| MemberId |
string |
绑定目标 ID。取值:
|
fd-ZDNPiT**** |
| ModifyDate |
string |
绑定时间。 |
2023-03-27 17:19:21 |
示例
正常返回示例
JSON格式
{
"RequestId": "95060F1D-6990-4645-8920-A81D1BBFE992",
"Members": [
{
"ContactId": "c-qL4HqKONzOM7****",
"MemberId": "fd-ZDNPiT****",
"ModifyDate": "2023-03-27 17:19:21"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.ContactId | The ContactId is invalid. | |
| 400 | MissingParameter.ContactId | You must specify ContactId. | |
| 400 | InvalidParameter.Members | The Members is invalid. | |
| 400 | InvalidParameter.Members.Duplicate | The Members contains duplicate values. | |
| 400 | LimitExceeded.ContactMembers | The maximum number of contact members exceeds the limit. | |
| 400 | InvalidMember | The member does not exist in the resource directory. | |
| 400 | ContactStatusMismatchAction | The status of the contact does not allow the specified operation. | |
| 404 | EntityNotExists.Contact | This Contact does not exist. | |
| 429 | ConcurrentCallNotSupported | The operation conflicts with other operations. Please try again later. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。