POST api/contacts/{id}/bulk/contactfacts
Insert a collection of contactfacts in bulk and in one transaction.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The primary key of the Contact record in the Hobsons database. |
integer |
Required |
Body Parameters
A collection of contactfacts (maximum accepted: 100).
Collection of ContactFactDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
The primary key of the record in the Hobsons database. Ignored for POST requests sent to the API. |
integer |
None. |
CrmNumber |
A reference to the primary key of the Contact record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
integer |
None. |
AttributeMetaDataId |
A reference to the primary key of the AttributeMetaData record that is associated with this record. Value supplied should belong to the Contact Category. Ignored for PUT requests sent to the API. Required for POST requests. |
integer |
Required (POST only) Range: inclusive between 1 and 2147483647 |
AttributeMetaDataName |
The name of the AttributeMetaData record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
string |
None. |
Value |
Value of the ContactFact. Text value should be supplied if AttributeMetaData DataType is "System.String". Number Value should be supplied if AttributeMetaData DataType is "System.Double", "System.Int32". Boolean value of 'True' or 'False' should be supplied if AttributeMetaData DataType is "System.Boolean". Date value should be supplied if AttributeMetaData DataType is "System.DateTime". Accepts null values only if isNullable flag of AttributeMetaData is true other wise value should be supplied if IsReferenceData falg of AttributeMetaData is false. Ignored if IsReferenceData of AttributeMetaData is true. |
Object |
None. |
AttributeReferences |
Ignored if IsReferenceData of AttributeMetaData is false. During PUT and POST requests sent to the API, only the AttributeReferenceDto.Id field is used. Accepts null values only if isNullable flag of AttributeMetaData is true other wise value should be supplied if IsReferenceData falg of AttributeMetaData is true. Multiple values are allowed only if isMultipleReferenceData flag of AttributeMetaData is true. |
Collection of AttributeReferenceDto |
None. |
DateCreated |
The date that the ContactFact record was created, i.e. the date that a Fact record was associated with a Contact record. Ignored for PUT and POST requests sent to the API. |
date |
None. |
DateUpdated |
The date that the ContactFact record was updated, i.e. the date that value of the ContactFact record is updated. Ignored for PUT and POST requests sent to the API. |
date |
None. |
Request Formats
application/json, text/json
[ { "Id": 1, "CrmNumber": 1, "AttributeMetaDataId": 1, "AttributeMetaDataName": "sample string 2", "Value": {}, "AttributeReferences": [ { "Id": 1, "Name": "sample string 2", "Value": {}, "Inactive": true, "SortOrder": 1 }, { "Id": 1, "Name": "sample string 2", "Value": {}, "Inactive": true, "SortOrder": 1 } ], "DateCreated": "2025-01-22T21:59:51.4758848+11:00", "DateUpdated": "2025-01-22T21:59:51.4758848+11:00" }, { "Id": 1, "CrmNumber": 1, "AttributeMetaDataId": 1, "AttributeMetaDataName": "sample string 2", "Value": {}, "AttributeReferences": [ { "Id": 1, "Name": "sample string 2", "Value": {}, "Inactive": true, "SortOrder": 1 }, { "Id": 1, "Name": "sample string 2", "Value": {}, "Inactive": true, "SortOrder": 1 } ], "DateCreated": "2025-01-22T21:59:51.4758848+11:00", "DateUpdated": "2025-01-22T21:59:51.4758848+11:00" } ]
Response Information
Resource Description
A collection of Ids for the inserted contactfacts (returned in the same order as per the input collection order).
Collection of integerResponse Formats
application/json, text/json
[ 1, 2 ]