PUT /properties/v1/contacts/properties/named/:property_name - Update a specified deal property.
(by the way, I do not know why the link says “Update a specified deal property”)
in order to update a property that I have created manually using HubSpot UI.
The API responseded 200 OK with all the data of that property:
But I can no longer view this property on HubSpot. It as if it was deleted.
By the way, I was wondering what will happen if I have a contact with the property abc and value 123 now that I added the value 456 to the list (will that contact still have the value 123 as his abc property? ).
Thank you for your patience, this got a bit lost among the threads here. I went ahead and created a new test portal from your dev account, and did some property testing. I was able to successfully update the property without deleting it. Below you’ll find the property; can you try adding more options and/or making other changes to the property, and let me know if that works? Make sure you’re using the hapikey for that specific test portal. https://app.hubspot.com/property-settings/4079694/contact/test_property
That Hub ID is from your developer portal, not a test or Marketing/CRM portal. Developer portals don’t have access to any of the scopes (contacts, content, automation, etc.) that Marketing/CRM portals do, which is why you’re seeing strange behavior when updating/viewing contact properties via the API. You should make the same requests to a test portal or a production Marketing/CRM portal instead:
I opened a new Portal and it happened to me there also.
The Hub ID is 4057890 and I created a property named eee but it was deleted instead of being updated.
By the way, I am still wondering what will happen to contacts that this property is set to them.
That response you posted isn’t formatted in the way that a normal HubSpot server response it formatted. Can you reach out with the Hub ID of the portal you’re working with, and the raw response to the request you made? Or otherwise just the internal name of the property?
The response is the output of a ruby hash that was created from the JSON returned from the HubSpot API.
the HubId is 3837323 and the internal name of the property is creator