-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set a custom id for a new entry? #929
Comments
Here's what I get when I call
|
I switched to using the regular client, and now it appears the I'm trying to create brand new entry and specify the ID. Am I using this incorrectly? This is my error message:
Here is my code: client.getSpace(spaceId)
.then((space) => space.getEnvironment(envId))
.then((environment) => environment.createEntry('page', {
fields: {
source: {
'en-US': `https://github.com/${process.env.REPOSITORY}/blob/main/${path}`
},
markdown: {
'en-US': fContent
},
}
})) |
What was the solution here? |
👋 I'm using the plain client, and getting the following error:
when attempting to use
entry.createWithId
. I think I'm probably just trying to use this method the wrong way, but I can't seem to the find the equivalent of this for the plain client. Here's my code:Would love to be pointed in the right direction of documentation for the plain client as well if possible.
The text was updated successfully, but these errors were encountered: