How can I change the title of an action when it is created using using the REST API. Using the example from the ‘Quick Tutorial’ on the REST API works for me just fine.
I looked at the BES.xsd schema file and thought I would be able to add a Title tag
But, when I tried putting a Title tag after the SourcedFixletAction like this:
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction>
<Title>This is the new name </Title>
<SourceFixlet>
<Sitename>BES Support</Sitename>
. . .
Please check the post suggested by fermt. Essentially, the order in the XML matters. I just successfully tested with the following, where the Title is specified last (per the xsd):
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction>
<SourceFixlet>
<Sitename>BES Support</Sitename>
<!-- CPU Usage --> <FixletID>168</FixletID>
<!--Medium 5% --> <Action>Action3</Action>
</SourceFixlet>
<Target>
<!-- set computer id--> <ComputerID>123</ComputerID>
</Target>
<Title>This is the new name </Title>
</SourcedFixletAction>
</BES>
{"format":"Unexpected server error: {message}","arguments":["XML parsing error: no declaration found for element \u0027Title\u0027 Line 12, Character 9"]}