# IRPCLicenseManagement.RefreshLicenseCode

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md)

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

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Asks the server to fetch its license again from M-Files Manage.

- **Service:** [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md) `MFiles.IRPCLicenseManagement`
- **gRPC method:** `/MFiles.IRPCLicenseManagement/RefreshLicenseCode`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/refresh-license-code`
- **Request:** [`RefreshLicenseCodeRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/RefreshLicenseCode/index.md#request)
- **Response:** [`RefreshLicenseCodeResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/RefreshLicenseCode/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **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

- Has an effect only on servers that get their license from M-Files Manage; elsewhere it does
  nothing.
- Requires the system administrator server role (server right `manage_licenses`). On servers
  that get their license from M-Files Manage, a vault administrator can also call it from a
  vault session; then only that vault's license is refreshed.
- In a server-level session, all licenses of the server are refreshed.

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

## Request: RefreshLicenseCodeRequest

No fields.

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

## Response: RefreshLicenseCodeResponse

No fields.
