Skip to content

POST json schema? #22

@damienoliver

Description

@damienoliver

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: "example@example.com"}

{fields:{"first-name": "Damien", "last-name": "Oliver", email: "example@example.com"}}

{"fields['first-name']": "Damien", "fields['last-name']": "Oliver", "fields[email]": "example@example.com"}

{"first-name":{"value":"Damien"},"email":{"value":"example@example.com"}}

...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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions