# IRPCClientScript.SetScriptApplicationServerEnable

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/SetScriptApplicationServerEnable/

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

Enables or disables an application in the vault.

- **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/SetScriptApplicationServerEnable`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/set-script-application-server-enable`
- **Request:** [`SetScriptApplicationServerEnableRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/SetScriptApplicationServerEnable/index.md#request)
- **Response:** [`SetScriptApplicationServerEnableResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCClientScript/SetScriptApplicationServerEnable/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:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

- Requires the vault right `change_metadata_structure`.
- An application whose master application is disabled cannot be enabled.
- Disabling also disables the applications that have this application as their master.

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

## Request: SetScriptApplicationServerEnableRequest

> 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. |
| `enabled` | `bool` | True to enable, false to disable. |

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

## Response: SetScriptApplicationServerEnableResponse

No fields.
