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

POST json schema? #22

Open
damienoliver opened this issue Sep 13, 2019 · 0 comments
Open

POST json schema? #22

damienoliver opened this issue Sep 13, 2019 · 0 comments

Comments

@damienoliver
Copy link

damienoliver commented Sep 13, 2019

Hey guys, love the extension.

I have one small issue, I can't seem to figure out the json data schema when POSTing to an endpoint for entry creation. Can you please advise? (The documentation only shows a http form POST example)

I have already tried the following...

{"first-name": "Damien", "last-name": "Oliver", email: "[email protected]"}

{fields:{"first-name": "Damien", "last-name": "Oliver", email: "[email protected]"}}

{"fields['first-name']": "Damien", "fields['last-name']": "Oliver", "fields[email]": "[email protected]"}

{"first-name":{"value":"Damien"},"email":{"value":"[email protected]"}}

...with no luck, the response is always:

{"response":{"_result":"error","message":{"_message-id":"102","value":"Entry encountered errors when saving."},"first-name":{"_label":"First Name","_type":"missing","_message-id":"301","_message":"\u2018First Name\u2019 is a required field.","value":""},"post-values":{"value":""}}}

Thanks guys!, I'm sure it is something simple.

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

No branches or pull requests

1 participant