Loading...

Description

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


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account to check. Yes

Response Properties

Property Description
Id The ID of the attribute
AccountId The account which defined this attribute.
CategoryId Attribute definition category
DataType The data type of the attribute
Name The name of the attribute.
Inheritable 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 Freeform description of the attribute.

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;

var context = new T70Context();

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

var list = accountAttDefRepo.GetAll();

}

}

 

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