Loading...

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

Description

Generic method to get action details.

Path Parameters

accountId integer The account Id which owns the action. required
actionId integer The action to get details for. required

Response Properties application/json

Id integer The Unique Id of the Action.
TypeId number Type of Action.
AccountId integer Account Id which owns the Action.
StatusId number Resource Status Id of the Action
Created string Date on which the Action is created.
Modified string Date on which the Action has been recently modified.
CreatedBy string Name of the user who created the Action.
ModifiedBy string Name of the user who modified the Action.
{
     "TypeId": 3,
     "AccountId": 44409,
     "StatusId": 0,
     "Created": "2018-05-25T11:13:25",
     "Modified": "2018-05-25T11:13:25",
     "CreatedBy": "John",
     "ModifiedBy": "",
     "Id": 57515
 }

C#


using System;
using System.Collections.Generic;
using ThreeSeventy.Vector.Client;
using Action = ThreeSeventy.Vector.Client.Models.Action;
using ThreeSeventy.Vector.Client.Models;

public class Program

{

         private static void Main(string[] args)

{

const int accountId = XXXX;

const int actionId = XXXX;

var context = new T70Context();

var actionRepo = context.Repository<Action>(new { AccountId = accountId });

var item = actionRepo.Get(actionId);

}

}