I’ve been looking the action part of the “REST” API recently. I can’t seem to get a hold of the StartTime or EndTime of an action.
Whenever I use GET /api/action/{id}
, I do get the following information:
<HasStartTime>false</HasStartTime>
<HasEndTime>true</HasEndTime>
That’s all very nice to know, but I can’t seem to find a single action where it does actually list a Start or Endtime. I looked at the .xsd’s, and I saw the following:
<xs:element name="HasTimeRange" type="xs:boolean" minOccurs="0" />
<xs:element name="TimeRange" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="StartTime" type="xs:time" minOccurs="0" />
<xs:element name="EndTime" type="xs:time" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
So I’m concluding that the StartTime and EndTime elements are enclosed in the TimeRange element, and the TimeRange element does not have to appear.
Also I guess I’ll conclude that the TimeRange element only appears if
<HasTimeRange>true</HasTimeRange>
.
Possibly HasTimeRange is only true when ?
<HasStartTime>true</HasStartTime>
<HasEndTime>true</HasEndTime>
Most of the actions I have do NOT have a StartTime (they start on creation), so they do NOT have a TimeRange.
So how would I retrieve the EndTime for these actions?