| name | String | Yes | Development Department | The department name. The length must be 1 to 64 characters. The characters ”-” and ”,” are not allowed. |
| parent_id | Number | Yes | 10 | The parent department ID. The root department ID is 1. |
| hide_dept | Boolean | No | true | Whether to hide this department: - true: Hide the department. After hiding, this department is not displayed in the company contacts. - false (Default): Display the department. |
| dept_permits | String | No | ”123,456” | The list of other departments that are allowed to view this department. The total number cannot exceed 50. This value takes effect when hide_dept is set to true. |
| user_permits | String | No | ”user123,manager222” | The list of userIds of users that are allowed to view this department. The total number cannot exceed 50. This value takes effect when hide_dept is set to true. |
| outer_dept | Boolean | No | true | Whether to restrict members of this department from viewing the contacts: - true: Enable the restriction. After enabling, members of this department can only see contacts within the specified scope. - false (Default): No restriction. |
| outer_dept_only_self | Boolean | No | false | Whether members of this department can only view the contacts of their own department and subordinate departments: - true: Can only view the contacts of their own department and subordinate departments. - false: Cannot view any contacts, and can only see themselves in the contacts. This parameter takes effect when outer_dept is set to true. |
| outer_permit_users | String | No | ”manager123,user123” | The list of userIds of contact users that members of this department are allowed to view. The total number cannot exceed 50. This parameter takes effect when outer_dept is set to true. |
| outer_permit_depts | String | No | ”456,123” | The list of contact department IDs that members of this department are allowed to view. The total number cannot exceed 50. This parameter takes effect when outer_dept is set to true. |
| create_dept_group | Boolean | No | true | Whether to create an enterprise group associated with this department. The default value is false, meaning no group is created. |
| auto_approve_apply | Boolean | No | false | Whether to accept requests to join this department by default: - true: Requests to join this department are accepted by default. - false: Requests to join this department must be approved by an admin with the required permissions. |
| order | Number | No | 10 | The sort value within the parent department. A smaller order value places the department higher in the sort order. |
| source_identifier | String | No | HR Department | The department identifier field. Developers can use this field to uniquely identify a department and map it to a department in an external contact list outside DingTalk. |