Events

Update event

Previously updated an event by its goal code. This endpoint is no longer available.

Permissions: Requires write access to the site (manage:{site_id}).

post/sites/{site_id}/events/{event_id}

Path parameters

site_idstring required
Example:CDBUGS

The ID of the site. This is the same string you use in your tracking code. Example: CDBUGS

event_idstring required
Example:ABCDEFGH

The id (tracking code) of the event you wish to update. Example: ABCDEFGH

Request body

namestring

The name of the event (up to 255 characters).

currency'dollar' | 'pound' | 'euro' | 'yuan' | 'peso' | 'shekel' | 'yen' | 'won' | 'hryvnia' | 'franc' | 'rupee' | 'integer' | 'none'

The currency used for any value attached to this event's completions.

Example request

{
  "name": "Purchase early access (live)"
}

Changes

Changed in 1 of the 2 revisions of this API.14

  • 93547ee4939814See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • endpoint deprecated

      endpoint-deprecated

    • added the non-success response with the status 410

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • removed the non-success response with the status 401

      response-non-success-status-removed