{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-album-payload-schema.json",
  "title": "albumPayload",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-lightroom-openapi.yml#/components/schemas/albumPayload",
  "type": "object",
  "properties": {
    "userCreated": {
      "$ref": "#/$defs/utcDateTime"
    },
    "userUpdated": {
      "$ref": "#/$defs/utcDateTime"
    },
    "name": {
      "type": "string"
    },
    "cover": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/uuid"
        }
      }
    },
    "parent": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/uuid"
        }
      }
    },
    "publishInfo": {
      "type": "object",
      "properties": {
        "servicePayload": {
          "type": "string",
          "description": "Album metadata, unique to the service, encapsulated as a single string with a maximum length of 1024 characters."
        },
        "remoteId": {
          "type": "string",
          "description": "Identifier for the album that is unique to the publishing service."
        },
        "created": {
          "$ref": "#/$defs/utcDateTime"
        },
        "updated": {
          "$ref": "#/$defs/utcDateTime"
        },
        "deleted": {
          "type": "boolean",
          "description": "True if the externally affiliated content (identified by remoteId) was deleted; acts as a tombstone."
        },
        "remoteLinks": {
          "type": "object",
          "properties": {
            "edit": {
              "type": "object",
              "properties": {
                "href": {
                  "type": "string",
                  "description": "Fully-formed URL to a location to edit affiliated content (identified by remoteId) on the external service."
                }
              }
            },
            "view": {
              "type": "object",
              "properties": {
                "href": {
                  "type": "string",
                  "description": "Fully-formed URL to a location to view affiliated content (identified by remoteId) on the external service."
                }
              }
            }
          },
          "description": "Links to affiliated URLs on the publishing service."
        }
      }
    }
  },
  "$defs": {
    "utcDateTime": {
      "pattern": "^([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]|[0-9][1-9][0-9]{2}|[1-9][0-9]{3})-((02-([1-2][0-9]|0[1-9]))|((01|03|05|07|08|10|12)-(3[0-1]|[1-2][0-9]|0[1-9]))|((04|06|09|11)-(30|[1-2][0-9]|0[1-9])))T(2[0-3]|[0-1][0-9]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$",
      "type": "string",
      "description": "datetime in RFC-3339 format (subset of ISO-8601) requiring a UTC time ending with Z (so -00:00 or +00-00 suffix NOT allowed). The datetime must have date and time, including seconds, e.g. 2016-01-15T09:23:34Z."
    },
    "uuid": {
      "pattern": "^[a-f0-9]{32}$",
      "type": "string"
    }
  }
}