# ooo.bsky.hds.createRecord

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.createRecord)
- [Documentation](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.createRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.createRecord/examples)

## Definitions

### `ooo.bsky.hds.createRecord`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `repo` | `string` (at-identifier) | Yes |  |
| `rkey` | `string` (record-key) | No |  |
| `record` | `unknown` | Yes |  |
| `gateUri` | `string` (uri) | Yes |  |
| `validate` | `boolean` | No |  |
| `collection` | `string` (nsid) | Yes |  |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **AlreadyExists**

## Raw Schema

```json
{
  "id": "ooo.bsky.hds.createRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "collection",
            "gateUri",
            "record"
          ],
          "properties": {
            "repo": {
              "type": "string",
              "format": "at-identifier"
            },
            "rkey": {
              "type": "string",
              "format": "record-key"
            },
            "record": {
              "type": "unknown"
            },
            "gateUri": {
              "type": "string",
              "format": "uri"
            },
            "validate": {
              "type": "boolean"
            },
            "collection": {
              "type": "string",
              "format": "nsid"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AlreadyExists"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid",
            "validationStatus"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "uri"
            },
            "validationStatus": {
              "enum": [
                "valid",
                "unknown"
              ],
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
