cURL
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 } ] } ] }'
{ "result": { "success": true, "data": { "email": "david@ampersand.com" }, "recordId": "003Dp0X#@RG7IAP" }, "operationId": "acb0d75a-1b59-4aad-a191-48c5b75ea9e4" }
Write request
The body is of type object.
object
The success response
The response is of type object.
Was this page helpful?