Experiences

Duplicate experience

Changed on

Duplicates an experience and attaches the copy to the same products as the original. Forum and chat copies keep the original's settings, such as who can post or comment. No content, such as posts, messages, or lessons, is copied.

Required permissions:

  • experience:create
post/experiences/{id}/duplicate

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required
Example:exp_xxxxxxxxxxxxxx

The unique identifier of the experience to duplicate.

Request body

object required

Parameters for DuplicateExperience

name, string nullable

The display name for the duplicated experience. Defaults to the original experience's name.

Response

A successful response

Experience required

An experience is a feature or content module within a product, such as a chat, course, or custom app.

app, object required

The app that powers this experience, defining its interface and behavior.

company, object required

The company that owns this experience.

created_at, string date-time required

The datetime the experience was created.

id, string required

The unique identifier for the experience.

image, object nullable required

The custom logo image for this experience. Null if no custom logo has been uploaded.

is_public, boolean required

Whether this experience is publicly visible to all users, including those without a membership.

name, string required

The display name of this experience shown to users in the product navigation. Maximum 255 characters.

order, string nullable required

The sort position of this experience within its section. Lower values appear first. Null if no position has been set.

products, object[] required

The list of products this experience is attached to, which determines which customers have access. Empty if the experience is only visible to authorized company team members.

Example response

{
  "app": {
    "icon": {
      "url": "https://media.whop.com/abc123/optimized.jpg"
    },
    "id": "app_xxxxxxxxxxxxxx",
    "name": "Courses"
  },
  "company": {
    "id": "biz_xxxxxxxxxxxxxx",
    "route": "shine-time-auto-detailing",
    "title": "Shine Time Auto Detailing"
  },
  "created_at": "2023-12-01T05:00:00.401Z",
  "id": "exp_xxxxxxxxxxxxxx",
  "image": {
    "url": "https://media.whop.com/abc123/optimized.jpg"
  },
  "name": "Detailing Tips Chat",
  "order": "123.45",
  "products": [
    {
      "id": "prod_xxxxxxxxxxxxx",
      "route": "ceramic-coating-package",
      "title": "Ceramic Coating Package"
    }
  ]
}

Changes