# app.bivri.actor.putConsent

> Published by [lexicons.bivri.app](https://lexicon.garden/identity/did:plc:uqat5a7hrbww3snbbinxgwah)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.putConsent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.putConsent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.actor.putConsent/examples)

## Definitions

### `app.bivri.actor.putConsent`

**Type**: `procedure`

Confirm the authenticated account is at least fourteen on the server's Korean calendar date and accepts both currently Active Policy Versions. The birth date is used only in request memory, never persisted or returned.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `birthDate` | `string` | Yes | Valid Gregorian calendar date in YYYY-MM-DD form, not in the future. |
| `privacyVersion` | `string` | Yes |  |
| `termsVersion` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `consent` | `ref` → `app.bivri.actor.defs#consent` | Yes |  |

#### Errors

- **Unauthenticated**
- **InvalidBirthDate**
- **Underage**
- **PolicyVersionMismatch**
- **PolicyUnavailable**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Confirm the authenticated account is at least fourteen on the server's Korean calendar date and accepts both currently Active Policy Versions. The birth date is used only in request memory, never persisted or returned.",
      "errors": [
        {
          "name": "Unauthenticated"
        },
        {
          "name": "InvalidBirthDate"
        },
        {
          "name": "Underage"
        },
        {
          "name": "PolicyVersionMismatch"
        },
        {
          "name": "PolicyUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "birthDate": {
              "description": "Valid Gregorian calendar date in YYYY-MM-DD form, not in the future.",
              "maxLength": 10,
              "type": "string"
            },
            "privacyVersion": {
              "maxGraphemes": 100,
              "maxLength": 400,
              "type": "string"
            },
            "termsVersion": {
              "maxGraphemes": 100,
              "maxLength": 400,
              "type": "string"
            }
          },
          "required": [
            "birthDate",
            "termsVersion",
            "privacyVersion"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "consent": {
              "ref": "app.bivri.actor.defs#consent",
              "type": "ref"
            }
          },
          "required": [
            "consent"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.bivri.actor.putConsent",
  "lexicon": 1
}
```
