Ad Widget

Collapse

No permissions to referred object or it does not exist! calling api

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lasaxkimo
    Junior Member
    • Apr 2019
    • 1

    #1

    No permissions to referred object or it does not exist! calling api

    Hi,

    I having this error from call to api Zabbix Zabbix 7.0.0:

    - UrL: https://zabbixserver.com/api_jsonrpc.php
    - Method: post
    - Header: with bearer token of user with Admin rights
    - Body:
    Code:
    {
        "jsonrpc": "2.0",
        "method":"maintenance.update",
        "params": [{
                "maintenanceid":"5",
                "timeperiods": [{
                    "timeperiod_type":"0",
                    "period":"8000"
                }]
            }],
        "id": 1
    }
    Response:
    Code:
    {
        "jsonrpc": "2.0",
        "error": {
            "code": -32500,
            "message": "Application error.",
            "data": "No permissions to referred object or it does not exist!"
        },
        "id": 1
    }
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Are you sure params can take a list of objects? In examples in https://www.zabbix.com/documentation...nce_commentary there is only a single object.

    Markku

    Comment

    Working...