Toggle menu

ReserveAvailableSlotsForEvent

Request Parameters

ReserveAvailableSlotsForEvent Request Schema
 

Note - Unlike PostEvent, a GUID must be provided and the same GUID must be used when using any of the task reservation IDs in subsequent PostEvent calls.

Example Request:

{
    "event": {
        "endDate": null,
        "data": [{
            "childData": [],
            "datatypeId": "41810",
            "value": "Luke"
        }, {
            "childData": [],
            "datatypeId": "41811",
            "value": "Taylor"
        }, {
            "childData": [{
                "childData": [],
                "datatypeId": "41828",
                "value": "24"
            }, {
                "childData": [],
                "datatypeId": "41831",
                "value": "An abandoned microwave"
            }, {
                "childData": [],
                "datatypeId": "41829",
                "value": "1"
            }],
            "datatypeId": "41827",
            "value": "Microwave"
        }, {
            "childData": [],
            "datatypeId": "41813",
            "value": "luke.taylor@gossinteractive.com"
        }, {
            "childData": [],
            "datatypeId": "41839",
            "value": "50.00"
        }],
        "eventObjects": [{
            "objectRef": {
                "type": "PointAddress",
                "value": [6599297],
                "key": "Id"
            },
            "objectDescription": "Bulky Address",
            "eventObjectType": "Source"
        }],
        "dueDate": null,
        "eventTypeId": "2306",
        "taskReservations": [],
        "guid": "1a45f7bb-3785-1235-7819-a77deaf5bfac",
        "serviceId": "584",
        "eventDate": null
    },
    "parameters": {
        "from": "2020-08-21T23:00:00.000+01:00",
        "to": "2020-09-05T23:00:00.000+01:00"
    }
}

Response Parameters

ReserveAvailableSlotsForEvent Response Schema
 

Example Response:

{
    "jsonrpc": "2.0",
    "id": 16,
    "result": {
        "response": [{
            "description": "TaskType_3554",
            "reservedSlots": [{
                "endDate": "2020-08-22T00:00:00+01:00",
                "reference": "1138724",
                "startDate": "2020-08-21T00:00:00+01:00"
            }, {
                "endDate": "2020-08-29T00:00:00+01:00",
                "reference": "1138725",
                "startDate": "2020-08-28T00:00:00+01:00"
            }, {
                "endDate": "2020-09-05T00:00:00+01:00",
                "reference": "1138726",
                "startDate": "2020-09-04T00:00:00+01:00"
            }]
        }],
        "success": true
    }
}

Last modified on February 05, 2021

Share this page

Facebook icon Twitter icon email icon

Print

print icon