List scheduledtimes
...
Name | Required | Value | Description | Default values |
---|---|---|---|---|
resource | yes | resource=12 | Selected resource | |
startdate | Yes | startdate=2014-01-01 | Start date for interval | |
enddate | No | enddate=2014-01-02 | End date for interval | startdate + 1 day |
businessunit | No | businessunit=14 | Select open schedules for a certain businessunit. Regular schedules are always global. Spells (arbetspass) may be locked to specific businessunits and may be filtered out by this parameter. | - |
Example:
Code Block |
---|
APIURL/scheduledtimes.xml?resource=12&startdate=2014-01-01&enddate=2014-01-02 |
...
Tag | Format | Example | Description |
---|---|---|---|
scheduledtimes |
| <scheduledtimes> |
|
startdate | Date | <start>2014-01-01</start> | Start date for search interval |
enddate | Date | <end>2014-01-02</end> | End date search interval |
resource |
| <resource><id>12</id><name>Reception</name></resource> | The selected resource |
blocks | <blocks> | ||
block | <block> | A scheduled block. A block consists of a start and endtime. When spells are used one day can contain many blocks. If a regular schedule is used a day can only contain one block. If the schedule is open 24 hours per day, the response will contain one block for the entire search interval. | |
start | Tidpunkt | <start><timepoint><timestamp>1332442800</timestamp><datetime>2012-03-22 20:00</datetime><date>2012-03-22</date><time>20:00</time></timepoint></start> | Start time |
end | Tidpunkt | <end><timepoint><timestamp>1332442800</timestamp><datetime>2012-03-22 21:00</datetime><date>2012-03-22</date><time>21:00</time></timepoint></end> | End time |
...