Mews · Schema

Resource update

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
ResourceId string Unique identifier of the `Resource` which is updated.
Name object New name of the resource (e.g. room number).
ParentResourceId object Identifier of the new parent `Resource`.
Data object New additional data of the resource.
State object New `ResourceState` except `OutOfOrder`.
StateReason object New reason for the state of the resource.
View JSON Schema on GitHub

JSON Schema

mews-resourceupdateparameters-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResourceUpdateParameters",
  "title": "Resource update",
  "required": [
    "ResourceId"
  ],
  "type": "object",
  "properties": {
    "ResourceId": {
      "type": "string",
      "description": "Unique identifier of the `Resource` which is updated.",
      "format": "uuid"
    },
    "Name": {
      "title": "String update value",
      "allOf": [
        {
          "$ref": "#/components/schemas/StringUpdateValue"
        }
      ],
      "description": "New name of the resource (e.g. room number).",
      "nullable": true
    },
    "ParentResourceId": {
      "title": "Guid update value",
      "allOf": [
        {
          "$ref": "#/components/schemas/GuidNullableUpdateValue"
        }
      ],
      "description": "Identifier of the new parent `Resource`.",
      "nullable": true
    },
    "Data": {
      "title": "Resource data update",
      "type": "object",
      "properties": {
        "Discriminator": {
          "$ref": "#/components/schemas/ResourceDataDiscriminator"
        },
        "Value": {
          "oneOf": [
            {
              "$ref": "#/components/schemas/SpaceDataUpdateParameters"
            },
            {
              "title": "Object resource data update",
              "type": "object",
              "additionalProperties": false
            },
            {
              "title": "Person resource data update",
              "type": "object",
              "additionalProperties": false
            }
          ],
          "description": "Based on `Discriminator`. Currently supported only for `Space` resources with [Space resource data update](https://mews-systems.gitbook.io/connector-api/operations/resources#space-resource-data-update)."
        }
      },
      "description": "New additional data of the resource.",
      "nullable": true,
      "x-coproduct": true,
      "x-schema-id": "ResourceUpdateParametersDataCoproductOfResourceDataDiscriminator"
    },
    "State": {
      "title": "String update value",
      "allOf": [
        {
          "$ref": "#/components/schemas/StringUpdateValue"
        }
      ],
      "description": "New `ResourceState` except `OutOfOrder`.",
      "nullable": true
    },
    "StateReason": {
      "title": "String update value",
      "allOf": [
        {
          "$ref": "#/components/schemas/StringUpdateValue"
        }
      ],
      "description": "New reason for the state of the resource.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "ResourceUpdateParameters"
}