Title: PATCH doesn't allow custom data fields · Issue #23 · webflow/webflow-python · GitHub
Open Graph Title: PATCH doesn't allow custom data fields · Issue #23 · webflow/webflow-python
X Title: PATCH doesn't allow custom data fields · Issue #23 · webflow/webflow-python
Description: Hello, I'm new to the WebFlow python client, but I'm trying to programmatically update a CMS item in a collection, including some custom fields I defined. However, when I issue the following request (as suggested here: https://developers...
Open Graph Description: Hello, I'm new to the WebFlow python client, but I'm trying to programmatically update a CMS item in a collection, including some custom fields I defined. However, when I issue the following reques...
X Description: Hello, I'm new to the WebFlow python client, but I'm trying to programmatically update a CMS item in a collection, including some custom fields I defined. However, when I issue the followin...
Opengraph URL: https://github.com/webflow/webflow-python/issues/23
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PATCH doesn't allow custom data fields","articleBody":"Hello, I'm new to the WebFlow python client, but I'm trying to programmatically update a CMS item in a collection, including some custom fields I defined. However, when I issue the following request (as suggested here: [https://developers.webflow.com/data/reference/cms/collection-items/items/update-item](https://developers.webflow.com/data/reference/cms/collection-items/items/update-item))...\r\n```py\r\nclient.collections.items.update_item(\r\n collection_id=MY_COLLECTION_ID,\r\n item_id=MY_ITEM_ID,\r\n field_data=CollectionItemFieldData(\r\n custom_field_1=\"test\"\r\n )\r\n)\r\n```\r\n\r\n...I get the following error:\r\n```\r\nTypeError: ItemsClient.update_item() got an unexpected keyword argument 'field_data'\r\n```\r\nI'm using version 1.2.0. Is this a bug, or am I just misunderstanding the documentation? \r\n\r\n### UPDATE\r\nI did get the CURL version to work, so at least that's a workaround:\r\n\r\n```sh\r\ncurl -X PATCH https://api.webflow.com/v2/collections/MY_COLLECTION_ID/items/MY_ITEM_ID \\\r\n -H \"Authorization: Bearer MY_TOKEN\" \\\r\n -H \"Content-Type: application/json\" \\\r\n -d '{\r\n \"fieldData\": {\r\n \"custom_field_1\": \"test\"\r\n }'\r\n```\r\n","author":{"url":"https://github.com/vanwars","@type":"Person","name":"vanwars"},"datePublished":"2024-10-17T14:16:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/23/webflow-python/issues/23"}
| 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:9052e573-4a69-9501-bdf9-e9860e9d8749 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDD6:B38F8:29588C6:3744EBE:698075D6 |
| html-safe-nonce | 18ddf99a2c0f39aad244106ebf084660803a95f4bcbb45d361b1928a6a08bba8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREQ2OkIzOEY4OjI5NTg4QzY6Mzc0NEVCRTo2OTgwNzVENiIsInZpc2l0b3JfaWQiOiIzNjM5OTc0MjQwOTg1MzE0Nzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4e3a7ec9e1cdbae4400c2a4a4ff6d18153a2cddbd297da28b3533b4910967a48 |
| hovercard-subject-tag | issue:2594884902 |
| 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/webflow/webflow-python/23/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4abaee078ef35dbef883b3c261921813ca87c8b28194c6ac7402fefa7e368ead/webflow/webflow-python/issues/23 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4abaee078ef35dbef883b3c261921813ca87c8b28194c6ac7402fefa7e368ead/webflow/webflow-python/issues/23 |
| og:image:alt | Hello, I'm new to the WebFlow python client, but I'm trying to programmatically update a CMS item in a collection, including some custom fields I defined. However, when I issue the following reques... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vanwars |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0959b1a93ca48b0c88b3bddbdfd04ca43f388cb1a8293105a28c5ef6e8079db8 |
| turbo-cache-control | no-preview |
| go-import | github.com/webflow/webflow-python git https://github.com/webflow/webflow-python.git |
| octolytics-dimension-user_id | 1229663 |
| octolytics-dimension-user_login | webflow |
| octolytics-dimension-repository_id | 716241484 |
| octolytics-dimension-repository_nwo | webflow/webflow-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 716241484 |
| octolytics-dimension-repository_network_root_nwo | webflow/webflow-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 | 78307334c66591a8f87f493dd2968126b34961dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width