Create a product version

Creates a new product version.

POST/v3/product-versions
JWT
productVersion:write

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the product version.min: 1, max: 256
displayName*stringDisplay name of the product version, shown in the customer portal.min: 1, max: 256
description*stringDescription for the product version.min: 1, max: 256
productId*stringUnique identifier for the product.min: 1, max: 256
featureFlagsarrayList of feature flags.items: object
name*stringName of the feature.min: 1, max: 256
enabled*booleanWhether the feature is enabled.
datastringOptional data associated with the feature flag.min: 0, max: 4096

Request Example

{
  "name": "string",
  "displayName": "string",
  "description": "string",
  "productId": "string",
  "featureFlags": [
    {
      "name": "string",
      "enabled": true,
      "data": "string"
    }
  ]
}
Triggers webhook: productVersion.created
POST <your-webhook-url>
{
  "event": "productVersion.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "displayName": "string",
    "description": "string",
    "productId": "string",
    "featureFlags": [
      {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "name": "string",
        "enabled": true,
        "data": "string"
      }
    ]
  },
  "triggeredAt": "string"
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "displayName": "string",
  "description": "string",
  "productId": "string",
  "featureFlags": [
    {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "enabled": true,
      "data": "string"
    }
  ]
}