Get Asset Metadata

get

/rest/v19/assets/metadata

This resource retrieves metadata describing attributes available for the Assets resource.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : AttributeMetadataBean
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve metadata describing attributes available for the Assets resource by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET  -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/assets/metadata

Response Body Sample

[{
    "variableName": "assetKey",
    "displayName": "Asset Key",
    "name": "Asset Key",
    "description": "Unique key identifier for the asset.",
    "dataType": "string",
    "searchable": true,
    "sortable": true,
    "indexed": true,
    "keyword": true,
    "readonly": false
  }, {
    "variableName": "quantity",
    "displayName": "Quantity",
    "name": "Quantity",
    "description": "The number of units for the asset.",
    "dataType": "integer",
    "searchable": true,
    "sortable": true,
    "indexed": false,
    "keyword": false,
    "readonly": false
  }, {
    "variableName": "startDate",
    "displayName": "Start Date",
    "name": "Start Date",
    "description": "The effective start date of the asset.",
    "dataType": "date",
    "searchable": true,
    "sortable": true,
    "indexed": false,
    "keyword": false,
    "readonly": false
  }
]
Back to Top