Rest API Config endpoint for contacts
Object type: contact
Request URL: /rest/config/contact
Example contact:
{
"object": {
"language": "",
"servicegroups": [{
"ref": "/rest/config/servicegroup/2",
"name": "freshness checks"
}, ],
"all_servicegroups": "1",
"name": "admin",
"encrypted_password": "$apr1$dEX5UaQz$D6fCyI197d33YcQQqe1Yj.",
"variables": [{
"value": "1",
"name": "RSS_COLLAPSED"
}, ],
"all_hostgroups": "1",
"fullname": "admin",
"keywords": [{
"ref": "/rest/config/keyword/8",
"name": "allservicechecks"
}],
"description": "Initial admin user",
"hostgroups": [{
"ref": "/rest/config/hostgroup/4",
"name": "Build"
}, {
"ref": "/rest/config/hostgroup/2",
"name": "Monitoring Servers"
}, ],
"notificationprofiles": [{
"host_notification_options": "u,d,r,f",
"servicegroups": [],
"ref": "/rest/config/notificationprofile/4",
"name": "Default",
"all_servicegroups": "1",
"all_hostgroups": "0",
"hostgroups": [{
"ref": "/rest/config/hostgroup/5",
"name": "Leaf2"
}],
"service_notification_options": "w,c,r,u,f",
"id": "4",
"notification_level": "1",
"uncommitted": "1",
"notification_period": {
"ref": "/rest/config/timeperiod/1",
"name": "24x7"
}
}],
"realm": "local",
"id": "1",
"role": {
"ref": "/rest/config/role/10",
"name": "Admin"
},
"uncommitted": "0"
}
}
Note: The reference to the notificationprofile object type is not currently available.