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
Header Name | Example Value | Required | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | Used for global traceability, suggested as a unique timestamp per request |
token | eyJhbxxxx3Xs | Required | string | Admin token |
Request Parameters Example
{
"userID": "userID",
"nickName": "notification1",
"faceURL": "url"
}
Field Name | Required | Type | Description |
---|---|---|---|
userID | Optional | string | System notification account ID |
nickName | Required | string | Nickname of the notification account |
faceURL | Required | string | Avatar URL of the notification account |
Success Response Example
{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}
Success Response Parameter Description
Parameter | Type | Description |
---|---|---|
errCode | int | Error code, 0 indicates success |
errMsg | string | Brief error message, empty if successful |
errDlt | string | Detailed error information, empty if successful |
Failure Response Example
{
"errCode": 1001,
"errMsg": "ArgsError",
"errDlt": "nickName is empty: 1001 ArgsError"
}
Failure Response Parameter Description
Parameter | Type | Description |
---|---|---|
errCode | int | Error code; refer to global error code documentation |
errMsg | string | Brief error message |
errDlt | string | Detailed error information |