Loading...

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

Description

Adjusts the details of a callback object.

Path Parameters

accountId integer The account that needs a callback setup. required
callbackId integer The ID of the callback to update. required

Request Properties application/json

CallbackType number The type of callback. required
URL string URL to callback required
Active boolean Used to quickly enable/disable the callback. 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 = 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);

}

}