today

Pick the code excerpt a finding describes

Asks the decision model which of several code excerpts shows what a finding describes. Returns null when it is unsure. 404 when the person may not use Jev.

post/api/projects/{project_id}/today/excerpt_choice/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/today/excerpt_choice/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

findingstring required

The finding the code excerpts should show.

excerptsstring[] required

Candidate code excerpts, best scored first.

Response

indexinteger nullable required

The excerpt that shows what the finding describes, or null when unsure.

Changes

No recorded changes to this operation across all 1 revision of this API.