Loading...

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.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The ID of the account that owns the callback. Yes
callbackId The ID of the callback object to remove. Yes

C#
PHP


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);

}

}

 

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