Create a depredation call
dep_create_call.RdSubmit a new depredation call report. A call is the initial incoming report that may generate or link to a depredation event.
Usage
dep_create_call(
caller,
reason,
place,
called_at,
caller_role = NULL,
caller_email = NULL,
caller_phone = NULL,
receiver = NULL,
receiver_role = NULL,
receiver_email = NULL,
receiver_phone = NULL,
confidence = NULL,
demands = NULL,
latitude = NULL,
longitude = NULL,
prey = NULL,
prey_killed = NULL,
prey_injured = NULL,
predator = NULL,
predator_amount = NULL,
observed_at = NULL,
add_project_id = TRUE,
dry_run = FALSE,
verbosity = 0
)Arguments
- caller
Character. Name of the person reporting the depredation.
- reason
Character. The reason for the call. Must be one of
dep_reasons().- place
Character. Location description of the incident.
- called_at
POSIXct or character (
"YYYY-MM-DD HH:MM:SS"). When the call was received.- caller_role
Character. Role of the caller. Must be one of
dep_caller_roles().- caller_email
Character. Email address of the caller.
- caller_phone
Character. Phone number of the caller.
- receiver
Character. Name of the person who received the call.
- receiver_role
Character. Role of the receiver.
- receiver_email
Character. Email of the receiver.
- receiver_phone
Character. Phone number of the receiver.
- confidence
Character. Confidence level. Must be one of
dep_confidence().- demands
Character vector. Requested actions. Values must be from
dep_demands().- latitude
Numeric. Latitude of the incident location.
- longitude
Numeric. Longitude of the incident location.
- prey
Character. Prey species involved.
- prey_killed
Integer. Number of prey killed.
- prey_injured
Integer. Number of prey injured.
- predator
Character. Predator species involved.
- predator_amount
Integer. Number of predators observed.
- observed_at
POSIXct or character. When the incident was observed.
- add_project_id
Logical. If
TRUE(default), automatically adds the current project ID to the request body.- 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).