provider llm_analytics POST /api/environments/{environment_id}/llm_analytics/score_definitions/
@utdk/posthog /api/environments/{environment_id}/llm_analytics/score_definitions/
environments_llm_analytics_score_definitions_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsLlmAnalyticsScoreDefinitionsCreate
POST/api/environments/{environment_id}/llm_analytics/score_definitions/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required

Human-readable scorer name.

Optional human-readable description.

required

Scorer kind. This cannot be changed after creation. * `categorical` - categorical * `numeric` - numeric * `boolean` - boolean

New scorers are always created as active.

required

Initial immutable scorer configuration.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsLlmAnalyticsScoreDefinitionsCreate({
  "archived": false
})