Create or update records in a SaaS instance, synchronously or asynchronously. See Write actions for details.
Write request
The ID of the user group whose SaaS instance you'd like to write data to. This is the ID that was provided during installation creation.
The type of write operation. The only supported types currently are create and update.
create, update "create"
The mode of write operation.
synchronous, asynchronous "synchronous"
The retry policy for an asynchronous write operation. Ignored when autoBatchPolicy is specified.
The auto-batch policy for asynchronous single-record write operations. When enabled, multiple single-record write requests are automatically grouped together and executed as a batch. The batch executes when either 100 records accumulate or the maximum delay time expires. Only available for asynchronous mode and single-record writes.
The record to write. Use this for single record mode. Exactly one of 'record' or 'batch' must be provided.
{
"email": "david@withampersand.com",
"warmthScore": "ready-for-close"
}Multiple records to write (batch mode). Supports 1-100 records per batch. Partial writes are not supported. If any record in a batch is invalid, all records in the batch will fail. Exactly one of 'record' or 'batch' must be provided.
1 - 100 elementsTo write associations to the record (for single record mode). Note: currently only HubSpot associations are supported
[
{
"to": { "id": "18417469260" },
"types": [
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 279
}
]
}
]To write headers to the record. Note: currently only Salesforce headers are supported
[
{
"key": "custom-header-key1",
"value": "custom-header-value1"
},
{
"key": "custom-header-key2",
"value": "custom-header-value2"
}
]