# com.livtet.review.update

> Load the review, apply the supplied fields, save. Answers NotFound when the review does not exist.

- Kind: procedure
- Authority: review.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.review.update)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.review.update/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.review.update/analytics)

## Procedure (`com.livtet.review.update`)

Type: procedure · POST

### Input (application/json)

- `content` (union): Replacement rich content.
  - One of: 
- `flags` (ref): Replacement presentation flags.
  - Reference: `community.lexicon.media.book.review#flags`
- `rating` (integer): Replacement rating on a 1-20 scale.
  - Constraints: minimum: 1, maximum: 20
- `subject` (ref): Replacement book reference. Omit to keep the current one.
  - Reference: `community.lexicon.media.book.defs#editionRef`
- `subjectRecord` (string · at-uri): Replacement enrichment AT-URI.
- `textContent` (string): Replacement plain-text review.
  - Constraints: minLength: 1
- `uri` (string · at-uri, required): AT-URI of the review record to update.

### Output (application/json)

- `updated` (boolean, required): True when a field was changed, false when the input carried none.
- `uri` (string · at-uri, required): AT-URI of the updated review record.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Load the review, apply the supplied fields, save. Answers NotFound when the review does not exist.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "content": {
              "description": "Replacement rich content.",
              "refs": [],
              "type": "union"
            },
            "flags": {
              "description": "Replacement presentation flags.",
              "ref": "community.lexicon.media.book.review#flags",
              "type": "ref"
            },
            "rating": {
              "description": "Replacement rating on a 1-20 scale.",
              "maximum": 20,
              "minimum": 1,
              "type": "integer"
            },
            "subject": {
              "description": "Replacement book reference. Omit to keep the current one.",
              "ref": "community.lexicon.media.book.defs#editionRef",
              "type": "ref"
            },
            "subjectRecord": {
              "description": "Replacement enrichment AT-URI.",
              "format": "at-uri",
              "type": "string"
            },
            "textContent": {
              "description": "Replacement plain-text review.",
              "minLength": 1,
              "type": "string"
            },
            "uri": {
              "description": "AT-URI of the review record to update.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "updated": {
              "description": "True when a field was changed, false when the input carried none.",
              "type": "boolean"
            },
            "uri": {
              "description": "AT-URI of the updated review record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "updated"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Edit one of the caller's reviews. Fields the input omits are left as they are.",
  "id": "com.livtet.review.update",
  "lexicon": 1
}
```
