Return the asset object if the assetCode exists.
Rate limit range : High
GET
/eTech/rest/ws/referentials/v1/assets/code:{assetCode}
curl \
--request GET 'https://ws-eu1.praxedo.com/eTech/rest/ws/referentials/v1/assets/code:asset-123456' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Asset with mandatory fields only defined
{
"assetCode": "MOTOR_001",
"label": "Motor dyson",
"customerCode": "LISI",
"siteCode": "LISI_VERNON",
"assetTypeCode": "MOTOR",
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"assetCode": "MOTOR_001",
"label": "Motor dyson",
"customerCode": "LISI",
"siteCode": "LISI_VERNON",
"assetTypeCode": "MOTOR",
"officeCode": "IDF",
"description": "Electrical motor for factory engines",
"commissioning": {
"startDate": "2024-01-15",
"status": "ACTIVE"
},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"assetCode": "PTO_8273",
"label": "PTO_8273DUJAR",
"customerCode": "CUSTOMER_001",
"siteCode": "SITE-28E82",
"assetTypeCode": "PTO",
"officeCode": "PARIS",
"parentAssetCode": "BOX",
"description": "PTO of Mr Dujardin",
"commissioning": {
"startDate": "2021-06-08",
"status": "INACTIVE"
},
"lastUpdate": "2024-09-12 13:00:27 UTC",
"customFields": {
"textCustomFieldCode": {
"textValue": "24 months"
},
"checkBoxCustomFieldCode": {
"booleanValue": true
},
"dropDownCustomFieldCode": {
"dropDownValue": "High"
},
"urlCustomFieldCode": {
"urlValue": "https://asset-manual.com"
},
"dateCustomFieldCode": {
"dateValue": "2024-12-25"
},
"dateTimeCustomFieldCode": {
"dateTimeValue": "2024-12-25T10:00"
},
"timeCustomFieldCode": {
"timeValue": 36000
},
"gpsCustomFieldCode": {
"gpsValue": {
"longitude": 48.8567,
"latitude": 2.3508
}
}
}
}
{
"assetCode": "SUB_001",
"label": "Sub Component",
"customerCode": "CUSTOMER_001",
"siteCode": "SITE_001",
"assetTypeCode": "COMPONENT",
"parentAssetCode": "MAIN_001",
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"assetCode": "PUMP_001",
"label": "Water Pump System",
"customerCode": "CUSTOMER_001",
"siteCode": "FACTORY_SITE",
"assetTypeCode": "PUMP",
"officeCode": "MAINTENANCE_OFFICE",
"parentAssetCode": "WATER_SYSTEM",
"description": "Primary water pump for cooling system",
"commissioning": {
"startDate": "2023-03-20",
"status": "ACTIVE"
},
"lastUpdate": "2024-09-12 13:00:27 UTC",
"customFields": {
"textCustomFieldCode": {
"textValue": "SN123456789"
},
"checkBoxCustomFieldCode": {
"booleanValue": false
},
"dropDownCustomFieldCode": {
"dropDownValue": "Low"
},
"urlCustomFieldCode": {
"urlValue": "https://sub-asset-doc.com"
},
"dateCustomFieldCode": {
"dateValue": "2024-11-01"
},
"dateTimeCustomFieldCode": {
"dateTimeValue": "2024-12-15T09:00"
},
"timeCustomFieldCode": {
"timeValue": 32400
},
"gpsCustomFieldCode": {
"gpsValue": {
"longitude": 48.8567,
"latitude": 2.3508
}
}
}
}
Response examples (400)
{
"errors": [
{
"code": "referentials.asset.code.mandatory",
"message": "Missing code in path."
}
],
"errorReference": "779b11d0ae8145aa9b106b049091b972"
}
Response examples (401)
401 unauthorized
{
"errors": [
{
"code": "unauthorized.nocredentials",
"message": "No credentials."
}
],
"errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
"errors": [
{
"code": "unauthorized.badcredentials",
"message": "Bad Credentials."
}
],
"errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (403)
{
"errors": [
{
"code": "access.forbiden",
"message": "You don't have the rights to access this resource."
}
],
"errorReference": "a745dc4c5a2b473aaf8ce94c9260aa8f"
}
Response examples (404)
{
"errors": [
{
"code": "referentials.asset.code.notfound",
"message": "Asset with code 'ASSET_001' not found."
}
],
"errorReference": "669b11d0ae8145aa9b106b049091b371"
}
Response examples (429)
{
"errors": [
{
"code": "ratelimiter.toomanyrequest",
"message": "Rejected because of the rate limit definition."
}
],
"errorReference": "973326230a3f44daba6cc34a5939b4fb"
}
Response examples (500)
{
"errors": [
{
"code": "internal.server.error",
"message": "Something went wrong."
}
],
"errorReference": "6377010431314bf6b0b95ec4d32ddae0"
}