Loading...

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

Description

Removes the supplied attribute definition and any associated attribute values. Note that only the account which initially created the attribute definition is allowed to delete it.

Path Parameters

accountId integer The ID of the account which owns the attribute definition. required
attribDefId integer The ID of the specific attribute definition to delete. 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 id = XXX;

var context = new T70Context();

var contactAttDefRepo = context.Repository<ContactAttributeDefinition>(new { AccountId = accountId });

var item = contactAttDefRepo.Get(id);

contactAttDefRepo.Delete(item);

}

}