API run a event

tomimatko

Active member
I'm experimenting a bit with the API. Is it possible to trigger a specific event in the scheduler via the API?
If yes, what would the command look like? For example, if the event is called "Dance"

http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&Dance

Although action=schedule&type=list returns XML showing that the event "Dance" exists, it still keeps giving me E101: event does not exist.
 
I'm experimenting a bit with the API. Is it possible to trigger a specific event in the scheduler via the API?
If yes, what would the command look like? For example, if the event is called "Dance"

http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&Dance

Although action=schedule&type=list returns XML showing that the event "Dance" exists, it still keeps giving me E101: event does not exist.
OK, I got it. As I understand, it doesn’t work with the event name but with its ID.
First, I made http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=list to see the event ID (or copy the event ID in the scheduler), and then I made
http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&id=HJIOGDNOPHFDTHMJ

And everything works as it should.
 
Back
Top