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


Creates a new attribute definition.

Path Parameters

accountId integer The account ID which the new attribute definition will belong to. required

Request Properties application/json

DataTypeId number The ID of the data type for this attribute. required
CategoryId number The Id of category required
Name string Name of the attribute definition. required
Description string A full description of this attribute. required
    "DataTypeId": 2,
    "CategoryId": 0,
    "Name": "Name",
    "Description": "Name"


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