Skip to main content
Version: 8.5.X

POST Upload an Attachment

URL: {{server-url}}/api/upload/file

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

KeyDescription
AuthorizationBearer {access token obtained after authorization}

Body

KeyDescription
fileAttachment

Example (Request & Response)

Request

Upload an Attachment

Response

{
refFileName: "1584699013102"
realName: "Screenshot.png"
name: "1584699013102"
}