Loading...

Description

Creates a new content group.


Request URL

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

Request Properties

Parameter Description Mandatory
Name The name of the content Yes
Description Addtional description data Yes
Templates List of templates to create or update along with the content item. Yes
accountId The account ID which will own the content group. Yes

Response Properties

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

C#
PHP


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);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet