Loading...

Description

Updates an existing schedule on the action


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account which holds the action and the schedule Yes
actionId The action to update schedule on Yes
scheduleId The schedule to update Yes
ScheduleTypeId Schedule Type Id: Daily, Weekly, Monthly. Yes
RunAt Time of day to start run at. The schedule will run once a scheduled period (daily, weekly, monthly) at a given time. Yes
StartFrom Date and time from which schedule will start. No
EndAfter Date and time after which schedule will stop. No
WeekDay Day(s) of week to run action on. [REQUIRED FOR WEEKLY SCHEDULE TYPE] No
MonthDay Day(s) of month to run action on. [REQUIRED FOR MONTHLY SCHEDULE TYPE] No

Response Properties

Property Description
Id Unique schedule ID.
Created When this schedule was first created.
Modified When this schedule was last modified.
CreatedBy Who initially created this schedule.
ModifiedBy Who last modified this schedule.
AccountId Account this schedule belongs to.
ActionId Action id this schedule belongs to.
ScheduleTypeId Schedule Type Id: Daily, Weekly, Monthly.
RunAt Time of day to start run at. The schedule will run once a scheduled period (daily, weekly, monthly) at a given time.
StartFrom Date and time from which schedule will start.
EndAfter Date and time after which schedule will stop.
WeekDay Day(s) of week to run action on. [REQUIRED FOR WEEKLY SCHEDULE TYPE]
MonthDay Day(s) of month to run action on. [REQUIRED FOR MONTHLY SCHEDULE TYPE]
Logs Log records associated with this run

C#
PHP


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 = XXXXX;

const int actionScheduleId = XXXXX;

var context = new T70Context();

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

var item = actionPushRepo.Get(actionScheduleId);

//update your item
item.RunAt = "12:45:00";

actionPushRepo.Update(item);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet