Skip to main content

Upload Files

The upload files endpoint allows you to upload files to QA Sphere. The uploaded files can then be referenced in test cases, results etc.

Upload File

POST/api/public/v0/file

Upload a file to QA Sphere.

Authentication

Requires an API key with at least Viewer role permissions. See Authentication for more details.

Request Body

Request body should be a multipart/form-data with a file form-field.

Response Fields

FieldTypeDescription
idstringUnique identifier for the uploaded file
urlstringURL of the uploaded file

Example Request

curl \
-H "Authorization: ApiKey your.api.key.here" \
-F 'file=@"/path/to/file"' \
https://your-company.your-region-code.qasphere.com/api/public/v0/file

Example Response

{
"id": "1CJLabPkq_PWeS4siaKcB1k",
"url": "https://your-company.your-region-code.qasphere.com/api/file/1CJLabPkq_PWeS4siaKcB1k"
}

Error Responses

Status CodeDescription
401Invalid or missing API key
403Insufficient permissions or suspended tenant
500Internal server error while uploading file