Experiences

Detach experience

Changed on

Detaches an experience from a product, removing customer access to it through that product.

Required permissions:

  • experience:detach
post/experiences/{id}/detach

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 detach.

Request body

object required

Parameters for RemoveExperienceFromAccessPass

product_id, string required

The unique identifier of the product to detach the experience from.

Example request

{
  "product_id": "prod_xxxxxxxxxxxxx"
}

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