Sign in

Batch upsert custom objects

documented

Insert or update multiple custom object records in a single call.

POST /v3/objects/{object_type}/batch/upsertCustom Objectsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.brevo.com/v3/objects/{{$object_type}}/batch/upsert" \
  -X POST \
  -H "accept: application/json" \
  -H "api-key: {{SENDINBLUE_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{
  "records": [
    {
      "attributes": {
        "make": "{{$make}}",
        "model": "{{$model}}",
        "color": "{{$color}}",
        "year": {{$year}},
        "engine_type": "{{$engine_type}}"
      },
      "identifiers": {
        "id": {{$record_id}},
        "ext_id": "{{$ext_id}}"
      },
      "associations": [
        {
          "object_type": "garage",
          "records": [
            {
              "identifiers": {
                "id": {{$garage_id}}
              }
            }
          ]
        },
        {
          "object_type": "insurance",
          "records": [
            {
              "identifiers": {
                "ext_id": "{{$insurance_ext_id}}"
              }
            }
          ]
        }
      ]
    }
  ]
}'
Batch upsert custom objects · Brevo · OpenIntegrations