API for Attachment

Get List of Linked Attachments

POST /rest/attachments/list

Request

Content-Type: application/json

Parameters

Table 182. Get Attachments Request

Name

Located in

Required

Description

Defualt

Schema

entityId

body

yes

Entity ID

-

string

entityType

body

yes

Entity Type

-

string

start

body

yes

Start index of records

-

integer

limit

body

yes

Number of records per page

-

integer

page

body

yes

Page number to be displayed

-

integer



Response

Content-Type: application/json

Table 183. Get Attachments Response

Status Code

Reason

Response Model

200

Linked attachments shown successfully

Response Entity

400

Invalid json object or mandatory fields missing

401

Unauthorised or session expired

500

Returned when server connection times out



Download Attachment

GET /rest/attachments/{id}

Request

Content-Type: application/json

Parameters

Table 184. Download Attachment Request

Name

Located in

Required

Description

Default

Schema

body

body

no

string



Response

Content-Type: application/json

Table 185. Download Attachment Response

Status Code

Reason

Response Model

200

Attachment downloaded successfully

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-



Upload Attachment

POST /rest/attachments

Request

Parameters

Table 186. Upload Attachment Request

Name

Located in

Required

Description

Default

Schema

file[]

formData

yes

File to upload

-

string

entityType

body

yes

Entity type of the attachment.

-

string



Response

Content-Type: application/json

Table 187. Upload Attachment Response

Status Code

Reason

Response Model

200

Attachment added successfully

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-



Upload Test Logs to Test Case on Execution

POST /rest/attachments/testLog

Request

Content-Type: multipart/form-data

Parameters

Table 188. Upload Test Logs to Test Case on Execution Request

Name

Located in

Required

Description

Default

Schema

entityId

formData

yes

entityId

-

integer

type

formData

yes

Entity type of the attachment.

-

string

file[]

formData

yes

file to upload

-

string



Response

Content-Type: application/json

Table 189. Upload Test Logs to Test Case on Execution Response

Status Code

Reason

Response Model

200

Testlog upload successfull

Definitions

400

Invalid file type or file size exceeds the limit

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-



List of linked attachments for Detail View

POST /rest/attachments/listForDetailView

Request

Content-Type: application/json

Parameters

Table 194. List of linked attachments for Detail View Request

Name

Located in

Required

Description

Default

Schema

entityId

body

yes

Id of an entity to list the associated attachments

-

string

entityType

body

yes

entity type

-

string

limit

body

No

Number of records per page

-

integer

page

body

No

page number to be displayed

-

integer

start

body

No

Start index of records

-

integer



Response

Content-Type: application/json

Table 195. Unlink Attachment Response

Status Code

Reason

Response Model

200

Linked attachments shown successfully

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-



Definitions

ResponseEntity

Table 196. Definitions

name

type

required

description

example

headers

object

optional

-

-

body

object

optional

-

-

statusCode

string

optional

-

-



Publication date: