Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Create License

view on GitHub

Create License is available as both a pgutil command and an HTTP Request, and will create a license, with the properties defined by a LicenseInfo object in the body of the request.

Command Specification (CLI)

The licenses create command is used to create a license by name and code.

The --title and --code options are always required.

Adding a license requires the license name (e.g. ABC License 1.0) and license code (e.g. ABC-1.0):

pgutil licenses create --title="ABC License 1.0" --code=ABC-1.0

Request Specification

To create a license, simply PUT or POST to the URL with an appropriate API Key and a LicenseInfo object as the request body.

POST/PUT /api/licenses/add

HTTP Response Specification

A successful (200) response body will be empty.

Response Details
200 (Success) a license will be created
400 (Invalid Input) indicates invalid or missing properties in the request; the body will provide some details as text
403 (Unauthorized API Key) indicates a missing, unknown, or unauthorized API Key; the body will be empty