Loading...

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

Description

Removes an attribute defintion. Note that when a definition is removed all attributes that are tied to that definition are also removed.

Path Parameters

accountId integer The account which has access to remove the defintion. required
attribDefId integer The definition ID 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 accountAttDefId = XXX;

var context = new T70Context();

var accountAttDefRepo = context.Repository<AccountAttributeDefinition>(new { AccountId = accountId });

var item = accountAttDefRepo.Get(accountAttDefId);

accountAttDefRepo.Delete(item);

}

}