# blue.moji.collection.putItem

> Published by [moji.blue](https://lexicon.garden/identity/did:plc:kmzpsik7s5y5fwu7nnkngfx4)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.putItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.putItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.collection.putItem/examples)

## Definitions

### `blue.moji.collection.putItem`

**Type**: `procedure`

Write a Bluemoji record, creating or updating it as needed. Requires auth, implemented by AppView.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `ref` → `blue.moji.collection.item#itemView` | Yes |  |
| `repo` | `string` (at-identifier) | Yes | The handle or DID of the repo (aka, current account). |
| `validate` | `boolean` | No | Can be set to 'false' to skip Lexicon schema validation of record data. |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "blue.moji.collection.putItem",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "item"
          ],
          "properties": {
            "item": {
              "ref": "blue.moji.collection.item#itemView",
              "type": "ref"
            },
            "repo": {
              "type": "string",
              "format": "at-identifier",
              "description": "The handle or DID of the repo (aka, current account)."
            },
            "validate": {
              "type": "boolean",
              "default": true,
              "description": "Can be set to 'false' to skip Lexicon schema validation of record data."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Write a Bluemoji record, creating or updating it as needed. Requires auth, implemented by AppView."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
