Create assets

post

/fscmRestApi/resources/11.13.18.05/maintenanceAssets

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Date when the asset becomes inactive. This attribute is optional. This date must have already occurred and it must occur later or on the same date as the end date for the customer asset. If the end date for the active asset contains a value, then you cannot update other attributes.
  • First line of the customer address where the asset is located.
  • Second line of the customer address where the asset is located.
  • Third line of the customer address where the asset is located.
  • Fourth line of the customer address where the asset is located.
  • Value that uniquely identifies the asset charge. The application creates this value when it creates the asset charge. This attribute is read-only.
  • Meters
    Title: Meters
    The Asset Meters resource gets the meters associated with the maintenance assets.
  • Title: Number
    Maximum Length: 80
    Number that uniquely identifies the asset. This attribute is optional. If you do not provide a value, then the application uses the value that identifies the asset.
  • Contains one of the following values. Y: create component assets. Expand the primary bill of materials for the item, and then use the bill of materials for the components to create child items for the asset. N: do not create child assets from the primary bill of material. The default value is N. The response payload translates Y to true and N to false.
  • City where the asset is located.
  • Country where the asset is located.
  • County where the asset is located.
  • Maximum Length: 80
    Abbreviation that uniquely identifies the location context where the asset currently resides. The ORA_CSE_CURRENT_LOC_CONTEXT lookup defines the values that you can use with this attribute, where the customization level is System. This attribute is required when you create the asset. You can update this attrbute. You cannot use location context ORA_INVENTORY as the context when creating or updating the maintenance asset. An inventory transaction can modify ORA_INVENTORY.
  • Value that uniquely identifies the location where the asset currently resides. If the location context is ORA_INTERNAL_LOCATION or ORA_EXTERNAL_LOCATION, then you can specify a value for this attribute. If the location context is ORA_CUSTOMER, then the application gets the value for this attribute from the customer site. If you do not provide a value for this attribute, then the application sets the location context to ORA_UNKNOWN. You can update the value that identifies the current location.
  • Value that uniquely identifies the customer site where the asset currently resides. If the location context is ORA_CUSTOMER, then this attribute is required. You can update this attribute.
  • Title: Description
    Maximum Length: 240
    Description of the asset that the user defines. It can describe the features, characteristics, and so on of the asset. This attribute is optional. You can update this attribute.
  • Maximum Length: 30
    Abbreviation that uniquely identifies the work order type. The ORA_MNT_WO_SUB_TYPE lookup defines the values that you can use with this attribute. The application uses this attribute to set the work order subtype when it creates a work order for the asset. This attribute is optional to create the asset. You can update this attribute.
  • Maximum Length: 30
    Abbreviation that uniquely identifies the work order type. The ORA_MNT_WO_TYPE lookup defines the values that you can use with this attribute. The application uses this attribute to set the work order type when it creates a work order for the asset. This attribute is optional to create the asset. You can update this attribute.
  • Title: Enable IoT
    Maximum Length: 1
    Default Value: true
    Contains one of the following values. Y: synchronize the asset with the application that controls the lot. N: do not synchronize. The default value is Y. The response payload translates Y to true and N to false.
  • Title: Item
    Value that uniquely identifies the item that the asset references. This attribute is required to create an asset. You cannot update this attribute. Enable asset tracking for the item must use full lifecycle, and Allow Maintenance asset must equal YES.
  • Value that uniquely identifies the organization that creates or uses the asset. This attribute is required. You can update this attribute.
  • Abbreviation that identifies the current location of the asset.
  • Value that uniquely identifies the organization where the asset currently resides. If the location context is ORA_WORK_CENTER, and if you can update ORA_INVENTORY, then LocationOrganizationId is required.
  • Title: Lot
    Maximum Length: 80
    Number that uniquely identifying the lot that that the asset references to control the item in inventory. Applies when the item is lot controlled. If the lot number does not exist in inventory, then the application creates a lot in inventory. This attribute is optional. You can update this attribute.
  • Maximum Length: 1
    Contains one of the following values. Y: enable the asset for a maintenance activity, such as a maintenance program or maintenance work order. N: do not enable. The default value is true. The application examines attribute Allow Maintenance Asset to determine how to set attribute MaintainableFlag.
  • Flexfields
    Title: Flexfields
    The Flexfields for Maintenance Assets resource manages descriptive flexfields that contain details about the maintenance assets.
  • Maximum Length: 1
    Contains one of the following values. Y: allow the application to create a work order for the asset. N: do not allow. The default value is Y.
  • Value that uniquely identifies the organization that creates or uses the asset. This attribute is required. You can update this attribute.
  • Parts
    Title: Parts
    The Parts Lists resource manages parts lists for the components that the maintenance asset requires.
  • Abbreviation that identifies the postal area where the asset resides.
  • Province where the asset resides.
  • Default Value: 1
    Quantity for the item that the asset references. If the item is serial controlled, then the quantity cannot exceed one. This attribute is required to create the asset.
  • Title: Serial Number
    Maximum Length: 80
    Number that uniquely identifies the serial that the asset references. Applies when item is serial controlled. If the serial number already exists in inventory, then it must be at the Out of Storage status and, no other asset can reference it. This attribute is optional. You can update this attribute. If the lot number does not exist in inventory, then the application creates a serial in inventory with status Out of Storage.
  • State of the customer address where the asset is located.
  • Title: Work Center
    Value that uniquely identifies the work center where the asset currently resides. If the location context is ORA_WORK_CENTER, and if you can update this context, then the application can specify a value for the work center. If the location context is not ORA_WORK_CENTER, or if you cannot update this context, then the application sets the location context to ORA_UNKNOWN.
Nested Schema : Meters
Type: array
Title: Meters
The Asset Meters resource gets the meters associated with the maintenance assets.
Show Source
Nested Schema : Flexfields
Type: array
Title: Flexfields
The Flexfields for Maintenance Assets resource manages descriptive flexfields that contain details about the maintenance assets.
Show Source
Nested Schema : Parts
Type: array
Title: Parts
The Parts Lists resource manages parts lists for the components that the maintenance asset requires.
Show Source
Nested Schema : maintenanceAssets-AssetMeter-item-post-request
Type: object
Show Source
Nested Schema : maintenanceAssets-MaintenanceAssetDFF-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Value that uniquely identifies the asset for each component. You can create only one relationship between each value that attribute ListComponentId specifies and that AssetId specifies.
  • Title: Quantity
    Quality of each part list component for the asset. This attribute is optional when creating a part list component for the asset.
  • Value that uniquely identifies the item that is part of the part list for the asset. Asset Item cannot be part of the part list for the same asset.
  • Value that uniquely identifies the organization that creates or uses the asset. The itemOrganizationId for the asset and for the parts list component use the same value.
  • Value that uniquely identifies the parts list item that the asset references.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : maintenanceAssets-item-response
Type: object
Show Source
  • Date when the asset becomes inactive. This attribute is optional. This date must have already occurred and it must occur later or on the same date as the end date for the customer asset. If the end date for the active asset contains a value, then you cannot update other attributes.
  • First line of the customer address where the asset is located.
  • Second line of the customer address where the asset is located.
  • Third line of the customer address where the asset is located.
  • Fourth line of the customer address where the asset is located.
  • Value that uniquely identifies the asset charge. The application creates this value when it creates the asset charge. This attribute is read-only.
  • Meters
    Title: Meters
    The Asset Meters resource gets the meters associated with the maintenance assets.
  • Title: Number
    Maximum Length: 80
    Number that uniquely identifies the asset. This attribute is optional. If you do not provide a value, then the application uses the value that identifies the asset.
  • Contains one of the following values. Y: create component assets. Expand the primary bill of materials for the item, and then use the bill of materials for the components to create child items for the asset. N: do not create child assets from the primary bill of material. The default value is N. The response payload translates Y to true and N to false.
  • City where the asset is located.
  • Country where the asset is located.
  • County where the asset is located.
  • Maximum Length: 80
    Abbreviation that uniquely identifies the location context where the asset currently resides. The ORA_CSE_CURRENT_LOC_CONTEXT lookup defines the values that you can use with this attribute, where the customization level is System. This attribute is required when you create the asset. You can update this attrbute. You cannot use location context ORA_INVENTORY as the context when creating or updating the maintenance asset. An inventory transaction can modify ORA_INVENTORY.
  • Value that uniquely identifies the location where the asset currently resides. If the location context is ORA_INTERNAL_LOCATION or ORA_EXTERNAL_LOCATION, then you can specify a value for this attribute. If the location context is ORA_CUSTOMER, then the application gets the value for this attribute from the customer site. If you do not provide a value for this attribute, then the application sets the location context to ORA_UNKNOWN. You can update the value that identifies the current location.
  • Value that uniquely identifies the customer site where the asset currently resides. If the location context is ORA_CUSTOMER, then this attribute is required. You can update this attribute.
  • Title: Description
    Maximum Length: 240
    Description of the asset that the user defines. It can describe the features, characteristics, and so on of the asset. This attribute is optional. You can update this attribute.
  • Maximum Length: 30
    Abbreviation that uniquely identifies the work order type. The ORA_MNT_WO_SUB_TYPE lookup defines the values that you can use with this attribute. The application uses this attribute to set the work order subtype when it creates a work order for the asset. This attribute is optional to create the asset. You can update this attribute.
  • Maximum Length: 30
    Abbreviation that uniquely identifies the work order type. The ORA_MNT_WO_TYPE lookup defines the values that you can use with this attribute. The application uses this attribute to set the work order type when it creates a work order for the asset. This attribute is optional to create the asset. You can update this attribute.
  • Title: Enable IoT
    Maximum Length: 1
    Default Value: true
    Contains one of the following values. Y: synchronize the asset with the application that controls the lot. N: do not synchronize. The default value is Y. The response payload translates Y to true and N to false.
  • Title: Item Description
    Read Only: true
    Maximum Length: 240
    Description of the item that the asset references. This attribute is read-only.
  • Title: Item
    Value that uniquely identifies the item that the asset references. This attribute is required to create an asset. You cannot update this attribute. Enable asset tracking for the item must use full lifecycle, and Allow Maintenance asset must equal YES.
  • Read Only: true
    Maximum Length: 300
    Number that uniquely identifies the item that the asset references. The application determines this value from the attribute that identifies the item. This attribute is read-only.
  • Value that uniquely identifies the organization that creates or uses the asset. This attribute is required. You can update this attribute.
  • Links
  • Abbreviation that identifies the current location of the asset.
  • Value that uniquely identifies the organization where the asset currently resides. If the location context is ORA_WORK_CENTER, and if you can update ORA_INVENTORY, then LocationOrganizationId is required.
  • Title: Lot
    Maximum Length: 80
    Number that uniquely identifying the lot that that the asset references to control the item in inventory. Applies when the item is lot controlled. If the lot number does not exist in inventory, then the application creates a lot in inventory. This attribute is optional. You can update this attribute.
  • Maximum Length: 1
    Contains one of the following values. Y: enable the asset for a maintenance activity, such as a maintenance program or maintenance work order. N: do not enable. The default value is true. The application examines attribute Allow Maintenance Asset to determine how to set attribute MaintainableFlag.
  • Flexfields
    Title: Flexfields
    The Flexfields for Maintenance Assets resource manages descriptive flexfields that contain details about the maintenance assets.
  • Maximum Length: 1
    Contains one of the following values. Y: allow the application to create a work order for the asset. N: do not allow. The default value is Y.
  • Value that uniquely identifies the organization that creates or uses the asset. This attribute is required. You can update this attribute.
  • Read Only: true
    Maximum Length: 18
    Abbreviation that uniquely identifies the organization that creates or uses the asset. The application determines this value from the organization Id. This attribute is read-only.
  • Parts
    Title: Parts
    The Parts Lists resource manages parts lists for the components that the maintenance asset requires.
  • Abbreviation that identifies the postal area where the asset resides.
  • Province where the asset resides.
  • Default Value: 1
    Quantity for the item that the asset references. If the item is serial controlled, then the quantity cannot exceed one. This attribute is required to create the asset.
  • Title: Serial Number
    Maximum Length: 80
    Number that uniquely identifies the serial that the asset references. Applies when item is serial controlled. If the serial number already exists in inventory, then it must be at the Out of Storage status and, no other asset can reference it. This attribute is optional. You can update this attribute. If the lot number does not exist in inventory, then the application creates a serial in inventory with status Out of Storage.
  • State of the customer address where the asset is located.
  • Title: Work Center
    Value that uniquely identifies the work center where the asset currently resides. If the location context is ORA_WORK_CENTER, and if you can update this context, then the application can specify a value for the work center. If the location context is not ORA_WORK_CENTER, or if you cannot update this context, then the application sets the location context to ORA_UNKNOWN.
  • Title: Name
    Read Only: true
    Maximum Length: 120
    Name of the work center that the asset references. The application uses attribute WorkCenterId to determine the value for attribute WorkCenterName.
Nested Schema : Meters
Type: array
Title: Meters
The Asset Meters resource gets the meters associated with the maintenance assets.
Show Source
Nested Schema : Flexfields
Type: array
Title: Flexfields
The Flexfields for Maintenance Assets resource manages descriptive flexfields that contain details about the maintenance assets.
Show Source
Nested Schema : Parts
Type: array
Title: Parts
The Parts Lists resource manages parts lists for the components that the maintenance asset requires.
Show Source
Nested Schema : maintenanceAssets-AssetMeter-item-response
Type: object
Show Source
  • Read Only: true
    Date when the application can no longer use the meter template for the asset. The application sets this value to the default, active end date for the meter that it created for the asset. The date must be equal to or greater than the system date, and it must be greater than the value in attribute ActiveStartDate.
  • Read Only: true
    Date when the application can use the meter template for the asset. The application sets this value to the active start date for the meter that it created for the asset, by default. The date must be equal to or greater than the system date, and less than the value in attribute ActiveEndDate.
  • Links
  • Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the meter template. This value must use uppercase letters and it can be alphanumeric. Each meter that the application creates for the asset references this value.
  • Read Only: true
    Value that uniquely identifies the meter template. The application creates this value when it creates a meter template. This attribute is read-only.
  • Read Only: true
    Maximum Length: 240
    Description of the meter template. Each meter that the application creates and displays in the contextual action area for the meter that references this value.
  • Read Only: true
    Value that uniquely identifies the asset meter. The application uses this value and the value that identifies the asset to identify the asset meter, and then record a new meter reading. As an alternative, the application can use the meter code and the asset number to identify the asset meter and record the new reading.
  • Read Only: true
    Maximum Length: 120
    Name of the meter template. Each meter that the application creates for the asset references this value. The combined values of attributes MeterName and MeterCode provide a unique value that identifies the meter template.
  • Read Only: true
    Value that uniquely identifies the business object that the application creates for this meter. This value represents the asset identifier that the application gets from the asset that references the meter.
  • Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the type of meter in the meter template. Each meter that the application creates for the asset references this value. Values for MeterCode are continuous, similar to an odometer, or a gauge, similar to a thermometer. You can use the ORA_CSE_METER_TYPE_CODE lookup to examine the values that this attribute uses.
  • Read Only: true
    Maximum Length: 30
    Abbreviation that uniquely identifies whether the application created the meter reading for an asset or for a contract line. Contains one of the following values: ORA_ASSET or ORA_CONTRACT. You can use the ORA_CSE_METER_USAGE_CODE lookup to examine the values that this attribute uses.
  • Read Only: true
    Maximum Length: 30
    Direction of the meter reading in the meter template. Each meter that the application creates for the asset references this value. ReadingDirection specifies to record the meter reading in ascending, descending, or bidirectional direction, depending on the type of meter and type of reading. The application limits the combination of meter, reading type, and direction to the following usages: continuous absolute ascending, continuous absolute change, continuous change ascending, continuous change descending, or gauge absolute bidirectional. You can use the ORA_CSE_DIRECTION lookup to examine the values that this attribute uses.
  • Read Only: true
    Maximum Length: 30
    Abbreviation that identifies the type of meter reading. Each meter that the application creates for the asset references this value. ReadingTypeCode specifies whether to record the meter reading as an absolute value or a change value, depending on the meter type. The application limits the combination of meter and reading type to the following usages: continuous absolute, continuous change, or gauge absolute. You can use the ORA_CSE_READING_TYPE_CODE lookup to examine the values that this attribute uses.
  • Read Only: true
    Maximum Length: 1
    Contains one of the following values. If true, then allow the meter template to reset the asset meter when the application records a new reading in the meter reading history. If false, then do not allow. If true, then you must define attribute ResetValue. The default value is false. Each meter that the application creates for the asset references this value. You cannot define an indicator for a gauge meter.
  • Read Only: true
    Reset value for the meter in the meter template. The application uses ResetValue as the reset value when it records the meter reading history. If you set attribute ResetAllowedFlag to true, then you must specify a value for attribute ResetValue. Each meter that the application creates for the asset references ResetValue. ResetValue must contain a value that is greater than zero, and that is equal to the lowest reading value that the physical meter allows for the asset.
  • Read Only: true
    Maximum Length: 1
    Contains one of the following values. If true, then allow the application to rollover the asset meter in the meter template when it records a new reading in the meter reading history. If false, then do not allow rollover. If true, then you must also specify values for attributes RolloverMaximumValue and RolloverResetValue. The default value for RolloverAllowedFlag is false. RolloverAllowedFlag is required. Each meter that the application creates for the asset references RolloverAllowedFlag. You can allow rollover only for a continuous absolute or for a change ascending meter, and only for a meter that can reach a maximum value before it rolls over to a reset value, and then continue recording.
  • Read Only: true
    Maximum value that the application can set for the asset meter in the meter template when it records a new reading in the meter reading history. If attribute RolloverAllowedFlag is true, then you must provide a value for RolloverMaximumValue. Each meter that the application creates for the asset references RolloverMaximumValue. The value in RolloverMaximumValue must be greater than zero, greater than the value in attribute RolloverResetValue, and must equal the maximum cumulative value that the physical meter allows for the asset.
  • Read Only: true
    Minimum value that the application can set for the asset meter in the meter template when it records a new reading in the meter reading history. If attribute RolloverAllowedFlag is true, then you must provide a value for RolloverResetValue. Each meter that the application creates for the asset references RolloverResetValue. The value in RolloverResetValue must be greater than or equal to zero, and must equal the minimum value that the physical meter allows for the asset.
  • Read Only: true
    Maximum Length: 3
    Abbreviation that identifies the unit of measure that the meter template uses. Each meter that the application creates for the asset references this value. UOMCode provides a context that you can use to define, record, or view meter history. You can use the ORA_CSE_UOM_CODE lookup to examine the values that this attribute uses.
Nested Schema : maintenanceAssets-MaintenanceAssetDFF-item-response
Type: object
Show Source
Nested Schema : maintenanceAssets-PartsListComponent-item-response
Type: object
Show Source
  • Value that uniquely identifies the asset for each component. You can create only one relationship between each value that attribute ListComponentId specifies and that AssetId specifies.
  • Title: Quantity
    Quality of each part list component for the asset. This attribute is optional when creating a part list component for the asset.
  • Value that uniquely identifies the item that is part of the part list for the asset. Asset Item cannot be part of the part list for the same asset.
  • Value that uniquely identifies the organization that creates or uses the asset. The itemOrganizationId for the asset and for the parts list component use the same value.
  • Links
  • Value that uniquely identifies the parts list item that the asset references.
Back to Top

Examples

This example describes how to create one maintenance asset.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/maintenanceAssets"

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
    "AssetNumber": "Fork Lift Asset 01",
    "ItemOrganizationId": 207,
    "ItemId": 300100013645864,
    "SerialNumber": "ADS-02",
    "Description": "Fork Lift Asset 01"
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
    "CurrentLocationContext": "ORA_UNKNOWN",
    "NewWoAllowedFlag": false,
    "ItemOrganizationId": 207,
    "ItemId": 300100013645864,
    "AssetNumber": "Fork Lift Asset 01",
    "LocationOrganizationId": 207,
    "MaintainableFlag": false,
    "SerialNumber": null,
    "DfltWoType": null,
    "ActiveEndDate": null,
    "DfltWoSubType": null,
    "AssetId": 100100053525029,
    "Description": "Fork Lift Asset 01",
    "WorkCenterId": null,
    "ItemNumber": "alm-lot-srl-001",
    "ItemDescription": "Lot and Serialized Asset Item",
    "WorkCenterName": null,
    "OrganizationCode": "M1",
}
Back to Top