< Back

Set-Myjson

Sat Jan 18, 2020 4:56 pm

NAME Set-Myjson



SYNOPSIS

Update myjson file





SYNTAX

Set-Myjson [-Id] <String> [-InputObject] <Object> [<CommonParameters>]





DESCRIPTION

Updates exsisting myjson file wtih a provided object





PARAMETERS

-Id <String>

Myjson file url/id



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-InputObject <Object>

Object to upload



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Id/Url of the myjson file



Object to upload





OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-Myjson -Id "https://api.myjson.com/bins/a1a1a1a1" -InputObject @{"key"="value"}













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-Myjson -Id "a1a1a1a1" -InputObject @{"key"="value"}















RELATED LINKS