List scheduledtimes
...
Name | Required | Value | Description | DefaultvaluesDefault values |
---|---|---|---|---|
resource | yes | resource=12 | Selected resource | |
startdate | Yes | startdate=2014-01-01 | Start date for periodinterval | - |
enddate | No | enddate=2014-01-02 | End date for periodinterval | 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 | |
scheduledtimeblocks | <scheduledtime><blocks> | |||
A scheduled block | dateDate | <date>2014-01-01</date> | The date of the scheduled block | |
start | Time | <start>10:00</start> | The start time of the scheduled block | |
end | Time | <end>12:00</end> | The end time of the scheduled 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 |
Code Block |
---|
<scheduledtimes> <resource> <id>12</id> <name>Reception</name> </resource> <startdate>2014<startdate>2015-0102-01<09</enddate> <enddate>2014<enddate>2015-0102-02<09</enddate> <blocks> <block> <date>2014-01-01</date> <start>10:00</start> <end>12:00<<start> <timepoint> <timestamp>1423465200</timestamp> <datetime>2015-02-09 08:00</datetime> <date>2015-02-09</date> <time>08:00</time> </timepoint> </start> <end> <timepoint> <timestamp>1423468800</timestamp> <datetime>2015-02-09 09:00</datetime> <date>2015-02-09</date> <time>09:00</time> </timepoint> </end> </block> <block> <date>2014-01-01</date> <start>13:00</start> <end>16:00<<start> <timepoint> <timestamp>1423472400</timestamp> <datetime>2015-02-09 10:00</datetime> <date>2015-02-09</date> <time>10:00</time> </timepoint> </start> <end> <timepoint> <timestamp>1423476000</timestamp> <datetime>2015-02-09 11:00</datetime> <date>2015-02-09</date> <time>11:00</time> </timepoint> </end> </block> </blocks> </scheduledtimes> |