Comments (2)
This should actually already be possible - I'll see about getting some documentation added. The third argument to the createItem
function controls the URL query params, so you should be able to do the following with { live: true }
:
const webflow = new Webflow({ token: api_token });
// Promise <Item>
const item = webflow.createItem({
collectionId: '580e63fc8c9a982ac9b8b745',
fields: {
// The data
},
}, { live: true });
item.then(i => console.log(i));
from js-webflow-api.
I feel like this is not working properly. Calls without { live: true }
are passing properly, but once I add that, calls start to fail.
I'm calling like this:
return webFlowApi.createItem({ collectionId: myCollectionId, fields: item }, { live: true });
And I am receiving this error:
WebflowError: NotFound: Collection not found: null
I debugged into the calls and it looks like the POST URL is built just like shown in the documentation, i.e. https://api.webflow.com/collections/<my-id>/items?live=true
, but I still get the error response back (404 from the server).
@kyleshevlin I read your post in a different issue regarding the priority of this project, and I appreciate the time you spend here voluntarily! I'm only pinging you directly as this appears to be an API issue and not an issue with this library, so maybe you guys want to check that.
from js-webflow-api.
Related Issues (20)
- Cannot find module './core' in webflow-api/dist/index.js - v1.3.0 HOT 6
- Authorization using auth0 : Add a support for openid in the allowed scope .
- Beta flag not typed? HOT 2
- API Issue: Date/Time is not a valid format. HOT 2
- Update Token does not set underlying axios auth HOT 1
- How to get option field as string (v2)?
- Not able to update fields
- Hope Webflow can generate React code. HOT 2
- Configuration default host HOT 3
- Configuration params HOT 3
- CloudQuery Plugin? HOT 1
- 🐛 issue with authorizeUrl method HOT 3
- Typescript / Jest Compatibility Issues HOT 22
- README updateItem Call is Wrong HOT 4
- Add live to Create and Update Methods (or add it to the README.md) HOT 1
- Pagination data missing HOT 1
- RichText fields don't return Embedded content HOT 2
- API returning different name for fields HOT 2
- `webflow.updateItem(...)` method inconsistent with other methods HOT 1
- Generic `Item` response types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-webflow-api.