Authentication
WRITE API
- Write
READ API
- Read
PLATFORM API
- OAuth
- Project
- Provider App
- Integration
- Revision
- Installation
- Objects & Fields
- Operation
- Provider
- API Key
- Connection
- Group
- Consumer
- Destination
- Upload URL
- Org
- User
- Billing Account
Write
Write records
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
Body
application/json
Write request
The body is of type object
.
Response
200
application/json
The success response
The response is of type object
.
Was this page helpful?
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"
}
Assistant
Responses are generated using AI and may contain mistakes.