Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel3

Get List of Linked Attachments

POST /rest/attachments/list

...

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

entityId

body

yes

entity ID

-

string

entityType

body

yes

entityType

-

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

Status Code

Reason

Response Model

200

Linked attachments shown successfully

796524739

ResponseEntity

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}

...

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

body

body

no


-

string

Response

Content-Type: application/json

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

Name

Located in

Required

Description

Default

Schema

file[]

formData

yes

file to upload

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

200

Attachment added successfully

796524739

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

...

Content-Type: multipart/form-data

Parameters

Name

Located in

Required

Description

Default

Schema

entityId

formData

yes

entityId

-

integer

type

formData

yes

type

-

string

file[]

formData

yes

file to upload

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

200

Testlog upload successfull

796524739

ResponseEntity

400

Invalid file type or file size exceeds the limit

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-


Link Attachment to an Entity

...

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

entityId

body

yes

Unique Identifier of Entity

-

integer

attachmentIds

body

yes

Id of attachments to upload

-

string

entityType

body

yes

Abbreviated EntityType

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

200

Attachment(s) linked successfully

796524739

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Unlink Attachment

...

Content-Type: application/json

Parameters

Name

Located in

Required

Description

Default

Schema

entityId

body

yes

Unique Identifier of Entity

-

integer

attachmentIds

body

yes

Id of attachments to upload

-

string

entityType

body

yes

Abbreviated EntityType

-

string

Response

Content-Type: application/json

Status Code

Reason

Response Model

200

Attachment(s) unlinked successfully.

796524739

ResponseEntity

400

Invalid json object or mandatory fields missing

-

401

Unauthorised or session expired

-

500

Returned when server connection times out

-

Definitions

ResponseEntity

name

type

required

description

example

headers

object

optional

-


body

object

optional

-


statusCode

string

optional

-