Create a product

Creates a new product.

POST/v3/products
JWT
product:write

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the product.min: 1, max: 256
displayName*stringDisplay name of the product, shown in the customer portal.min: 1, max: 256
description*stringDescription for the product.min: 1, max: 256
licenseTemplateId*stringUnique identifier for the license template.min: 1, max: 256
trialPolicyIdstringUnique identifier for the trial policy.min: 0, max: 256
metadataarrayList of metdata key/value pairs.items: object
key*stringName of the key.min: 1, max: 256
value*stringValue of the key.min: 0, max: 4096
viewPermissionsarrayArray of view permissions associated with the metadata.items: string

Request Example

{
  "name": "string",
  "displayName": "string",
  "description": "string",
  "licenseTemplateId": "string",
  "licensePolicyId": "string",
  "trialPolicyId": "string",
  "metadata": [
    {
      "key": "string",
      "value": "string",
      "viewPermissions": [
        "activation"
      ],
      "visible": true
    }
  ]
}
Triggers webhook: product.created
POST <your-webhook-url>
{
  "event": "product.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "displayName": "string",
    "description": "string",
    "publicKey": "string",
    "totalLicenses": 0,
    "totalTrialActivations": 0,
    "totalReleases": 0,
    "totalProductVersions": 0,
    "totalFeatureFlags": 0,
    "automatedEmails": [
      "string"
    ],
    "licenseTemplateId": "string",
    "trialPolicyId": "string",
    "iconUrl": "string",
    "metadata": [
      {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "key": "string",
        "value": "string",
        "viewPermissions": [
          "activation"
        ],
        "visible": true
      }
    ]
  },
  "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",
  "publicKey": "string",
  "totalLicenses": 0,
  "totalTrialActivations": 0,
  "totalReleases": 0,
  "totalProductVersions": 0,
  "totalFeatureFlags": 0,
  "automatedEmails": [
    "string"
  ],
  "licenseTemplateId": "string",
  "trialPolicyId": "string",
  "iconUrl": "string",
  "metadata": [
    {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "key": "string",
      "value": "string",
      "viewPermissions": [
        "activation"
      ],
      "visible": true
    }
  ]
}