POST
/
projects
/
{projectIdOrName}
/
integrations
/
{integrationId}
/
objects
/
{objectName}
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"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required
integrationId
string
required
objectName
string
required

Body

application/json

Write request

The body is of type object.

Response

200
application/json

The success response

The response is of type object.