---
title: "AppRequest"
description: "AppRequest"
url: "https://www.contentstack.com/docs/developers/sdks/marketplace-sdk/java/reference/apprequest"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-06"
---

# AppRequest

## AppRequest

If a user does not have the necessary permissions to install an app in an organization or stack, they can request the organization or stack administrator to install the app on their behalf. To do this, the user clicks the **Request Install** button.

Once the request is made, the organization or stack administrator can then approve or reject the request.

**Example:**

```
AppRequest appRequest = marketplace.request();
```

## addParam

The addParam method adds a parameter to a collection using a key-value pair.

**Specified by:**

**addParam** in interface **BaseImplementation**

```
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build(); 
AppRequest appRequest = marketplace.request(); 
appRequest.addParam("key", "value");
```

The key of the header to be added

The value of the given key in the queryParams map

## addHeader

The addHeader method adds a header with a specified key and value to a request.

**Specified by:**

**addHeader** in interface **BaseImplementation**

```
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build(); 
AppRequest appRequest = marketplace.request(); 
appRequest.addHeader("key", "value");
```

The key of the header to be added

The value of the header to be added

## addHeaders

The addHeaders method adds headers to a HashMap and adds them to the request.

**Specified by:**

**addHeaders** provides support to add custom header to the request

```
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build(); 
AppRequest appRequest = marketplace.request(); 
HashMap headers = new HashMap(); 
appRequest.addHeaders(headers);
```

The key of the header to be added

The value of the header to be added

## addParams

The addParams method adds all the key-value pairs from the given HashMap to the queryParams HashMap and returns the updated AppRequest object.

**Specified by:**

**addParams** in interface **BaseImplementation**

```
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("api.contentstack.io").build(); 
AppRequest appRequest = marketplace.request(); 
HashMap headers = new HashMap(); 
appRequest.addParams(headers);
```

The key of the header to be added

The value of the header to be added

UID of the organization

## AppRequest | Java Marketplace SDK | Contentstack

AppRequest lets users request an administrator to install an app on their behalf using the Contentstack Java Marketplace SDK.