Loading...

Description

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


Request URL

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

Request Properties

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

var context = new T70Context();

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

var item = accountAttDefRepo.Get(accountAttDefId);

accountAttDefRepo.Delete(item);

}

}

 

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