I have been trying to delete two workflow actions from my app with the following endpoint:
DELETE
/automation/v4/actions/{appId}/{definitionId}
However, I have not been able to, I always check this error in both:
{
"status": "error",
"message": "Unable to archive definition",
"correlationId": "2dfb9e5f-6e1c-494b-8e70-2ceca8f2d0a5",
"errors": [
{
"subCategory": "ActionDefinitionValidationError.DEFINITION_IN_USE",
"message": "Deletion of an in-use definition is currently not allowed. The definition 1-xxxxxx is being used in 3 portal(s). Please remove the instance(s) and send the DELETE request again or contact HubSpot developer support.",
"context": {
"actionTypeId": [
"1-xxxxx"
],
"portalCount": [
"3"
]
}
}
],
"category": "VALIDATION_ERROR"
}
I urgently need to remove these actions from my application so that clients do not get confused and use them.
Is it possible to know the portalId that they are using?