> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/workspace/schemas/schema-fields-reference/table-field/apis-related/existing-file-_id-to-overwrite-optional.md).

# Existing file \_id to overwrite (optional)

<mark style="color:green;">`POST`</mark> `/artifacts/files`

Uploads/overwrites file in GridFS

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Response**

{% tabs %}
{% tab title="401" %}

```json5
description: Unauthorized.
```

{% endtab %}

{% tab title="403" %}

```json5
{
  description: Forbidden.
}
```

{% endtab %}
{% endtabs %}
