Download ITSM Attachment

This API is used to download the attachment of any ticket number in ServiceNow.

Update CI Status

Purpose

This API is used to download the attachment of any ticket number in ServiceNow.

API URL https://<API URL>:<API Port>/v2/itsmattachment/orgentityid/{orgentityid}/moduleid/{moduleid}/downloadattachmentsdeatil?incidentNumber={incidentNumber}
Authentication type Basic/Token
Method Type POST
Example: https://<API URL>:<API Port>/v2/itsmattachment/orgentityid/1/moduleid/1/downloadattachmentsdeatil?incidentNumber=INC1
Response Body:
{
    "statusCode": 200,
    "status": "Success",
    "message": null,
    "result": [
        {
            "size_bytes": "9288",
            "file_name": "test.png",
            "sys_mod_count": "2",
            "average_image_color": "",
            "image_width": "1830",
            "sys_updated_on": "2025-03-25 11:12:40",
            "sys_tags": "",
            "table_name": "incident",
            "encryption_context": "",
            "sys_id": "<sys_id>",
            "image_height": "976",
            "sys_updated_by": "my_User",
            "download_link": "https:my_Download_Link",
            "content_type": "image/png",
            "sys_created_on": "2025-03-25 11:12:39",
            "size_compressed": "287",
            "compressed": "true",
            "state": "available",
            "table_sys_id": "<table_sys_id>",
            "chunk_size_bytes": "700000",
            "hash": "<hash_Code>",
            "sys_created_by": "my_User"
        }
],
    "data": null,
    "count": 1
}

Parameters Returned in Response of API

Column Column Type Value Remarks
Status Code string 200/300/400/404 This field contains unique identifier
Status string fail/success Message
Result string text This field provides the details of all the attachments uploaded in the ticket.
count int integer value Return the number of attachments present in the ticket