POST fixlet threw REST API

Hello,

I am trying to POST the fixlet via cURL for this I am using the XML file and giving the Site name, Fixlet ID and computer name in that XML file.

Enclosing the Format of sample XML File.

<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
      <SourcedFixletAction>
        <SourceFixlet>
            <Sitename>BES Support</Sitename>
            <FixletID>168</FixletID>
            <Action>Action1</Action>
        </SourceFixlet>
        <Target>
            <ComputerName>WIN-C5SNQG90G02</ComputerName>
        </Target>
      </SourcedFixletAction>
</BES>

Saved this file with the name xyz.xml

Here - 168 is the fixlet ID.
BES Support - Site name.
WIN-C5SNQG90G02 - Computer name.

and executed the cURL command.
curl -k -X POST -d @xyz.xml -u Admin:Admin098 https://localhost:52311/api/actions

:Admin:Admin098 - Username:Password

With this command I am able to execute a fixlet on a target machine.

Now is there any possibility that we can execute the fixlet say Fixlet ID -123 of BES Support site without using XML file?

I

1 Like

You always have to post the xml to create an action.