URL

POST https://{api-url}/api/v2/tenants/{tenantId}/patches/compliance

Sample URLs

https://{api-url}/api/v2/tenants/client_16/patches/compliance

Parameters

FieldData TypeDescription
nameStringUnique name for patch compliance.
descriptionString(Optional) Description for patch compliance.
osTypeStringPatches of a certain OS (operating system).
Supported values: WINDOWS, LINUX

Sample request

{
	"name": "Patch Compliance of Windows Devices",
	"description": "Compliance Check for Certain Windows Devices",
	"osType": "WINDOWS"
}

Sample response

{
	"id": "PCMP-5c70ea87-2350-4781-9762-df47194d06d3",
	"name": "Patch Compliance of Windows Devices",
	"description": "Compliance check for Certain Windows Devices",
	"createdUser": {
		"loginName": "opsramp_api_user",
		"lastName": " ",
		"firstName": "OpsRamp API User",
		"email": "admin@opsramp.com"
	},
	"updatedUser": {
		"loginName": "opsramp_api_user",
		"lastName": " ",
		"firstName": "OpsRamp API User",
		"email": "admin@opsramp.com"
	},
	"createdTime": "2019-02-08T12:37:02+0000",
	"updatedTime": "2019-02-10T10:40:05+0000",
	"osType": "WINDOWS"
}