Skip to main content

Add a Tag to an Entity

Add tags to Jobs, Contact Notes and Sales Opportunities.

Query String Parameters

NameTypeDescriptionRequired
ActionStringSetTagRequired
EntityTypeIdStringThe type of the identifier of the entity type to which the tag is being applied. Optional
EntityTypeStringThe string identifier of the entity type to which the tag is being applied ie Job, ContactNote.

Only used if EntityTypeId is not provided.
Optional
EntityIdIntThe identifier of the entity to which the tag is being applied. ie: JobId, ContactNoteId.

To apply the tag to multiple entities, provide the parameter multiple times or as a CSV value.
Required
TagIdIntThe unique identifier of the tag being applied. Can be retrieved using Get list of TagsRequired
OwnerNameStringThe name of the person or system responsible for the tag.Optional
CommentStringAdditional comments or notes about the tag.Optional
DateTimeDateTimeThe date and time when the tag is applied.Optional
ReturnTypeIntSpecifies the expected return value after applying the tag. Use 0 for no return (default), or 1 to return the EntityId.Optional

Response Codes

CodeMessageInformation
0Response DataSee 'Response' example tab
2Missing or Invalid Parameter - TagIdInteger value is invalid or was not specified (when required)
2Missing Parameter - EntityTypeId or EntityTypeInteger value is invalid or was not specified (when required)
2Invalid format - EntityTypeIdUnrecognized constant value - please verify the supported values
2Invalid format - EntityTypeUnrecognized constant value - please verify the supported values
2Missing or Invalid Parameter - EntityIdInteger value is invalid or was not specified (when required)
2Invalid Parameter value - returnTypeInteger value is invalid or was not specified (when required)

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=settag&tagid=212108&entitytypeid=3&entityid=127596563&returntype=1