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.


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program

private static void Main(string[] args)

const int accountId = XXXX;

const int linkId = XXXX;

var context = new T70Context();

var linkRepo = context.Repository<Link>(new { AccountId = accountId});

var item = linkRepo.Get(linkId);

item.RedirectURL = "http://www.test2.com";





Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet