# Getting error while creating property for products

**URL:** <https://community.hubspot.com/t/getting-error-while-creating-property-for-products/106982>\
**Category:** APIs & Integrations\
**Tags:** cms-content, professional\
**Created:** [May 13, 2024, 6:23am UTC](https://community.hubspot.com/t/getting-error-while-creating-property-for-products/106982 "2024-05-13T06:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srushti18shah](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@srushti18shah](https://community.hubspot.com/u/srushti18shah)\
**Post date:** [May 13, 2024, 6:23am UTC](https://community.hubspot.com/t/getting-error-while-creating-property-for-products/106982/1 "2024-05-13T06:23:16Z")

</div>

Hello,

We have purchased sales and enterprise hubs. We are trying to create the properties for product object through API but getting error:

You do not have permissions to edit object type ObjectTypeId{legacyObjectType=PRODUCT} in portal \<portalId\> (requires one of [inbounddb-product-library-write])  
I have subscribed to all the scopes. What would be issue? How can I resolved this?

Thanks,  
Srushti Shah

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [May 13, 2024, 1:42pm UTC](https://community.hubspot.com/t/getting-error-while-creating-property-for-products/106982/2 "2024-05-13T13:42:56Z")

</div>

Hi @srushti18shah

```lia-code-sample
curl --request POST \
 --url https://api.hubapi.com/crm/v3/properties/PRODUCTS \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{
 "hidden": false,
 "displayOrder": 2,
 "description": "Property_Description",
 "label": "My Product Property",
 "type": "enumeration",
 "groupName": "productinformation",
 "name": "Property_Name",
 "fieldType": "text",
 "formField": true,
 "calculationFormula": "string",
 "hasUniqueValue": false,
 "externalOptions": true
}'

```

Please add the following scope and retry again.  
STANDARD SCOPE(S) :e-commerce

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 14, 2024, 7:43pm UTC](https://community.hubspot.com/t/getting-error-while-creating-property-for-products/106982/3 "2024-05-14T19:43:22Z")

</div>

Hey, @srushti18shah 👋 Can you try using the [request body example](https://developers.hubspot.com/docs/api/crm/properties#create-a-property) (I changed the group to “productinformation”) from the documentation, and create a new Private App with only the ecommerce scope, please? And share the request here? I did this using Postman just now and was able to create a new product property with no issues:

Request

```lia-code-sample
POST https://api.hubapi.com/crm/v3/properties/product 
{
 "groupName": "productinformation", 
 "name":"favorite_cat",
 "label": "Favorite Cat",
 "type": "string",
 "fieldType": "text"
}

```

Response

```lia-code-sample
{
 "updatedAt": "2024-05-14T19:35:06.843Z",
 "createdAt": "2024-05-14T19:35:06.843Z",
 "name": "favorite_cat",
 "label": "Favorite Cat",
 "type": "string",
 "fieldType": "text",
 "description": "",
 "groupName": "productinformation",
 "options": [],
 "createdUserId": "10233975",
 "updatedUserId": "10233975",
 "displayOrder": -1,
 "calculated": false,
 "externalOptions": false,
 "archived": false,
 "hasUniqueValue": false,
 "hidden": false,
 "modificationMetadata": {
 "archivable": true,
 "readOnlyDefinition": false,
 "readOnlyValue": false
 },
 "formField": false,
 "dataSensitivity": "non_sensitive"
}

```

The Private App scopes I used

 ![CleanShot 2024-05-14 at 13.41.51.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/7/378c119f56bbdf8743c686e58298691fc0190d34.png)

I hope this helps get you moving forward! — Jaycee
