How can we upload attachment while raising request through REST API's?

How can we upload attachment while raising request through REST API's?

Dear All,

We have a service template where the attachment field is mandatory while creating the request but while Posting the REST API (JSON) it creates the request without asking to upload the attachment. Please let me know how JSON format looks like if we want to upload the attachments to the request while creating. Please let me know what changes we require on Postman application. Our current built of the application is 14720 and we are using SQL server as a database.

POST REST API:

{
    "request": {
        "subject": "Test Request - for attachment",
        "description": "Test Request - for Attachment description",
        "requester": {
            "name": "wajahath farooq"
         
        },
        "template": {
            "is_service_template": true,
            "service_category": {
                "id": "1"
            },
            "name": "Attachment Field Mandatory",
            "id": "4803"
        },
        "status": {
            "name": "Open"
        }
    }



Regards,
Wajahath Farooq

                New to ADSelfService Plus?