Tips, Tricks & Best Practices

OBetzalel
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Change the metadata of Line Item property

SOLVE

Hi,

We create a custom property for Line Item object via the API Endpoint.

How can we update for example the property name? We can't access it in the UI.

 

Thanks! 🙂

0 Upvotes
1 Accepted solution
zach_threadint
Solution
Guide

Change the metadata of Line Item property

SOLVE

Hi @OBetzalel 👋

 

As far as I'm aware, custom Line Item properties must be managed by API -- they cannot be edited in HubSpot's web/app UI.

 

It's worth noting that once a custom property is created, it's internal "name" (i.e. the property name you reference in API calls) cannot be changed. However, you can update other property attributes/metadata via API (e.g. label). In order to do this, you'll want to call the "Update a property" endpoint, available within the "Endpoints" tab on the HubSpot Properties API page. For example:

 

PATCH https://api.hubapi.com/crm/v3/properties/LINE_ITEM/example_custom_property

 

Request JSON body

{
    "groupName": "lineiteminformation",
    "label": "Example Property -- Updated Label",
    "type": "string",
    "fieldType": "text",
    "formField": true,
    "hasUniqueValue": false,
    "hidden": false
}

 I hope this proves helpful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

4 Replies 4
zach_threadint
Solution
Guide

Change the metadata of Line Item property

SOLVE

Hi @OBetzalel 👋

 

As far as I'm aware, custom Line Item properties must be managed by API -- they cannot be edited in HubSpot's web/app UI.

 

It's worth noting that once a custom property is created, it's internal "name" (i.e. the property name you reference in API calls) cannot be changed. However, you can update other property attributes/metadata via API (e.g. label). In order to do this, you'll want to call the "Update a property" endpoint, available within the "Endpoints" tab on the HubSpot Properties API page. For example:

 

PATCH https://api.hubapi.com/crm/v3/properties/LINE_ITEM/example_custom_property

 

Request JSON body

{
    "groupName": "lineiteminformation",
    "label": "Example Property -- Updated Label",
    "type": "string",
    "fieldType": "text",
    "formField": true,
    "hasUniqueValue": false,
    "hidden": false
}

 I hope this proves helpful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


BérangèreL
Community Manager
Community Manager

Change the metadata of Line Item property

SOLVE

Hi @OBetzalel, I hope that you are well!

I understand that you created a custom line item property via API but you'd like to edit it via the UI. Please let me know if that's not the case.

I never created myself a property via API but I know that from the UI, you are able to edit product properties.
Do you find the line item properties under the product properties, please?

I'd like to invite some of our Top Experts to this discussion: Hi @GreyHamilton, @beeginman and @OPerek-Clark are you able to edit custom line items properties from the UI directly within HubSpot, please?

Thanks a lot and have a wonderful day!

Best,
Bérangère


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
OBetzalel
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Change the metadata of Line Item property

SOLVE

Hi,

Thanks for the reply, I would like to be able to edit the metadata from the UI or from the API Calls.

 

Thanks!

0 Upvotes
BérangèreL
Community Manager
Community Manager

Change the metadata of Line Item property

SOLVE

Hi @OBetzalel, I hope that you are well!

Thanks for the additional information and sorry for the late reply.

I'd like to invite a couple of subject matter experts to this conversation: Hi @zach_threadint, @stefen and @alyssamwilie do you have suggestions to help @OBetzalel, please?

Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂

Thank you very much and have a fantastic day!

Best,
Bérangère


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !