Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/content/{contentId}/template/{templateId}

Description

Removes a template from a content group.

Path Parameters

accountId integer The account ID which owns the content group. required
contentId integer The content group which the template is contained within. required
templateId integer The specific template ID to remove 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 contentTemplateId = XXX;

const int contentId = XXX;

var context = new T70Context();

var contentTempRepo = context.Repository<ContentTemplate>(new {AccountId = accountId, ContentId = contentId});

var item = contentTempRepo.Get(contentTemplateId);

contentTempRepo.Delete(item);

}

}