Skip to main content

applyNewLicense

A Graze API POST request that adds a Moogsoft Enterprise license via Graze.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint applyNewLicense takes the following request arguments:

Name

Type

Required

Description

auth_token

String

Yes

A valid auth_token returned from the authenticate request. Alternatively, basic authenticate headers can be used in place of this parameter. See the authenticate endpoint for more information and usage examples.

license

String

Yes

A valid license key.

Response

Endpoint applyNewLicense returns the following response:

Examples

The following examples demonstrate typical use of endpoint applyNewLicense:

Request example

Example cURL request to add a valid license:

curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/applyNewLicence" -H "Content-Type: application/json; charset=UTF-8" -d '{"license" : "<your license key>"}'

Response example