Loading...

Description

Updates a link used in a campaign. Links used in this way gain click tracking and are shortened to a 370.bz address to save on transmission space.


Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/link/{linkId}

Request Properties

Parameter Description Mandatory
accountId The account ID which will own the link. Yes
linkId The ID of the link to update. Yes
CampaignId The campaign ID that the link is attached to. No
LinkTypeId The type of link this is. Yes
RequestLocation Set if we should collect user's location when they click the link No
Name The name of this link which is used when creating razor templates. Yes
RedirectURL The URL we should redirect to. Yes
ContactAttributeDefinitionId A contact attribute ID or name to append as a URL query string. No
UpdateContactAttributeDefinitionId The Contact Attribute ID to be updated No
UpdateContactAttributeValue Contact Attribute value to update No

Response Properties

Property Description
AccountId The account ID which owns the link
CampaignId The campaign this link is part of.
ContactAttributeDefinitionId The contact attribute ID to append to the URL if desired.
LinkType Enumeration mapping to LinkTypeId
LinkTypeId The type of link this is. Either Static or Dynamic
Name The name of the link.
RedirectURL The URL we should redirect to.
RequestLocation Set if we should request the user's location before redirecting.
ShortBaseURL The short URL to use.
UpdateContactAttributeDefinitionId The contact attribute ID to be updated.
UpdateContactAttributeValue The value to update the contact attribute to.

C#


Stay tuned for c# code snippet...

Stay tuned for java code snippet

Stay tuned for ruby code snippet