Virgin Media O2 · Schema

attachment

TelecommunicationsUnited KingdomMobile Network OperatorBroadbandNetwork APIsCAMARAOpen GatewayIdentity VerificationSIM SwapAge VerificationConverged OperatorPartner Gated

Properties

Name Type Description
date stringnull The date the post was published, in the site's time zone.
date_gmt stringnull The date the post was published, as GMT.
guid object The globally unique identifier for the post.
id integer Unique identifier for the post.
link string URL to the post.
modified string The date the post was last modified, in the site's time zone.
modified_gmt string The date the post was last modified, as GMT.
slug string An alphanumeric identifier for the post unique to its type.
status string A named status for the object.
type string Type of post.
permalink_template string Permalink template for the post.
generated_slug string Slug automatically generated from the post title.
class_list array An array of the class names for the post container element.
title object The title for the post.
author integer The ID for the author of the post.
featured_media integer The ID of the featured media for the post.
comment_status string Whether or not comments are open on the post.
ping_status string Whether or not the post can be pinged.
meta object Meta fields.
template string The theme file to use to display the post.
acf object ACF field data
alt_text string Alternative text to display when attachment is not displayed.
caption object The attachment caption.
description object The attachment description.
media_type string Attachment type.
mime_type string The attachment MIME type.
media_details object Details about the media file, specific to its type.
post integer The ID for the associated post of the attachment.
source_url string URL to the original attachment file.
missing_image_sizes array List of the missing image sizes of the attachment.
filename string Original attachment file name.
filesize integer Attachment file size in bytes.
exif_orientation integer EXIF orientation value. Values 1-8 follow the EXIF specification, where 1 means no rotation needed.
View JSON Schema on GitHub

JSON Schema

virgin-media-o2-newsroom-attachment.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "attachment",
  "type": "object",
  "properties": {
    "date": {
      "description": "The date the post was published, in the site's time zone.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "context": [
        "view",
        "edit",
        "embed"
      ]
    },
    "date_gmt": {
      "description": "The date the post was published, as GMT.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "context": [
        "view",
        "edit"
      ]
    },
    "guid": {
      "description": "The globally unique identifier for the post.",
      "type": "object",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true,
      "properties": {
        "raw": {
          "description": "GUID for the post, as it exists in the database.",
          "type": "string",
          "context": [
            "edit"
          ],
          "readonly": true
        },
        "rendered": {
          "description": "GUID for the post, transformed for display.",
          "type": "string",
          "context": [
            "view",
            "edit"
          ],
          "readonly": true
        }
      }
    },
    "id": {
      "description": "Unique identifier for the post.",
      "type": "integer",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "link": {
      "description": "URL to the post.",
      "type": "string",
      "format": "uri",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "modified": {
      "description": "The date the post was last modified, in the site's time zone.",
      "type": "string",
      "format": "date-time",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true
    },
    "modified_gmt": {
      "description": "The date the post was last modified, as GMT.",
      "type": "string",
      "format": "date-time",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true
    },
    "slug": {
      "description": "An alphanumeric identifier for the post unique to its type.",
      "type": "string",
      "context": [
        "view",
        "edit",
        "embed"
      ]
    },
    "status": {
      "description": "A named status for the object.",
      "type": "string",
      "enum": [
        "publish",
        "future",
        "draft",
        "pending",
        "private",
        "acf-disabled"
      ],
      "context": [
        "view",
        "edit"
      ]
    },
    "type": {
      "description": "Type of post.",
      "type": "string",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "permalink_template": {
      "description": "Permalink template for the post.",
      "type": "string",
      "context": [
        "edit"
      ],
      "readonly": true
    },
    "generated_slug": {
      "description": "Slug automatically generated from the post title.",
      "type": "string",
      "context": [
        "edit"
      ],
      "readonly": true
    },
    "class_list": {
      "description": "An array of the class names for the post container element.",
      "type": "array",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true,
      "items": {
        "type": "string"
      }
    },
    "title": {
      "description": "The title for the post.",
      "type": "object",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "properties": {
        "raw": {
          "description": "Title for the object, as it exists in the database.",
          "type": "string",
          "context": [
            "edit"
          ]
        },
        "rendered": {
          "description": "HTML title for the object, transformed for display.",
          "type": "string",
          "context": [
            "view",
            "edit",
            "embed"
          ],
          "readonly": true
        }
      }
    },
    "author": {
      "description": "The ID for the author of the post.",
      "type": "integer",
      "context": [
        "view",
        "edit",
        "embed"
      ]
    },
    "featured_media": {
      "description": "The ID of the featured media for the post.",
      "type": "integer",
      "context": [
        "view",
        "edit",
        "embed"
      ]
    },
    "comment_status": {
      "description": "Whether or not comments are open on the post.",
      "type": "string",
      "enum": [
        "open",
        "closed"
      ],
      "context": [
        "view",
        "edit"
      ]
    },
    "ping_status": {
      "description": "Whether or not the post can be pinged.",
      "type": "string",
      "enum": [
        "open",
        "closed"
      ],
      "context": [
        "view",
        "edit"
      ]
    },
    "meta": {
      "description": "Meta fields.",
      "type": "object",
      "context": [
        "view",
        "edit"
      ],
      "properties": {
        "_acf_changed": {
          "type": "boolean",
          "title": "",
          "description": "",
          "default": false
        },
        "_mo_disable_npp": {
          "type": "string",
          "title": "",
          "description": "",
          "default": ""
        }
      }
    },
    "template": {
      "description": "The theme file to use to display the post.",
      "type": "string",
      "context": [
        "view",
        "edit"
      ]
    },
    "acf": {
      "description": "ACF field data",
      "type": "object",
      "properties": []
    },
    "alt_text": {
      "description": "Alternative text to display when attachment is not displayed.",
      "type": "string",
      "context": [
        "view",
        "edit",
        "embed"
      ]
    },
    "caption": {
      "description": "The attachment caption.",
      "type": "object",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "properties": {
        "raw": {
          "description": "Caption for the attachment, as it exists in the database.",
          "type": "string",
          "context": [
            "edit"
          ]
        },
        "rendered": {
          "description": "HTML caption for the attachment, transformed for display.",
          "type": "string",
          "context": [
            "view",
            "edit",
            "embed"
          ],
          "readonly": true
        }
      }
    },
    "description": {
      "description": "The attachment description.",
      "type": "object",
      "context": [
        "view",
        "edit"
      ],
      "properties": {
        "raw": {
          "description": "Description for the attachment, as it exists in the database.",
          "type": "string",
          "context": [
            "edit"
          ]
        },
        "rendered": {
          "description": "HTML description for the attachment, transformed for display.",
          "type": "string",
          "context": [
            "view",
            "edit"
          ],
          "readonly": true
        }
      }
    },
    "media_type": {
      "description": "Attachment type.",
      "type": "string",
      "enum": [
        "image",
        "file"
      ],
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "mime_type": {
      "description": "The attachment MIME type.",
      "type": "string",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "media_details": {
      "description": "Details about the media file, specific to its type.",
      "type": "object",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "post": {
      "description": "The ID for the associated post of the attachment.",
      "type": "integer",
      "context": [
        "view",
        "edit"
      ]
    },
    "source_url": {
      "description": "URL to the original attachment file.",
      "type": "string",
      "format": "uri",
      "context": [
        "view",
        "edit",
        "embed"
      ],
      "readonly": true
    },
    "missing_image_sizes": {
      "description": "List of the missing image sizes of the attachment.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "context": [
        "edit"
      ],
      "readonly": true
    },
    "filename": {
      "description": "Original attachment file name.",
      "type": "string",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true
    },
    "filesize": {
      "description": "Attachment file size in bytes.",
      "type": "integer",
      "context": [
        "view",
        "edit"
      ],
      "readonly": true
    },
    "exif_orientation": {
      "description": "EXIF orientation value. Values 1-8 follow the EXIF specification, where 1 means no rotation needed.",
      "type": "integer",
      "context": [
        "edit"
      ],
      "readonly": true
    }
  },
  "links": [
    {
      "rel": "https://api.w.org/action-unfiltered-html",
      "title": "The current user can post unfiltered HTML markup and JavaScript.",
      "href": "https://news.virginmediao2.co.uk/wp-json/wp/v2/media/{id}",
      "targetSchema": {
        "type": "object",
        "properties": {
          "content": {
            "raw": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "rel": "https://api.w.org/action-assign-author",
      "title": "The current user can change the author on this post.",
      "href": "https://news.virginmediao2.co.uk/wp-json/wp/v2/media/{id}",
      "targetSchema": {
        "type": "object",
        "properties": {
          "author": {
            "type": "integer"
          }
        }
      }
    }
  ]
}