New-BirdWeatherRESTStationDetections

SYNOPSIS

Post Detection

SYNTAX

__AllParameterSets

New-BirdWeatherRESTStationDetections [[-Token] <string>] [-Timestamp] <datetime>
 [-CommonName] <string> [-ScientificName] <string> [[-Lat] <double>] [[-Lon] <double>]
 [[-Confidence] <double>] [[-SoundscapeId] <long>] [[-SoundscapeStartTime] <double>]
 [[-SoundscapeEndTime] <double>] [-Raw] [-WhatIf] [-Confirm]

ALIASES

This cmdlet has the following aliases,

  • New-BWRStationDetections

DESCRIPTION

The New-BirdWeatherRESTStationDetections cmdlet invokes the POST method of the /stations/{token}/detections endpoint (Post Detection)

Registers a detection that has previously been analyzed by BirdNET or a compatible soundscape analyzer.

This is a write function. It changes data in BirdWeather. Use -WhatIf to see the request without sending it

EXAMPLES

EXAMPLE 1

New-BirdWeatherRESTStationDetections -Timestamp '2026-11-14T08:00:00Z' -CommonName 'Black-capped Chickadee' -ScientificName 'Poecile atricapillus' -WhatIf

Shows the POST request to the /stations/{token}/detections endpoint without sending it

EXAMPLE 2

New-BirdWeatherRESTStationDetections -Timestamp '2026-11-14T08:00:00Z' -CommonName 'Black-capped Chickadee' -ScientificName 'Poecile atricapillus' -Token 21934 -WhatIf

Uses the defined station token (or station ID) instead of the station token that was stored with Add-BirdWeatherAPIKey

PARAMETERS

-CommonName

The species’ common name.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Confidence

Confidence as detected by BirdNET.

Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 6
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Lat

Latitude for the detection (will use the station’s latitude if not specified).

Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 4
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Lon

Longitude for the detection (will use the station’s longitude if not specified).

Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 5
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (including the success flag) instead of only the results

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ScientificName

The species’ scientific name.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 3
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SoundscapeEndTime

End time (in seconds) of the detection within the soundscape audio file.

Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 9
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SoundscapeId

ID of a previously uploaded soundscape.

Valid range: 1 - 9223372036854775807

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 7
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SoundscapeStartTime

Start time (in seconds) of the detection within the soundscape audio file.

Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 8
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Timestamp

The timestamp of the start of the detection, in ISO8601 format. Accepts a date, it is sent to the API in UTC (ISO 8601)

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Token

Defines the station token, or the numeric station ID (such as 21934) of a public station or when an administrator API token is used

The PUC-21934 style name of a station is not accepted by the API

By default the station token defined by Add-BirdWeatherAPIKey is used

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- StationToken
- StationId
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Endpoint : POST /stations/{token}/detections