Loading...

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

Description

Gets all values set on an account. Note that inherited values are also returned. The ID of the account which the value is directly set is returned for reference.

Path Parameters

accountId integer The account to check. required

Response Properties application/json

Id integer The ID of the attribute definition
AccountId integer The ID of the account this attribute is directly set on.
Name string The name of the attribute
Value string The value of the attribute
[
  {
    "Id": 1520,
    "AccountId": 22,
    "Name": "t70_short_url_base",
    "Value": "http://abcd.abcd.bz/3/"
  },
  {
    "Id": 1756,
    "AccountId": 22,
    "Name": "t70_allow_chat",
    "Value": true
  }
]

C#


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

var context = new T70Context();

var accountAttributeRepo = context.Repository<AccountAttribute>(new { AccountId = accountId });

var attributeList = accountAttributeRepo.GetAll();

}

}