POST v1/customer-assets/{id}/maintenance-schedule

Creates or updates a Maintenance Schedule entry for an Asset.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

ID of the related Asset

integer

Required

Body Parameters

Object describing the Maintenance Schedule.

CustomerAssetMaintenance
NameDescriptionTypeAdditional information
Id

integer

None.

AssetId

integer

None.

StartDate

The date and time (in company time zone) when the maintenance was started.

date

None.

EndDate

The date and time (in company time zone) when the maintenance was ended.

date

None.

Notes

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "assetId": 2,
  "startDate": "2024-04-23T09:09:20.5508351-04:00",
  "endDate": "2024-04-23T09:09:20.5508351-04:00",
  "notes": "sample string 3",
  "active": true
}

application/xml, text/xml

Sample:
<CustomerAssetMaintenance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Assets">
  <Active>true</Active>
  <AssetId>2</AssetId>
  <EndDate>2024-04-23T09:09:20.5508351-04:00</EndDate>
  <Id>1</Id>
  <Notes>sample string 3</Notes>
  <StartDate>2024-04-23T09:09:20.5508351-04:00</StartDate>
</CustomerAssetMaintenance>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.