Creates a new attribute definition.

Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which the new attribute definition will belong to. Yes
DataTypeId The ID of the data type for this attribute. Yes
CategoryId The Id of category Yes
Name Name of the attribute definition. Yes
Description A full description of this attribute. Yes


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;

var context = new T70Context();

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

var item = new ContactAttributeDefinition()

AccountId = accountId,

CategoryId = 0,

Name = "XXXX",

DataTypeId = (int)DataType.StringType






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