Skip to main content
Use this API to create or update contact hiding settings. Submit the business fields name, description, objectStaffIds, objectDeptIds, objectTagIds, and excludeStaffIds through a PUT request.

API call description

In the DingTalk OA admin console, you can hide departments. This API extends the hiding capability beyond departments — you can also hide employees and roles.
The hiding settings configured through this API are stored independently from those configured in the OA admin console. The final effect is the union (OR) of the two. For example, if the same department is hidden either through this API or through the OA admin console, it is hidden.

Request

Basic information

Request header

Request body

Request example

HTTP
Java
Python
PHP
Go
Node.js
C#

Response

Response body

Response body example

Error codes

If an error is returned when you call this API, see the Global error codes document for the solution.