Event Item Attribute Collection API Endpoint

Use Item Attributes to provide options for event items, such as sizes for clothing articles, or color or style options. Use the Item Attribute Collection API endpoint to create (POST) a new attribute, or retrieve (GET) all existing attributes for an item.

Methods:

Click a method to view its documentation

GET POST

DescriptionTOP

Privileges required: campaign:read

Retrieve all attributes for an event item. Specify the event and item using the eventId and itemId path parameters.

GET: https://api.constantcontact.com/v2/eventspot/events/{eventId}/items/{itemId}/attributes

Test API

name

type

default

description

api_key

query

REQUIRED; The API key for the application

eventId

path

Unique ID of the event for which to retrieve item attributes

itemId

path

Unique ID of the item to which the attributes belong

Response CodesTOP

code

description

200

Request was successful

401

Authentication failure

404

An event or item could not be found for the ID provided

406

Unsupported Accept Header value, must be application/json

500

Internal server error occurred

StructureTOP

property

type(max length)

description

id

string (100)

The attribute's Unique ID

name

string (100)

Attribute name, minimum length = 1, cannot leave blank

quantity_available

integer

Number of item attributes that are still available

quantity_total

integer

Number of item attributes offered, minimum = 0, cannot leave blank

Example ResponseTOP

[
	{
	"id":"9k7uXp6Hgyiq7BCC11zFc0XQU2aR_wPmDNJVddPgGWM",
	"name":"Royal Blue",
	"quantity_total":175,
	"quantity_available":175
	},
	{
	"id":"9k7uXp6Hgyiq7BCC11zFc476STDHQ_sadfwfRCYGMSU",
	"name":"Hi-Vis Green",
	"quantity_total":75,
	"quantity_available":75
	}
]