Goals
Create a goal
A click goal matches an element by CSS selector, data-hoot-id or label text; a page goal matches a page path pattern. Needs an owner or editor; personal access tokens receive 403. A site can have 20 goals.
Required token scopes are listed in x-hootlens-scopes. A signed-in person needs the matching permission on the site instead (the viewer and editor roles are presets of the permissions).
post/v1/projects/{projectId}/goals
Request
- Base URL: https://hootlens-api-368877148687.us-east1.run.app
- URL: https://hootlens-api-368877148687.us-east1.run.app/v1/projects/{projectId}/goals
- Auth: HTTP bearer
Path parameters
projectIdstring required
An identifier: 1 to 80 letters, digits, underscores or hyphens.
The project ID. Project IDs are public identifiers, not secrets.
Request body
Response
The new goal.
Changes
No recorded changes to this operation across all 1 revision of this API.