Hi Team,
I am unable to update owner__c field for contact in HubSpot using HubSpot API
API URL: {{baseUrl}}/crm/v3/objects/contacts/237381156454
Please see error message below
Request
{
“properties”: {
"brand": "",
"owner__c": "rama.singh@apexit.com",
"company": "",
"contract_expire_date__c": "",
"description": "",
"email": "test_rama2@gm.com",
"explain_other_ls__c": "ewogICJFeHBsYWluT3RoZXJMU19jIiA6ICJld29nSUNKRmVIQnNZV2x1VDNSb1pYSk1VMTlqSWlBNklDSWlDbjA9Igp9",
"industry": "",
"firstname": "test rama2",
"loss_detail__c": "",
"loss_reason__c": "",
"menu_type__c": "",
"method_of_contact__c": "",
"lastname": "24july",
"leadsource": "Call-In",
"mobilephone": "",
"number_of_locations_total__c": "",
"number_of_locations_in_pipeline__c": "",
"opening_date__c": "",
"purchased_list__c": "",
"uco_estimated_pounds__c": "",
"franchise_name__c": "",
"hs_analytics_source": "",
"opening_date_text__c": "",
"referrer_s_job_title__c": "",
"referrer_s_name__c": "",
"corporate_or_franchise__c": "Franchise"
}
}
Response:
{
"status": "error",
"message": "Property values were not valid: \[{\\"isValid\\":false,\\"message\\":\\"rama.singh@apexit.com was not one of the allowed options: \[true, false\]\\",\\"error\\":\\"INVALID_OPTION\\",\\"name\\":\\"owner__c\\"}\]",
"correlationId": "019f94ed-a207-7f86-8f30-349b122f5469",
"errors": \[
{
"message": "rama.singh@apexit.com was not one of the allowed options: \[true, false\]",
"code": "INVALID_OPTION",
"context": {
"propertyName": \[
"owner__c"
\]
}
}
\],
"category": "VALIDATION_ERROR"
}