---
name: "mongoc_server_api_copy"
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_copy"
---

# mongoc\_server\_api\_copy(3)

## SYNOPSIS

```
mongoc_server_api_t *
mongoc_server_api_copy (const mongoc_server_api_t *api);
```

Creates a deep copy of **api**.

## PARAMETERS

- •

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

## RETURNS

Returns a newly allocated copy of **api** that must be freed with *mongoc\_server\_api\_destroy()* when no longer in use.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
