URL

GET https://{api-url}/api/v2/tenants/{tenantId}/serviceRequests/{serviceRequestId}/responses/search

Sample URLs

https://{api-url}/api/v2/tenants/client_1000/serviceRequests/SRQ0000001113/responses/search?pageNo=1&pageSize=10&queryString=startCreationDate:2016-03-29T11:57:45 0000+endCreationDate:2016-03-30T11:57:45 0000

Parameters

All parameters are optional:

FieldDefault 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 VariableValuesDescription
startCreationDateNAFilter response with request creation date. Provide from date.
Example: 2016-03-29T10:15:55 0000 (GMT)
endCreationDateNAFilter response with request creation date. Provide to date.
Example: 2016-03-31T11:20:55 0000 (GMT)
internaltrue, falseInternal or universal responses:
  • If internal=true retrieves only the internal responses.
  • If internal=false retrieves global responses.
  • By default it retrieves all responses of the ticket.

NA indicates that the value is not applicable.

Sample response

{
	"results": [{
			"creator": {
				"id": "USR0000002095",
				"loginName": "John.Smith",
				"lastName": "Smith",
				"firstName": "John",
				"email": "john.s@domain.com"
			},
			"createdDate": "2016-03-29T11:57:45+0000",
			"attachments": [{
					"id": 104,
					"name": "file-1.txt",
					"createdDate": "2016-03-29T11:57:45+0000",
					"contentURL": "https://{api-url}/api/v2/tenants/client_1000/serviceRequests/SRQ0000001113/responses/1907/resources/104"
				},
				{
					"id": 105,
					"name": "file-2.txt",
					"createdDate": "2016-03-29T11:57:45+0000",
					"contentURL": "https://{api-url}/api/v2/tenants/client_1000/serviceRequests/SRQ0000001113/responses/1907/resources/105"
				}
			],
			"hasAttachments": true,
			"tags": "API,Service",
			"internal": "false",
			"description": "Service Request Attachment"
		},
		{
			"creator": {
				"id": "USR0000002095",
				"loginName": "John.Smith",
				"lastName": "Smith",
				"firstName": "John",
				"email": "john.s@domain.com"
			},
			"createdDate": "2016-03-29T11:37:58+0000",
			"hasAttachments": false,
			"internal": "false",
			"description": "Response Testing-1"
		},
		{
			"creator": {
				"id": "USR0000002146",
				"loginName": "FSSL-API-Lab-User-1",
				"lastName": "API-Lab",
				"firstName": "FSSL",
				"email": "tester@gmail.com"
			},
			"createdDate": "2016-03-29T17:02:10+0000",
			"attachments": [{
					"id": 102,
					"name": "2.txt",
					"createdDate": "2016-03-29T11:32:09+0000",
					"contentURL": "https://{api-url}/api/v2/tenants/client_1000/serviceRequests/SRQ0000001113/responses/1905/resources/102"
				},
				{
					"id": 103,
					"name": "1.txt",
					"createdDate": "2016-03-29T11:32:09+0000",
					"contentURL": "https://{api-url}/api/v2/tenants/client_1000/serviceRequests/SRQ0000001113/responses/1905/resources/103"
				}
			],
			"hasAttachments": true,
			"internal": "false",
			"description": "Internet is unavailable"
		}
	],
	"totalResults": 3,
	"orderBy": "response.id",
	"pageNo": 1,
	"pageSize": 10,
	"totalPages": 1,
	"nextPage": false,
	"nextPageNo": 0,
	"previousPageNo": 0,
	"descendingOrder": true
}