Mews Resourceblocks Add 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
{
"operationId": "resourceBlocks_add",
"method": "POST",
"path": "/api/connector/v1/resourceBlocks/add",
"summary": "Add resource block",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"ResourceBlocks": [
{
"ResourceId": "20e00c32-d561-4008-8609-82d8aa525714",
"Name": "Maintenance Block - Room 101",
"Type": "OutOfOrder",
"StartUtc": "2023-08-01T14:00:00Z",
"EndUtc": "2023-08-01T18:00:00Z",
"Notes": "Scheduled maintenance for air conditioning unit"
},
{
"ResourceId": "1ec29188-01ca-4294-9983-fac59f85a448",
"Name": "Staff Training Session",
"Type": "InternalUse",
"StartUtc": "2023-08-05T10:00:00Z",
"EndUtc": "2023-08-05T16:00:00Z",
"Notes": "Internal training session for new staff members"
},
{
"ResourceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"Name": "Deep Cleaning Block",
"Type": "OutOfOrder",
"StartUtc": "2023-08-10T09:00:00Z",
"EndUtc": "2023-08-10T17:00:00Z",
"Notes": "Deep cleaning and sanitization process"
}
]
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"ResourceBlocks": [
{
"Id": "7f8e9d0c-1b2a-3c4d-5e6f-7a8b9c0d1e2f",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"AssignedResourceId": "20e00c32-d561-4008-8609-82d8aa525714",
"IsActive": true,
"Type": "OutOfOrder",
"StartUtc": "2023-08-01T14:00:00Z",
"EndUtc": "2023-08-01T18:00:00Z",
"CreatedUtc": "2023-07-25T10:30:00Z",
"UpdatedUtc": "2023-07-25T10:30:00Z",
"DeletedUtc": null,
"Name": "Maintenance Block - Room 101",
"Notes": "Scheduled maintenance for air conditioning unit"
},
{
"Id": "8e9f0a1b-2c3d-4e5f-6a7b-8c9d0e1f2a3b",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"AssignedResourceId": "1ec29188-01ca-4294-9983-fac59f85a448",
"IsActive": true,
"Type": "InternalUse",
"StartUtc": "2023-08-05T10:00:00Z",
"EndUtc": "2023-08-05T16:00:00Z",
"CreatedUtc": "2023-07-25T10:30:00Z",
"UpdatedUtc": "2023-07-25T10:30:00Z",
"DeletedUtc": null,
"Name": "Staff Training Session",
"Notes": "Internal training session for new staff members"
},
{
"Id": "9f0a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"AssignedResourceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"IsActive": true,
"Type": "OutOfOrder",
"StartUtc": "2023-08-10T09:00:00Z",
"EndUtc": "2023-08-10T17:00:00Z",
"CreatedUtc": "2023-07-25T10:30:00Z",
"UpdatedUtc": "2023-07-25T10:30:00Z",
"DeletedUtc": null,
"Name": "Deep Cleaning Block",
"Notes": "Deep cleaning and sanitization process"
}
]
}
}
]
}