New-BirdWeatherRESTStationSoundscapes
SYNOPSIS
Upload Soundscape
SYNTAX
__AllParameterSets
New-BirdWeatherRESTStationSoundscapes [[-Token] <string>] [-Path] <string> [-Timestamp] <datetime>
[-Raw] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- New-BWRStationSoundscapes
DESCRIPTION
The New-BirdWeatherRESTStationSoundscapes cmdlet invokes the POST method of the /stations/{token}/soundscapes endpoint (Upload Soundscape)
Uploads an audio file which can then be associated with a posted detection.
The audio file should be submitted as the POST body with the timestamp specified as a query parameter in the URL in ISO8601 format.
This is a write function. It changes data in BirdWeather. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
New-BirdWeatherRESTStationSoundscapes -Path '.\soundscape.flac' -Timestamp '2026-11-14T08:00:00Z' -WhatIf
Shows the POST request to the /stations/{token}/soundscapes endpoint without sending it
EXAMPLE 2
New-BirdWeatherRESTStationSoundscapes -Path '.\soundscape.flac' -Timestamp '2026-11-14T08:00:00Z' -Token 21934 -WhatIf
Uses the defined station token (or station ID) instead of the station token that was stored with Add-BirdWeatherAPIKey
PARAMETERS
-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: ''
-Path
Defines the path of the file that is sent as the request body
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- FilePath
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
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: ''
-Timestamp
The timestamp of the start of the soundscape, 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: 2
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}/soundscapes