Loading...

Description

Update an account attribute definition.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which the new Yes
attribDefId The ID of the specific attribute definition to update. Yes
CategoryId The Id of category Yes
Description A full description of the attribute. 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 id = XXXX;

var context = new T70Context();

var contactAttDefRepo = context.Repository<ContactAttributeDefinition>(new { AccountId = accountId });

var item = contactAttDefRepo.Get(id);

item.DataTypeId = (int)DataType.IntType;

contactAttDefRepo.Update(item);

}

}

 

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