Get User-Uploaded Attachments for a Tech Support Case by ID
Use this API to retrieve information about attachments uploaded to technical support cases by users.
URI
https://[host]/api/juniper/servicenow/case-management/cases/{id} /userUploadedAttachments (HTTP method = GET)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the Tech Support Case for which information about a user-uploaded attachment is to be retrieved |
Consumes
None
Produces
- application/vnd.juniper.servicenow.case-management.attachments+xml;version=1
- application/vnd.juniper.servicenow.case-management.attachments+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
attachments | String | Link to the collection of attachments present for an incident |
attachment | String | An attachment in the collection |
uri | String | URI of the attachment |
id | Integer | ID of the attachment |
attachmentName | String | Name of the attachment |
size | Integer | Size of the attachment in bytes |
readStatus | String | Status of reading the attachment from the device Possible values—Success and Failure: |
remarks | Remarks about the read status of the attachment | |
uploadStatus | String | Status of uploading the attachment to Juniper Support System (JSS) Possible values—Uploaded and Not Uploaded |
uploadedBy | User who uploaded the attachment |
Sample Output
Sample XML Output
<attachments uri="/api/juniper/servicenow/case-management/cases/720903/userUploadedAttachments"> <attachment id="786436"> <attachmentName>test.txt</attachmentName> <size>681</size> <readStatus>Success</readStatus> <remarks/> <uploadStatus>Success</uploadStatus> <uploadedBy>super</uploadedBy> </attachment> </attachments>
Sample JSON Output