Skip to main content
Version: 2.2.1

importAssetDowntime

This method allows:

  • Starting a downtime record;
  • Finishing a downtime record.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\maintenance\ImportAssetDowntimeRequestType.java
Returnweb\wwwroot\ws\java\maintenance\ImportAssetDowntimeResponseType.java

Request:

ID #RequiredDescription
FGOPTIONCode of the operation to be performed:
23 - Start a downtime record;
24 - Finish a downtime record.
IDASSETXAsset ID #. Separate with ";" if multiple assets are added. Example:
Asset_1;Asset_2;Asset_3
IDDOWNTIMEREASONDowntime reason ID #
DTSTARTDowntime start date. Date format must be Y-M-D (Year-Month-Day)
QTSTARTDowntime start time.
DTENDDowntime end date. Date format must be Y-M-D (Year-Month-Day)
QTENDDowntime end time
DSCOMMENTSComments
info
  • X¹ - Required if the "FGOPTION" field is equal to 23.
  • X² - Required if the "FGOPTION" field is equal to 23, and/or the “Start date” and/or "Start time" fields are completed.
  • X³ - Required when the "FGOPTION" field(s) is(are) equal to 24 and/or the “End date” and/or "End time" is(are) filled out.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:importAssetDowntime>
<!--You may enter the following 8 items in any order-->
<urn:FgOption>?</urn:FgOption>
<urn:IdAsset>?</urn:IdAsset>
<urn:IdDowntimeReason>?</urn:IdDowntimeReason>
<urn:DtStart>?</urn:DtStart>
<urn:QtStart>?</urn:QtStart>
<urn:DtEnd>?</urn:DtEnd>
<urn:QtEnd>?</urn:QtEnd>
<urn:DsComments>?</urn:DsComments>
</urn:importAssetDowntime>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Operation successfully performed.
FAILURE: Returns a message regarding the error that occurred