Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get attachment

/api/v1/attachments/{attachmentId}

Add attachment

/api/v1/attachments


Get attachment

Info

To download large attachment files, please use version 2 of the REST API.

To get attachments, you can use the following endpoint:

...

Expand
titleGET /api/v1/attachments/{attachmentId}
Panel

Get an attachment


Request

PARAMETERS

parameter

type

description

attachmentIdString

- id of the attachment to get.


Example:
Tip
titleExample Request

curl -H "Content-Type: application/json" -X GET -H "Authorization: Bearer $token" https://xray.cloud.xpand-it.com/api/v1/attachments/7e0073ec-cc9a-44fa-a2da-9d8c163caeae

Responses

200 OK : octet/stream : Successful. The attachment is retrieved.

400 BAD_REQUEST : application/json : The attachment could not be retrieved.
Example Output

{
    "error": "No such file"
}



401 UNAUTHORIZED: application/json:
The API token is invalid.

...