Loading...

Description

Gets the details of a specific attribute definition.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account which owns the definition. Yes
attribDefId The attribute definition ID which is to be retrieved. 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;

 const int attributeDefId = XXX;

var context = new T70Context();

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

var item = accountAttDefRepo.Get(attributeDefId);

}

}

 

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