AIP Console - Extend - Offline extend - Curl command to update the offline Extend proxy fails with error Cannot POST /api/update

Purpose (problem description)

While using CURL to call API to update Extend Offline Proxy, Extensions we get an error: Cannot POST /api/update

This page will help you upload new Extensions to the Offline Extend Service when you come across the error. 

command used: curl -H "x-cxproxy-apikey:e3a5e391-2cc2-43e6-bbaa-d491783fca0e" -F "data=@C:\ProgramData\CAST\Data\bundle\default.extarchive" http://<HOSTNAME>:8085/api/update                                                                                                                                                                                                   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/update</pre>
</body>
</html>

Extend Proxy Version

Release

Yes/No

1.3.x(tick)
Observed in RDBMS

RDBMS

Yes/No

Oracle Server N/A
Microsoft SQL ServerN/A 
CSS3N/A
CSS2N/A 
Step by Step scenario
  1. Once the Extension data archive file is available
  2. run curl: command used: curl -H "x-cxproxy-apikey:e3a5e391-2cc2-43e6-bbaa-d491783fca0e" -F "data=@C:\ProgramData\CAST\Data\bundle\default.extarchive" http://<HOSTNAME>:8085/api/update         


Action Plan

Please follow the below steps to solve the issue 

  1. Download the required extensions using Extension updater CLI
  2. Export the extensions as extarchive file.Update CAST Extend local server with new content

  3. Use this API with below curl command:  http://<HOSTNAME>:8085/api/synchronization/bundle/upload

curl -H "XCGN1-0BBBCDC445B1DBC1E6BB6913D38C3AD1D8D25DCBFC2FC82BAA3A13F590913081" -F "data=@C:\ProgramData\CAST\Data\bundle\default.extarchive" http://<HOSTNAME>:8085/api/synchronization/bundle/upload

If the above steps do not solve your issue contact CAST Technical Support. with the following Relevant input for CAST Technical Support to investigate further.

 

Relevant input

Notes/comments

Ticket # 39567