> 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

# ClaimHimalayaApp

# Package: containersProjects

# Namespace: ContainersProjects

# Method link: https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/claim-himalaya-app.md

## Permission Scopes:
Manage AppSmith Projects: SCOPE.CONTAINERS.PROJECTS

## Introduction

Claims the app associated with a project, or retrieves its existing claim.

An authorized site collaborator can call this method for a new `HIMALAYA_MOBILE` project
before using its app. Repeating the call for the same project returns the same `canonicalApp`.

---

## REST API

### Schema

```
 Method: claimHimalayaApp
 Description: Claims the app associated with a project, or retrieves its existing claim.  An authorized site collaborator can call this method for a new `HIMALAYA_MOBILE` project before using its app. Repeating the call for the same project returns the same `canonicalApp`.
 URL: https://www.wixapis.com/containers/projects/v1/projects/{projectId}/himalaya-app-claim
 Method: POST
 Return type: ClaimHimalayaAppResponse
  - name: authorizationVersion | type: integer | description: Version of the response format. Currently always `1`.  
  - name: metaSiteId | type: string | description: GUID of the Wix site that owns the project.  | validation: format GUID
  - name: projectId | type: string | description: GUID of the project the app is associated with.  | validation: format GUID
  - name: canonicalApp | type: string | description: Canonical app slug, newly claimed or already associated with the project.  | validation: maxLength 200


```

### Examples

### Claim Himalaya App
Associates a new mobile project with its app, or returns its existing app.

```curl
curl -X POST \
'https://www.wixapis.com/containers/projects/v1/projects/8046df3c-7575-4098-a5ab-c91ad8f33c47/himalaya-app-claim' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.containers.projects.claimHimalayaApp(projectId)
 Description: Claims the app associated with a project, or retrieves its existing claim.  An authorized site collaborator can call this method for a new `HIMALAYA_MOBILE` project before using its app. Repeating the call for the same project returns the same `canonicalApp`.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  projectId
 Method parameters: 
   param name: projectId | type: string | description: GUID of the site project whose app to claim or retrieve. | required: true | validation: format GUID
 Return type: PROMISE<ClaimHimalayaAppResponse>
  - name: authorizationVersion | type: integer | description: Version of the response format. Currently always `1`.  
  - name: metaSiteId | type: string | description: GUID of the Wix site that owns the project.  | validation: format GUID
  - name: projectId | type: string | description: GUID of the project the app is associated with.  | validation: format GUID
  - name: canonicalApp | type: string | description: Canonical app slug, newly claimed or already associated with the project.  | validation: maxLength 200


```

### Examples

### Claim an app for a mobile project
Returns the canonical app for a new or previously claimed project.

```javascript
import { projects } from "@wix/containers";

async function claimHimalayaApp() {
  const response = await projects.claimHimalayaApp(
    "8046df3c-7575-4098-a5ab-c91ad8f33c47",
  );
}

/* Promise resolves to:
 * {
 *   "authorizationVersion": 1,
 *   "metaSiteId": "66b97eb4-6676-4d70-95dc-573d8c0fd68b",
 *   "projectId": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
 *   "canonicalApp": "coffee-corner-8046df3c"
 * }
 */

```

### claimHimalayaApp (self-managed)
Self-managed 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 { projects } from '@wix/containers';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function claimHimalayaApp(projectId) {
  const response = await myWixClient.projects.claimHimalayaApp(projectId);
};
```

---