---
title: "Save invalid artifacts (self-hosted)"
method: POST
path: "/self-hosted/{accountId}/tasks/invalid-artifacts"
tags: ["Self-Hosted Runners"]
---

# Save invalid artifacts (self-hosted)

`POST /self-hosted/{accountId}/tasks/invalid-artifacts`

Saves invalid artifacts for a task (self-hosted)

## Path parameters

- `accountId` string, required

## Request body

- SelfHostedSaveInvalidArtifactsRequest
  - `accountId` string — Account ID
  - `workspace` string, required — Workspace name
  - `invalidArtifacts` InvalidArtifacts, required — Invalid artifacts information

## Response `200`

Invalid artifacts saved successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
