Loading...

Description

Updates a contact with the newly provided information.


Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/contact/{contactId}?overrideSubscription={overrideSubscription}

Request Properties

Parameter Description Mandatory
accountId The ID of the account which the contact falls under. Yes
contactId The ID of the contact to update Yes
overrideSubscription This will override optout to optin No
PhoneNumber Mobile number if available. No
Email Email address of the contact. No
Subscriptions List of subscriptions this contact should be opted into. No
Attributes List of attributes to set for this contact. No

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int id = XXXX;

var context = new T70Context();

var contactRepo = context.Repository<Contact>(new { AccountId = accountId });

var item = contactRepo.Get(id);

item.Email = "";

contactRepo.Update(item);

}

}

 

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