Loading...

Description

Creates the import action.


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/action-importContacts

Request Properties

Parameter Description Mandatory
accountId The account which holds the import action. Yes
Schedules The list of schedules associated with the action Yes
Execute Set true if the action should be executed on creation Yes
Url Points to a BLOB url that contains the file to parse. Yes
Subscriptions A list of subscriptions that should be added or modified for each of the contacts in the supplied file. Yes
OverrideSubscription This will override optout to optin Yes

Response Properties

Property Description
Id The ID of the event.
AccountId The account ID that the action reports under.
Created When this action was first created.
Modified When this action was last modified.
CreatedBy Who initially created this action.
ModifiedBy Who last modified this action
Schedules The list of schedules associated with the action
Url Points to a BLOB url that contains the file to parse.
Subscriptions A list of subscriptions that should be added or modified for each of the contacts in the supplied file.
OverrideSubscription This will override optout to optin

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = 4662;

const int actionId = XXXX;

var context = new T70Context();

var actionImportContactRepo = context.Repository<ActionImportContacts>(new { AccountId = accountId });

var item = new ActionImportContacts()
{

AccountId = accountId,

Schedules = XXXX,

Url = "XXX",

Subscriptions = XXXXX

};

actionImportContactRepo.Add(item);

}

}

 

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