Job updating in rest API browser view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2018 03:51 AM - edited 03-01-2019 09:28 AM
Hi Experts
While trying to update a job using the following URL
http://<hostname>:<port>/apidoc/<DSP name>/method/Job/update/
This XML is showing and asking for providing Object
<?xml version="1.0" encoding="UTF-8" ?>
<entry xmlns="http://purl.org/atom/ns#">
<tes:Job.update xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<object><object>
</tes:Job.update></entry>
Can anyone suggest what needs to be provided here to update a job? I am unable to find any schema details for it in reference guides.
Thanks
Sourav
- Labels:
-
Other Intelligent Automation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2018 04:34 AM
First the base url will be http://<hostname>:<port>/api/<DSP name>
resource path /postbody
<?xml version='1.0' encoding='UTF-8'?>
<tes:entry xmlns:ns0="http://purl.org/atom/ns#">
<tes:Job.update xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:job>
<tes:command>/bin/echo</tes:command>
<tes:id>1410</tes:id>
<tes:parameters>'Hi, there!'</tes:parameters>
<tes:type>2</tes:type>
<tes:calendarfromdateasstring>20161123000000</tes:calendarfromdateasstring>
</tes:job>
</tes:Job.update>
</tes:entry>
In case you do not have this I have attached the Rest API reference guide. The objects are all defined in the Appendix A. It does not show what is required at a minimum but you can safely say you would need the ID and the type
