Workspaces API

Get details for a dataset

GET /api/workspaces/:workspace_id/datasets/:id

Parameters

Name Description
workspace_id Id of a workspace
id Id of a dataset

Request

Headers

Host: example.org
Cookie: _session_id=UzdHQ242cEFQZDV6VzluUitDa3N0Tnd4WEZwR01pOXNYRmNFZEVDRnBzamxmL2t3eURPWDRlaCtaRGo0TVlmRjN6LzZEYjZvMlRReWJmUThyQUdMNS9wRGhhMWpycEkzcWFEZUViSWMwL0M1NUU1d1R1VVFhRFdXQUpoRktVSDNjc0diOG9COFBFck1QYWFjNm9FSzhITGEwNXpuTzlxUXFTSU1WL3pNZlN6Zng5aWxqR21LWWd0VWFiK1FDVDVvb2ZjTTVBUDliMzdUUkJJdkw3YXNlU1lNTXdCVzBMcDZWSlp0ZWk0YlI4cjAyMUp6a2JKOE96Tms3cDBLQVpORldEUUdaRTRGcHRYOXAyM1ZSUXhJdG5jenpBUkdySm5MNGQ1RXYwNklQeGYxT0wrbVl3ejkyUVdPdHVLOEV2SEZFdFdNQXU3S1l2dktWUWVqM0RNWlpPMk9ubFQrdG80QVRiUEFjZmxuY1lxWFZmblBLRWp5a1dXWXhnK0JtYktobFpyK08vRkNpTmhsdjRkei90cnkrV3hBQUp4VGtaNHIxNEd4cXRndlVhMD0tLVNsNU5qV01yZjBRbzhFTU5TQVhxTEE9PQ%3D%3D--c75821e3ac77afe5cb3c240edb3c329c536b5d00

Route

GET /api/workspaces/1000008/datasets/1000005

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
ETag: W/"5a724a521b957ae541f9b90a5b0d5235"
Last-Modified: Tue, 02 Apr 2019 22:09:47 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=dUtubEg2UVBCSFM1TG9oQXBBSEdDOTZaVVQvRnY5QXFrYXl4ZnhTb08yencxNldLRk5kbGhIM1FSUDAvRFo3bzd6aGllNE92UXJidjczVlBiYzgvRkV5T3hENENyeDRaU2RpMmQzSFFydGhuYnN4NTlqZUI4c1JibkU3SS9ydDg3dVBNWkZBZTlhV3ZicWVoMnBIS3pFNlNRdWFJZndFOHZETFVGc1o1K3BwdkFmMUpSL1FLaDhFMk9vVWlkeS9FN055eW84b3pYd0NPMzNmMFFVTnhocDg5ZC9FcncxZmxjaWJPYUFhRUVSeEFiTEVKcGVYM1czcE8vVUU4QWVPbmprb1NXc3htcHd2amYvNFpNcFlHSFE0bVpCUUNYMGZnZmdZdHRYN2FRUS9PRWVRaG1rZFY4UERHaUMyQmx0MUY3RG0rMjRReWVocHd4VjNhY1FxeGphRWNZK2lFaytySmNmWEhCSDBEdzlqY1VJZFhYZ2hUb0dZd1pqTU1mSnlBd0VuZ0tlOEtyRWF6S3JZR3Jwd0pQVzFHOVR4WjVhVTYxZzZKTHczM2lMdE5XWDRvNkp4YlpPMTA1WXRKWDAvdy0tNHovVnVzWVg4Tk5hNld0aktxSjRrUT09--bf64bad859fdd435ef2cd6dfd6b3ddaa81aa6a6f; path=/; HttpOnly
X-Request-Id: e1b8a54b-f365-4a29-83eb-7426648b6c93
X-Runtime: 0.122814
Content-Length: 3887

Status

200 OK

Body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
 
{
  "response": {
    "recent_comments": [
      {
        "body": "Note on workspace dataset",
        "author": {
          "id": 1000006,
          "username": "owner",
          "first_name": "searchquery",
          "last_name": "User_1",
          "image": {
            "original": "/paperclip/users/images/001/000/006/original/User.png?1554329366",
            "icon": "/paperclip/users/images/001/000/006/icon/User.png?1554329366",
            "entity_type": "image",
            "complete_json": true
          },
          "is_deleted": null,
          "auth_method": "internal",
          "ldap_group_id": null,
          "user_type": "analytics_developer",
          "entity_type": "user",
          "using_default_image": false,
          "active_license": true,
          "is_siteadmin": false,
          "roles": [
            "data_admin"
          ]
        },
        "timestamp": "2019-04-03T22:09:44Z",
        "complete_json": true
      }
    ],
    "comment_count": 2,
    "id": 1000005,
    "object_name": "default_table",
    "schema": {
      "id": 1000006,
      "name": "default",
      "dataset_count": 0,
      "refreshed_at": "2019-04-03T22:09:24Z",
      "entity_type": "gpdb_schema",
      "is_deleted": null,
      "stale": false,
      "database": {
        "id": 1000001,
        "name": "default",
        "data_source": {
          "id": 1000002,
          "name": "Owners",
          "entity_type": "gpdb_data_source",
          "is_deleted": null,
          "shared": false,
          "owner_id": 1000006,
          "version": "9.1.2 - FactoryVersion",
          "is_hawq": null,
          "state": "online",
          "public": false
        },
        "entity_type": "gpdb_database",
        "complete_json": true
      },
      "complete_json": true
    },
    "entity_type": "dataset",
    "entity_subtype": "SANDBOX_TABLE",
    "stale": false,
    "stale_at": null,
    "is_deleted": null,
    "associated_workspaces": [],
    "workspace": {
      "id": 1000008,
      "name": "Public",
      "is_deleted": null,
      "entity_type": "workspace",
      "archived": false,
      "public": true,
      "archived_at": null,
      "summary": "searchquery",
      "permission": [
        "admin",
        "create_workflow"
      ],
      "datasets_count": 11,
      "members_count": 2,
      "workfiles_count": 17,
      "insights_count": 1,
      "recent_insights_count": 1,
      "recent_comments_count": 9,
      "has_recent_comments": true,
      "has_milestones": true,
      "workspace_stage": {
        "default": true,
        "id": 1000000,
        "name": "Define",
        "position": 0,
        "description_long": "Define the essential components of the project.",
        "description_short": "Define the two essential components of a machine learning project. What business problem are we solving? How should the solution change the way our business operates? Locate or acquire all necessary data.",
        "complete_json": true
      },
      "workspace_stage_id": 1000000,
      "archiver": null,
      "image": {
        "original": "",
        "icon": "",
        "entity_type": "image",
        "complete_json": true
      },
      "tags": [],
      "has_added_member": false,
      "has_added_workfile": true,
      "has_added_sandbox": true,
      "has_changed_settings": false,
      "sandbox_info": {
        "id": 1000006,
        "name": "default",
        "dataset_count": 0,
        "refreshed_at": "2019-04-03T22:09:24Z",
        "entity_type": "gpdb_schema",
        "is_deleted": null,
        "stale": false,
        "database": {
          "id": 1000001,
          "name": "default",
          "data_source": {
            "id": 1000002,
            "name": "Owners",
            "entity_type": "gpdb_data_source",
            "is_deleted": null,
            "shared": false,
            "owner_id": 1000006,
            "version": "9.1.2 - FactoryVersion",
            "is_hawq": null,
            "state": "online",
            "public": false
          },
          "entity_type": "gpdb_database",
          "complete_json": true
        },
        "complete_json": true
      },
      "show_sandbox_datasets": true,
      "owner": {
        "id": 1000006,
        "username": "owner",
        "first_name": "searchquery",
        "last_name": "User_1",
        "image": {
          "original": "/paperclip/users/images/001/000/006/original/User.png?1554329366",
          "icon": "/paperclip/users/images/001/000/006/icon/User.png?1554329366",
          "entity_type": "image",
          "complete_json": true
        },
        "is_deleted": null,
        "auth_method": "internal",
        "ldap_group_id": null,
        "user_type": "analytics_developer",
        "entity_type": "user",
        "using_default_image": false,
        "active_license": true,
        "is_siteadmin": false,
        "roles": [
          "data_admin"
        ],
        "email": "chorususer282295@alpinenow.com",
        "title": "Chief Data Scientist",
        "dept": "Corporation Corp., Inc.",
        "notes": "One of our top performers",
        "admin": false,
        "subscribed_to_emails": true,
        "tags": [],
        "deactivated_at": null,
        "complete_json": true
      },
      "is_member": true,
      "is_project": true,
      "project_status": "on_track",
      "project_status_reason": null,
      "milestone_count": 3,
      "milestone_completed_count": 0,
      "project_target_date": "2019-04-28T00:00:00Z",
      "complete_json": true
    },
    "has_credentials": true,
    "tableau_workbooks": [],
    "tags": [],
    "object_type": "TABLE",
    "complete_json": true
  }
}