Projects

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

PATCH

Update organizations projects tracing config

Manage tracing product configuration for this project's canonical environment. Members can read; writing requires project admin, matching the admin-only settings UI. Mirrors the env-router action so /api/projects/:id/tracing_config/ resolves alongside the legacy /api/environments/:id/tracing_config/ alias.

Path parameters

  • id
    integer

Request parameters

  • tracing_distinct_id_attribute_keys
    array
  • tracing_session_id_attribute_keys
    array

Response


Example request

PATCH /api/organizations/:organization_id/projects/:id/tracing_config
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/organizations/:organization_id/projects/:id/tracing_config/\
-d tracing_distinct_id_attribute_keys="array"

Example response

Status 200
RESPONSE
{
"tracing_distinct_id_attribute_keys": [
"string"
],
"tracing_session_id_attribute_keys": [
"string"
]
}