Event Photo In Post

Description

An event photo submitted for addition to the event.

Properties

Property Description
albumId nullable

The numeric identifier for the album to which this photo is being uploaded, if applicable. The album must belong to the event for which this photo is being uploaded.

filesize

The original filesize of the uploaded event photo.

name

The original filename of the uploaded event photo.

randomKey

The random key generated by the client and used to replace the ${random_folder} template variable when uploading the photo using the photo upload policy.

type

The type of object represented.

uploadTime nullable

The time in seconds (as a floating point number) it took to upload the photo to the URL specified in the photo upload policy.

uploadUrlResponse required

The response returned as a result of a request to the .uploadUrl specified in the photo upload policy.

Property Description
contentType

The value of the response's Content-Type header.

rawBody

The raw response body.

watermarkId nullable

The numeric identifier for the watermark applied to this photo, if applicable.

OpenAPI Schema

The following schema is based on OpenAPI 3.0 and is provided in our downloadable OpenAPI document.

{
  "description": "An event photo submitted for addition to the event.",
  "properties": {
    "albumId": {
      "description": "The numeric identifier for the album to which this photo is being\nuploaded, if applicable. The album must belong to the event for\nwhich this photo is being uploaded.",
      "nullable": true,
      "type": "integer"
    },
    "filesize": {
      "description": "The original filesize of the uploaded event photo.",
      "type": "number"
    },
    "name": {
      "description": "The original filename of the uploaded event photo.",
      "maxLength": 250,
      "type": "string"
    },
    "randomKey": {
      "description": "The random key generated by the client and used to replace the\n`${random_folder}` template variable when uploading the photo using\nthe photo upload policy.",
      "pattern": "^[a-fA-F0-9]{32}$",
      "type": "string"
    },
    "type": {
      "description": "The type of object represented.",
      "enum": [
        "event-photo"
      ],
      "type": "string"
    },
    "uploadTime": {
      "description": "The time in seconds (as a floating point number) it took to upload\nthe photo to the URL specified in the photo upload policy.",
      "nullable": true,
      "type": "number"
    },
    "uploadUrlResponse": {
      "description": "The response returned as a result of a request to the `.uploadUrl`\nspecified in the photo upload policy.",
      "properties": {
        "contentType": {
          "description": "The value of the response's `Content-Type` header.",
          "type": "string"
        },
        "rawBody": {
          "description": "The raw response body.",
          "type": "string"
        }
      },
      "required": [
        "contentType",
        "rawBody"
      ],
      "type": "object"
    },
    "watermarkId": {
      "description": "The numeric identifier for the watermark applied to this photo, if\napplicable.",
      "nullable": true,
      "type": "integer"
    }
  },
  "required": [
    "type",
    "name",
    "filesize",
    "randomKey",
    "uploadUrlResponse"
  ],
  "title": "Event Photo",
  "type": "object"
}