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:
Image_2020-02-17_18-59-27.png
  1. In headers pass the "Authorization",. Refer below screenshot:
Image_2020-02-17_19-00-25.png
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:
Image_2020-02-17_19-01-26.png