新增用户组
# 描述
新增用户组
# 请求说明
请求方式:POST + application/json
请求路径:https://${填入所在云的域名}/cgi/crm/v2/org/group/insert?thirdTraceId=${随机字符串}
请求头填写 :参考公共参数填写
# 请求参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| data | Map | 是 | 数据map |
| appId | String | 是 | 固定值:CRM |
| groupPojo | Map | 是 | 用户组信息 |
| name | String | 是 | 用户组名称 |
| status | Int | 是 | 用户组状态:0启用1禁用 |
| type | Int | 是 | 类型 0 公开用户组 |
| description | String | 是 | 用户组描述 |
# 请求示例
{
"data": {
"appId": "CRM",
"groupPojo": {
"name": "zxf",
"description": "测试用户组",
"type": 0,
"status": 0
}
}
}
# 返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| traceId | string | 请求唯一ID |
| errorDescription | string | 错误描述 |
| errorMessage | string | 错误信息 |
| errorCode | Int | 查看错误码 |
# 返回示例
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# 注意事项
- 不能使用返回值的message字段做逻辑判断,errorMessage会有变化;