# Introduction to the Products and Packaging REST API

The Products and Packaging REST API provides endpoints for creating and retrieving products, features, maintenance, part numbers, and suites. 

{% admonition type="warning" %}
  The Products and Packaging REST API is currently in its beta version and remains under active development. As such, it is not yet fully optimized, and may undergo significant changes or enhancements. Revenera strongly advises against using this API in production environments.
{% /admonition %}


Version: 1.0.0_Beta

## Servers

Generated server url
```
https://YourSiteID-uat.flexnetoperations.com/products-api
```

## Download OpenAPI description

[Introduction to the Products and Packaging REST API](https://fnoapi.redocly.app/_bundle/apis/rest/product/product-service.yaml)

## Part Number

API for performing operations on part numbers.

### Get part numbers

 - [GET /v1/part-numbers](https://fnoapi.redocly.app/apis/rest/product/product-service/part-number/getpartnumbers.md)

### Create one or more part numbers

 - [POST /v1/part-numbers](https://fnoapi.redocly.app/apis/rest/product/product-service/part-number/saveproducts_1.md)

## Product

API for performing operations on products.

### Get products

 - [GET /v1/products](https://fnoapi.redocly.app/apis/rest/product/product-service/product/getproducts.md)

### Create a product

 - [POST /v1/products](https://fnoapi.redocly.app/apis/rest/product/product-service/product/saveproducts.md): Creates a new product with the provided details. 
- Implementation Notes: 
- Mandatory Fields: productName, version. 
- License Technology: Defaults to 'FlexNet Licensing' if not provided. 
- License Generator: Automatically fetched based on licenseTechnology if not provided. 
- Product Category: Defaults to 'Uncategorized Products' if not specified. 
- Features: If version is not specified, the feature will be associated based on the name, provided only one feature exists with the given name. 
- hostType: If this parameter is not specified and license technology  defaults to the standard license technology with usedOnDevice set to false then default host type 'Certificate or Trusted Host' is set  
- Part Numbers: Must be unique across products.
- Auto Deploy: If set to true, validations are performed to ensure that the product, license models, features, and feature bundles are deployed. If any feature or feature bundle is not deployed, during product deployment, they will be automatically deployed as part of the process. 
- Date Fields: startDate and endDate must be in YYYY-MM-DD format. 
- usedOnDevice: Indicates whether the license is used on a device. This flag is only applicable when the license technology is set to the default license technology. For custom license technologies, this parameter is ignored. 
- Upgrade Email Template: Use 'none' for no template or 'default' for the default template.

### Get maintenance

 - [GET /v1/maintenance](https://fnoapi.redocly.app/apis/rest/product/product-service/product/getmaintenanceproducts.md)

### Create a maintenance product

 - [POST /v1/maintenance](https://fnoapi.redocly.app/apis/rest/product/product-service/product/savemaintenanceproduct.md)

## Suite

API for performing operations on suites.

### Get suites

 - [GET /v1/suites](https://fnoapi.redocly.app/apis/rest/product/product-service/suite/getsuites.md)

### Create a suite

 - [POST /v1/suites](https://fnoapi.redocly.app/apis/rest/product/product-service/suite/createsuite.md)

### Get a suite

 - [GET /v1/suites/{suiteName}/{suiteVersion}](https://fnoapi.redocly.app/apis/rest/product/product-service/suite/getsuites_1.md)

## Feature

API for performing operations on features.

### Get features

 - [GET /v1/features](https://fnoapi.redocly.app/apis/rest/product/product-service/feature/getfeatures.md)

### Create a feature

 - [POST /v1/features](https://fnoapi.redocly.app/apis/rest/product/product-service/feature/postfeature.md)

### Get feature bundle

 - [GET /v1/feature-bundles](https://fnoapi.redocly.app/apis/rest/product/product-service/feature/getfeaturebundles.md)

### Create a feature bundle

 - [POST /v1/feature-bundles](https://fnoapi.redocly.app/apis/rest/product/product-service/feature/postfeaturebundle.md)

