URL

POST https://{api-url}/api/v2/tenants/{tenantId}/problems/{problemId}/responses

Sample URLs

https://{api-url}/api/v2/tenants/client_1000/problems/PRB0000001112/responses

Parameters

FieldData TypeDescription
descriptionStringShort summary describing the response.
tagsString(Optional) Labels attached to the response.
attachmentsObject(Optional) Attachments for the particular response.
internalBoolean(Optional) Represents the visibility of the response:
  • Setting internal=true represents visibility of response within the organization
  • Setting internal=false represents visibility of response to all users
creatorObject(Optional) If internal=true, creator is mandatory.
Provide:
  • id
    Example: USR0000002095
  • loginName
timeSpentIntegerTime spent on the problem, irrespective of the creation date and time of resolution. (Provide the time in minutes format.) If time spent is 2 hour, then provide the time as 120 (minutes).

Sample request

{
	"description": "Adding Problem Attachment",
	"internal": "false",
	"tags": "API, Problem",
	"creator": {
		"id": "USR0000002146",
		"loginName": "FSSL-API-Lab-User-1"
	},
	"attachments": [{
		"name": "file-1.txt",
		"file": "U2FtcGxlIFRleHQgZmlsZS0gdGVzdGluZyB3aXRoIGF0dGFjaG1lbnQ="
	}, {
		"name": "file-2.txt",
		"file": "U2FtcGxlIFRleHQgZmlsZS0gdGVzdGluZyB3aXRoIGF0dGFjaG1lbnQ="
	}],
	"timeSpent": "120"
}

Sample response

{
	"creator": {
		"id": "USR0000002146",
		"loginName": "FSSL-API-Lab-User-1",
		"lastName": "API-Lab",
		"firstName": "FSSL",
		"email": "fssl.user@gmail.com"
	},
	"createdDate": "2016-03-29T11:02:19+0000",
	"attachments": [{
		"id": 100,
		"name": "file-1.txt",
		"createdDate": "2016-03-29T11:02:19+0000",
		"contentURL": "https:///api/v2/tenants/client_7/problems/PRB0000001112/responses/1904/resources/100"
	}, {
		"id": 101,
		"name": "file-2.txt",
		"createdDate": "2016-03-29T11:02:19+0000",
		"contentURL": "https:///api/v2/tenants/client_7/problems/PRB0000001112/responses/1904/resources/101"
	}],
	"hasAttachments": true,
	"tags": "API,Problem",
	"internal": "false",
	"description": "Adding Problem Attachment",
	"timeSpent": "120"
}