# dev.pcvera.temp.badge.grant

> Published by [pcvera.dev](https://lexicon.garden/identity/did:plc:aqspvjgrjpjy3d5rzjudfmw4)

✓ This is the authoritative definition for this NSID.

## Description

Issuer grants a badge definition to a recipient; may include an optional HTTPS more-info link.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.grant)
- [Documentation](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.grant/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.grant/examples)

## Definitions

### `dev.pcvera.temp.badge.grant`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `defUri` | `string` (at-uri) | Yes | AT URI of the dev.pcvera.temp.badge.def record this grant references. |
| `message` | `string` | No | Optional short note from the issuer to the recipient. |
| `createdAt` | `string` (datetime) | Yes | When the grant record was created. |
| `issuerDid` | `string` (did) | Yes | DID of the account that created the grant (issuer). |
| `moreInfoUrl` | `string` (uri) | No | Optional HTTPS URL for context; clients MUST restrict to https in application validation. |
| `recipientDid` | `string` (did) | Yes | DID of the recipient who may accept or reject. |

## Raw Schema

```json
{
  "id": "dev.pcvera.temp.badge.grant",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "issuerDid",
          "recipientDid",
          "defUri",
          "createdAt"
        ],
        "properties": {
          "defUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT URI of the dev.pcvera.temp.badge.def record this grant references."
          },
          "message": {
            "type": "string",
            "maxLength": 2000,
            "description": "Optional short note from the issuer to the recipient.",
            "maxGraphemes": 500
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the grant record was created."
          },
          "issuerDid": {
            "type": "string",
            "format": "did",
            "description": "DID of the account that created the grant (issuer)."
          },
          "moreInfoUrl": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048,
            "description": "Optional HTTPS URL for context; clients MUST restrict to https in application validation."
          },
          "recipientDid": {
            "type": "string",
            "format": "did",
            "description": "DID of the recipient who may accept or reject."
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Issuer grants a badge definition to a recipient; may include an optional HTTPS more-info link."
}
```
