Skip to main content
Solved

How can i upload license file via API?

  • May 3, 2021
  • 1 reply
  • 17 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..

 

Best answer by hollyatsafe

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+2
  • 719 replies
  • Best Answer
  • May 3, 2021

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