Listing Tasks For a Specific Request Using REST API
Hey all,
I'm trying to use PowerShell to get an array of tasks using the REST API. When I use it though, it seems to spit out all tasks. Here's my code:
$apiUrl = "
https://$SDURL/api/v3/requests/$requestID/tasks"
$apiToken = 'XXXXXX’
$taskHeader = @{TECHNICIAN_KEY=$apiToken}
$response = Invoke-RestMethod -Method get -Uri $apiUrl -Header $taskHeader -ContentType "application/x-www-form-urlencoded"
Any help would be greatly appreciated. Thanks!
New to ADSelfService Plus?