# prov.trace.canaryFamilies.put

prov.trace.canaryFamilies.put in Node SDK. Write your own card for a family (your card wins over a curated one for your readings).

## Signature

```ts
prov.trace.canaryFamilies.put(slug: string, card: CanaryFamilyCardInput): Promise<CanaryFamily>
```

## Parameters

- `slug` (string)
- `card` (CanaryFamilyCardInput)

## Returns

`Promise<CanaryFamily>`

## HTTP operation

[`PUT /v1/trace/canary_families/{slug}`](https://provenanceauth.com/docs/api/canary-families.md#put-v1-trace-canary-families-slug): Set a family card

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/canary_families/wire_fraud`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "title": "Wire fraud",
    "definition": "Text that pushes the agent to send money to a new or changed account.",
    "may_indicate": [
      "An email asks to change where an invoice is paid"
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/trace/canary_families/wire_fraud", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "title": "Wire fraud",
    "definition": "Text that pushes the agent to send money to a new or changed account.",
    "may_indicate": [
        "An email asks to change where an invoice is paid"
    ]
}).json()
```
