Skip to content
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

Storyblok.delete requires a story #884

Closed
fragdance1 opened this issue Dec 3, 2024 · 1 comment · Fixed by #900
Closed

Storyblok.delete requires a story #884

fragdance1 opened this issue Dec 3, 2024 · 1 comment · Fixed by #900
Assignees
Labels

Comments

@fragdance1
Copy link

In the documentation (https://www.storyblok.com/docs/api/management/core-resources/stories/delete-a-story) we only need a URL as parameter to Storyblok.delete, which makes sense.

But looking at the code, we see this:

delete(slug: string, params: ISbStoriesParams | ISbContentMangmntAPI, fetchOptions?: ISbCustomFetch): Promise;

Meaning the function requires params


Expected Behavior

We should be able to delete only using the story url

Current Behavior

We need to send a params parameter

Copy link

🎉 This issue has been resolved in version 6.10.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants