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


Creates a new template for a content group. Note that you can only have one template per supported language type.

Path Parameters

accountId integer The account ID which owns the content group. required
contentId integer The content group which the template will be contained within. required

Request Properties application/json

LanguageId integer The language this template is for. optional
ChannelTypeId number The type of channel this content can be sent to. required
EncodingTypeId number The format of the tempalte data optional
Template string The actual template required
ImageId integer ID of image to send optional



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 contentId = XXX;

var context = new T70Context();

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

var item = new ContentTemplate()

AccountId = accountId,
ChannelType = ChannelType.Sms,
ContentId = contentId,
LanguageType = LanguageType.English,
EncodingType = EncodingType.Text,
Template = ""