Loading...

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

Description

Lists all of the attribute definitions that are available to the supplied account ID.

Path Parameters

accountId integer The ID of the account to check 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
  },
  {
    "Id": 5946,
    "AccountId": 44316,
    "DataTypeId": 1,
    "CategoryId": 0,
    "Name": "Amount",
    "Description": null,
    "Created": "2017-03-03T10:30:02",
    "Modified": "2017-03-03T10:30:02",
    "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;

var context = new T70Context();

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

var list = contactAttDefRepo.GetAll();

}

}