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.
Click a method to view its documentation
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 |
|||
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 |
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 |
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 |
[ { "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 } ]