Loading...

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

Description

Removes an answer from a question campaign.

Path Parameters

accountId integer The account which owns the campaign required
campaignId integer The campaign which the answer should be placed into required
answerId integer The specific answer to delete. 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;

const int answerId = XXXX;

var context = new T70Context();

var campQuesAnsDefRepo = context.Repository<CampaignQuestionAnswerDefinition>(new { AccountId = accountId, CampaignId = campaignId });

var item = campQuesAnsDefRepo.Get(answerId);

campQuesAnsDefRepo.Delete(item);

}

}