# IRPCClientScript.SetVaultApplicationLicense

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Client scripts and UI extension applications](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/SetVaultApplicationLicense/

Badges: `Vault API / standard` `write` `session` `idempotent`

Installs or removes the license of a vault application.

- **Service:** [Client scripts and UI extension applications](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/index.md) `MFiles.IRPCClientScript`
- **gRPC method:** `/MFiles.IRPCClientScript/SetVaultApplicationLicense`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/set-vault-application-license`
- **Request:** [`SetVaultApplicationLicenseRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/SetVaultApplicationLicense/index.md#request)
- **Response:** [`SetVaultApplicationLicenseResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/SetVaultApplicationLicense/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the vault right `change_metadata_structure`.
- An empty `license` removes the license. A license that the application reports as malformed
  is rejected.
- The new license is passed to the running application. Check the result with
  [GetVaultApplicationLicenseStatus](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/GetVaultApplicationLicenseStatus/index.md).

<a id="request"></a>

## Request: SetVaultApplicationLicenseRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `script_application` | `string` | The GUID of the application. |
| `license` | `string` | The content of the license file; empty to remove the license. |

<a id="response"></a>

## Response: SetVaultApplicationLicenseResponse

No fields.

<a id="related"></a>

## Related methods

- [GetVaultApplicationLicenseStatus](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/GetVaultApplicationLicenseStatus/index.md): Gets the license status of a vault application, or checks a license before installing it.
