Problem with downtime

Hi

I’ve a problem on my icinga2 interface.
I can’t set a downtime on my differents hosts.

error:

icinga2: Can't send external Icinga command: 500 Action execution failed: 'Error: Could not create downtime object.

icinga2 feature list
Disabled features: command compatlog debuglog elasticsearch gelf graphite influxdb livestatus opentsdb statusdata syslog
Enabled features: api checker ido-pgsql mainlog notification perfdata

On my /etc/icinga2/features-available/api.conf

object ApiUser "icingaweb2" {
  password = "XXXXXXXXXX"

  permissions = [
    {
      permission = "status/query"
    },     {
      permission = "actions/*"
    },     {
      permission = "objects/modify/*"
    },     {
      permission = "objects/query/*"
    }
  ]
}

icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.2-1)

I’m checking my config but not sure about the solution…

Thanks for help
Alex

Hi, could you show us the api call please?

Humm in fact i’m trying to do it with icinga web interface not via api, sorry my question is perhaps not very clear.
So directly with icinga web interface, i select my host, click on “downtime”

# Schedule Service Downtime

and when i click on schecule downtime, i’ve this error: icinga2: Can’t send external Icinga command: 500 Action execution failed: 'Error: Could not create downtime object.

why you want to restrict the api user of the gui? You can create inside of icingaweb2 users and roles with special restrictions for every user.