The POST /directory/v1 operation adds a new entry to the directory. The request body must contain all of the required attributes as defined in the schema. If there are no required attributes defined in the schema, you can submit a valid create request with only the _dn attribute in the request body.

The sample shows a create request for a schema that requires the objectClass attribute value in the request body.

When successful, the response returns a 201 Created message.