Reset a goal
Removes the display settings of a goal. Its completions are kept.
Related: Goals report and Goals over time in Goals.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
goalNamestringrequiredPattern: ^[a-z0-9][a-z0-9_:-]{0,63}$
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the goals:write scope.
Response
Whether settings existed.
{
"status": "string",
"data": {
"reset": true
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.reset | boolean |