Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.15 KB

File metadata and controls

53 lines (40 loc) · 1.15 KB

GetDatasetResponse

Response body for GET /v1/datasets/{id}

Properties

Name Type
columns Array<ColumnInfo>
createdAt Date
id string
label string
latestVersion number
pinnedVersion number
schemaName string
sourceType string
tableName string
updatedAt Date

Example

import type { GetDatasetResponse } from '@hotdata/sdk'

// TODO: Update the object below with actual values
const example = {
  "columns": null,
  "createdAt": null,
  "id": null,
  "label": null,
  "latestVersion": null,
  "pinnedVersion": null,
  "schemaName": null,
  "sourceType": null,
  "tableName": null,
  "updatedAt": null,
} satisfies GetDatasetResponse

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as GetDatasetResponse
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]