Skip to main content

Add System Account, including Notification Account and Bot

Brief Description

  • Add system account
  • Notification account cannot get token

Request Method

  • post

Request URL

  • {API_ADDRESS}/user/add_notification_account
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringUsed for global link tracking, timestamp is recommended, independent in each request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameter Example

{
"userID": "userID",
"nickName": "notification1",
"faceURL": "url",
"appMangerLevel": 3
}
Field NameOptionalTypeDescription
userIDOptionalstringNotification account ID
nickNameRequiredstringNotification account nickname
faceURLRequiredstringNotification account avatar
appMangerLevelRequiredint3 or 4

Success Return Example

{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": {
"userID": "userID",
"faceURL": "url",
"nickName": "notification1",
"appMangerLevel": 3
}
}

Parameter Description for Success Return Example

Parameter NameTypeDescription
errCodeintError code, 0 means successful
errMsgstringBrief error message, empty
errDlterrDltDetailed error message, empty
dataobjectNotification account information

Failure Return Example

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

Parameter Description for Failure Return Example

Parameter NameTypeDescription
errCodeintError code, specifically check the global error code document
errMsgstringBrief error message
errDlterrDltDetailed error message