URL
POST https://{api-url}/api/v2/tenants/{tenantId}/resources/{resourceId}/notes
Sample URLs
https://{api-url}/api/v2/tenants/client_7/resources/1a08b17a-85e4-4615-8b49-061f5ad1a1b9/notes
Parameters
All fields are mandatory:
Field | Data Type | Description |
---|---|---|
subject | String | Subject of the resource note. |
description | String | Description of the resource note. |
expiryDateType | String | Type of expiry. Supported Values: Never Expire, Validity Period:
|
startTime | String | Start time of resource note. |
expiryTime | String | Expiry time of resource note. |
Sample requests
A sample request with expiryDateType = 1:
{
"subject": "Device created for maintain logs-updated",
"description": "The Device is for auditing purpose only-updated",
"expiryDateType": "1"
}
A sample request with expiryDateType = 2:
{
"subject": "Device created for maintain logs-updated",
"description": "The Device is for auditing purpose only-updated",
"expiryDateType": "2",
"startTime": "2016-03-26T10:10:10+0000",
"expiryTime": "2016-04-26T10:10:10+0000"
}
Sample response
{
"id": 50,
"subject": "Device created for maintain logs",
"description": "The Device is for auditing purpose only",
"createdTime": "2016-03-21T12:02:11+0000",
"updatedTime": "2016-03-21T12:02:11+0000",
"startTime": "2016-03-25T15:40:10+0000",
"expiryTime": "2016-04-25T15:40:10+0000",
"createdBy": {
"id": "USR0000002095",
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@opsramp.com",
"changePassword": false
}
}