# Set an artifact allowlist

Launch stage: GA

`PUT /api/2.1/unity-catalog/artifact-allowlists/{artifact_type}`

Set the artifact allowlist of a certain artifact type.
 The whole artifact allowlist is replaced with the new allowlist.
 The caller must be a metastore admin or have the **MANAGE ALLOWLIST** privilege
 on the metastore.

API scopes: unity-catalog

## Path parameters

- `artifact_type` (string, required)
  The artifact type of the allowlist.
  Possible values:
  - `INIT_SCRIPT`
  - `LIBRARY_JAR`
  - `LIBRARY_MAVEN`

## Request body

- `artifact_matchers` (array of object, required)
  A list of allowed artifact match patterns.
  - `artifact` (string, required)
    The artifact path or maven coordinate
  - `match_type` (string, required)
    The pattern matching type of the artifact
    Possible values:
    - `PREFIX_MATCH`

## Returns

Returns the ArtifactAllowlistInfo object.

## Response

```json
{
  "artifact_matchers": [
    {
      "artifact": "string",
      "match_type": "PREFIX_MATCH"
    }
  ],
  "metastore_id": "string",
  "created_by": "string",
  "created_at": 0
}
```

