It's all about the answers!

Ask a question

updateing execution schedule using rest api, set start date to 1/1/1970 also change the time

MJ Ranji (173) | asked Oct 17 '23, 12:10 p.m.

Hi there,
any help appreciated :)

fetching xml  data of jobscheduler with its ID and with/without any change updateing the url will cause "start date" and time in web interface change to 1/1/1970 and time will be converted based on that, eventhough if fetching the xml again activationdate tag is the sam as original. it is not possible to update start date using rest put  method by changing activation date, the other parameters like weekday and expiry is possible to update but not start date, if manually from web interface set the start date , it will set the time also to original value!!!

url to do put and get : https://localhost:9443/qm/service/

xml body to send in put method:

<?xml version="1.0" encoding="UTF-8"?>
<ns2:jobscheduler xmlns:ns2="" xmlns:ns1="" xmlns:ns3="" xmlns:ns4="" xmlns:ns5=""
  xmlns:ns6="" xmlns:ns7="" xmlns:ns8="" xmlns:ns9="" xmlns:ns10=""
  xmlns:ns11="" xmlns:ns12="" xmlns:ns13="" xmlns:ns14="" xmlns:ns15=""
  xmlns:ns16="" xmlns:ns17="" xmlns:ns18="" xmlns:ns20="" xmlns:ns21="">
  <ns2:projectArea href="https://localhost:9443/qm/resource/itemOid/" alias="QmAutoTest+%28Quality+Management%29" />
  <ns4:creator ns1:resource="https://localhost:9443/jts/resource/itemName/">UserName</ns4:creator>
    <ns2:executionSequence href="https://localhost:9443/qm/service/" /></ns2:scheduledjob>

Be the first one to answer this question!

Register or to post your answer.