Loading...

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

Description

Lists all attributes on a contact as a set of name value pairs.

Path Parameters

accountId integer The account which the contact is owned by required
contactId integer The contact to which the attributes belong. required

Response Properties application/json

Id integer The ID of the attribute defintion.
Name string The name of this attribute.
Value string The value of this attribute.
[
  {
    "Id": 1,
    "Name": "FirstName",
    "Value": "Test First Name"
  },
  {
    "Id": 2,
    "Name": "LastName",
    "Value": "Test Last Name"
  }
]

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 contactId = XXXX;

var context = new T70Context();

var contactAttributeRepo = context.Repository<ContactAttribute>(new { AccountId = accountId, ContactId = contactId });

var list = contactAttributeRepo.GetAll();

}

}