Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/hog_functions/
- Auth: HTTP bearer
Path parameters
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
Display name for the function.
Human-readable description of what this function does.
Whether the function is active and processing events.
Soft-delete flag. Set to true to archive the function.
Source code. Hog language for most types; TypeScript for site_destination and site_app.
Values for each input defined in inputs_schema.
URL for the function's icon displayed in the UI.
ID of the template to create this function from.
Execution priority for transformations. Lower values run first.
Incremented every time the live config changes. See the revisions endpoint.
When config was last staged for review, or null when nothing is staged.
Optimistic concurrency: the updated_at (or draft_updated_at when editing a staged draft) you last read. If the stored side is newer, the write fails with 409 instead of overwriting the concurrent edit. Omit to overwrite unconditionally.
Response
Display name for the function.
Human-readable description of what this function does.
Whether the function is active and processing events.
Soft-delete flag. Set to true to archive the function.
Source code. Hog language for most types; TypeScript for site_destination and site_app.
Values for each input defined in inputs_schema.
URL for the function's icon displayed in the UI.
ID of the template to create this function from.
Execution priority for transformations. Lower values run first.
Incremented every time the live config changes. See the revisions endpoint.
When config was last staged for review, or null when nothing is staged.
Optimistic concurrency: the updated_at (or draft_updated_at when editing a staged draft) you last read. If the stored side is newer, the write fails with 409 instead of overwriting the concurrent edit. Omit to overwrite unconditionally.
Changes
No recorded changes to this operation across all 1 revision of this API.