Get a List of Resource Absences
This service lists the absences for a resource within an optional date range.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | ResourceAbsences | Required |
ResourceId | Int | Id of the resource. | Required |
From | Date | Start date of date range. Format yyyy-mm-ddThh:mm | Optional |
To | Date | End date of date range. Format yyyy-mm-ddThh:mm | Optional |
CountStatus | Int | 0=Results (Default), 1=Count,2=Count and Results | Optional |
Response Codes
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=ResourceAbsences&resourceid=17651&CountStatus=both
Response Data
{ "Code": 0, "Result": { "DataCount": 43, "DataResult": [ { "absenceid": 6578, "type": "", "start": "2016-05-02 01:00:00", "end": "2016-05-03 01:00:00" }, { "ResourceId": 17651, "absenceid": 17857, "type": "", "start": "2017-01-30 12:00:00", "end": "2017-01-31 12:00:00" }, { "absenceid": 22532, "type": "", "start": "2017-04-20 01:00:00", "end": "2017-04-21 01:00:00" }, { "ResourceId": 17651, "absenceid": 30064, "type": "", "start": "2017-06-29 01:00:00", "end": "2017-06-30 01:00:00" } ] } }