Solved

How can i upload license file via API?

  • 3 May 2021
  • 1 reply
  • 6 views

I´m executin this command to upload the FME license: 

curl -X POST "https://localhost:443/licensing/license?filetype=fmelic" -H "Authorization: fmetoken token=****" -H "Content-type: application/octet-stream" -H "Accept: application/json" --data "@fme_license.fmelic"

 

But i got this error:

<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> The requested resource [&#47;licensing&#47;license] is not available</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/9.0.44</h3></body></html>Done..

 

icon

Best answer by hollyatsafe 3 May 2021, 22:04

View original

1 reply

Badge +2

Hi @misazab95​ ,

Your URL is currently missing the reference to the REST service, please update your URL to:

 

https://localhost:443/fmerest/v3/licensing/license?filetype=fmelic

 

To help set up REST API calls I'd recommend opening the REST API documentation directly from your FME Server by selecting the 'Help' icon in the top right corner. Then under the endpoint you'd like to use you'll find an example of the request URL.

 

2021-05-03_13-01-54

Reply