Mews · Example Payload

Mews Resources Update Example

HospitalityHotelsPMSProperty Management

Mews Resources Update Example is an example object payload from Mews, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "resources_update",
  "method": "POST",
  "path": "/api/connector/v1/resources/update",
  "summary": "Update resources",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
        "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
        "Client": "Sample Client 1.0.0",
        "ResourceUpdates": [
          {
            "ResourceId": "20e00c32-d561-4008-8609-82d8aa525714",
            "Name": {
              "Value": "101 Updated"
            },
            "Data": {
              "Discriminator": "Space",
              "Value": {
                "FloorNumber": {
                  "Value": "2"
                },
                "LocationNotes": {
                  "Value": "Updated location notes"
                }
              }
            },
            "State": {
              "Value": "Inspected"
            },
            "StateReason": {
              "Value": "Room inspection completed"
            }
          },
          {
            "ResourceId": "1ec29188-01ca-4294-9983-fac59f85a448",
            "Name": {
              "Value": "102"
            },
            "ParentResourceId": {
              "Value": "20e00c32-d561-4008-8609-82d8aa525714"
            },
            "State": {
              "Value": "Clean"
            }
          },
          {
            "ResourceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
            "State": {
              "Value": "OutOfService"
            },
            "StateReason": {
              "Value": "Maintenance required"
            }
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {}
    }
  ]
}