curl --request POST \
--url https://write.withampersand.com/v1/projects/{projectIdOrName}/integrations/{integrationId}/objects/{objectName} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"groupRef": "<string>",
"type": "create",
"mode": "synchronous",
"record": {
"email": "david@withampersand.com",
"warmthScore": "ready-for-close"
},
"associations": [
{
"to": {
"id": "18417469260"
},
"types": [
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 279
}
]
}
]
}'