place.stream.media.publishVideo

Publish a place.stream.video record for a finished upload, server-side. The caller supplies the record it would otherwise putRecord itself; the server overrides the fields it is authoritative about (source tracks and durationMs, taken from the processed upload) and, if the record carries no thumb, generates one from the video and attaches it. The record is written to the authenticated user's repo.

Repository @moderation.stream.place did:plc:gqtagsooi75obldmytuow57q not from the namespace authority
Details · procedure
Kindprocedure
Authoritymedia.stream.place
Indexed
cid bafyreihqqhmsib3wou2b263ja5miu6fyirns3aso3ked2vzhcssucc5ora

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.uploadIdNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Publish a place.stream.video record for a finished upload, server-side. The caller supplies the record it would otherwise putRecord itself; the server overrides the fields it is authoritative about (source tracks and durationMs, taken from the processed upload) and, if the record carries no thumb, generates one from the video and attaches it. The record is written to the authenticated user's repo.",
      "errors": [
        {
          "description": "No upload with the given ID belongs to the authenticated user.",
          "name": "UploadNotFound"
        },
        {
          "description": "The upload has not finished processing, so its tracks aren't available yet.",
          "name": "UploadNotReady"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "record": {
              "description": "A place.stream.video record. The server overrides `source` and `durationMs` from the processed upload, and fills in `thumb` with a generated thumbnail when the supplied record has none.",
              "ref": "place.stream.video",
              "type": "ref"
            },
            "uploadId": {
              "description": "The upload ID returned by place.stream.media.createUpload. Its processing must be complete (status 'done').",
              "type": "string"
            }
          },
          "required": [
            "uploadId",
            "record"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "CID of the created place.stream.video record.",
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "description": "AT-URI of the created place.stream.video record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "parameters": null,
      "type": "procedure"
    }
  },
  "id": "place.stream.media.publishVideo",
  "lexicon": 1
}