|
988 | 988 | { |
989 | 989 | "cell_type": "markdown", |
990 | 990 | "metadata": {}, |
991 | | - "source": [ |
992 | | - "The API supports the following column types:\n", |
993 | | - "\n", |
994 | | - "- `number`: Numeric values\n", |
995 | | - "- `longText`: Text content\n", |
996 | | - "- `select`: Single selection from predefined options\n", |
997 | | - "- `date`: Date values\n", |
998 | | - "- `multiSelect`: Multiple selections from predefined options\n", |
999 | | - "- `checkbox`: Boolean values\n", |
1000 | | - "- `custom`: Custom column types with specific behavior\n", |
1001 | | - "\n", |
1002 | | - "Each column type has specific settings that can be configured through the `settings` object." |
1003 | | - ] |
| 991 | + "source": [] |
1004 | 992 | }, |
1005 | 993 | { |
1006 | 994 | "cell_type": "code", |
|
1182 | 1170 | { |
1183 | 1171 | "data": { |
1184 | 1172 | "text/plain": [ |
1185 | | - "{'items': [{'id': 'new_column_3',\n", |
1186 | | - " 'name': 'New Column 3',\n", |
1187 | | - " 'type': 'text',\n", |
1188 | | - " 'settings': {'id': 'new_column_3',\n", |
1189 | | - " 'name': 'New Column 3',\n", |
1190 | | - " 'type': 'text',\n", |
1191 | | - " 'max_length': 255,\n", |
1192 | | - " 'is_required': True},\n", |
1193 | | - " 'created_at': '2025-04-10T02:22:07.300895+00:00',\n", |
1194 | | - " 'updated_at': '2025-04-10T02:22:07.300895+00:00',\n", |
1195 | | - " 'datatable_id': 'ebc3dd3e-f88b-4f8b-8c72-6cfcae0a0cd4'}],\n", |
| 1173 | + "{'items': [{'id': 'dQ7hCb1AUfog',\n", |
| 1174 | + " 'name': 'tags_color_coded',\n", |
| 1175 | + " 'type': 'select',\n", |
| 1176 | + " 'settings': {'id': 'dQ7hCb1AUfog',\n", |
| 1177 | + " 'name': 'tags_color_coded',\n", |
| 1178 | + " 'type': 'select',\n", |
| 1179 | + " 'width': 255,\n", |
| 1180 | + " 'options': [{'name': 'red', 'color': 'hsl(0, 85%, 60%)', 'value': 'red'},\n", |
| 1181 | + " {'name': 'green', 'color': 'hsl(30, 85%, 60%)', 'value': 'green'},\n", |
| 1182 | + " {'name': 'blue', 'color': 'hsl(45, 85%, 60%)', 'value': 'blue'}],\n", |
| 1183 | + " 'isVisible': True,\n", |
| 1184 | + " 'isEditable': True},\n", |
| 1185 | + " 'created_at': '2025-04-16T19:00:39.936764+00:00',\n", |
| 1186 | + " 'updated_at': '2025-04-16T19:00:39.936764+00:00',\n", |
| 1187 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'},\n", |
| 1188 | + " {'id': 'eCAiMBRqm0Uc',\n", |
| 1189 | + " 'name': 'id',\n", |
| 1190 | + " 'type': 'number',\n", |
| 1191 | + " 'settings': {'id': 'eCAiMBRqm0Uc',\n", |
| 1192 | + " 'name': 'id',\n", |
| 1193 | + " 'type': 'number',\n", |
| 1194 | + " 'width': 255,\n", |
| 1195 | + " 'isVisible': True,\n", |
| 1196 | + " 'isEditable': True},\n", |
| 1197 | + " 'created_at': '2025-04-16T19:00:39.971857+00:00',\n", |
| 1198 | + " 'updated_at': '2025-04-16T19:00:39.971857+00:00',\n", |
| 1199 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'},\n", |
| 1200 | + " {'id': 'fRegl7Ucx3Sp',\n", |
| 1201 | + " 'name': 'description',\n", |
| 1202 | + " 'type': 'longText',\n", |
| 1203 | + " 'settings': {'id': 'fRegl7Ucx3Sp',\n", |
| 1204 | + " 'name': 'description',\n", |
| 1205 | + " 'type': 'longText',\n", |
| 1206 | + " 'width': 255,\n", |
| 1207 | + " 'isVisible': True,\n", |
| 1208 | + " 'isEditable': True,\n", |
| 1209 | + " 'max_length': 1000},\n", |
| 1210 | + " 'created_at': '2025-04-16T19:00:40.055047+00:00',\n", |
| 1211 | + " 'updated_at': '2025-04-16T19:00:40.055047+00:00',\n", |
| 1212 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'},\n", |
| 1213 | + " {'id': 'foebrzYhiu9x',\n", |
| 1214 | + " 'name': 'tags',\n", |
| 1215 | + " 'type': 'select',\n", |
| 1216 | + " 'settings': {'id': 'foebrzYhiu9x',\n", |
| 1217 | + " 'name': 'tags',\n", |
| 1218 | + " 'type': 'select',\n", |
| 1219 | + " 'width': 255,\n", |
| 1220 | + " 'options': [{'name': 'tag1', 'color': 'hsl(0, 85%, 60%)', 'value': 'tag1'},\n", |
| 1221 | + " {'name': 'tag2', 'color': 'hsl(30, 85%, 60%)', 'value': 'tag2'},\n", |
| 1222 | + " {'name': 'tag3', 'color': 'hsl(45, 85%, 60%)', 'value': 'tag3'}],\n", |
| 1223 | + " 'isVisible': True,\n", |
| 1224 | + " 'isEditable': True},\n", |
| 1225 | + " 'created_at': '2025-04-16T19:00:40.084457+00:00',\n", |
| 1226 | + " 'updated_at': '2025-04-16T19:00:40.084457+00:00',\n", |
| 1227 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'},\n", |
| 1228 | + " {'id': 'ciAzRUhKct9c',\n", |
| 1229 | + " 'name': 'name',\n", |
| 1230 | + " 'type': 'longText',\n", |
| 1231 | + " 'settings': {'id': 'ciAzRUhKct9c',\n", |
| 1232 | + " 'name': 'name',\n", |
| 1233 | + " 'type': 'longText',\n", |
| 1234 | + " 'width': 255,\n", |
| 1235 | + " 'isVisible': True,\n", |
| 1236 | + " 'isEditable': True,\n", |
| 1237 | + " 'max_length': 1000},\n", |
| 1238 | + " 'created_at': '2025-04-16T19:00:40.232989+00:00',\n", |
| 1239 | + " 'updated_at': '2025-04-16T19:00:40.232989+00:00',\n", |
| 1240 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'},\n", |
| 1241 | + " {'id': 'iAW5muBh9mc251p8-LqKz',\n", |
| 1242 | + " 'name': 'url',\n", |
| 1243 | + " 'type': 'url',\n", |
| 1244 | + " 'settings': {'id': 'iAW5muBh9mc251p8-LqKz',\n", |
| 1245 | + " 'name': 'url',\n", |
| 1246 | + " 'type': 'url',\n", |
| 1247 | + " 'width': 192,\n", |
| 1248 | + " 'position': 5,\n", |
| 1249 | + " 'isVisible': True,\n", |
| 1250 | + " 'isEditable': True},\n", |
| 1251 | + " 'created_at': '2025-04-16T20:13:09.418698+00:00',\n", |
| 1252 | + " 'updated_at': '2025-04-16T20:13:16.914367+00:00',\n", |
| 1253 | + " 'datatable_id': '271b8bc7-2d04-43b8-8960-ce20365f546b'}],\n", |
1196 | 1254 | " 'pagination': {'offset': 0,\n", |
1197 | 1255 | " 'limit': 50,\n", |
1198 | | - " 'total': 1,\n", |
| 1256 | + " 'total': 6,\n", |
1199 | 1257 | " 'order_by': 'created_at',\n", |
1200 | 1258 | " 'sort_dir': 'asc'}}" |
1201 | 1259 | ] |
|
1206 | 1264 | } |
1207 | 1265 | ], |
1208 | 1266 | "source": [ |
1209 | | - "await client.list_dataset_columns(projects[\"items\"][0][\"id\"], datasets[\"id\"])" |
| 1267 | + "await client.list_dataset_columns(projects[\"items\"][0][\"id\"], \"271b8bc7-2d04-43b8-8960-ce20365f546b\")" |
1210 | 1268 | ] |
1211 | 1269 | }, |
1212 | 1270 | { |
|
0 commit comments