Data Asset
Create Data Asset
Endpoint to create a new Data Asset
post/data-asset
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"dataStoreId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"assetKey": "This is an example of longer text content that provides detailed information.",
"name": "This is an example of longer text content that provides detailed information."
}
}Response
Created successfully
Example response
{
"data": {
"_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"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"
},
"project": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"dataStore": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"dataStoreId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"dataStoreName": "Example Text",
"dataStoreKind": "Example Text",
"assetKey": "This is an example of longer text content that provides detailed information.",
"schemaName": "This is an example of longer text content that provides detailed information.",
"name": "This is an example of longer text content that provides detailed information.",
"assetKind": "Example Text",
"description": null,
"labels": [
{
"_id": "cccccccc-cccc-cccc-cccc-cccccccccccc"
},
{
"_id": "dddddddd-dddd-dddd-dddd-dddddddddddd"
}
],
"rowCountChangeTolerancePercent": 42,
"freshnessColumn": "Example Text",
"columns": {
"key": "value",
"nested": {
"data": 123
}
},
"dbtNode": {
"key": "value",
"nested": {
"data": 123
}
},
"columnCount": 42,
"rowCount": 42,
"sizeInBytes": 42,
"writeCredits": 42,
"writeBytesBilled": 42,
"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"
},
"createdByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.