Notification
This is the documentation for the Quick Enrollment Notification API in ID360.
Attribute
- DAILY
- WEEKLY
- MONTHLY
{
"id": "2000000293042",
"name": "Notification schedule",
"description": "Notification scheduler description",
"groups": [
2000000283042,
2000000283043,
2000000283044
],
"notification_template_id": "2000000293042",
"notification_template": {
"id": "2000000293042",
"name": "Enrollment Notification Template"
},
"is_enabled": true,
"technician": {
"id": "2000000293042",
"name": "Technician 1"
},
"last_run_time": "2023-10-27T03:30:12Z",
"next_run_time": "2023-10-28T03:30:12Z",
"associated_groups_count": "30",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
Get All Notification Auto Schedule
The Get All Notification Auto Schedule API can be used to get the list of all notification auto schedule configurations for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.READ
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("GET", "/api/v1/protection/quick-enrollment/notification-auto-schedule", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"data": [
{
"id": "2000000293042",
"name": "Notification schedule",
"description": "Notification scheduler description",
"notification_template": {
"id": "2000000293042",
"name": "Enrollment Notification Template"
},
"is_enabled": true,
"technician": "Technician 1",
"last_run_time": "2023-10-27T03:30:12Z",
"next_run_time": "2023-10-28T03:30:12Z",
"associated_groups_count": "30",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
},
{
"id": "2000000293043",
"name": "Notification schedule 2",
"description": "Notification scheduler description 2",
"notification_template": {
"id": "2000000293043",
"name": "Enrollment Notification Template 2"
},
"is_enabled": false,
"technician": "Technician 2",
"last_run_time": "2023-10-27T04:00:00Z",
"next_run_time": "2023-10-28T04:00:00Z",
"associated_groups_count": "20",
"schedule_settings": {
"scheduler_interval": "DAILY",
"hours": "10",
"minutes": "30",
"day_of_week": "1",
"day_of_month": "15",
"month_of_year": "6"
}
},
{
"id": "2000000293044",
"name": "Notification schedule 3",
"description": "Notification scheduler description 3",
"notification_template": {
"id": "2000000293044",
"name": "Enrollment Notification Template 3"
},
"is_enabled": true,
"technician": "Technician 3",
"last_run_time": "2023-10-27T04:30:00Z",
"next_run_time": "2023-10-28T04:30:00Z",
"associated_groups_count": "25",
"schedule_settings": {
"scheduler_interval": "MONTHLY",
"hours": "15",
"minutes": "45",
"day_of_week": "2",
"day_of_month": "20",
"month_of_year": "11"
}
}
],
"meta": {
"start_index": 1,
"limit": 100,
"total_no_of_objects": 3
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Create Notification Auto Schedule
The Create Notification Auto Schedule API can be used to create a new notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.CREATE
Arguments
- DAILY
- WEEKLY
- MONTHLY
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule")
.post(body)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/api/v1/protection/quick-enrollment/notification-auto-schedule", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request POST \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Notification schedule",
"description": "Notification scheduler description",
"groups": [
2000000283042,
2000000283043,
2000000283044
],
"notification_template_id": "2000000293042",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
{
"data": {
"id": "2000000293042",
"name": "Notification schedule",
"description": "Notification scheduler description",
"notification_template": {
"id": "2000000293042",
"name": "Enrollment Notification Template"
},
"is_enabled": true,
"technician": {
"id": "2000000293042",
"name": "Technician 1"
},
"last_run_time": "2023-10-27T03:30:12Z",
"next_run_time": "2023-10-28T03:30:12Z",
"associated_groups_count": "30",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Get Notification Auto Schedule
The Get Notification Auto Schedule API can be used to get a specific notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.READ
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("GET", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042 \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"data": {
"id": "2000000293042",
"name": "Notification schedule",
"description": "Notification scheduler description",
"notification_template": {
"id": "2000000293042",
"name": "Enrollment Notification Template"
},
"is_enabled": true,
"technician": {
"id": "2000000293042",
"name": "Technician 1"
},
"last_run_time": "2023-10-27T03:30:12Z",
"next_run_time": "2023-10-28T03:30:12Z",
"associated_groups_count": "30",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Update Notification Auto Schedule
The Update Notification Auto Schedule API can be used to update a specific notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.UPDATE
Arguments
- DAILY
- WEEKLY
- MONTHLY
parameters_data='{"name":"Notification schedule","description":"Notification scheduler description","groups":[2000000283042,2000000283043,2000000283044],"notification_template_id":"2000000293042","schedule_settings":{"scheduler_interval":"WEEKLY","hours":"21","minutes":"0","day_of_week":"5","day_of_month":"10","month_of_year":"12"}}';
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042"
type: PATCH
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":\"Notification schedule\",\"description\":\"Notification scheduler description\",\"groups\":[2000000283042,2000000283043,2000000283044],\"notification_template_id\":\"2000000293042\",\"schedule_settings\":{\"scheduler_interval\":\"WEEKLY\",\"hours\":\"21\",\"minutes\":\"0\",\"day_of_week\":\"5\",\"day_of_month\":\"10\",\"month_of_year\":\"12\"}}");
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042")
.patch(body)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PATCH',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"name":"Notification schedule","description":"Notification scheduler description","groups":[2000000283042,2000000283043,2000000283044],"notification_template_id":"2000000293042","schedule_settings":{"scheduler_interval":"WEEKLY","hours":"21","minutes":"0","day_of_week":"5","day_of_month":"10","month_of_year":"12"}}'
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
payload = "{\"name\":\"Notification schedule\",\"description\":\"Notification scheduler description\",\"groups\":[2000000283042,2000000283043,2000000283044],\"notification_template_id\":\"2000000293042\",\"schedule_settings\":{\"scheduler_interval\":\"WEEKLY\",\"hours\":\"21\",\"minutes\":\"0\",\"day_of_week\":\"5\",\"day_of_month\":\"10\",\"month_of_year\":\"12\"}}"
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("PATCH", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PATCH",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
name: 'Notification schedule',
description: 'Notification scheduler description',
groups: [2000000283042, 2000000283043, 2000000283044],
notification_template_id: '2000000293042',
schedule_settings: {
scheduler_interval: 'WEEKLY',
hours: '21',
minutes: '0',
day_of_week: '5',
day_of_month: '10',
month_of_year: '12'
}
}));
req.end();
curl --request PATCH \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042 \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"name":"Notification schedule","description":"Notification scheduler description","groups":[2000000283042,2000000283043,2000000283044],"notification_template_id":"2000000293042","schedule_settings":{"scheduler_interval":"WEEKLY","hours":"21","minutes":"0","day_of_week":"5","day_of_month":"10","month_of_year":"12"}}'
{
"name": "Notification schedule",
"description": "Notification scheduler description",
"groups": [
2000000283042,
2000000283043,
2000000283044
],
"notification_template_id": "2000000293042",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
{
"data": {
"id": "2000000293042",
"name": "Notification schedule",
"description": "Notification scheduler description",
"notification_template": {
"id": "2000000293042",
"name": "Enrollment Notification Template"
},
"is_enabled": true,
"technician": {
"id": "2000000293042",
"name": "Technician 1"
},
"last_run_time": "2023-10-27T03:30:12Z",
"next_run_time": "2023-10-28T03:30:12Z",
"associated_groups_count": "30",
"schedule_settings": {
"scheduler_interval": "WEEKLY",
"hours": "21",
"minutes": "0",
"day_of_week": "5",
"day_of_month": "10",
"month_of_year": "12"
}
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Delete Notification Auto Schedule
The Delete Notification Auto Schedule API can be used to delete a specific notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.DELETE
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042")
.delete(null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("DELETE", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042 \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Get Notification Auto Schedule History
The Get Notification Auto Schedule History API can be used to get all the history of notification auto schedule runs for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.READ
Query Parameters
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("GET", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/history \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"data": [
{
"id": "2000000293042",
"start_time": "2023-10-27T03:30:12Z",
"end_time": "2023-10-27T03:35:12Z",
"notification_type": "Mail, SMS",
"total_attempted_count": 100,
"success_count": 100,
"initiated_by": "System"
},
{
"id": "2000000293043",
"start_time": "2023-10-27T04:00:00Z",
"end_time": "2023-10-27T04:05:00Z",
"notification_type": "Mail, SMS",
"total_attempted_count": 100,
"success_count": 25,
"initiated_by": "Technician 1"
},
{
"id": "2000000293044",
"start_time": "2023-10-27T04:30:00Z",
"end_time": "2023-10-27T04:35:00Z",
"notification_type": "Mail, SMS",
"total_attempted_count": 100,
"success_count": 15,
"initiated_by": "Technician 2"
}
],
"meta": {
"start_index": 1,
"limit": 100,
"total_no_of_objects": 3
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Enable Notification Auto Schedule
The Enable Notification Auto Schedule API can be used to enable a specific notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.UPDATE
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable")
.post(null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("POST", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request POST \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/enable \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Disable Notification Auto Schedule
The Disable Notification Auto Schedule API can be used to disbale a specific notification auto schedule configuration for quick enrollment.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.UPDATE
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable")
.post(null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("POST", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request POST \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/disable \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Run Notification Auto Schedule Now
The Run Notification Auto Schedule Now API can be used to trigger a specific notification auto schedule configuration immediately for quick enrollment.
Note: This API will return job resource
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE,id360.quick_enrollment.UPDATE
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow")
.post(null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("POST", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request POST \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/runnow \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"data": {
"id": "2000000293042",
"status": "RUNNING",
"message": "Enrollment notification scheduler is started. Check Notification delivery reports once execution is completed."
},
"links": {
"status": {
"href": "/jobs/2000000293042"
}
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Get Notification Auto Schedule Groups
The Get Notification Auto Schedule Groups API can be used to get the list of groups associated with a specific notification auto schedule.
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.READ
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
conn.request("GET", "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/notification-auto-schedule/2000000293042/groups \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"data": [
2000000283042,
2000000283043,
2000000283044
]
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}
Send Manual Notification
The Send Manual Notification API can be used to send a manual notification to users for quick enrollment.
Note: This API will return job resource
OAuth Scope : id360.quick_enrollment.ALL,id360.quick_enrollment.WRITE
Arguments
- LOW
- MEDIUM
- HIGH
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Accept", "application/json");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://id360.manageengine.com/api/v1/protection/quick-enrollment/manual-notification"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://id360.manageengine.com/api/v1/protection/quick-enrollment/manual-notification")
.post(body)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://id360.manageengine.com/api/v1/protection/quick-enrollment/manual-notification', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("id360.manageengine.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/api/v1/protection/quick-enrollment/manual-notification", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "id360.manageengine.com",
"port": null,
"path": "/api/v1/protection/quick-enrollment/manual-notification",
"headers": {
"Accept": "application/json",
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request POST \
--url https://id360.manageengine.com/api/v1/protection/quick-enrollment/manual-notification \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"groups": [
2000000283042,
2000000283043,
2000000283044
],
"users": [
2000000283042,
2000000283043,
2000000283044
],
"notification_template": "2000000293042",
"mail": {
"to": [
"a@A.com",
"V@A.com"
],
"cc": [
"b@A.com",
"b@A.com"
],
"subject": "Report available",
"content": "Mail content goes here",
"severity": "low",
"attachment_ids": [
"200000000000001"
],
"inline_images": [
"200000000000001"
]
},
"sms": {
"to": [
"+91-9807654321"
],
"content": "Sample sms text"
}
}
{
"data": {
"id": "2000000293042",
"status": "RUNNING",
"message": "Enrollment notification scheduler is started. Check Notification delivery reports once execution is completed."
},
"links": {
"status": {
"href": "/jobs/2000000293042"
}
}
}
{
"error": {
"code": "00000101",
"title": "Unauthorized",
"detail": "The OAuth token is invalid."
}
}
{
"error": {
"code": "00000000",
"title": "Internal Server Error",
"detail": "An unexpected internal error has occurred on the server. Please try again later."
}
}