Request Method
Request Example:
Request Parameters
Parameters | Type | Required | Description |
org_id | string | Y | Organization ID |
dept_id | string | Y | Department ID |
dept_name | string | Y | Department Name. Cannot exceed 32 characters (including Chinese characters and English letters) |
sort_id | int | Y | Integer. Sort order within the parent department. The smaller the value, the higher the priority. Enter 0 to auto-generate. Duplicate values are not allowed among sibling departments (global uniqueness is recommended) |
dept_head_list | string[] | N | Department heads. Supports multiple, represented as a string array. Duplicates will overwrite old data. |
Return:
Return Details:
Fields | Type | Desc |
dept_id | string | Department ID |
Error Codes
code | message | Desc |
100080 | Invalid dept name | Invalid dept name |
100040 | Invalid org id | Invalid org id |
100065 | Invalid params | Invalid params |
Request Method
Request Example:
Request Parameters
Parameters | Type | Required | Description |
org_id | string | Y | Organization ID |
dept_id | string | Y | Department ID |
dept_name | string | Y | Department Name. Cannot exceed 32 characters (including Chinese characters and English letters) |
sort_id | int | Y | Integer. Sort order within the parent department. The smaller the value, the higher the priority. Enter 0 to auto-generate. Duplicate values are not allowed among sibling departments (global uniqueness is recommended) |
dept_head_list | string[] | N | Department heads. Supports multiple, represented as a string array. Duplicates will overwrite old data. |
Return:
Return Details:
Fields | Type | Desc |
dept_id | string | Department ID |
Error Codes
code | message | Desc |
100080 | Invalid dept name | Invalid dept name |
100040 | Invalid org id | Invalid org id |
100065 | Invalid params | Invalid params |