Deals

Import deals(creation and updation)

Changed on

Import deals from a CSV file with mapping options.

post/crm/deals/import

Request

Request body multipart/form-data

filestring binary required

The CSV file to upload.The file should have the first row as the mapping attribute. Some default attribute names are (a) deal_id [brevo mongoID to update deals] (b) associated_contact (c) associated_company (f) any other attribute with internal name

mappingstring required

The mapping options in JSON format. json { "link_entities": true, // Determines whether to link related entities during the import process "unlink_entities": false, //Determines whether to unlink related entities during the import process. "update_existing_records": true, // Determines whether to update based on deal ID or treat every row as create "unset_empty_attributes": false // Determines whether unset a specific attribute during update if values input is blank }

Response

Successfully imported deals

processIdinteger

The ID of the import process

Example response

{
  "processId": 50
}

Changes