Loading...

Description

Removes a specific attribute data item.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account which the contact is owned by Yes
contactId The contact to which the property belongs. Yes
name The name (or attribute definition ID) of the attribute 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 contactId = XXXX;

const string attributeName = "XXXXXX";

var context = new T70Context();

var contactAttributeRepo = context.Repository<ContactAttribute>(new { AccountId = accountId, ContactId = contactId, Name = attributeName });

contactAttributeRepo.Delete();

}

}

 

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