Loading...

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

Description

Creates a new content group.

Path Parameters

accountId integer The account ID which will own the content group. required

Request Properties application/json

Name string The name of the content required
Description string Addtional description data required
Templates array[object] List of templates to create or update along with the content item. required


                    

Response Properties application/json

AccountId integer The account to which this content block belongs.
Description string Addtional description data
Name string The name of the content


                    

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;

var context = new T70Context();

var contentRepo = context.Repository<Content>(new { AccountId = accountId});

var item = new Content()

{

AccountId = accountId,

Description = "",

Name = ""

};

contentRepo.Add(item);

}

}