Zabbix Documentation 1.8

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

api:user:deletemedia

deleteMedia()

Available since version: 1.8

Parameters

Array with media data, media ID must be specified.

ParameterTypeOptionalDescriptionDetails
mediasarray Yes Media objects which should be deleted (removed / added).

Returns

ParameterDescription
resultOperation successful. Result will contain an array of deleted user media IDs.
errorIn case of any errors

Example

Remove two user media from user with ID “100100000010092”

{
"jsonrpc":"2.0",
"method":"user.deleteMedia",
"params":[
  {"mediaid": "100100000000011"},
  {"mediaid": "100100000000012"}
],
"auth":"f223adf833b2bf2ff38574a67bba6372",
"id":2
}

User media deleted successfully:

{
"jsonrpc":"2.0",
"result":{
   "mediaids":["100100000000011", "100100000000012"]
},
"id":2
}