> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/user-operations/artifacts-apis/upload-artifacts.md).

# Upload Artifacts

## Upload Artifact

<mark style="color:green;">`POST`</mark> `/artifacts/{policyId}`

Upload artifact. For users with the Standard Registry role only.

#### Path Parameters

| Name                                       | Type   | Description       |
| ------------------------------------------ | ------ | ----------------- |
| policyId<mark style="color:red;">\*</mark> | String | Policy Identifier |

#### Request Body

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| Schema<mark style="color:red;">\*</mark>    | Object |             |
| artifacts<mark style="color:red;">\*</mark> | array  |             |
| items<mark style="color:red;">\*</mark>     | String |             |

{% tabs %}
{% tab title="200: OK Successful Operation" %}

```javascript
{
    content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Artifact'
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
