Skip to main content
POST
Import attachments, step 3: Add files to the test case
Step 3 of 3 in importing attachments with the API.

Authorizations

Authorization
string
header
required

User PAT (td_pat_) scoped to the target project

Headers

Idempotency-Key
string

Optional but recommended on create (POST) requests. Send a unique value (e.g. a UUID) per logical create. A retry with the same key within 24h replays the original response instead of creating a duplicate. Same key with a different body returns 422 IDEMPOTENCY_KEY_REUSE; a key for a request still in flight returns 409. Omitting the header is allowed (no deduplication).

Path Parameters

projectId
string
required

The project identifier (e.g. project_abc123). Must match the project associated with your PAT.

Body

application/json
caseId
string
required
Pattern: ^[Tt][Cc]-\d+$
Example:

"TC-42"

attachments
object[]
required
Required array length: 1 - 10 elements
replaceAttachmentIds
string[]

Ids of files already on the test case that these files replace.

Maximum array length: 10

Response

Files attached

success
boolean
data
object
Last modified on November 27, 2026