I am trying to create a note for a contact using a API request but it gives following response
{
"status": "error",
"message": "invalid from object type 0-46 for associations to be created. expected: 0-1",
"correlationId": "da755ba0-b9e5-40e7-b3ef-97c870f7018e",
"category": "VALIDATION_ERROR"
}
But when I set it to `"associationTypeId": 202` it randomly worked... 🤷 no idea why as `202` is NOT correct; I just randomly tried that number 🤦
I figured out why `"associationTypeId":202` worked:
The Associations url needs to be specified correctly; the `{fromObjectType}` and `{toObjectType}` parts needs to be in the correct order. Since we're associating a note to a contactthe URL to find the correct ID is (notice that `/note` comes before `/contact`😞