Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/callback/{callbackId}

Description

Removes a callback object. Note that it is possible to prevent a callback from being triggered temporarily without deleting it by setting that callbacks "active" flag to false.

Path Parameters

accountId integer The ID of the account that owns the callback. required
callbackId integer The ID of the callback object to remove. 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 callbackId = XXXX;

var context = new T70Context();

var callbackRepo = context.Repository<Callback>(new { AccountId = accountId });

var item = callbackRepo.Get(callbackId);

callbackRepo.Delete(item);

}

}