Admin Adding a System Notification Account
Brief Description
- Administrators can add a system notification account for sending notification messages.
Request Method
post
Request URL
{API_ADDRESS}/user/add_notification_account
Header
Header Name | Example Value | Optional | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | operationID for global link tracking |
token | eyJhbxxxx3Xs | Required | string | Administrator's token |
Request Parameters Example
{
"userID": "userID",
"nickName":"notification1",
"faceURL":"url"
}
Field Name | Optional | Type | Description |
---|---|---|---|
userID | Option | string | System notification account ID |
nickName | Required | string | Name of the system notification account |
faceURL | Required | string | Avatar of the system notification account |
Successful Response Example
{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": {
"userID": "userID",
"faceURL": "url",
"nickName": "notification1"
}
}
Explanation of Parameters in the Successful Response
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, 0 indicates success |
errMsg | string | Brief error message, empty if no error |
errDlt | errDlt | Detailed error information, empty if no error |
data | object | System notification of account information |
userID | string | System notification account ID |
faceURL | string | System notification account avatar |
nickName | string | System notification account name |
Failed Response Example
{
"errCode": 1001,
"errMsg": "ArgsError",
"errDlt": "nickName is empty: 1001 ArgsError"
}
Explanation of Parameters in the Failed Response
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, refer to the global error code documentation for details |
errMsg | string | Brief error message |
errDlt | errDlt | Detailed error information |