Title: `ColumnTypes` is not JSON serializable · Issue #109 · seatable/seatable-api-python · GitHub
Open Graph Title: `ColumnTypes` is not JSON serializable · Issue #109 · seatable/seatable-api-python
X Title: `ColumnTypes` is not JSON serializable · Issue #109 · seatable/seatable-api-python
Description: While trying to use a member of the ColumnTypes class in a dict object, we get a TypeError: Object of type ColumnTypes is not JSON serializable. This is quite counterintuitive as most of the columns functions require a ColumnTypes member...
Open Graph Description: While trying to use a member of the ColumnTypes class in a dict object, we get a TypeError: Object of type ColumnTypes is not JSON serializable. This is quite counterintuitive as most of the column...
X Description: While trying to use a member of the ColumnTypes class in a dict object, we get a TypeError: Object of type ColumnTypes is not JSON serializable. This is quite counterintuitive as most of the column...
Opengraph URL: https://github.com/seatable/seatable-api-python/issues/109
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ColumnTypes` is not JSON serializable","articleBody":"While trying to use a member of the `ColumnTypes` class in a dict object, we get a TypeError: Object of type ColumnTypes is not JSON serializable.\n\nThis is quite counterintuitive as most of the columns functions require a ColumnTypes member instead of a simple string such as 'text' or 'number', whereas you can't provide such a member in an API request such as:\n \n```\nimport requests\nfrom seatable_api import Base, context\nfrom seatable_api.constants import ColumnTypes\n\nbase = Base(context.api_token, context.server_url)\nbase.auth()\n\nurl = f\"https://cloud.seatable.io/api-gateway/api/v2/dtables/{base.dtable_uuid}/columns\"\n\npayload = {\n \"op_type\": \"modify_column_type\",\n \"column_data\": {\n \"table\": \"Table1\",\n \"other_table\": \"Table2\"\n },\n \"table_name\": \"Table1\",\n \"column\": \"aa\",\n \"new_column_type\": ColumnTypes.IMAGE # for now, you have to write 'image'\n}\n\nheaders = {\n \"accept\": \"application/json\",\n \"content-type\": \"application/json\",\n \"authorization\": f\"Bearer {base.jwt_token}\"\n}\n\nresponse = requests.put(url, json=payload, headers=headers)\n\nprint(response.text)\n```","author":{"url":"https://github.com/basteks","@type":"Person","name":"basteks"},"datePublished":"2025-10-28T12:02:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/109/seatable-api-python/issues/109"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:15e794cf-5463-37a8-cda7-3b894fc667c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB9E:3EDB51:1050AFD:15DAE0D:6A5B82DF |
| html-safe-nonce | 3099efaed0c4757d3c25395a76cc8a4674a3052a04060114ab2d344a7d45c031 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjlFOjNFREI1MToxMDUwQUZEOjE1REFFMEQ6NkE1QjgyREYiLCJ2aXNpdG9yX2lkIjoiNzMxNzAxNjY3MjIwNDQ1NjY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d2dd70061d3bffa2d87af9faa28ad7b275e0deb5dd26ceef4ba4e5e2750c5a76 |
| hovercard-subject-tag | issue:3561255171 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/seatable/seatable-api-python/109/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87b425334e0042084438c3f6512ea0ef6b1ab279358ea456636f3c9c5930487d/seatable/seatable-api-python/issues/109 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87b425334e0042084438c3f6512ea0ef6b1ab279358ea456636f3c9c5930487d/seatable/seatable-api-python/issues/109 |
| og:image:alt | While trying to use a member of the ColumnTypes class in a dict object, we get a TypeError: Object of type ColumnTypes is not JSON serializable. This is quite counterintuitive as most of the column... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | basteks |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/seatable/seatable-api-python git https://github.com/seatable/seatable-api-python.git |
| octolytics-dimension-user_id | 55628275 |
| octolytics-dimension-user_login | seatable |
| octolytics-dimension-repository_id | 230085244 |
| octolytics-dimension-repository_nwo | seatable/seatable-api-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 230085244 |
| octolytics-dimension-repository_network_root_nwo | seatable/seatable-api-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width