Loading...

Description

Removes a schedule from the action


Request URL

DELETE   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 remove schedule from Yes
scheduleId The schedule to remove Yes

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

const int actionScheduleId = XXXX;

var context = new T70Context();

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

var item = actionPushRepo.Get(actionScheduleId);

actionPushRepo.Delete(item);

}

}

 

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