Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/campaign/{campaignId}/chat

Description

Deletes the chat object for a campaign.

Path Parameters

accountId integer The account which owns the campaign. required
campaignId integer The campaign which the chat object is attached. required

C#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int campaignId = XXXX;

var context = new T70Context();

var chatCampRepo = context.Repository<CampaignChat>(new { AccountId = accountId });

var item = chatCampRepo.Get(campaignId);

chatCampRepo.Delete(item);

}

}