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