Event Category

Description

An event category.

Properties

Property Description
coverPhoto nullable

A cover photo for the event category.

Property Description
displayUrl

Display URL for this image.

focalPointPercentages

A pair of x,y coordinates on a rectangular coordinate system, defining a focal point to use when rendering the cover photo. These numbers represent percentages and not fixed pixels.

height

Height of the cover photo image in pixels.

width

Width of the cover photo image in pixels.

displayOrder

The order in which the categories should be displayed.

eventCount read-only

The total number of events within this event category.

id

The identifier for this event category.

links required read-only

Each property defines a hypertext link relationship as indicated by a link object or array of link objects. The target URL of each hypertext link relationship is related to the current resource according to the defined semantics of the link relationship property name.

name

The event category name.

type

The type of object represented.

OpenAPI Schema

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

{
  "description": "An event category.",
  "properties": {
    "coverPhoto": {
      "description": "A cover photo for the event category.",
      "nullable": true,
      "properties": {
        "displayUrl": {
          "description": "Display URL for this image.",
          "properties": {
            "thumb": {
              "description": "A URL for the event category cover photo image.",
              "format": "uri",
              "readOnly": true,
              "type": "string"
            }
          },
          "type": "object"
        },
        "focalPointPercentages": {
          "description": "A pair of `x,y` coordinates on a rectangular coordinate system, defining a\nfocal point to use when rendering the cover photo. These numbers represent\npercentages and not fixed pixels.",
          "properties": {
            "x": {
              "description": "The x-coordinate for the focal point, as a percentage. (i.e.\n`(x / width) * 100`)",
              "example": 49.85,
              "type": "number"
            },
            "y": {
              "description": "The y-coordinate for the focal point, as a percentage. (i.e.\n`(y / height) * 100`)",
              "example": 25.7,
              "type": "number"
            }
          },
          "title": "Focal Point Percentages",
          "type": "object"
        },
        "height": {
          "description": "Height of the cover photo image in pixels.",
          "type": "integer"
        },
        "width": {
          "description": "Width of the cover photo image in pixels.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "displayOrder": {
      "description": "The order in which the categories should be displayed.",
      "type": "integer"
    },
    "eventCount": {
      "description": "The total number of events within this event category.",
      "readOnly": true,
      "type": "integer"
    },
    "id": {
      "description": "The identifier for this event category.",
      "type": "integer"
    },
    "links": {
      "$ref": "#/components/schemas/Links"
    },
    "name": {
      "description": "The event category name.",
      "type": "string"
    },
    "type": {
      "description": "The type of object represented.",
      "enum": [
        "event-category"
      ],
      "type": "string"
    }
  },
  "required": [
    "type",
    "id",
    "name"
  ],
  "title": "Event Category",
  "type": "object"
}