Loading...

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

Description

Removes a specific attribute data item.

Path Parameters

accountId integer The account which the contact is owned by required
contactId integer The contact to which the property belongs. required
name string The name (or attribute definition ID) of the attribute to remove. required

C#


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 contactId = XXXX;

const string attributeName = "XXXXXX";

var context = new T70Context();

var contactAttributeRepo = context.Repository<ContactAttribute>(new { AccountId = accountId, ContactId = contactId, Name = attributeName });

contactAttributeRepo.Delete();

}

}