绑定设备和别名的关系。
接口说明
一次最多绑定 10 个别名,绑定之后立即生效。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AppKey | long | 是 | AppKey 信息。 | 23267207 |
DeviceId | string | 是 | 设备在推送的唯一标识,32 位,数字和小写字母组合。 | e2ba19de97604f55b16557673**** |
AliasName | string | 是 | 需要绑定的别名。 一次最多只能绑定 10 个,多个 alias 用逗号分隔,alias 最长 128 个字节(中文算三个字节),一个设备最多绑定 128 个别名,一个别名最多允许绑定 128 个设备。 | test_alias |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "159E4422-6624-4750-8943-DFD98D34858C"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Invalid%s.Format | The specified %s format is invalid. | 参数格式错误。 |
400 | Invalid%s.BytesExceed | The specified %s exceeds the %s bytes limit. | 参数的字节数超限。 |
400 | AccountDisabled | Your account is not enabled. | 功能未启用。 |
400 | Invalid%s.NotFound | The specified %s is not found. | 参数错误,未找到。 |
500 | InternalError | The request processing has failed due to some unknown error. Please try again. If the error still exists, submit a ticket. | 服务端错误,建议重试,仍然失败则提工单 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2024-01-25 | OpenAPI 去除了 deprecated 标记、OpenAPI 错误码发生变更 | 看变更集 | ||||||||
|