API Error Property Group Does not exist

Morning

I am makeing a post request to https://api.hubapi.com/properties/v1/contacts/properties?hapikey=this-is-my-api-key

In the body I have:

{
 "name": "added_music_vsd2",
 "label": "Media Added Music",
 "description": "",
 "groupName": "vsd_activity",
 "type": "enumeration",
 "fieldType": "booleancheckbox",
 "deleted": false,
 "createdAt": 1561035882388,
 "readOnlyDefinition": false,
 "updatedAt": 1561533059524,
 "createdUserId": xxxxxx,
 "referencedObjectType": null,
 "searchableInGlobalSearch": false,
 "hasUniqueValue": false,
 "displayOrder": -1,
 "optionSortStrategy": null,
 "showCurrencySymbol": false,
 "calculated": false,
 "externalOptions": false,
 "currencyPropertyName": null,
 "readOnlyValue": false,
 "formField": true,
 "hidden": false,
 "mutableDefinitionNotDeletable": false,
 "favorited": false,
 "favoritedOrder": -1,
 "displayMode": "current_value",
 "textDisplayHint": null,
 "numberDisplayHint": "formatted",
 "optionsAreMutable": null,
 "isCustomizedDefault": false,
 "searchTextAnalysisMode": null,
 "updatedUserId": xxxxxx,
 "options": [
 {
 "label": "No",
 "displayOrder": -1,
 "readOnly": false,
 "hidden": false,
 "doubleData": null,
 "description": null,
 "value": "false"
 },
 {
 "label": "Yes",
 "displayOrder": -1,
 "readOnly": false,
 "hidden": false,
 "doubleData": null,
 "description": null,
 "value": "true"
 }
 ]
 }

The above object was obtained using a GET request to https://api.hubapi.com/properties/v1/contacts/properties?hapikey=this-is-a-different-key

When I make the post request, I get this error:

{
 "status": "error",
 "message": "property group vsd_activity does not exist",
 "correlationId": "21ff7872-0eaf-49b5-b3bb-1a34c8992d17",
 "requestId": "d73cc332-b427-4673-a9b5-a376d0a8ca00"
}

If I replace underscore with a space and/or match the case, I still get the same error.

What do I need to do to create this property in the Group?

Thanks
Jez D

Hi, @Jez_D.

Are you trying to create this property in your production account ending in 4140?

If so, this endpoint shows that you have a contact property group with the "displayName": "VSD Activity", but that it has the internal "name": "vsd_usage", not "vsd_activity".

Thus, you’ll want to specify "groupName": "vsd_activity" in your request.

Thanks.

I just tried again, using

"groupName": "vsd_usage",

and it had the desired affect. When I clicked on edit group name in the console, I was unable to see the name, so I tried to guess it. I guess I should have used

/properties/v1/contacts/groups

first

Upon taking a 2nd look, it seems the hover colour for the submit button became without a doubt set to blue on any other line of the stylesheet (line 1281) so that need to be all set now as you can check.