Loading...

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

Description

Gets a schedule details

Path Parameters

accountId integer The account which holds the action and the schedule required
actionId integer The action to get schedule for required
scheduleId integer The schedule to get details for required

Response Properties application/json

Id integer Unique schedule ID.
Created string When this schedule was first created.
Modified string When this schedule was last modified.
CreatedBy string Who initially created this schedule.
ModifiedBy string Who last modified this schedule.
AccountId integer Account this schedule belongs to.
ActionId integer Action id this schedule belongs to.
ScheduleTypeId number Schedule Type Id: Daily, Weekly, Monthly.
RunAt string Time of day to start run at. The schedule will run once a scheduled period (daily, weekly, monthly) at a given time.
StartFrom string Date and time from which schedule will start.
EndAfter string Date and time after which schedule will stop.
WeekDay string Day(s) of week to run action on. [REQUIRED FOR WEEKLY SCHEDULE TYPE]
MonthDay string Day(s) of month to run action on. [REQUIRED FOR MONTHLY SCHEDULE TYPE]
Logs array[object] Log records associated with this run
  {
    "Id": 33075,
    "Created": "2018-06-12T03:44:28",
    "Modified": "2018-06-12T03:49:13",
    "CreatedBy": "vogob@emailsy.info",
    "ModifiedBy": "",
    "AccountId": 44419,
    "ActionId": 57542,
    "ScheduleTypeId": 2,
    "ScheduleType": "OneTime",
    "RunAt": "03:45:00",
    "StartFrom": "2018-06-12T00:00:00",
    "EndAfter": null,
    "WeekDay": "?",
    "MonthDay": "*",
    "ProcessStatus": "Pending",
    "Logs": null
  }

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;

const int actionId = XXXX;

const int actionScheduleId = XXXXX;

var context = new T70Context();

var actionPushRepo = context.Repository<ActionSchedule>(new { AccountId = accountId, ActionId = actionId });

var item = actionPushRepo.Get(actionScheduleId);

}

}