停用人员类型
事件
基本 | |
---|---|
事件类型 | contact.employee_type_enum.deactivated_v3 |
支持的应用类型 | 自建应用商店应用 |
权限要求 开启任一权限即可 | 以应用身份读取通讯录以应用身份访问通讯录历史版本 |
推送方式 | Webhook |
事件体
名称收起子列表 | 类型 | 描述 |
---|---|---|
schema | string | 事件模式 |
header | event_header | 事件头 |
event_id | string | 事件 ID |
event_type | string | 事件类型 |
create_time | string | 事件创建时间戳(单位:毫秒) |
token | string | 事件 Token |
app_id | string | 应用 ID |
tenant_key | string | 租户 Key |
event | - | - |
old_enum | employee_type_enum | 旧枚举类型 |
enum_id | string | 枚举值id |
enum_value | string | 枚举的编号值,创建新的人员类型后,系统生成对应编号。对应创建用户接口中用户信息的employee_type字段值 |
content | string | 枚举内容数据校验规则:长度范围:1 ~ 100 字符 |
enum_type | int | 类型可选值有:1 :内置类型2 :自定义 |
enum_status | int | 使用状态可选值有:1 :激活2 :未激活 |
i18n_content | i18n_content[] | i18n定义 |
locale | string | 语言版本 |
value | string | 字段名 |
new_enum | employee_type_enum | 新枚举类型 |
enum_id | string | 枚举值id |
enum_value | string | 枚举的编号值,创建新的人员类型后,系统生成对应编号。对应创建用户接口中用户信息的employee_type字段值 |
content | string | 枚举内容数据校验规则:长度范围:1 ~ 100 字符 |
enum_type | int | 类型可选值有:1 :内置类型2 :自定义 |
enum_status | int | 使用状态可选值有:1 :激活2 :未激活 |
i18n_content | i18n_content[] | i18n定义 |
locale | string | 语言版本 |
value | string | 字段名 |
事件体示例
{
"schema": "2.0",
"header": {
"event_id": "5e3702a84e847582be8db7fb73283c02",
"event_type": "contact.employee_type_enum.deactivated_v3",
"create_time": "1608725989000",
"token": "rvaYgkND1GOiu5MM0E1rncYC6PLtF7JV",
"app_id": "cli_9f5343c580712544",
"tenant_key": "2ca1d211f64f6438"
},
"event": {
"old_enum": {
"enum_id": "exGeIjow7zIqWMy+ONkFxA==",
"enum_value": "2",
"content": "专家",
"enum_type": 2,
"enum_status": 1,
"i18n_content": [
{
"locale": "zh_cn",
"value": "专家"
}
]
},
"new_enum": {
"enum_id": "exGeIjow7zIqWMy+ONkFxA==",
"enum_value": "2",
"content": "专家",
"enum_type": 2,
"enum_status": 1,
"i18n_content": [
{
"locale": "zh_cn",
"value": "专家"
}
]
}
}
}