GET an Attachment
URL: http://{{server-url}}/api/v1/files/download/{refFileName}
You can call the above endpoint to upload a file in the ServiceOps system. When you upload a file, you get a reference filename, which you can pass in the body while creating or updating a request ticket; this associates the file with the ticket.
You need the following key-values:
Header
| Key | Description |
|---|---|
| Authorization | Bearer/API Key {access token obtained after authorization} |
Body
| Key | Description |
|---|---|
| file | Attachment |
Example (Request & Response)
Request
Upload an Attachment
Response
You will receive a dialog to save the file.