provider logs POST /api/projects/{project_id}/logs/sampling_rules/reorder/
@utdk/posthog /api/projects/{project_id}/logs/sampling_rules/reorder/
logs_sampling_rules_reorder_create
Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
limit query
Number of results to return per page.
integer
offset query
The initial index from which to return the results.
integer
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
logsSamplingRulesReorderCreate
POST/api/projects/{project_id}/logs/sampling_rules/reorder/
Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).

Parameters

required

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

Number of results to return per page.

The initial index from which to return the results.

Input

required

Rule IDs in the desired evaluation order (first element is highest priority / lowest order index).

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