# app.bivri.feed.createArtworkV2

> Published by [lexicons.bivri.app](https://lexicon.garden/identity/did:plc:uqat5a7hrbww3snbbinxgwah)

✓ This is the authoritative definition for this NSID.

## Description

Publish a new artwork to the authenticated member's repository. Requires an OAuth session; the record is written to the member's own PDS.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createArtworkV2)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createArtworkV2/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createArtworkV2/examples)

## Definitions

### `app.bivri.feed.createArtworkV2`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | No | Free-form description of the artwork. |
| `labels` | `union` | No | Self-label values the author declares on this artwork, such as a spoiler warning. These are author metadata, not platform moderation decisions. |
| `langs` | `array` | No | Human languages of the artwork's title and description. |
| `media` | `array` | Yes | Images making up the artwork, in display order. At least one is required. Blobs are uploaded beforehand through com.atproto.repo.uploadBlob, and the items together may not exceed 200MB — a total this schema cannot express. |
| `tags` | `array` | No | Author-chosen tags used for discovery and search. |
| `title` | `string` | Yes | Title of the artwork. An artwork cannot be published without one. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | CID of the artwork record that was written. |
| `uri` | `string` (at-uri) | Yes | AT URI of the artwork record that was written. |

#### Errors

- **ConsentRequired**: The authenticated member has not confirmed age and accepted the Terms and Privacy Policy.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "The authenticated member has not confirmed age and accepted the Terms and Privacy Policy.",
          "name": "ConsentRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "Free-form description of the artwork.",
              "maxGraphemes": 300,
              "maxLength": 3000,
              "type": "string"
            },
            "labels": {
              "description": "Self-label values the author declares on this artwork, such as a spoiler warning. These are author metadata, not platform moderation decisions.",
              "refs": [
                "com.atproto.label.defs#selfLabels"
              ],
              "type": "union"
            },
            "langs": {
              "description": "Human languages of the artwork's title and description.",
              "items": {
                "format": "language",
                "type": "string"
              },
              "maxLength": 3,
              "type": "array"
            },
            "media": {
              "description": "Images making up the artwork, in display order. At least one is required. Blobs are uploaded beforehand through com.atproto.repo.uploadBlob, and the items together may not exceed 200MB — a total this schema cannot express.",
              "items": {
                "ref": "app.bivri.feed.artworkV2#mediaItem",
                "type": "ref"
              },
              "maxLength": 50,
              "minLength": 1,
              "type": "array"
            },
            "tags": {
              "description": "Author-chosen tags used for discovery and search.",
              "items": {
                "maxGraphemes": 64,
                "maxLength": 640,
                "minLength": 1,
                "type": "string"
              },
              "maxLength": 8,
              "type": "array"
            },
            "title": {
              "description": "Title of the artwork. An artwork cannot be published without one.",
              "maxGraphemes": 50,
              "maxLength": 500,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "title",
            "media"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "CID of the artwork record that was written.",
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "description": "AT URI of the artwork record that was written.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Publish a new artwork to the authenticated member's repository. Requires an OAuth session; the record is written to the member's own PDS.",
  "id": "app.bivri.feed.createArtworkV2",
  "lexicon": 1
}
```
