Loading...

Description

Does not actually delete the contact, but removes all active subscriptions that contact is participating in.


Request URL

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/contact/{contactId}

Request Properties

Parameter Description Mandatory
accountId The ID of the account that owns the contact. Yes
contactId The ID of the contact to remove Yes

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);

contactRepo.Delete(item);

}

}

 

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