Docs: Describe parameter 'expiry' in 'add-comment' API action

This commit is contained in:
Noah Hilverling 2021-07-29 17:56:35 +02:00
parent 9169c805a8
commit 3bc90e83e5

View File

@ -1277,9 +1277,10 @@ Adds a `comment` from an `author` to services or hosts.
Send a `POST` request to the URL endpoint `/v1/actions/add-comment`. Send a `POST` request to the URL endpoint `/v1/actions/add-comment`.
Parameter | Type | Description Parameter | Type | Description
----------|--------|-------------- ----------|-----------|--------------
author | string | **Required.** Name of the author, may be empty. author | string | **Required.** Name of the author, may be empty.
comment | string | **Required.** Comment text, may be empty. comment | string | **Required.** Comment text, may be empty.
expiry | Timestamp | **Optional.** Comment expiry time.
In addition to these parameters a [filter](12-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`. In addition to these parameters a [filter](12-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`.