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>
Release | Yes/No |
---|---|
1.3.x |
RDBMS | Yes/No |
---|---|
Oracle Server | N/A |
Microsoft SQL Server | N/A |
CSS3 | N/A |
CSS2 | N/A |
- Once the Extension data archive file is available
- 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
Please follow the below steps to solve the issue
- Download the required extensions using Extension updater CLI
Export the extensions as extarchive file.Update CAST Extend local server with new content
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
- CAST AIP Console Logs CAST Management Studio - Information - How to find logs - Needs to be updated for this - no AIP Console logs currently)
- Detail of specific steps done
- Any applicable screenshots
Ticket # 39567