Get a Data Model

To get details about an existing Data Model, you need to know your workspace identifier and the Data Model identifier. The sample code uses a dataModelId of 55 and a workspaceId of 123456. Use the actual ID values of your workspace and Data Model.

The following parameters are the base parameters required to get a Data Model.

Get a Data Model

curl 'https://tdm.blazemeter.com/api/v1/workspaces/123456/datamodels/55' \
    -X GET \
    -H 'accept: application/json;charset=UTF-8'

Get a Data Model Response Attributes

Attributes

  • dataModelId integer

    required

    The Data Model identifier

Response200 OK

{
  "api_version": 1,
  "request_id": "string",
  "result": {
    "id": "datamodel/Pet",
    "title": "Pet",
    "description": "A Pet can be dog or cat",
    "type": "object",
    "kind": "tdm",
    "repeat": 1,
    "properties": {
      "name": {
        "type": "string"
      },    
      "email": {
        "type": "string"
      }
    },
    "requirements": {
      "name": "randText(5, 10)",
      "email": "$name + '@google.com'"
    }
  }
}