Loading...

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

Description

Removes a schedule from the action

Path Parameters

accountId integer The account which holds the action and the schedule required
actionId integer The action to remove schedule from required
scheduleId integer The schedule to remove required

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

var context = new T70Context();

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

var item = actionPushRepo.Get(actionScheduleId);

actionPushRepo.Delete(item);

}

}