Loading...

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

Description

Gets a list of all attribute defintions this account has access to.

Path Parameters

accountId integer The account to check. required

Response Properties application/json

Id integer The ID of the attribute
AccountId integer The account which defined this attribute.
CategoryId number Attribute definition category
DataType string The data type of the attribute
Name string The name of the attribute.
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.
Description string Freeform description of the attribute.
[
  {
    "Id": 2,
    "AccountId": 38268,
    "CategoryId": 0,
    "DataType": 2,
    "Name": "WQLW2612",
    "Inheritable": false,
    "Description": "HMJO3803"
  },
  {
    "Id": 3,
    "AccountId": 38273,
    "CategoryId": 0,
    "DataType": 2,
    "Name": "XAQB7110",
    "Inheritable": true,
    "Description": "APVH8177"
  }
]

C#


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 accountAttDefRepo = context.Repository<AccountAttributeDefinition>(new { AccountId = accountId });

var list = accountAttDefRepo.GetAll();

}

}