Create Group
Call Instructions:
This interface is used to create a new group
This interface is called only by system administrators
Interface Information | |||
---|---|---|---|
Name | Create a new group | ||
Address | /rest/tools/1.0/api/group/create | ||
Method | POST | ||
Return Type | Json | ||
Authentication | Basic,token | ||
Header Parameter | |||
Parameter name | Required | Parameter type | Description |
ContentType | Y | String | application/json |
body Parameters | |||
Parameter name | Required | Parameter type | Description |
name | Y | String | group name |
return value format | |||
Field | Type | Description | |
code | int | ||
msg | String | ||
data | String | { "name":"group name" } |
Example Postman call
Example body request parameters:
{
"name":"sales"
}
Example return value
{
"code": 0,
"msg": "Success",
"data": {
"name": "sales"
}
}