How To Upload License To The Host Tenant Through API

How to upload license to the host tenant through API call?

Kindly note that this can be achieved by making HTTP Post request to the below endpoint using the “HTTP Request” activity,

  • {Orchestrator_Url}/odata/HostLicenses/UiPath.Server.Configuration.OData.UploadLicense

Below values needs to be passed in the "HTTP Request" activity,
  1. In Attachment property , create a argument and pass the path of the license file.Refer below screenshot:
  1. In headers pass the "Authorization",. Refer below screenshot:
Authorization token needs to be fetched by making API call to below URL,
  • {Orchestrator_Url}/api/Account/Authenticate
  1. In the parameters property pass the parameters in below format: