It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Add or update license
editAdd or update license
editAdds a new or updates an existing license.
Request
editPUT /api/v1/platform/license
Request body
edit(LicenseObject
) (required) The license to add or update.
Responses
edit-
201
-
(
EmptyResponse
) The license was updated. -
400
-
(
BasicFailedReply
) The license could not be updated. (code: 'license.invalid_license') -
449
-
(
BasicFailedReply
) Elevated permissions are required. (code: 'root.needs_elevated_permissions')
To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.
Request example
editcurl -XPUT {{hostname}}/api/v1/platform/license \ -u $CLOUD_USER:$CLOUD_KEY \ -H 'Content-Type: application/json' \ -d ' { "license" : { "cluster_licenses" : [ { "license" : {} } ], "expiry_date_in_millis" : 0, "issue_date_in_millis" : 0, "issued_to" : "string", "issuer" : "string", "max_allocators" : 0, "max_instances" : 0, "max_ram_per_allocator_mb" : 0, "operation_mode" : "string", "signature" : "string", "start_date_in_millis" : 0, "subscription_type" : "string", "type" : "string", "uid" : "string", "version" : 0 } } '