Loading...

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

Description

Creates a new keyword with the supplied details.

Path Parameters

accountId integer The account that will own the keyword. required
channel string The channel that the keyword will respond on. required

Request Properties application/json

Name string The name of the keyword to reserve. required
CallbackRequired boolean Boolean to specify if the client requires a callback when this keyword is texted in. 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 channelId = XXX;

var context = new T70Context();

var keywordRepo = context.Repository<Keyword>(new { AccountId = accountId, ChannelId = channelId });

var keyword = new Keyword

{

Name = "Keyword_SDK_Test1",

CallbackRequired = false

};

keywordRepo.Add(keyword);

}

}