# guide.climbers.appview.putAttempt

> Published by [gunnar.foo](https://lexicon.garden/identity/did:plc:f5gvem3uvafi2ord4txpyvjj)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:f5gvem3uvafi2ord4txpyvjj/guide.climbers.appview.putAttempt)
- [Documentation](https://lexicon.garden/lexicon/did:plc:f5gvem3uvafi2ord4txpyvjj/guide.climbers.appview.putAttempt/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:f5gvem3uvafi2ord4txpyvjj/guide.climbers.appview.putAttempt/examples)

## Definitions

### `guide.climbers.appview.putAttempt`

**Type**: `procedure`

Write one attempt into the signed-in climber's logbook space, creating the space if they do not have one yet.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `record` | `unknown` | Yes | A `guide.climbers.dev.attempt` record. |
| `rkey` | `string` (record-key) | Yes | The key the client minted for this attempt. Writing the same key twice replaces the record rather than logging a second go, which is what makes a replayed write safe. |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Write one attempt into the signed-in climber's logbook space, creating the space if they do not have one yet.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "record": {
              "description": "A `guide.climbers.dev.attempt` record.",
              "type": "unknown"
            },
            "rkey": {
              "description": "The key the client minted for this attempt. Writing the same key twice replaces the record rather than logging a second go, which is what makes a replayed write safe.",
              "format": "record-key",
              "type": "string"
            }
          },
          "required": [
            "rkey",
            "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"
    }
  },
  "id": "guide.climbers.appview.putAttempt",
  "lexicon": 1
}
```
