Skip to contents

Download investigation records in CSV, JSON, or Parquet format. Filters are the same as dep_read_investigations().

Usage

dep_share_investigations(
  format = c("csv", "json", "parquet"),
  id = NULL,
  status = NULL,
  type = NULL,
  department = NULL,
  title = NULL,
  started_at = NULL,
  finished_at = NULL,
  includes = NULL,
  dry_run = FALSE,
  verbosity = 0
)

Arguments

format

Character. Export format: "csv", "json", or "parquet".

id

Integer vector. Filter by event ID(s).

status

Character vector. Filter by investigation status.

type

Character. Filter by investigation type.

department

Character. Filter by department.

title

Character. Filter by title (partial match).

started_at

Character. Filter by start date (e.g. "2024-01-01,2024-12-31" for a range).

finished_at

Character. Filter by finish date (same range format).

includes

Character vector of related resources to include in the response. Valid values: "calls", "investigations", "animals", "group".

dry_run

Logical. If TRUE, prints the request without sending it.

verbosity

Integer. How much information to print (0 = silent, 1 = headers, 2 = headers + body, 3 = full).

Value

The parsed export data, or the raw response if dry_run is TRUE.