# games.gamesgamesgamesgames.getContribution

> Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.getContribution)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.getContribution/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.getContribution/examples)

## Definitions

### `games.gamesgamesgamesgames.getContribution`

**Type**: `query`

Get details of a community contribution.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `contribution` | `ref` → `#contributionView` | Yes |  |

### `games.gamesgamesgamesgames.getContribution#patchView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `changes` | `unknown` | Yes |  |
| `subject` | `string` (at-uri) | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |

### `games.gamesgamesgamesgames.getContribution#reviewView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `reason` | `string` | No |  |
| `status` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `reviewedBy` | `string` (did) | Yes |  |

### `games.gamesgamesgamesgames.getContribution#contributionView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `patch` | `ref` → `#patchView` | No |  |
| `review` | `ref` → `#reviewView` | No |  |
| `changes` | `unknown` | Yes |  |
| `message` | `string` | No |  |
| `subject` | `string` (at-uri) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `subjectName` | `string` | No | Resolved name of the subject entity for display. |
| `verification` | `ref` → `#verificationView` | No |  |
| `contributorDid` | `string` (did) | Yes |  |
| `contributionType` | `string` | Yes |  |

### `games.gamesgamesgamesgames.getContribution#verificationView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `acceptedBy` | `string` | Yes |  |
| `contributor` | `string` (did) | Yes |  |

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.getContribution",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "contribution"
          ],
          "properties": {
            "contribution": {
              "ref": "#contributionView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "Get details of a community contribution."
    },
    "patchView": {
      "type": "object",
      "required": [
        "uri",
        "subject",
        "changes",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "changes": {
          "type": "unknown"
        },
        "subject": {
          "type": "string",
          "format": "at-uri"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "reviewView": {
      "type": "object",
      "required": [
        "uri",
        "status",
        "reviewedBy",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "reason": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "knownValues": [
            "approved",
            "denied",
            "needsRevision"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "reviewedBy": {
          "type": "string",
          "format": "did"
        }
      }
    },
    "contributionView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "contributorDid",
        "contributionType",
        "changes",
        "createdAt"
      ],
      "properties": {
        "cid": {
          "type": "string"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "patch": {
          "ref": "#patchView",
          "type": "ref"
        },
        "review": {
          "ref": "#reviewView",
          "type": "ref"
        },
        "changes": {
          "type": "unknown"
        },
        "message": {
          "type": "string"
        },
        "subject": {
          "type": "string",
          "format": "at-uri"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "subjectName": {
          "type": "string",
          "description": "Resolved name of the subject entity for display."
        },
        "verification": {
          "ref": "#verificationView",
          "type": "ref"
        },
        "contributorDid": {
          "type": "string",
          "format": "did"
        },
        "contributionType": {
          "type": "string",
          "knownValues": [
            "correction",
            "addition",
            "newGame"
          ]
        }
      }
    },
    "verificationView": {
      "type": "object",
      "required": [
        "uri",
        "contributor",
        "acceptedBy",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "acceptedBy": {
          "type": "string",
          "knownValues": [
            "mod",
            "owner",
            "both"
          ]
        },
        "contributor": {
          "type": "string",
          "format": "did"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
