Skip to main content
All CollectionsAPI & IntegrationsAPI CollectionAdvanced Test Plan
POST Test Step attachment for Step 1 using (JSON)
POST Test Step attachment for Step 1 using (JSON)
Updated this week
{{apiUrl}}/api/v1/testRun/attachment

This endpoint is used to attach files to a test step of a Test Run. See API Collection

Example Request

{
"testRunKey": "246", // Unique Test Run key number for the test run
"testStep": 1, // Step number, starts from 1
"attachments": [
{
"name": "UPLOADATTACHMENTS", // Attachment name
"extension": "png", // File extension
"file": "iVBORw0KGgoAAAANSUhEUgAAAQoAAA" // Base64 encoded file (without prefix)
}
],
// "scriptType": {{scriptType}}, // Optional: "plainText" or "BDD" (case insensitive)
"projectKey": "PVT" // Jira project key
}

Example Response

The response is in JSON format:

{
"success": true,
"message": "Test Run Attachment(s) created successfully.",
"data": {
"attachments": [
"https://app-vansah-s3-1-syd.s3.ap-southeast...3_UPLOADATTACHMENTS.png"
]
}
}

HEADERS

Authorization

<vansahConnectToken>

Generate a Token from Vansah

Body

raw (json)

{
"testRunKey": "246", // Unique Test Run key number for the test run
"testStep": 1, // Step number, starts from 1
"attachments": [
{
"name": "UPLOADATTACHMENTS", // Attachment name
"extension": "png", // File extension
"file": "iVBORw0KGgoAAAANSUhEUgAAAQoAAA" // Base64 encoded file (without prefix)
}
],
// "scriptType": {{scriptType}}, // Optional: "plainText" or "BDD" (case insensitive)
"projectKey": "PVT" // Jira project key
}

Did this answer your question?