Forum Discussion
vinod-sunkara
Jun 02, 2021Copper Contributor
Update the Azure DevOps service endpoint (connection) using REST API
we are using the REST API Method (https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/update%20service%20endpoint?view=azure-devops-rest-6.0) to update the existing AWS s...
JeffTech74
Apr 06, 2022Copper Contributor
Having an issue with the ConvertFrom-json part. I get Invalid JSON primitive: Script. Any ideas?
Also, I get this:
Updating the Service Connection [Connection_Name_Here]
An error occurred:
{"$id":"1","innerException":null,"message":"Value cannot be null.\r\nParameter name: endpoints","typeName":"System.ArgumentNullException, mscorlib","typeKey":"Argument
NullException","errorCode":0,"eventId":0}
JeffTech74
Apr 07, 2022Copper Contributor
vinod-sunkara Fixed both issues. There was an extra comma after "UsernamePassword" for the Convert-From-json error and I found that there was another permission to set for the account that my PAT was using to be an Administrator for the Service Connection which is why I was getting a NULL value for the Service Connection.
- harjot_singh_baggaDec 26, 2023Copper Contributor
JeffTech74 Hello Jeff, I am getting the same error, '401 Unauthorized', if you could, can you please give some details on how you resolved the second issue, i.e., the another permission to set for the account that PAT was using.