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


Creates a new account attribute definition.

Path Parameters

accountId integer The account which is creating the definition. required

Request Properties application/json

CategoryId integer Attribute definition category required
DataType string The data type of the attribute required
Name string The name of the attribute. required
Inheritable boolean Set if this attribute is inheritable, that is to say that child accounts will get this value from their parents if not directly set. optional
Description string Freeform description of the attribute. optional
    "AccountId": 38268,
    "CategoryId": 0,
    "DataType": 2,
    "Name": "WQLW2612",
    "Inheritable": false,
    "Description": "HMJO3803"


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;

var context = new T70Context();

var accountAttDefRepo = context.Repository<AccountAttributeDefinition>(new { AccountId = accountId });

var item = new AccountAttributeDefinition()


CategoryId = XXX,

DataType = DataType.StringType,

Name = "XXXX"