• nicolastroadec

    (@nicolastroadec)


    Hello,

    I try to use the API endpoint to send data from a VueJS app, so I use Postman to test my API Endpoint.

    But it doesn’t work.

    My content-type is : multipart/form-data

    The request is “POST”

    The URL is : https://xxxxx/wp-json/contact-form-7/v1/contact-forms/15315/feedback/

    But I still have this object as a response :

    {
        "contact_form_id": 15315,
        "status": "validation_failed",
        "message": "One or more fields have an error. Please check and try again.",
        "invalid_fields": [
            {
                "field": "your-name",
                "message": "Please fill out this field.",
                "idref": null,
                "error_id": "-ve-your-name"
            },
            {
                "field": "your-email",
                "message": "Please fill out this field.",
                "idref": null,
                "error_id": "-ve-your-email"
            },
            {
                "field": "your-subject",
                "message": "Please fill out this field.",
                "idref": null,
                "error_id": "-ve-your-subject"
            }
        ],
        "posted_data_hash": "",
        "into": "#"
    }

    I put the data in body -> form-data -> key/value, and I respect the format as it is mentionned above with “your-name”, “your-email”, “your-subject”…

    How am I supposed to fill it ? Is there any documentation for this API ?

    Thanks !

  • The topic ‘JSON API and Postman : what kind of object in the body ?’ is closed to new replies.