Skip to main content
PATCH
Update a goal

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site
string
required

The site: its domain as registered (example.com), or its site id.

id
string
required

The goal's id, from the goals list.

Body

application/json
name
string

The goal's name, as the Goals card shows it.

Required string length: 1 - 100
type
enum<string>

page counts a pageview, event a custom event.

Available options:
page,
event
match
string

A page goal's path, * wildcards allowed, or an event goal's exact event name. A path is stored with a leading slash and no trailing one.

Required string length: 1 - 500

Response

OK

data
object
required