PUT api/contacts/{id}/bulk/contactfacts

Update a collection of contactfacts in bulk and in one transaction.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The primary key of the Contact record in the Hobsons database.

integer

Required

Body Parameters

A collection of ContactFacts (maximum accepted: 100). Note: the Id values supplied in this collection must be unique.

Collection of ContactFactDto
NameDescriptionTypeAdditional 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

Sample:
[
  {
    "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": "2024-05-20T09:50:31.1702372+10:00",
    "DateUpdated": "2024-05-20T09:50:31.1702372+10: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": "2024-05-20T09:50:31.1702372+10:00",
    "DateUpdated": "2024-05-20T09:50:31.1702372+10:00"
  }
]

Response Information

Resource Description

None.