Add a Contact Person Tag
This web service allows you to set the tags on a contact person.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | ContactPersonSetTag | Required |
TagId | Int | The Id of the tag to be saved on the contact person. Multiple tags can be set to set multiple tags, list them with a comma, eg: 21342,48724,82382. | Required |
ContactUserId | Guid | The contact user Id of the contact person. | Required |
ContactId | Int | If used, this parameter will update the main person at a contact. | Required |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Missing parameter - tagId | Mandatory parameter was not supplied |
2 | Missing parameter - contactUserId or contactId | Mandatory parameter was not supplied |
2 | Missing or invalid parameter - contactUserId | Mandatory parameter was not supplied |
2 | Invalid parameter - contactId | Integer value is invalid or was not specified (when required) |
2 | Cannot find Contact Person | No record found using the specified parameters |
2 | Invalid or missing tag | No record found using the specified parameters |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=ContactPersonSetTag&ContactUserId=10c73b0c-9ee4-47c4-87f4-0dabf111c020&TagId=942
Response Data
{ "Code": 0, "Result": "New Tags saved on Bloggs" }