URI | /v2/server/ent_groups_create.json | ||
Method | POST | ||
参数说明: [ { "pId":"", "name":"aa" } ] | |||
参数项 | 必填 | 描述 | 默认值 |
access_token | 必填 | ||
pId | 选填 | 父分组ID | 父节点 |
name | 必填 | 分组名称 | |
成功返回结果: [ 1321 ] | |||
返回项 | 类型 | 描述 | |
1321 | String | 分组ID | |
失败返回结果: { "code": "400", "msg":"分组名称不能为空!" } { "code":400, "msg":"[ {"err_key":0,"err_content":"父分组不存在!"} ]" } | |||
返回项 | 类型 | 描述 | |
code | String | 错误码 | |
msg | String | 失败信息 |
调用示例:
curl -H "application/x-www-form-urlencoded" --data 'data=[{"pId":"10000","name":"a1"}]' "https://api.jiankongbao.com/v2/server/ent_groups_create.json?access_token=e18f116703fb9f26d94e3807fd6fd41547a4e95e"