Create, update, or delete records in a SaaS instance. Create and update support synchronous or asynchronous mode; delete is synchronous only. 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, update, and delete.
create, update, delete "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. Auto batching is currently only available for asynchronous mode and single-record writes.
The record to write. Use this when sending a single record. Omit this and use batch instead when sending multiple records in one request.
For create and update, include the record fields. For delete, only the record id is required; deletion must be enabled for this object in the installation config.
{
"email": "david@withampersand.com",
"warmthScore": "ready-for-close"
}Policy settings for batch write operations. Only applicable when using the batch field.
Write 1–100 records in one request. Omit this and use record instead when sending a single record.
The default behavior is partial success, i.e., successful records will be committed even if some records in the batch fail. To disable partial writes and fail the entire batch, use the allOrNone flag in your request. See batchPolicy.allOrNone.
Batch is currently supported for create and update write requests.
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"
}
]