{ "status": "error", "message": "Property values were not valid: [{\"isValid\":false,\"message\":\"Property \\\"property_number\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_number\"},{\"isValid\":false,\"message\":\"Property \\\"property_dropdown\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_dropdown\"},{\"isValid\":false,\"message\":\"Property \\\"property_radio\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_radio\"},{\"isValid\":false,\"message\":\"Property \\\"property_string\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_string\"},{\"isValid\":false,\"message\":\"Property \\\"property_multiple_checkboxes\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_multiple_checkboxes\"},{\"isValid\":false,\"message\":\"Property \\\"property_checkbox\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_checkbox\"},{\"isValid\":false,\"message\":\"Property \\\"property_date\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_date\"},{\"isValid\":false,\"message\":\"Property \\\"property_name\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"property_name\"}]", "correlationId": "4f698606-5fcf-4226-88cd-692d97d377ff", "category": "VALIDATION_ERROR" }
First of all, Let me say how excited I am to see a Japanese developer asking questions here!
To use this API, you will need to make sure that the properties already exist in your HubSpot portal.
Based on your question, you want to collect the following
Company Name
Phone Number
Company Person in charge
City,
Prefecture
In your HubSpot portal settings, you can click on properties and then filter by company properties. This will display all of the properties that can be associated with a company. Clicking on any of the available properties will pull up a sidebar titled "Edit property". Here you will also see this </>. Clicking on this will give you access to the internal name which is what you will use in your API post payload.
As a quick example, I have clicked on the name property and as you can see in this screenshot, the internal name is also "name"
If all I wanted to do was create a company and only populate the name, this would be my json:
{
"properties": {
"name": "Test"
}
}
For your specific request, you would want to verify the properties in your portal and then add to that json body. Remember, if the property does not exist in your portal, your API request will fail.
Hope this guides you in the correct direction!
@natsumimori , will be a helpful resource if you need any translation!