URL

POST https://{api-url}/api/v2/tenants/{tenantId}/changeRequests/{changeRequestId}/responses

Sample URLs

https://{api-url}/api/v2/tenants/client_1000/changeRequests/CHG0000001111/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

Sample request

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

Sample response

{
	"creator": {
		"id": "USR0000002146",
		"loginName": "FSSL-API-Lab-User-1",
		"lastName": "API-Lab",
		"firstName": "FSSL",
		"email": "fssl.user@gmail.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"
}