# place.stream.moderation.updateLivestream

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.updateLivestream)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.updateLivestream/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.updateLivestream/examples)

## Definitions

### `place.stream.moderation.updateLivestream`

**Type**: `procedure`

Update livestream metadata on behalf of a streamer. Requires 'livestream.manage' permission. Updates a place.stream.livestream record in the streamer's repository.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `title` | `string` | No | New title for the livestream. |
| `streamer` | `string` (did) | Yes | The DID of the streamer. |
| `livestreamUri` | `string` (at-uri) | Yes | The AT-URI of the livestream record to update. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | The CID of the updated livestream record. |
| `uri` | `string` (at-uri) | Yes | The AT-URI of the updated livestream record. |

#### Errors

- **Unauthorized**: The request lacks valid authentication credentials.
- **Forbidden**: The caller does not have permission to update livestream metadata for this streamer.
- **SessionNotFound**: The streamer's OAuth session could not be found or is invalid.
- **RecordNotFound**: The specified livestream record does not exist.

## Raw Schema

```json
{
  "id": "place.stream.moderation.updateLivestream",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "streamer",
            "livestreamUri"
          ],
          "properties": {
            "title": {
              "type": "string",
              "maxLength": 1400,
              "description": "New title for the livestream.",
              "maxGraphemes": 140
            },
            "streamer": {
              "type": "string",
              "format": "did",
              "description": "The DID of the streamer."
            },
            "livestreamUri": {
              "type": "string",
              "format": "at-uri",
              "description": "The AT-URI of the livestream record to update."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Unauthorized",
          "description": "The request lacks valid authentication credentials."
        },
        {
          "name": "Forbidden",
          "description": "The caller does not have permission to update livestream metadata for this streamer."
        },
        {
          "name": "SessionNotFound",
          "description": "The streamer's OAuth session could not be found or is invalid."
        },
        {
          "name": "RecordNotFound",
          "description": "The specified livestream record does not exist."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "The CID of the updated livestream record."
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "The AT-URI of the updated livestream record."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": null,
      "description": "Update livestream metadata on behalf of a streamer. Requires 'livestream.manage' permission. Updates a place.stream.livestream record in the streamer's repository."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
