Loading...

Description

Adjusts the details of a callback object.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account that needs a callback setup. Yes
CallbackType The type of callback. Yes
URL URL to callback Yes
Active Used to quickly enable/disable the callback. 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 = XXXXX;

const int callbackId = XXXXX;

var context = new T70Context();

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

var item = callbackRepo.Get(callbackId);

item.Url = "http://XXXXXXXXXXX.com";

callbackRepo.Update(item);

}

}

 

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