Skip to content

Add-TwitterSavedSearch

SYNOPSIS

Create a new saved search for the authenticated user.

SYNTAX

Add-TwitterSavedSearch [-SearchString] <String> [<CommonParameters>]

DESCRIPTION

Create a new saved search for the authenticated user.

Note: A user may only have 25 saved searches.

EXAMPLES

Example 1

PS > Add-TwitterSavedSearch -SearchString '(#pwsh_eats)'
Id                  CreatedAt            Name         Query
--                  ---------            ----         -----
1399362817376014341 5/31/2021 8:51:09 AM (#pwsh_eats) (#pwsh_eats)

Add a new saved search for the #pwsh_eats hashtag.

PARAMETERS

-SearchString

The query of the search the user would like to save.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

System.String

OUTPUTS

BluebirdPS.APIV1.SavedSearch

NOTES

Online Version

Get-TwitterSavedSearch

Remove-TwitterSavedSearch

Api Reference - Search Standard Operators

Api Reference - POST saved_searches/create