Hi, I’ve been asked by a client to change the ‘name’ property of a custom object. We reached out to the hubspot help people first - they advise this can only be done through the API.
I figured out how to change other properties via the api, but PATCH calls to change the ‘name’ are ignored.
This call changes the descripton of the object:
curl -X PATCH -H ‘content-type: application/json’ -H “Authorization: Bearer ${key}” "https://api.hubapi.com/crm/v3/properties/123456/batch_no_"d ‘{ “description”: “new_description”}’
But a similar call to change the name:
curl -X PATCH -H ‘content-type: application/json’ -H “Authorization: Bearer ${key}” "https://api.hubapi.com/crm/v3/properties/123456/batch_no_"d ‘{ “name”: “new_name”}’
One possible issue here is that the existing name is ‘batch_no_’ - i.e., I’m using the old name in the url.
We did ask for help, but apparently we can’t get help for custom objects.
If anyone has any ideas, we’d be grateful.
Thanks
