---
name: "mongoc_uri_set_write_concern"
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_uri_set_write_concern"
---

# mongoc\_uri\_set\_write\_concern(3)

## SYNOPSIS

```
void
mongoc_uri_set_write_concern (mongoc_uri_t *uri,
                              const mongoc_write_concern_t *wc);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

- •

  **rc**: A *mongoc\_write\_concern\_t*.

## DESCRIPTION

Sets a MongoDB URI's write concern option, after the URI has been parsed from a string.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
