Tag Object

Use the Tag resource to learn more about your Account Engagement tags. You can tag Account Engagement assets with keywords or key phrases. Use tags to sort, organize, report on, and search for assets. For more use cases, see Using Tags in Account Engagement.

The API to access the Tag follows the conventions described in Version 5 Overview.

OperationHTTP VerbURL FormatAbility Requirements
CreatePOSThttps://pi.pardot.com/api/v5/objects/tags?<params>Marketing > Segmentation > Tags > Create
ReadGEThttps://pi.pardot.com/api/v5/objects/tags/<id>?<params>Marketing > Segmentation > Tags > View
UpdatePATCHhttps://pi.pardot.com/api/v5/objects/tags/<id>Marketing > Segmentation > Tags > Create
QueryGEThttps://pi.pardot.com/api/v5/objects/tags?<params>Marketing > Segmentation > Tags > View
DeleteDELETEhttps://pi.pardot.com/api/v5/objects/tags/<id>Marketing > Segmentation > Tags > Delete
Merge TagsPOSThttps://pi.pardot.com/api/v5/objects/tags/<id>/do/mergeTagsMarketing > Segmentation > Tags > Create
FieldTypeDescription
nameStringThe name of the tag.
FieldTypeDescription
idIntegerID of the tag.
objectCountIntegerNumber of objects tagged with the tag.
createdByIdIntegerID of the user who created this tag.
updatedByIdIntegerID of the user who last updated this tag.
createdAtDateTimeCreation time of the tag.
updatedAtDateTimeLast update time of the tag.
createdByUserUser object representing the user who created this tag.
updatedByUserUser object representing the user who last updated this tag.

Create a tag with a specified name.

Example Request:

Example Response:

Retrieve a single tag following the conventions described in the Version 5 Overview.

Example Request:

Example Response:

Example Request:

Example Response:

Deletes a tag following the conventions described in the Version 5 Overview.

Example Request

Example Response

Returns code 204 no content.

Retrieving a collection of tags follows the conventions described in Version 5 Overview.

Example Request:

Example Response:

When you execute a query, you can include the orderBy parameter. This table lists possible values for the orderBy parameter. See the conventions for query described in the Version 5 Overview.

ParameterDescription
idThe ID of the tag.
createdAtThe date and time when the tag was created. The time zone for this property is based on the time zone of the API user.
updatedAtThe date and time when the tag was last modified. The time zone for this property is based on the time zone of the API user.
.

When you execute a query, you can use the parameters in this table to filter the results. These parameters can be specified in the request along with any shared parameters defined in Version 5 Overview. If you specify more than one parameter, the response includes only the records that match all of the parameters.

ParameterDescription
idReturns any tags where ID is equal to the given integer value.
idListReturns any tags where ID is included in the given list of values.
idGreaterThanReturns any tags where ID is greater than the specified value, non-inclusive.
idGreaterThanOrEqualToReturns any tags where ID is greater than or equal to the specified value.
idLessThanReturns any tags where ID is less than the specified value, non-inclusive.
idLessThanOrEqualToReturns any tags where ID is less than or equal to the specified value.
nameReturns any tags where Name is equal to the given string value.
createdAtReturns any tags where CreatedAt is equal to the given datetime value.
createdAtAfterReturns any tags where CreatedAt is after the given datetime value, non-inclusive.
createdAtAfterOrEqualToReturns any tags where CreatedAt is after or equal to the given datetime value.
createdAtBeforeReturns any tags where CreatedAt is before the given datetime value, non-inclusive.
createdAtBeforeOrEqualToReturns any tags where CreatedAt is before or equal to the given datetime value.
updatedAtReturns any tags where UpdatedAt is equal to the given datetime value.
updatedAtAfterReturns any tags where UpdatedAt is after the given datetime value, non-inclusive.
updatedAtAfterOrEqualToReturns any tags where UpdatedAt is after or equal to the given datetime value.
updatedAtBeforeReturns any tags where UpdatedAt is before the given datetime value, non-inclusive.
updatedAtBeforeOrEqualToReturns any tags where UpdatedAt is before or equal to the given datetime value.

Example request:

Example response:

Merge several tags into one tag. The tags that you specify are deleted and are considered to be part of the tag listed in the path of the POST request.

Example Request

Example Response