Attachments

This chapter focuses on services for the attachments.

Get attachment

A GET to /attachments/{id} returns the attachment with the given id.

Path parameters

Snippet path-parameters not found for operation::RestAttachmentControllerIT/get-attachment

HTTP request

Snippet http-request not found for operation::RestAttachmentControllerIT/get-attachment

Request parameters

Snippet request-parameters not found for operation::RestAttachmentControllerIT/get-attachment

HTTP response

Snippet http-response not found for operation::RestAttachmentControllerIT/get-attachment

Response fields

Snippet response-fields not found for operation::RestAttachmentControllerIT/get-attachment

Snippet links not found for operation::RestAttachmentControllerIT/get-attachment

Rename attachment

A PATCH to /attachments/{id} with new name in request parameters renames the attachment with the given id.

Path parameters

Snippet path-parameters not found for operation::RestAttachmentControllerIT/rename-attachment

HTTP request

Snippet http-request not found for operation::RestAttachmentControllerIT/rename-attachment

Request parameters

Snippet request-parameters not found for operation::RestAttachmentControllerIT/rename-attachment

HTTP response

Snippet http-response not found for operation::RestAttachmentControllerIT/rename-attachment

Response fields

Snippet response-fields not found for operation::RestAttachmentControllerIT/rename-attachment

Snippet links not found for operation::RestAttachmentControllerIT/rename-attachment

Download attachment

A GET to /attachments/{id}/content downloads the attachment with the given id.

Path parameters

Snippet path-parameters not found for operation::RestAttachmentControllerIT/download-attachment

HTTP request

Snippet http-request not found for operation::RestAttachmentControllerIT/download-attachment

Upload attachment

A POST to /api/rest/latest/{owner}/{ownerId}/attachments/ uploads attachments in request body to the owner with the given id. The key of these attachments should always named as "files".

The possible {owners} are campaigns, campaign-folders, executions, execution-steps, iterations, projects, requirement-folders, requirement-versions, test-cases, test-case-folders, test-steps, test-suites

Path parameters

Snippet path-parameters not found for operation::RestAttachmentControllerIT/upload-attachment

HTTP request

Snippet http-request not found for operation::RestAttachmentControllerIT/upload-attachment

HTTP response

Snippet http-response not found for operation::RestAttachmentControllerIT/upload-attachment

Response fields

Snippet response-fields not found for operation::RestAttachmentControllerIT/upload-attachment

Delete attachment

A DELETE to /api/rest/latest/{owner}/{ownerId}/attachments/ with attachmentIds in request parameters removes these attachments from their owner with the given id.

The possible {owners} are campaigns, campaign-folders, executions, execution-steps, iterations, projects, requirement-folders, requirement-versions, test-cases, test-case-folders, test-steps, test-suites

Path parameters

Snippet path-parameters not found for operation::RestAttachmentControllerIT/delete-attachment

HTTP request

Snippet http-request not found for operation::RestAttachmentControllerIT/delete-attachment

Request parameters

Snippet request-parameters not found for operation::RestAttachmentControllerIT/delete-attachment