Skip to main content
POST
/
app_builds
/
{id}
/
promote
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});

const appBuild = await client.appBuilds.promote('apbu_xxxxxxxxxxxxx');

console.log(appBuild.id);
{
  "id": "apbu_xxxxxxxxxxxxx",
  "platform": "ios",
  "file_url": "<string>",
  "created_at": "2023-12-01T05:00:00.401Z",
  "status": "draft",
  "checksum": "<string>",
  "supported_app_view_types": [
    "hub"
  ],
  "review_message": "<string>",
  "is_production": true
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the app build to promote.

Example:

"apbu_xxxxxxxxxxxxx"

Response

A successful response

An App Build object representing a build of an application

id
string
required

The ID of the app build. It will look like apbu_xxxxx.

Example:

"apbu_xxxxxxxxxxxxx"

platform
enum<string>
required

The platform of the app build (ios, android, web)

Available options:
ios,
android,
web
file_url
string
required

The URL to download the app build .zip file.

created_at
string<date-time>
required

When this app build was created.

Example:

"2023-12-01T05:00:00.401Z"

status
enum<string>
required

The status of the app build (draft, approved, rejected, pending, etc)

Available options:
draft,
pending,
approved,
rejected
checksum
string
required

This is generated by the client and used to verify the integrity of the file that is submitted. It is a SHA256 hash of the app build file.

supported_app_view_types
enum<string>[]
required

The supported app view types for the app build. These are the views that the developer has specified that this build supports.

The different types of an app view

Available options:
hub,
discover,
dash,
dashboard,
analytics
review_message
string | null
required

The review message for the app build, if any. This is populated when the build is rejected and there is a reason specified by the reviewer.

is_production
boolean
required

Whether this app build is currently being used in production.