# rsvp.atmo.space.putRecord

> Published by [atmo.rsvp](https://lexicon.garden/identity/did:plc:b63bmauox6z5rbibwrhxrdnw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.putRecord)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.putRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.putRecord/examples)

## Definitions

### `rsvp.atmo.space.putRecord`

**Type**: `procedure`

Write a record into a space. The author is always the JWT issuer. If rkey is omitted, a TID is generated.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `rkey` | `string` | No |  |
| `record` | `unknown` | Yes |  |
| `spaceUri` | `string` (at-uri) | Yes |  |
| `collection` | `string` (nsid) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `rkey` | `string` | Yes |  |
| `authorDid` | `string` (did) | Yes |  |
| `createdAt` | `integer` | Yes |  |

#### Errors

- **NotFound**
- **Forbidden**

## Raw Schema

```json
{
  "id": "rsvp.atmo.space.putRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "spaceUri",
            "collection",
            "record"
          ],
          "properties": {
            "rkey": {
              "type": "string"
            },
            "record": {
              "type": "unknown"
            },
            "spaceUri": {
              "type": "string",
              "format": "at-uri"
            },
            "collection": {
              "type": "string",
              "format": "nsid"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "rkey",
            "authorDid",
            "createdAt"
          ],
          "properties": {
            "rkey": {
              "type": "string"
            },
            "authorDid": {
              "type": "string",
              "format": "did"
            },
            "createdAt": {
              "type": "integer"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Write a record into a space. The author is always the JWT issuer. If rkey is omitted, a TID is generated."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
