tracing

Suggest a human-readable name for a retention rule from its retention tier and filter group. Used by the create form as an auto-suggest; nothing is persisted. Returns an empty name when a suggestion can't be generated.

post/api/projects/{project_id}/tracing/retention_rules/suggest_name/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/tracing/retention_rules/suggest_name/
  • Auth: none declared

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

retention_daysinteger required

Retention tier the rule would assign, in days.

filter_groupunknown required

Response

namestring required

Suggested rule name. Empty when no suggestion could be generated — clients hide the hint.

Changes

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