From e3b6a89422bb471a7bbee2db3a76ac1279b38fb5 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 6 Feb 2018 18:03:36 +0100 Subject: [PATCH] Document the 'ignore_on_error' attribute for object creation fixes #5797 --- doc/12-icinga2-api.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md index 47cabf0f3..45c41da38 100644 --- a/doc/12-icinga2-api.md +++ b/doc/12-icinga2-api.md @@ -589,10 +589,11 @@ method: New objects must be created by sending a PUT request. The following parameters need to be passed inside the JSON body: - Parameters | Type | Description - -----------|--------------|-------------------------- - templates | Array | **Optional.** Import existing configuration templates for this object type. Note: These templates must either be statically configured or provided in [config packages](12-icinga2-api.md#icinga2-api-config-management)- - attrs | Dictionary | **Required.** Set specific object attributes for this [object type](09-object-types.md#object-types). + Parameters | Type | Description + ------------------|--------------|-------------------------- + templates | Array | **Optional.** Import existing configuration templates for this object type. Note: These templates must either be statically configured or provided in [config packages](12-icinga2-api.md#icinga2-api-config-management)- + attrs | Dictionary | **Required.** Set specific object attributes for this [object type](09-object-types.md#object-types). + ignore\_on\_error | Boolean | **Optional.** Ignore object creation errors and return an HTTP 200 status instead. The object name must be specified as part of the URL path. For objects with composite names (e.g. services) the full name (e.g. `example.localdomain!http`) must be specified.