API reference
All operations
EQUIPMENT - COMPONENTS

Adds a tracked component to a piece of equipment.

crmSeries calculates remaining life, percent used and due date from `AdjustedLife`, `StartHours` and the equipment's current hours; those values in the request are ignored. When `Replaced` is true, the component identified by `ReplacementID` is marked as replaced by the new one.

POST/api/v2/equipment/components

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

application/jsonrequired

The component data to create, including `EquipmentID`.

CreateEquipmentComponentRequest
  • equipmentIDinteger · int32
  • profileIDinteger · int32
  • componentLookupIDinteger · int32
  • componentCategoryIDinteger · int32
  • componentTypeIDinteger · int32
  • profileDisplaystringnullable
  • categorystringnullable
  • descriptionstringnullable
  • startDatestring · datenullable
  • startHoursnumber · double
  • partNostringnullable
  • serialNostringnullable
  • averageLifenumber · double
  • adjustedLifenumber · double
  • remainingLifenumber · double
  • percentUsednumber · double
  • dueDatestring · date-timenullable
  • commentsstringnullable
  • replacedboolean
  • overdueboolean
  • replacementIDinteger · int32
  • componentTypestringnullable
  • percentUsedDisplaystringnullable

Responses

Component created successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataEquipmentComponentDto
  • componentIdinteger · int32
  • equipmentIdinteger · int32
  • componentLookupIdinteger · int32
  • componentCategoryIdinteger · int32
  • componentTypeIdinteger · int32
  • descriptionstring
  • startDatestring · datenullable
  • startHoursnumber · double
  • partNostring
  • serialNostring
  • averageLifenumber · double
  • adjustedLifenumber · double
  • remainingLifenumber · double
  • percentUsednumber · double
  • dueDatestring · datenullable
  • commentsstring
  • replacedboolean
  • deletedboolean