POST api/bulk/contacttags
Insert a collection of ContactTags in bulk and in one transaction.
Request Information
URI Parameters
None.
Body Parameters
A collection of ContactTags (maximum accepted: 100).
Collection of ContactTagDtoName | 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-01-22T21:58:42.4859399+11:00", "TagDate": "2025-01-22T21:58:42.4859399+11:00" }, { "Id": 1, "CrmNumber": 2, "TagId": 3, "TagName": "sample string 4", "TagTypeId": 5, "TagTypeName": "sample string 6", "DateCreated": "2025-01-22T21:58:42.4859399+11:00", "TagDate": "2025-01-22T21:58:42.4859399+11:00" } ]
Response Information
Resource Description
A collection of Ids for the inserted ContactTags (returned in the same order as per the input collection order).
Collection of integerResponse Formats
application/json, text/json
[ 1, 2 ]