URI | /v2/service/ent_groups_create.json | ||||
Method | POST | ||||
参数说明: [ { "pId":"10000", "name":"qaqaqaqa1" } ] | |||||
参数项 | 必填 | 描述 | 默认值 | ||
access_token | 必填 | ||||
pId | 选填 | 父分组ID | |||
name | 必填 | 分组名称 | |||
成功返回结果: 成功返回分组的ID,例:[2285]。 | |||||
返回项 | 类型 | 默认值 | |||
2285 | String | 企业服务监控分组 | |||
失败返回结果: { "code": 400, "msg": "[{"err_key":0,"err_content":"分组名称不能为空" }]" } | |||||
返回项 | 类型 | 默认值 | |||
code | String | 错误码 | |||
msg | String | 错误信息 | |||
err_key | String | 错误码 | |||
err_content | String | 错误信息 |
调用示例:
curl -H "application/x-www-form-urlencoded" --data 'data=[{"pId":"2254","name":"21343"}]' "https://api.jiankongbao.com/v2/service/ent_groups_create.json?access_token=aa0c1e6f546c8060937274a36ffeb39dfb75d647"