Apply License Policy
Apply a SKU Policy (License Template), identified by policy_code, onto a single License if requesting manager has access permissions to it. The policy's fields are used as defaults; any other License field also present in the request body overrides the value coming from the policy, the same way a regular PATCH would.
URL : /api/v1/licenses/{id}/apply_policy/
Method : POST
Parameters
policy_code- Stringrequired
Any other field accepted by Update License
optional
overrides the value coming from the policy identified by
policy_code
Data example
{
"policy_code": "qatpl"
}Success Response
Code : 200 OK
Content examples :
{
"id": 1593781720493289,
"status": "Inactive",
"license_template": 90012,
"max_activations": 5,
"max_consumptions": 0,
"is_floating": false,
"is_floating_cloud": true,
"floating_users": 1,
"enable_maintenance_period": true,
"maintenance_duration": "3m",
"valid_duration": null,
"validity_period": "2020-09-30",
"metadata": {},
"product_features": [
{
"id": 1596179495925542,
"product_feature": {
"id": 173,
"name": "Feature 3",
"code": "f3"
},
"max_consumption": 30,
"total_consumptions": 0,
"expiry_date": null,
"metadata": {}
}
],
"product_custom_fields": [],
"product": {
"id": 1584723961091234,
"product_name": "mch"
},
"created_at": "2020-07-03T13:08:40Z",
"updated_at": "2020-11-13T07:38:16.788576Z"
}Last updated
Was this helpful?