Update agent advanced settings

POST https://caas.digicert.com/automationws/v1/agent/updateadvancesettings
Use this endpoint to update the communication interval (also known as the heartbeat interval) and debug log level settings for an automation agent.

Example requests and responses

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/agent/updateadvancesettings' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "divisionId": 677793,
    "licenseKey": "3D8B9DE411965F6F",
    "advancedSettings": {
        "heartbeatInterval": 30,
        "programLogs": {
            "startNow": false,
            "manually": false,
            "timezone": "5:30#chennai",
            "stopTimezone": "5:30#chennai",
            "startAt": 1605805200000,
            "stopOn": 1605828600000
        }
    }
}'

200 OK

{
    "error": null,
    "data": "Agent Advanced Settings updated"
}

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
divisionIdrequiredstringDivision ID.
licenseKeyrequiredstringLicense key associated with the agent.
advancedSettingsrequiredobjectObject with key/value pairs for each setting to update.
.. heartbeatIntervalrequiredintegerAgent heartbeat interval (in seconds).
.. programLogsoptionalobjectObject for configuring the debug log level for the agent’s program logs.
By default, the program logs for an agent only include error messages. To get more information in the logs, you can use the programLogs object to manually change the log level from “error” to “debug”. Alternatively, you can set specific times when the system should start and stop writing debug level messages to the program logs.
.. .. startNowoptionalbooleanUse true to immediately change the log level from “error” to “debug”.
.. .. manuallyoptionalbooleanUse true to require a user to manually disable the debug log level.
.. .. timezoneoptionalstringTime zone for the agent to start the debug log.
Format: GMT + your timezone offset.
Example:
-8#pacifictime
.. .. stopTimezoneoptionalstringTime zone for the agent to stop the debug log.
Format: GMT + your timezone offset.
Example:
-8#pacifictime
.. .. startAtoptionallongSchedules the system to automatically enable the debug log level at a at a specific time.
Format: epoch in milliseconds.
Example:
1596781119000
.. .. stopOnoptionallongSchedules the system to automatically disable the debug log level at a specific time.
Format: epoch in milliseconds.
Example:
1598299200000

Response parameters

NameTypeDescription
errorobjectObject with error details, if any.
Note: Returns null if there are no errors.
dataobjectMessage with additional information about the request.