Add New Operator
is used add new operator
Request address
- API Address (requestURI) : /openapi/v1/operator/add
Request parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
operatorId | Long | O | UID of the current operator |
subSystemCode | String | R | Subsystem code |
subSystemName | String | O | Subsystem name |
tenantPermission | String | O | Tenant data access permission granted to the administrator |
userName | String | R | Login account |
nickname | String | O | Name |
roleIds | List<Long> | O | Role IDs, multiple roles allowed |
password | String | R | Password |
passwordConfirm | String | R | Confirm password |
remark | String | O | Remark |
deleted | Integer | O | Status: 0 for enabled, 1 for disabled |
Sample request
{
"subSystemCode": "000001",
"userName": "test56789",
"nickname": "nihao1",
"roleIds": [
20
],
"tenantPermission": "TTF,MFT",
"passwordConfirm": "PC3espdNOczdGpZkFjJFroQMCKua/oAH5DBNAq04IFS+5mAQN/9/7cM5q8jQO2obelETPPlGnJRLKBAcG0w3aP34qPt53/IkbAXGnPy/T4rHgncOAD+OxdoroTtpsJNSWAn1RIOWNURh01G1UBuJ1oakyTIQC7NCDSV91cjc3QM=",
"remark": "",
"deleted": 0,
"password": "PC3espdNOczdGpZkFjJFroQMCKua/oAH5DBNAq04IFS+5mAQN/9/7cM5q8jQO2obelETPPlGnJRLKBAcG0w3aP34qPt53/IkbAXGnPy/T4rHgncOAD+OxdoroTtpsJNSWAn1RIOWNURh01G1UBuJ1oakyTIQC7NCDSV91cjc3QM="
}
Response parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
code | String | R | Response code |
msg | String | R | Response message |
data | - | O | Data returned (if applicable) |
success | Boolean | R | Indicates if the operation was successful |
Sample response
{
"code": "0",
"msg": "ok",
"data": null,
"success": true
}