Motadata Docs

POST Upload an Attachment

{{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

Key Description
Authorization Bearer {access token obtained after authorization}

Body

Key Description
file Attachment

Example (Request & Response)

Request

Upload an Attachment

Response

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