Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List scheduledtimes

...

Name

Required

Value

Description

Default values
resourceyesresource=12Selected resource 

startdate

Yes

startdate=2014-01-01

Start date for interval

 

enddate

No

enddate=2014-01-02

End date for interval

startdate + 1 day
businessunitNobusinessunit=14Select 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

...

dateThe date of the The end time of the scheduled block

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 

 Date

<date>2014-01-01</date>

<block>A scheduled block
start

 Time

<start>10:00</start>

The start time of the scheduled block

end

 Time

 <end>12:00</end>

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
endTidpunkt<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>