Hello! I want to create jobs via REST API. I found following pages at JobScheduler documentation: JobScheduler - REST Web Service: https://kb.sos-berlin.com/display/PKB/JobScheduler+-+REST+Web+Service XML Commands: https://www.sos-berlin.com/doc/en/scheduler.doc/xml_commands.xml As I understand, I need to send <add_jobs> command. But I don't really understand all the syntax. When I try, I get errors.</add_jobs> Is there some examples or tutorials existing? I want to get a simple example how to create...
It solved my problem. Thanks a lot!
Hello! Thanks for your answer. I did correct spelling in schedulerId parameter ('I' is in uppercase), it's forum issue, it made it lowercase somehow because I didn't paste request as code. POST /joc/api/jobscheduler/commands HTTP/1.1 Host: localhost:4446 access_token: 75530f65-0f85-4c4a-aab2-4445ddd1c0cf Content-Type: application/xml <jobscheduler_commands jobschedulerId='scheduler'><show_state/></jobscheduler_commands> Even though I used correct spelling in parameter, I am still getting error "token...
Hello! Thanks for your answer. I did correct spelling in schedulerId parameter ('I' is in uppercase), it's forum issue, it made it lowercase somehow because I didn't paste request as code. POST /joc/api/jobscheduler/commands HTTP/1.1 Host: localhost:4446 access_token: 75530f65-0f85-4c4a-aab2-4445ddd1c0cf Content-Type: application/xml <jobscheduler_commands jobschedulerId='scheduler'><show_state/></jobscheduler_commands> Even though I used correct spelling in parameter, I am still getting error "token...
Hello. I am using JobScheduler and JOC Cockpit version 1.13.1. Trying to use REST Api as it described at documentation https://kb.sos-berlin.com/display/PKB/JobScheduler+REST+Web+Service+Interface I am using Postman app to send requests and get responses. I face same problem under windows and linux with version 1.13.1 of software. First, I try to get a token Request: POST /joc/api/security/login HTTP/1.1 Host: localhost:4446 Authorization: Basic cm9vdDpyb290 Cache-Control: no-cache Response: { "enableTouch":...
Hello. I am using JobScheduler and JOC Cockpit version 1.13.1. Trying to use REST Api as it described at documentation https://kb.sos-berlin.com/display/PKB/JobScheduler+REST+Web+Service+Interface I am using Postman app to send requests and get responses. I face same problem under windows and linux with version 1.13.1 of software. First, I try to get a token Request: POST /joc/api/security/login HTTP/1.1 Host: localhost:4446 Authorization: Basic cm9vdDpyb290 Cache-Control: no-cache Response: { "enableTouch":...