---
name: "mongoc_server_api_deprecation_errors"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_server_api_deprecation_errors"
---

# mongoc\_server\_api\_deprecation\_errors(3)

## SYNOPSIS

```
void
mongoc_server_api_deprecation_errors (mongoc_server_api_t *api,
                                      bool deprecation_errors);
```

Set whether or not to error on commands that are deprecated in this API version.

## PARAMETERS

- •

  **api**: A *mongoc\_server\_api\_t*.

- •

  **deprecation\_errors**: Whether or not to error on commands that are deprecated.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
