GET api/contacts/{id}/contactfacts?attributeMetaDataId={attributeMetaDataId}&attributeCategoryId={attributeCategoryId}
Get all ContactFacts that are related to the supplied Contact id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The primary key of the Contact record in the Hobsons database. |
integer |
Required |
attributeMetaDataId |
Optional filter on ContactFacts with an attributeMetaDataId that matches the provided value. |
integer |
None. |
attributeCategoryId |
Optional filter on ContactFacts with an attributeCategoryId that matches the provided value. |
integer |
None. |
Body Parameters
None.
Response Information
Resource Description
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. |
Response 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:54:53.5258202+11:00", "DateUpdated": "2025-01-22T21:54:53.5258202+11:00" }