# 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="201: Created Created" %}

```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="422: Unprocessable Entity Unprocessable Entity" %}

```
There are no files to upload
```

```
There is no appropriate policy or policy is not in DRAFT status
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}
