> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# UpdateLlmsTxtHiddenStatus

# Package: txtFileServer

# Namespace: LlmsServiceV2

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/seo/txt-file-server/llms-txt/update-llms-txt-hidden-status.md

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

Updates only the hidden state of the Llms.txt file.
Content remains unchanged - only visibility is modified.

---

## REST API

### Schema

```
 Method: updateLlmsTxtHiddenStatus
 Description: Updates only the hidden state of the Llms.txt file. Content remains unchanged - only visibility is modified.
 URL: https://www.wixapis.com/promote-seo-robots-server/v2/llms/hidden
 Method: PATCH
 Method parameters:
   param name: hidden | type: hidden | description: Hidden state to set for the Llms.txt file. If true, the llms.txt file will be hidden from public access (returns 404). If false, the llms.txt file will be publicly accessible.  
   param name: subdomain | type: subdomain | description: Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.  | validation: maxLength 63
 Return type: UpdateLlmsTxtHiddenStatusResponse
  - name: llmsTxt | type: LlmsTxt | description: Updated Llms txt object with new hidden state  
     - name: content | type: string | description: CFull text content of the `llms.txt` file.  | validation: maxLength 720000
     - name: default | type: boolean | description: Whether this `llms.txt` file uses Wix's default content.  
     - name: subdomain | type: string | description: Target subdomain for the `llms.txt` file (for example, 'www', 'es', 'fr'). Default: 'www'  | validation: maxLength 63
     - name: hidden | type: boolean | description: Whether the llms.txt file should be hidden from public access.  
     - name: manuallyEdited | type: boolean | description: Whether the content was manually edited by the user. If `true` in DB, update/append requests must also set `manually_edited=true` or they'll be rejected with `FAILED_PRECONDITION`.  
     - name: detectedLanguage | type: string | description: ISO 639-1 language code detected for the site (e.g. en, fr). Used to localize the MCP documentation section when serving llms.txt.  | validation: maxLength 2

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code:  | Description: Site GUID is missing.


```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.seo.llmsTxt.updateLlmsTxtHiddenStatus(options)
 Description: Updates only the hidden state of the Llms.txt file. Content remains unchanged - only visibility is modified.
 Method parameters:
   param name: options | type: UpdateLlmsTxtHiddenStatusOptions  none  
        - name: hidden | type: boolean | description: Hidden state to set for the Llms.txt file. If true, the llms.txt file will be hidden from public access (returns 404). If false, the llms.txt file will be publicly accessible.  
        - name: subdomain | type: string | description: Subdomain of Llms.txt, for example `www`, `es`, `fr`. Default is `www`.  | validation: maxLength 63
 Return type: PROMISE<UpdateLlmsTxtHiddenStatusResponse>
  - name: llmsTxt | type: LlmsTxt | description: Updated Llms txt object with new hidden state  
     - name: content | type: string | description: CFull text content of the `llms.txt` file.  | validation: maxLength 720000
     - name: default | type: boolean | description: Whether this `llms.txt` file uses Wix's default content.  
     - name: subdomain | type: string | description: Target subdomain for the `llms.txt` file (for example, 'www', 'es', 'fr'). Default: 'www'  | validation: maxLength 63
     - name: hidden | type: boolean | description: Whether the llms.txt file should be hidden from public access.  
     - name: manuallyEdited | type: boolean | description: Whether the content was manually edited by the user. If `true` in DB, update/append requests must also set `manually_edited=true` or they'll be rejected with `FAILED_PRECONDITION`.  
     - name: detectedLanguage | type: string | description: ISO 639-1 language code detected for the site (e.g. en, fr). Used to localize the MCP documentation section when serving llms.txt.  | validation: maxLength 2

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code:  | Description: Site GUID is missing.


```

### Examples

### updateLlmsTxtHiddenStatus
```javascript
import { llmsTxt } from '@wix/seo';

async function updateLlmsTxtHiddenStatus(options) {
  const response = await llmsTxt.updateLlmsTxtHiddenStatus(options);
};
```

### updateLlmsTxtHiddenStatus (with elevated permissions)
```javascript
import { llmsTxt } from '@wix/seo';
import { auth } from '@wix/essentials';

async function myUpdateLlmsTxtHiddenStatusMethod(options) {
  const elevatedUpdateLlmsTxtHiddenStatus = auth.elevate(llmsTxt.updateLlmsTxtHiddenStatus);
  const response = await elevatedUpdateLlmsTxtHiddenStatus(options);
}
```

### updateLlmsTxtHiddenStatus (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { llmsTxt } from '@wix/seo';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { llmsTxt },
  // Include the auth strategy and host as relevant
});


async function updateLlmsTxtHiddenStatus(options) {
  const response = await myWixClient.llmsTxt.updateLlmsTxtHiddenStatus(options);
};
```

---