update_os_event()
Updates the script code of an existing OsEvent via dms.UpdateOsEvent.
|
Only the script code ( |
1. Signature
-
Sync
-
Async
ecm.system.update_os_event(
os_event_id: int,
script: str,
) -> None
await ecm.system.update_os_event(
os_event_id: int,
script: str,
) -> None
2. Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
— |
Id of the event to update (the |
|
|
— |
The new script code (JavaScript or VBScript). Stored by the server in the Windows-1252 (cp1252) code page; characters outside cp1252 raise |
4. Examples
-
Sync
-
Async
ecm.system.update_os_event(9, "'updated script")
await ecm.system.update_os_event(9, "'updated script")
5. See also
-
get_os_events() — list events.
-
create_os_event() — create an event.
-
delete_os_event() — delete an event.
-
refresh_server_events() — activate events without a server restart.