Getting a “400 Bad Request” JAVA


#1

Hi

I am trying to create a contact via our API. The call & info all works fine when run through postman. I have confirmed that the body is formed correctly.

{
	"properties": [{
		"property": "firstname",
		"value": "Mark"
	}, {
		"property": "email",
		"value": "demo@fake.com"
	}, {
		"property": "lastname",
		"value": "Egan"
	}]
}

At a loss as not sure, using restTemplate to send over. I have the content type set . All looks the exact same as my postman request.


#3

Hi @official_99,

Happy to help.

That payload is correctly formed, but could you also share the code you're using to form the request? If you're using an API key, please remove it but provide your Hub ID.