---
title: "Update License information of a file"
method: POST
path: "/files/{id}/license"
tags: ["files"]
---

# Update License information of a file

`POST /files/{id}/license`

Takes four arguments, all Strings. licenseType, rightsHolder,
licenseText, licenseUrl

## Path parameters

- `id` string, required

## Request body

- License
  - `licenseType` string, required
  - `rightsHolder` string, required
  - `licenseUrl` string, required
  - `licenseText` 'by-nc-nd' | 'by-nd' | 'by-nc' | 'by-nc-sa' | 'by-sa' | 'by', required
  - `allowDownload` string, required

## Response `200`

OK

---

[API](https://skmtc.net/clowder-framework/apis/clowder.md) · [All operations](https://skmtc.net/clowder-framework/apis/clowder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clowder-framework/clowder/versions/bcd187478e0d/schema)
