There are two endpoints regarding attachments in Xray.
To get attachments, you can use the following endpoint:
Get an attachment
- id of the attachment to get.
200 OK : octet/stream : Successful. The attachment is retrieved.
400 BAD_REQUEST : application/json : The attachment could not be retrieved.
"error": "No such file"
401 UNAUTHORIZED: application/json: The API token is invalid.
To add attachments, you can use the following endpoint:
200 OK : application/json : Successful. The attachment was added.
400 BAD_REQUEST : application/json : The attachment information was not provided.
"error": "No file found."
401 UNAUTHORIZED : application/json : The Xray license is not valid.