Bad request (400) when i try to post #4410
Unanswered
LeonardoAraujoLisboa
asked this question in
Q&A
Replies: 2 comments
-
And this is the response: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you check this guide https://grapesjs.com/docs/modules/Storage.html#setup-remote-storage? It was updated with the latest release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm doing it this way:
storageManager: {
type: 'remote',
autosave: true,
autoload: true,
contentTypeJson: true,
storeComponents: true,
storeStyles: true,
storeHtml: true,
storeCss: true,
urlLoad:
APIURL/${idPage}
,urlStore:
APIURL/${idPage}
,fetchOptions: opts => (opts.method === 'POST' ? { method: 'PUT' } : {}),
onStore: data => ({ id: idPage, data }),
onLoad: result => result.data,
The request payload when I try to edit something in canvas is this:

I'm also passing the api_key and the session_token in the parameters
Artf, can you help me with this, please?
Beta Was this translation helpful? Give feedback.
All reactions