Mews · Schema

Resource block

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the resource block.
EnterpriseId string Unique identifier of the `Enterprise` the resource block belongs to.
AssignedResourceId string Unique identifier of the assigned `Resource`.
IsActive boolean Whether the resource block is still active.
Type object
StartUtc string Start of the resource block in UTC timezone in ISO 8601 format.
EndUtc string End of the resource block in UTC timezone in ISO 8601 format.
CreatedUtc string Creation date and time of the resource block in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the resource block in UTC timezone in ISO 8601 format.
DeletedUtc string Date and time when the resource block was deleted (for inactive ones) in UTC timezone in ISO 8601 format.
Name string Name of the resource block.
Notes string Note describing the resource block.
View JSON Schema on GitHub

JSON Schema

mews-resourceblock-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResourceBlock",
  "title": "Resource block",
  "required": [
    "AssignedResourceId",
    "CreatedUtc",
    "EndUtc",
    "EnterpriseId",
    "Id",
    "IsActive",
    "Name",
    "StartUtc",
    "Type",
    "UpdatedUtc"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the resource block.",
      "format": "uuid"
    },
    "EnterpriseId": {
      "type": "string",
      "description": "Unique identifier of the `Enterprise` the resource block belongs to.",
      "format": "uuid"
    },
    "AssignedResourceId": {
      "type": "string",
      "description": "Unique identifier of the assigned `Resource`.",
      "format": "uuid"
    },
    "IsActive": {
      "type": "boolean",
      "description": "Whether the resource block is still active."
    },
    "Type": {
      "$ref": "#/components/schemas/ResourceBlockType"
    },
    "StartUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Start of the resource block in UTC timezone in ISO 8601 format."
    },
    "EndUtc": {
      "minLength": 1,
      "type": "string",
      "description": "End of the resource block in UTC timezone in ISO 8601 format."
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Creation date and time of the resource block in UTC timezone in ISO 8601 format."
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the resource block in UTC timezone in ISO 8601 format."
    },
    "DeletedUtc": {
      "type": "string",
      "description": "Date and time when the resource block was deleted (for inactive ones) in UTC timezone in ISO 8601 format.",
      "nullable": true
    },
    "Name": {
      "minLength": 1,
      "type": "string",
      "description": "Name of the resource block."
    },
    "Notes": {
      "type": "string",
      "description": "Note describing the resource block.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "ResourceBlock"
}