Loading...

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

Description

Gets the details for a specific attribute definition.

Path Parameters

accountId integer The account ID which can view the attribute definition. required
attribDefId integer The ID of the specific attribute definition to get. required

Response Properties application/json

Id integer
AccountId integer
DataTypeId number
CategoryId number
Name string
Description string
Created string
Modified string
CreatedBy string
ModifiedBy string
  {
    "Id": 5945,
    "AccountId": 44316,
    "DataTypeId": 2,
    "CategoryId": 0,
    "Name": "Name",
    "Description": null,
    "Created": "2017-03-02T08:52:27",
    "Modified": "2017-03-02T08:52:27",
    "CreatedBy": null,
    "ModifiedBy": null
  }

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;

const int id = XXXX;

var context = new T70Context();

var contactAttDefRepo = context.Repository<ContactAttributeDefinition>(new { AccountId = accountId });

var item = contactAttDefRepo.Get(id);

}

}