# party.whey.writeproxy.createRecord

> Write-proxy alias of com.atproto.space.createRecord. The body is the standard space write shape. The proxy authorizes the caller's delegation, audits the alias NSID, and forwards the canonical method. Requires an Idempotency-Key header.

- Kind: procedure
- Authority: writeproxy.whey.party
- Lexicon: 1
- Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.createRecord)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.createRecord/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.createRecord/analytics)

## Procedure (`party.whey.writeproxy.createRecord`)

Type: procedure · POST

### Input (application/json)

- `collection` (string · nsid, required)
- `record` (unknown, required)
- `repo` (string · did, required)
- `rkey` (string · record-key)
- `space` (string · at-uri, required)
- `validate` (boolean)

### Output (application/json)

- `cid` (string · cid, required)
- `uri` (string · at-uri, required)

### Errors

- `InvalidRequest`: No description in schema.
- `IdempotencyKeyRequired`: No description in schema.
- `IdempotencyConflict`: No description in schema.
- `NotAuthorized`: No description in schema.
- `RateLimited`: No description in schema.
- `QuotaExceeded`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "IdempotencyKeyRequired"
        },
        {
          "name": "IdempotencyConflict"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "RateLimited"
        },
        {
          "name": "QuotaExceeded"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collection": {
              "format": "nsid",
              "type": "string"
            },
            "record": {
              "type": "unknown"
            },
            "repo": {
              "format": "did",
              "type": "string"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "space": {
              "format": "at-uri",
              "type": "string"
            },
            "validate": {
              "type": "boolean"
            }
          },
          "required": [
            "space",
            "repo",
            "collection",
            "record"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Write-proxy alias of com.atproto.space.createRecord. The body is the standard space write shape. The proxy authorizes the caller's delegation, audits the alias NSID, and forwards the canonical method. Requires an Idempotency-Key header.",
  "id": "party.whey.writeproxy.createRecord",
  "lexicon": 1
}
```
