PriceVariants

Link experience to price variant

Changed on

Links an experience to a price variant so buying that variant grants the experience. Back-grants access to everyone who already bought.

post/price_variants/{price_variant_id}/experiences

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

price_variant_id, string required

The price variant ID

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

PriceVariantExperienceRequest required
experience_id, string required

Experience ID or slug to link

Response

Experience linked

Experience required
id, string required
object, string required
name, string required
slug, string required
description, string nullable required
access_type, 'secret' | 'open' required
created_at, string date-time required
updated_at, string date-time required
type, string required
active_grants_count, integer required
details, object required

Type-specific fields, shaped by the experience's type. Mirrors what PATCH accepts under details (see the per-type *DetailsRequest schemas), plus read-only collections (e.g. a course's chapters).

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision