# Set AppSearch read-only status **PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode** Enable/Disable read-only mode on the given App Search resource. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **deployment_id** (string) Identifier for the Deployment. - **ref_id** (string) User-specified RefId for the Resource (or '_main' if there is only one). ### Body: application/json (object) read-only request body - **enabled** (boolean) Enabled or disabled read-only mode ## Responses ### 200 Standard response #### Body: application/json (object) - **enabled** (boolean) Whether read-only mode is enabled or disabled ### 404 The Resource specified by ref_id cannot be found. (code: `deployments.deployment_resource_not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 500 We have failed you. (code: `deployments.deployment_resource_no_longer_exists`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)