Contacts API getting error 400

Thanks for asking Jaycee. Here are the additional details

For both the json files we are following the same process. I included a snip from the json file that is getting the 400 error also:

  1. Endpoint: (This includes the request method, the endpoint URL, and any query parameters.)

url = ‘https://api.hubapi.com/contacts/v1/contact/batch’

r = requests.post(

url,

data=json.dumps(sub_set),

headers=headers,

verify=False,

timeout=(5, 10),

stream=True

)

  1. Headers

headers = {

‘Authorization’: “Bearer pat-na1-51fcebd9-****-***-**** -*************”,

‘Accept’: ‘application/json’,

‘Content-Type’: ‘application/json’,

}

  1. the status code and full error body

status code: 400

full error body: b’{“status”:“error”,“message”:“property must be textual”,“correlationId”:“c134ccd5-a8e7-4d41-b374-a5084335223a”}

[
 {
 "email": "09linecar@gmail.com",
 "properties": [
 {
 "property": "XlinkUserID",
 "value": 729015901
 },
 {
 "property": "register_time",
 "value": "2023-02-27"
 },
 {
 "property": "linked_alexa",
 "value": 0
 },
 {
 "property": "linked_googlehome",
 "value": 0
 },
 {
 "property": "dual_mode_soft_white_a19_0x80_",
 "value": 2
 },
 {
 "property": "zip",
 "value": null
 }
 ]
 },
 {
 "email": "114579088@qq.com",
 "properties": [
 {
 "property": "XlinkUserID",
 "value": 729014179
 },
 {
 "property": "register_time",
 "value": "2023-02-28"
 },
 {
 "property": "linked_alexa",
 "value": 0
 },
 {
 "property": "linked_googlehome",
 "value": 0
 },
 {
 "property": "n0x89_direct_connect_full_color_bulb__a19_",
 "value": 1
 },
 {
 "property": "zip",
 "value": null
 }
 ]
 },