Loading...

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

Description

Removes an account attribute value from an account. Note that this will only remove the attribute that is immediately set on an account. Inhertied values must be unset on their respective parent account id.

Path Parameters

accountId integer The account from which the value should be removed. required
name string The name or ID of the value 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 = XXX;

const string accountAttributeName = "XXX";

var context = new T70Context();

var accountAttributeRepo = context.Repository<AccountAttribute>(new { AccountId = accountId, Name = accountAttributeName });

accountAttributeRepo.Delete();

}

}