# PUT /api/v1/close-club/me

> Opt into or update the active business's verified Day-3 Close Club badge

- **Tag:** close-club
- **Operation ID:** `upsert_my_close_club_badge`

## Description

Create or update the business's live SVG Trust Scorecard badge and directory listing.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Request body

Schema: `CloseClubBadgeProfileRequest`

- `display_name` (string · required)
- `industry` (string)
- `country` (string) (one of: US, CA)
- `website_url` (string)
- `quote` (string)
- `is_public_directory` (boolean)
- `is_badge_enabled` (boolean)

## Responses

### 200 — Successful Response

Schema: `CloseClubBadgeResponse`

- `slug` (string · required)
- `display_name` (string · required)
- `industry` (string)
- `country` (string)
- `website_url` (string)
- `quote` (string)
- `is_public_directory` (boolean)
- `is_badge_enabled` (boolean)
- `verified_grade` (string)
- `verified_close_days` (integer)
- `auto_coded_pct` (integer)
- `last_verified_period` (string)
- `badge_views` (integer)
- `is_founding_showcase` (boolean)
- `badge_svg_url` (string · required)
- `verify_url` (string · required)
- `markdown_snippet` (string · required)
- `html_snippet` (string · required)

### 401 — Unauthorized - Missing or expired token, an MCP OAuth token used against the REST API, or no access to this business

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 403 — Forbidden - Insufficient permissions

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

### 422 — Validation Error

Schema: `ErrorResponse`

- `error` (string · required) — Error category: `validation_error`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `rate_limited`, `server_error`, or `service_unavailable`.
- `message` (string · required) — Human-readable explanation, safe to show to end users.
- `code` (string · required) — Stable machine-readable code in `CATEGORY_NNN` form (e.g. `NOT_FOUND_006`, `AUTH_010`, `GEN_002`).
- `request_id` (string) — Correlation id for support requests. Echoes the `x-request-id` request header when one was supplied.
- `errors` (object) — Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

## Code samples

### cURL

```bash
curl -X PUT 'https://api.ondayzero.com/api/v1/close-club/me' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "display_name": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/close-club/me', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "display_name": "string"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {'display_name': 'string'}

response = httpx.put("https://api.ondayzero.com/api/v1/close-club/me", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/close-club/upsert-my-close-club-badge
- OpenAPI slice: https://www.ondayzero.com/docs/reference/close-club/upsert-my-close-club-badge/openapi.json
- Other endpoints in **close-club**: https://www.ondayzero.com/docs/reference/close-club (markdown bundle: https://www.ondayzero.com/docs/reference/close-club.md, OpenAPI: https://www.ondayzero.com/docs/reference/close-club/openapi.json)
- Endpoint catalog: https://www.ondayzero.com/docs/reference/index.md
