---
title: "PUT /api/v1/artifact-entitlements/{artifactEntitlementId}"
method: PUT
path: "/api/v1/artifact-entitlements/{artifactEntitlementId}"
tags: ["Artifacts", "Licensing"]
---

# PUT /api/v1/artifact-entitlements/{artifactEntitlementId}

`PUT /api/v1/artifact-entitlements/{artifactEntitlementId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/artifact-entitlements/{artifactEntitlementId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Update an artifact entitlement

## Path parameters

- `artifactEntitlementId` string, required

## Request body

- object
  - `artifacts` TypesArtifactEntitlementSelection[]
    - `artifactId` string
    - `versionIds` string[]
  - `autoAddVersionRegex` string, nullable
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `expiresAt` string, date-time, nullable
  - `id` string
  - `name` string

## Response `200`

OK

- TypesArtifactEntitlement
  - `artifacts` TypesArtifactEntitlementSelection[]
    - `artifactId` string
    - `versionIds` string[]
  - `autoAddVersionRegex` string, nullable
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `expiresAt` string, date-time, nullable
  - `id` string
  - `name` string

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
