Use this API endpoint to retrieve (GET), update (PUT), or DELETE an existing event fee promocode.
Click a method to view its documentation
Privileges required: contacts:lists:write
PUT: Update the name, status of the ContactList specified by the listId
path parameter. Performing a PUT overwrites all existing properties for the contactlist resource; any properties left blank or not included in the call will delete those property values prior to the call.
Privileges required: mylibrary:folder:update
Use PUT to modify the following properties for a folder specified by folderId
path parameter:
name
parent_id
parent_id
to 0Privileges required: mylibrary:file:update
Use a PUT call to update the following for a file (specified using the fileId
path parameter):
name
folder_id
to specify the destination folder.
Privileges required: campaign:write
Update an existing event by using the eventId
path parameter.
Privileges required: campaign:write
Update an existing event item; specify the event and the item using the eventId
and itemId
path parameters.
Privileges required: campaign:write
Update an existing promocode for an event; specify the code and event using the eventId
and promocodeId
path parameters.
Privileges required: campaign:write
Update an existing fee (specify using feeId
) for an event specified by eventId
.
Privileges required: campaign:write
Update an existing item attribute by specifying the eventId
, itemId
, and attributeId
path parameters. Include the attribute name and description in the JSON request body.
NOTE: You cannot change an attribute name once any have been sold to or claimed by event registrants.
Privileges required: campaign:activate
Update the schedule for an email campaign using the scheduleId
and campaignId
path parameters.
Privileges required: campaign:create
Update an existing email campaign message specified by the campaignId
path parameter. For campaigns with a template_type = CUSTOM, all editable fields are available for updating. If template_type = STOCK, the following fields are not available for edit (read-only):
These fields can only be updated using the Constant Contact user interface.
NOTE: There are several campaign properties that are optional by default, but become REQUIRED once another property is used. See Structure table below for specific properties.
PUT: https://api.constantcontact.com/v2/eventspot/events/{eventId}/promocodes/{promocodeId} |
|||
name |
type |
default |
description |
---|---|---|---|
api_key |
query |
REQUIRED; The API key for the application |
|
eventId |
path |
Unique ID of the event for which to update the promocode |
|
promocodeId |
path |
Unique ID of the promocode to update |
{ "code_type": "ACCESS", "code_name": "REDUCED_FEE", "quantity_total": 100, "is_paused": false, "discount_scope": "FEE_LIST", "fee_ids": [ "MIT4bfRPOntYqxSKs2ui9oPJUvBGM9P1V53KQcYO8Aw" ] }
code |
description |
---|---|
200 |
Promocode was successfully updated |
400 |
Either JSON was malformed or there was a data validation error |
401 |
Authentication failure |
404 |
An event or promocode with specified ID not found |
406 |
Unsupported accept header value, must be application/json |
415 |
Unsupported content-type in the header, must be application/json |
500 |
Internal server error occurred |
property |
type(max length) |
description |
---|
{ "id":"MIT4bfRPOntYqxSKs2ui9oPJUvBGM9P1V53KQcYO8Aw", "status":"LIVE", "code_name":"REDUCED_FEE", "is_paused":false, "fee_ids":[ "MIT4bfRPOntYqxSKs2ui9oPJUvBGM9P1V53KQcYO8Aw" ], "quantity_total":100, "quantity_used":0, "quantity_available":100, "code_type":"ACCESS" }