Loading...

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.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account from which the value should be removed. Yes
name The name or ID of the value 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 = XXX;

const string accountAttributeName = "XXX";

var context = new T70Context();

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

accountAttributeRepo.Delete();

}

}

 

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