Data Asset
Get Data Asset
Endpoint to retrieve a single Data Asset by ID
post/data-asset/{id}/get-item
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
ID of the Data Asset to retrieve
Request body
Example request
{
"select": {
"_id": true,
"createdAt": true,
"updatedAt": true,
"dataStoreName": true,
"dataStoreKind": true,
"assetKind": true,
"freshnessColumn": true
}
}Response
Successful response
Example response
{
"data": {
"_id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"updatedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"deletedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"version": 42,
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"dataStoreId": "123e4567-e89b-12d3-a456-426614174000",
"dataStoreName": "Example short text",
"dataStoreKind": "Example short text",
"assetKey": "This is an example of longer text content that might be stored in this field.",
"schemaName": "This is an example of longer text content that might be stored in this field.",
"name": "This is an example of longer text content that might be stored in this field.",
"assetKind": "Table",
"description": "# Heading\n\nThis is **markdown** content",
"labels": [
{
"_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
],
"rowCountChangeTolerancePercent": 42,
"freshnessColumn": "Example short text",
"columns": {
"key": "value",
"nested": {
"data": 123
}
},
"dbtNode": {
"key": "value",
"nested": {
"data": 123
}
},
"columnCount": 42,
"rowCount": 1000000,
"sizeInBytes": 1000000,
"writeCredits": 42,
"writeBytesBilled": 1000000,
"lastChangedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"lastReadAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"unreadSince": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"updateIntervalInSeconds": 42,
"lastCollectedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"firstSeenAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"isDropped": true,
"droppedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"createdByUserId": "123e4567-e89b-12d3-a456-426614174000"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.