Skip to content
Website API / Goals

Reset a goal

DELETEhttps://<your Reveata origin>/api/v1/websites/{website}/goals/{goalName}

Removes the display settings of a goal. Its completions are kept.

Related: Goals report and Goals over time in Goals.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

goalNamestringrequired

Pattern: ^[a-z0-9][a-z0-9_:-]{0,63}$

Headers

Authorizationstringrequired

Bearer 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

FieldTypeDescription
status"ok"
dataobject
data.resetboolean