Get Conversion Unit
get
/rest/v19/conversionUnits/{id}
Use this endpoint to retrieve the specified conversion unit. The REST API returns the following items for each conversion unit: unit variable name, identifier, group variable name, unit display name, and a link to the conversion.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
PK for attributes
Response
Supported Media Types
- application/json
Default Response
Root Schema : Conversion Units
Type:
objectTitle:
Show Source
Conversion Units-
groupVarName:
string
Title:
Group Variable NameVariable Name for kind of quantity -
id:
integer
Title:
idPK for attributes -
unitDisplayName:
string
Title:
Unit Variable NameVariable Name for unit of measure -
unitVarName:
string
Title:
Unit Variable NameVariable Name for unit of measure
Examples
The following example shows how to retrieve the specified conversion unit 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" https://sitename.oracle.com/rest/v19/conversionUnits/4115723
Response Body Sample
{
"unitVarName": "m/s",
"id": 4115723,
"groupVarName": "Velocity",
"unitDisplayName": "m/s",
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/conversionUnits/4115723"
}
]
}