POST api/contacttags
Insert a ContactTag.
Request Information
URI Parameters
None.
Body Parameters
ContactTagDto| Name | 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. |
integer |
Required Range: inclusive between 1 and 2147483647 |
| TagId |
A reference to the primary key of the Tag record that is associated with this record. |
integer |
Required Range: inclusive between 1 and 99999999 |
| TagName |
The name of the Tag record that is associated with this record. Ignored for POST requests sent to the API. |
string |
None. |
| TagTypeId |
A reference to the primary key of the TagType record that is associated with the Tag record. Ignored for POST requests sent to the API. |
integer |
None. |
| TagTypeName |
The name of the TagType record that is associated with the Tag record. Ignored for POST requests sent to the API. |
string |
None. |
| DateCreated |
The date that the ContactTag record was created, i.e. the date that a Tag record was associated with a Contact record. Ignored for POST requests sent to the API. |
date |
None. |
| TagDate |
If not provided for POST requests, defaults to current date time. |
date |
Range: inclusive between 1 Jan 1900 and 31 Dec 2099 |
Request Formats
application/json, text/json
{
"Id": 1,
"CrmNumber": 2,
"TagId": 3,
"TagName": "sample string 4",
"TagTypeId": 5,
"TagTypeName": "sample string 6",
"DateCreated": "2025-11-06T17:29:38.4611367+11:00",
"TagDate": "2025-11-06T17:29:38.4611367+11:00"
}
Response Information
Resource Description
The primary key (id) of the record inserted in the Hobsons database.
integerResponse Formats
application/json, text/json
1