URL
GET https://{api-url}/api/v2/tenants/{tenantId}/changeRequests/{changeRequestId}/responses/search
Sample URLs
https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/responses/search?pageNo=1&pageSize=10&queryString=startCreationDate:2016-03-29T10:15:55 0000+endCreationDate:2016-03-30T11:15:55 0000
Parameters
All parameters are optional:
Field | Default Value |
---|---|
pageNo={pageNo} | 1 |
pageSize={pageSize} | 100 |
isDescendingOrder={true/false} | true |
sortName={field} | response.id |
queryString={queryString} | NA |
NA indicates that the value is not applicable.
Query variables
Query Variable | Values | Description |
---|---|---|
startCreationDate | NA | Filter response with request creation date. Provide from date. Example: 2016-03-29T10:15:55 0000 (GMT) |
endCreationDate | NA | Filter response with request creation date. Provide to date. Example: 2016-03-31T11:20:55 0000 (GMT) |
internal | true, false | Internal or universal responses:
|
Notes
There are special characters that can be used in a query string:
- (+) represents the next field and must be URL-encoded.
- (:) represents equals. An example is
key : value
. - Space characters must be URL-encoded.
- Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).
NA indicates that the value is not applicable.
Sample response
{
"results": [{
"creator": {
"id": "USR0000002095",
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@opsramp.com"
},
"createdDate": "2016-03-29T10:15:55+0000",
"attachments": [{
"id": 96,
"name": "file-1.txt",
"createdDate": "2016-03-29T10:15:55+0000",
"contentURL": "https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/responses/1901/resources/96"
},
{
"id": 97,
"name": "file-2.txt",
"createdDate": "2016-03-29T10:15:55+0000",
"contentURL": "https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/responses/1901/resources/97"
}
],
"hasAttachments": true,
"tags": "API,Change Request",
"internal": "false",
"description": "Change Request Attachment"
},
{
"creator": {
"id": "USR0000002095",
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@opsramp.com"
},
"createdDate": "2016-03-29T09:17:45+0000",
"hasAttachments": false,
"internal": "false",
"description": "Need quick response on this issue"
},
{
"creator": {
"id": "USR0000002147",
"loginName": "FSSL-API-Lab-User-2",
"lastName": "API-Lab-2",
"firstName": "FSSL",
"email": "tester3@gmail.com"
},
"createdDate": "2016-03-29T14:38:41+0000",
"attachments": [{
"id": 92,
"name": "2.txt",
"createdDate": "2016-03-29T09:08:40+0000",
"contentURL": "https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/responses/1898/resources/92"
},
{
"id": 93,
"name": "1.txt",
"createdDate": "2016-03-29T09:08:40+0000",
"contentURL": "https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/responses/1898/resources/93"
}
],
"hasAttachments": true,
"internal": "false",
"description": "Unable to login into VPN account, please change and inform"
}
],
"totalResults": 3,
"orderBy": "response.id",
"pageNo": 1,
"pageSize": 10,
"totalPages": 1,
"nextPage": false,
"nextPageNo": 0,
"previousPageNo": 0,
"descendingOrder": true
}