FMSYNC

agent.restart

Schema : https://api.fmsync.net/apiref/schema/agent/restart
Namespace : agent
Method : restart

Reboot the current agent service
return
OBJECT
Return informations to your database
syslog
OBJECT
Status returned to your system table
table
STRING
required
Name of your system table
record
OBJECT
required
Record that need to be updated
fnstatus
STRING
required
Field Name of the status column
fntaskid
STRING
Field Name of the taskid column
fnmessage
STRING
Field Name of the message column

Request
[POST] curl https://api.fmsync.net/v2/{sourcekey}/agent/restart
-d task={
   "token":"eyJob3N0IjoiQzpcXEFjb19TREsiLCJjaWUiOiJDOlxcRjEwMDAuZHRhXFxEZW1vU0RLX0VOIiwidXNlciI6InN1cGVydmlzb3IiLCJwYXNzIjoiZGVtbyJ9"
}
Return
-d data={
   "success":true,
   "taskid":"8c3eba5309fc7baa4c9edf87f7133757a9e1067b",
   "context":"agent.update",
   "source":null,
   "syslog":{
      "type":"odbc",
      "sent":true,
      "message":null
   }
}

Copyright © Création Logicom 2025