跳到主要内容

增加系统通知号

简要描述

  • 增加系统通知号,管理员可以以系统通知号身份发送通知消息。

请求方式

  • post

请求 URL

  • {API_ADDRESS}/user/add_notification_account
header 名示例值选填类型说明
operationID1646445464564必填stringoperationID 用于全局链路追踪
tokeneyJhbxxxx3Xs必填string管理员 token

请求参数示例

{
"userID": "userID",
"nickName": "notification1",
"faceURL": "url"
}
字段名选填类型说明
userID选填string系统通知号 ID
nickName必填string系统通知号昵称
faceURL必填string系统通知号头像

成功返回示例

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

成功返回示例的参数说明

参数名类型说明
errCodeint错误码,0 表示成功
errMsgstring错误简要信息,无错误时为空
errDlterrDlt错误详细信息,无错误时为空
dataobject系统通知号信息
userIDstring系统通知号 ID
faceURLstring系统通知号头像
nickNamestring系统通知号名称

失败返回示例

{
"errCode": 1001,
"errMsg": "ArgsError",
"errDlt": "nickName is empty: 1001 ArgsError"
}

失败返回示例的参数说明

参数名类型说明
errCodeint错误码,具体查看全局错误码文档
errMsgstring错误简要信息
errDlterrDlt错误详细信息