Skip to main content

add_notification_account

Description

  • Adds a system notification account, allowing administrators to send notification messages as this account.

Request Method

  • POST

Request URL

  • {API_ADDRESS}/user/add_notification_account
Header NameExample ValueRequiredTypeDescription
operationID1646445464564RequiredstringUsed for global traceability, suggested as a unique timestamp per request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"userID": "userID",
"nickName": "notification1",
"faceURL": "url"
}
Field NameRequiredTypeDescription
userIDOptionalstringSystem notification account ID
nickNameRequiredstringNickname of the notification account
faceURLRequiredstringAvatar URL of the notification account

Success Response Example

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

Success Response Parameter Description

ParameterTypeDescription
errCodeintError code, 0 indicates success
errMsgstringBrief error message, empty if successful
errDltstringDetailed error information, empty if successful

Failure Response Example

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

Failure Response Parameter Description

ParameterTypeDescription
errCodeintError code; refer to global error code documentation
errMsgstringBrief error message
errDltstringDetailed error information