| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 400 | 2005001 | Your request contains an invalid request parameter. | 参数错误,请根据接口返回的错误信息并参考文档检查输入参数。 |
| 400 | 2005002 | The same name or i18n name has already be created within your tenant. | 该名称或国际化名称中所对应的系统状态已经被创建,请使用其他名称。 |
| 400 | 2005003 | Name or i18n name contains sensitive words. | 该名称或国际化名称包含敏感词,请使用其他名称。 |
| 400 | 2005005 | The priority of tenant system status has already be created within your tenant. | 不同系统状态的优先级不可以重复。使用其他的优先级,或者调整其他系统状态的优先级。 |
| 400 | 2005007 | Tenant does not have permission to api. | 租户没有访问api权限。 |
curl --location --request PATCH '/personal_settings/v1/system_statuses/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"system_status": {
"title": "出差",
"i18n_title": {
"zh_cn": "出差",
"en_us": "On business trip",
"ja_jp": "出張中"
},
"icon_key": "GeneralBusinessTrip",
"color": "BLUE",
"priority": 1,
"sync_setting": {
"is_open_by_default": true,
"title": "出差期间自动开启",
"i18n_title": {
"zh_cn": "出差期间自动开启",
"en_us": "Auto display Business Trip",
"ja_jp": "出張中に自動的にオンにする"
},
"explain": "出差审批通过后,将自动开启并优先展示该状态。",
"i18n_explain": {
"zh_cn": "出差审批通过后,该状态将自动开启并优先展示",
"en_us": "Auto-display after travel request is approved.",
"ja_jp": "申請が承認されると、このステータスが優先的に表示されます"
}
}
},
"update_fields": [
"ICON"
]
}'{
"code": 0,
"msg": "success",
"data": {
"system_status": {
"system_status_id": "7101214603622940633",
"title": "出差",
"i18n_title": {
"zh_cn": "出差",
"en_us": "On business trip",
"ja_jp": "出張中"
},
"icon_key": "GeneralBusinessTrip",
"color": "BLUE",
"priority": 1,
"sync_setting": {
"is_open_by_default": true,
"title": "出差期间自动开启",
"i18n_title": {
"zh_cn": "出差期间自动开启",
"en_us": "Auto display Business Trip",
"ja_jp": "出張中に自動的にオンにする"
},
"explain": "出差审批通过后,将自动开启并优先展示该状态。",
"i18n_explain": {
"zh_cn": "出差审批通过后,该状态将自动开启并优先展示",
"en_us": "Auto-display after travel request is approved.",
"ja_jp": "申請が承認されると、このステータスが優先的に表示されます"
}
}
}
}
}