Loading...

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

Description

Stops the action and all it's schedules

Path Parameters

accountId integer The account which holds the action. required
actionId integer The action to stop. required

C#


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
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 actionImportContactRepo = context.Repository<ActionImportContacts>(new { AccountId = accountId, Id = actionId });

var item = actionImportContactRepo.Get(actionId);

actionImportContactRepo.Delete(item);

}

}