Loading...

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/external-couponlist/{externalCouponListId}

Description

Updates an existing external coupon list and its coupons

Path Parameters

accountId integer The accountId that will own the external coupon list. required
externalCouponListId integer The ID of the external coupon list that needs to be updated. required

Request Properties application/json

Name string Name for the external coupon list definition required
Description string Description for the external coupon list optional
Inheritable boolean If external coupon list can be shared with the child accounts or not optional
Url string Blob URL pointing to the CSV file should have all coupon codes in one column with "CouponCodes" as the column header optional
CouponCodes array[string] A list of coupon codes optional


                    

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 externalCouponListId = XXXX;

var context = new T70Context();

var externalCouponRepo = context.Repository<ExternalCouponList>(new { AccountId = accountId });

var item = externalCouponRepo.Get(externalCouponListId);

item.Name = "XXXX";

externalCouponRepo.Update(item);

}

}