PUT api/interactions/{id}
Update an Interaction by id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The primary key of the Interaction record in the Hobsons database that it's being updated. |
integer |
Required |
Body Parameters
The Interaction object which is passed in via the request body.
InteractionDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
The primary key of the record in the Hobsons database. Ignored for PUT and 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 requests sent to the API. |
integer |
Required (POST only) Range: inclusive between 1 and 2147483647 |
ExtApplicationId |
The client's application id for this record. |
string |
String length: inclusive between 0 and 100 |
ExtOfferId |
The client's offer id for this record. |
string |
String length: inclusive between 0 and 100 |
InteractionTypeId |
A reference to the primary key of the InteractionType record that is associated with this record. |
integer |
Required Range: inclusive between 1 and 99999999 |
InteractionTypeName |
The name of the InteractionType record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
string |
None. |
InteractionDate |
The date that the Interaction record was created in the client's system. Ignored for PUT requests sent to the API. |
date |
Required (POST only) Range: inclusive between 1 Jan 1900 and 31 Dec 2099 |
ContactStatusId |
A reference to the primary key of the ContactStatus record that is associated with this record. |
integer |
Required Range: inclusive between 1 and 99999999 |
ContactStatusName |
The name of the ContactStatus record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
string |
None. |
IntakeId |
A reference to the primary key of the Intake record that is associated with this record. |
integer |
Required Range: inclusive between 1 and 99999999 |
IntakeName |
The name of the Intake record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
string |
None. |
Sponsor |
The name of the sponsor for this record. |
string |
String length: inclusive between 0 and 100 |
Under18 |
Indicates if this Interaction was for a contact under 18 years old. |
boolean |
None. |
SubChannelId |
A reference to the primary key of the SubChannel record that is associated with this record. For POST requests sent to the API, the SubChannel record must belong to the parent Channel named 'External'. For PUT requests sent to the API, if changing the SubChannelId, then the new SubChannel record must belong to the parent Channel named 'External'. |
integer |
Required Range: inclusive between 1 and 99999999 |
SubChannelName |
The name of the SubChannel record that is associated with this record. Ignored for PUT and POST requests sent to the API. |
string |
None. |
DateCreated |
The date that the Interaction record was created (in the Hobsons database). Ignored for PUT and POST requests sent to the API. |
date |
None. |
DateUpdated |
The date that the Interaction record was updated (in the Hobsons database). Ignored for PUT and POST requests sent to the API. |
date |
None. |
Inactive | boolean |
Required |
|
Task |
The details of the Task record created that it's associated with this record. Used ONLY for PUT and POST requests sent to the API. For GET requests always returned as NULL. |
InnerTaskDto |
None. |
Request Formats
application/json, text/json
{ "Id": 1, "CrmNumber": 1, "ExtApplicationId": "sample string 2", "ExtOfferId": "sample string 3", "InteractionTypeId": 4, "InteractionTypeName": "sample string 5", "InteractionDate": "2025-01-22T22:04:16.5086063+11:00", "ContactStatusId": 6, "ContactStatusName": "sample string 7", "IntakeId": 8, "IntakeName": "sample string 9", "Sponsor": "sample string 10", "Under18": true, "SubChannelId": 11, "SubChannelName": "sample string 12", "DateCreated": "2025-01-22T22:04:16.5086063+11:00", "DateUpdated": "2025-01-22T22:04:16.5086063+11:00", "Inactive": true, "Task": { "TaskTypeId": 1, "Description": "sample string 2" } }
Response Information
Resource Description
None.