1 Reply Latest reply on Apr 27, 2018 10:54 AM by rcklewis

    Assign Tech Via powershell

    solaradmin

      Is anyone using PowerShell to successfully managed tickets? Specifically I am looking to assign the ticket to a tech.

       

      Here is what I am trying to use without success

       

      $Body = @{

      emailTechGroupLevel="false";

      emailGroupManager="false";

      Clienttech= @{

           id="3";

           type="tech";

           displayname="Tech Name";

                    }

      }

      $Json= $body | Convertto-Json

       

      Invoke-restmethod -Uri "Helpdesk api stuff" -Method Put -Body $Json

       

       

       

        • Re: Assign Tech Via powershell
          rcklewis

          Try this and see if it works. Powershell is VERY picky about the syntax.

           

          $json=@"

          {

          "clientTech": {

               "id": "3",

               "type": "Tech",

               "displayName": "Tech Name",

          }

          }

          "@

          Invoke-RestMethod -Uri "Helpdesk api stuff" -Method PUT -Body $json  -ContentType "application/json"