provider error_tracking POST /api/environments/{environment_id}/error_tracking/external_references/
@utdk/posthog /api/environments/{environment_id}/error_tracking/external_references/
environments_error_tracking_external_references_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsErrorTrackingExternalReferencesCreate
POST/api/environments/{environment_id}/error_tracking/external_references/

Parameters

required

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

Input

required

Unique ID of the external reference.

required

The connected integration this reference was created through.

required

ID of the connected integration to create the external issue with. List the project's integrations to find the right ID and its kind (one of 'github', 'gitlab', 'linear', 'jira').

required

Provider-specific fields describing the external issue to create. Required keys depend on the integration kind: github -> {repository, title, body}; gitlab -> {title, body}; linear -> {team_id, title, description}; jira -> {project_key, title, description}. Examples: github {"repository":"posthog","title":"Checkout TypeError","body":"Stack trace"}; linear {"team_id":"team-id","title":"Checkout TypeError","description":"Stack trace"}; jira {"project_key":"ENG","title":"Checkout TypeError","description":"Stack trace"}.

required

ID of the error tracking issue to link the reference to.

required

URL of the linked external issue in the provider's system.

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.environmentsErrorTrackingExternalReferencesCreate()