cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1600
Views
0
Helpful
1
Replies

Job updating in rest API browser view

dipuSourav
Level 1
Level 1

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

1 Reply 1

Robert Gardner
Cisco Employee
Cisco Employee

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

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: