Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
107 views

I am following the directions according to https://docs.virustotal.com/reference/url-info And I successfully get a response from VirusTotal API when I: $id="u-...
u20210512's user avatar
0 votes
1 answer
71 views

I would like to add a sprint value (or name or string or id) in an existing JIRA ticket via Powershell and more specifically invoke-restmethod (not with curl). Could somebody mention me an existing ...
JTR's user avatar
  • 1
1 vote
1 answer
142 views

Odd problem in Azure Automation, this code block doing a GET will work in 5.1, but not 7.2. However, if I do a POST or UPDATE, in 7.2 it works fine. I've done some research and I can't find any ...
user28026435's user avatar
0 votes
1 answer
101 views

I would like to attach a small txt file in an existing JIRA ticket by the help of the command Invoke-RestMethod - POST in Powershell Here after the code (file Test_JTR_post_transition.ps1): param( [...
JTR's user avatar
  • 1
1 vote
1 answer
196 views

I'm trying pull data from WhatConverts via their API, and to then upload that into a SQL table. As I've dug deeper into the nature of the underlying data, there are several data types being returned ...
NDallasDan's user avatar
0 votes
1 answer
268 views

I'm running into an issue with a powershell script using Microsoft Graph API commands to create user accounts in M365. It's strange because it wasn't having any issues until fairly recent. Basically, ...
dbarnes's user avatar
  • 539
0 votes
0 answers
43 views

The Invoke-RestMethod looks like: Invoke-RestMethod -Uri 'url' -Method 'GET' -Headers $headers The header contains a bearer token The python code looks like: import requests url = "some_url&...
cristian hantig's user avatar
0 votes
0 answers
41 views

I'm building a PowerShell script and I want to master my fallback strategy using Invoke-RestMethod according to returned HTTP Status Codes. I'm assuming that Invoke-RestMethod throws for any non 2XX ...
Kino101's user avatar
  • 1,003
1 vote
1 answer
133 views

I send a POST command against an API with Invoke-RestMethod. I expect the return value to be a download link that I want to process further. However, this URL is stored in a property whose name ...
Gill-Bates's user avatar
0 votes
1 answer
154 views

I have a PowerShell script for calling an API. Currently it looks like this: param( [string]$resultFile, [string]$from, [string]$to) try { $headers = @{'api-key' = '763bcb3d-7b62-4075-877e-...
Andy_T's user avatar
  • 3
0 votes
1 answer
52 views

I am trying to invoke 2 rest method and executing the 2nd one in loop as shown in below code. $resultIdRes = (Invoke-RestMethod -Uri "https://neoload-api.saas.neotys.com/v3/workspaces/tests/...
Vishal Chepuri's user avatar
1 vote
1 answer
365 views

I am attempting to automate the updating of a variable group in Azure DevOps using a PowerShell script executed within a Pipeline. The goal is to retrieve values from a SQL database and dynamically ...
Michael Brown's user avatar
0 votes
0 answers
154 views

I am trying to invoke a rest api. But I get 401 unauthorized. The same call works fine from C# and postman with the same token. Here is a snippet of the code I am using: $contentType = "...
Venkat R's user avatar
-1 votes
1 answer
48 views

...it's connecting to the Emsisoft API (https://api.emsisoft.com/) to create a workspace, but I need help understanding the error. # Define your API endpoint URL $apiUrl = "https://api.emsisoft....
user23704376's user avatar
0 votes
1 answer
496 views

i'm currently developing a Powershell script to refresh a single table partition of my Power BI dataset using a POST API call through the Invoke-RestMethod. # Connect the Service Principal $password = ...
GianLuca Colaiacomo's user avatar
0 votes
1 answer
171 views

I'm trying to figure out why my script not working anymore: $Header = @{ 'user' = "myuser" 'password' = "mypassword" } Invoke-...
Anton Struhli's user avatar
0 votes
1 answer
2k views

Hope someone can help. I'm trying to send a REST POST message using the Invoke-Rest method command to a sms service. When I use postman to send the request I'm able to send the message. However, when ...
Mike Trott's user avatar
0 votes
0 answers
340 views

I'm a newbie when it comes to using soap and rest, so don't assume I know what I'm doing. I've been doing some google searching and have confused myself more that I've helped. I'm unable to extract ...
eNv's user avatar
  • 1
1 vote
1 answer
1k views

What character encoding should a POST body to /v1.0/users have? I have problems with generating users with accented characters in the name with Microsoft Graph. I use the following body: { "...
Haruka Shitou's user avatar
1 vote
2 answers
519 views

I have this code to download the file and save it but I don't know the type of the file so when saving it I am having trouble deciding the type. here is the code $tokenUrl = "/api/v1/gettoken&...
Rohit's user avatar
  • 1,550
0 votes
0 answers
223 views

I am trying to query the endpoint for target failures in zendesk: https://developer.zendesk.com/api-reference/ticketing/targets/target_failures/ Specifically: List Target Failures GET /api/v2/...
Jacob King's user avatar
1 vote
2 answers
336 views

I prepared following request to get a file content from azure devops reop item api. the file content stored in git in UTF-8 format. but the output of rest api is not as expected! how to fix the issue ...
Mehdi's user avatar
  • 5,617
0 votes
1 answer
751 views

Overview: I am trying to make a script that downloads my internet service provider's (ISP) monthly statement. 'Cus, you know, who doesn't do that regularly? My ISP is Spectrum. I have the code that ...
Tyler's user avatar
  • 3
0 votes
1 answer
402 views

The same Error happened with the 'get' method in the PowerShell command Invoke-RestMethod. I'm wondering if someone can help me with the following error (hide some information): PS C:\Windows\...
Fyaz Manknojiya's user avatar
0 votes
0 answers
169 views

Anybody have an idea how in powershell we could list all @ODATA.NEXTLINK without crawling the values. We have 130k users and using the paging of invoke-restmethod on https://graph.microsoft.com/v1.0/...
Olivier Ernest's user avatar
0 votes
1 answer
683 views

Add the moment I am able to read files from our SharePoint with Azure Automation. The problem for me is when I do the import I loss all the property values on the CSV. So the following file has the ...
Jeroen Budding's user avatar
0 votes
1 answer
228 views

Im having big troubles understanding, why my Powershell Code always returns code 400 on Invoke-RestMethod This is my sample code #leaving out clientid and tenantid intentionally $MsalParams = @{ ...
Christoph's user avatar
0 votes
1 answer
330 views

I'm attempting to dynamically create about 50 QR Codes using GoQR.me's API. I have all the source and destination URLs in a CSV file QRCodes.csv formatted as: source, destination https://api.qrservers....
dpruth's user avatar
  • 326
0 votes
1 answer
224 views

I am using powershell to get data using INCOKE-RestMethod and using GET method So far i did this on PowerShell $response = Invoke-RestMethod 'www.sample.net/data?key=1234&Accept=application/JSON&...
Lonestar fun's user avatar
0 votes
0 answers
149 views

**How can i Download this File ?no matter how ** I am not looking for a bug in my code or the possibility to use a specific variant. = Im now Open for everything :D MainSitehttps://www.lcpdfr.com/...
10_40 Hedda's user avatar
0 votes
0 answers
863 views

I'm running the following script to retrieve the credentials of a service account from conjur (cyberark product) # Create a dictionary to store headers $headers = New-Object "System....
Karan Jeet's user avatar
0 votes
0 answers
72 views

I'm encountering an error while making an API call using PowerShell. The error message I receive is: Error calling the API: "errorTypeCode":"REQUEST-EMPTY","message":&...
Staffyeahh's user avatar
1 vote
2 answers
527 views

import requests import subprocess import base64 credentials = "login:password" url = f'urlXXXurl' body = '{"id": 4986986, "key": "2df534ee-270b-4ab4-83fb-...
Takeren's user avatar
  • 55
0 votes
1 answer
255 views

I have a script that sends text (names) to a REST api. I read the names (and other info) from the AD and construct a JSON string and then use Invoke-RestMethod to send the data to the external REST ...
jmase's user avatar
  • 11
0 votes
2 answers
2k views

I am trying to retrieve app owners from Azure Portal App Registration under the Manifest using the Microsoft Graph API and REST Method via a PowerShell script. I am using a service principal account (...
opperska's user avatar
  • 109
1 vote
0 answers
597 views

I'm trying to load an image (.png) into my Gitlab project using an API call from powershell but it doesn't work $token = "<my_access_token>" $projectId = "5" $file = "...
Manu's user avatar
  • 91
0 votes
0 answers
1k views

I am starting to get a little bit desperate. When sending an HTTPS-Request from my local machine using the following code, everything works fine and I get my expected response from the webserver. # ...
ABF's user avatar
  • 119
0 votes
1 answer
639 views

A hearty hello to everyone! I have set up an Azure Function App (S1 SKU) and I am trying to use one of the functions as a client that sends an HTTPS-Request to another web server (API). I do this ...
ABF's user avatar
  • 119
1 vote
0 answers
110 views

When connected on Wifi: PS C:\Users\Julio> Invoke-RestMethod juliobs.com Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a receive. At line:1 char:1 + ...
Julio Batista Silva's user avatar
0 votes
1 answer
489 views

I am sending a query with Invoke-WebRequest and want to output a value from the response header. For this I wrote a function that contains the following query: Invoke-RestMethod @Params -...
Gill-Bates's user avatar
0 votes
0 answers
439 views

I am trying to add HTML as a value in JSON body in below code in PowerShell. It gives 400 Bad Request. The HTML content contains lots of ampersands, quotes, commas etc. due to which this fails. The ...
Ghan's user avatar
  • 351
2 votes
2 answers
4k views

I'm relatively new to using Invoke-RestMethod /Invoke-WebRequest in general- I think that's important context for the below question. I'm making a call like the below: $Headers = @{ "...
Johnny Welker's user avatar
0 votes
1 answer
615 views

I've run into a weird scenario when trying to pull real time info on phones. I can grab the data just fine and drill down into it but run into an issue I'm not sure how to work around. Here's a sample ...
sdcrytek's user avatar
1 vote
1 answer
942 views

My first post here, as I am newb to scripting/programming. I have a requirement to download files from an external service via a REST API and then upload those files to SharePoint. I have put together ...
Micksta's user avatar
  • 35
0 votes
1 answer
3k views

I have built a PUT Request using Invoke-RestMethod in a powershell script. This request looks like : # Main global var $securePassword = ConvertTo-SecureString -String $pat -AsPlainText $credential = [...
french_dev's user avatar
  • 2,177
0 votes
0 answers
137 views

Working code for URL Image moderation. It's not working for local images. I get a "remote server return error (400) Bad Request" I am not sure if I should convert the images to bytes. Any ...
premo103's user avatar
1 vote
1 answer
1k views

In PowerShell using Invoke-RestMetjhod to call different API´s I am stuck getting an InvalidOperation error when trying to pass both header and body information to the POST call. My script is: Set-...
StigK's user avatar
  • 11
0 votes
1 answer
875 views

I'm trying to call an API that I created, using Azure DevOps pipelines (yaml file), and in it I need to pass in the headers the Authorization with Bearer token coming from the devops library and in ...
Leonardo Oliveira's user avatar
0 votes
1 answer
319 views

I'm trying to copy Horizon application pools that exist on a source Horizon connection server (HCS) to another one. In my homelab that works perfectly, in another environment on "invoke-...
ChrisTheTerror's user avatar
1 vote
1 answer
705 views

I'm writing a script to pull order details from an API using Invoke-RestMethod. I have the response which PS has converted json into a PSCustomObject. What I'm attempting to do is produce rows in a ....
ColinA's user avatar
  • 99