Documentation Index

Fetch the complete documentation index at: https://success.panaya.com/llms.txt

Use this file to discover all available pages before exploring further.

How to set up Automatic Upload using Curl Script?

Prev Next

This article explains how to how to set up automatic custom code upload using Curl Script

Prerequisites

  • TLS 1.2 protocol support 
  • Oracle EBS DB version 12.1.0.2 and above


Login

To login via Curl Script use the below syntax -

curl --location --request POST 'https://emea.panaya.com/api/accesstoken' \ 
--header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'username=<Panaya_User_Name>'\
--data-urlencode 'token=<Panaya_Access_Token>' 



Custom Code Upload


To upload your custom code via Curl Script use the below syntax -

curl --request POST \
--url https://emea.panaya.com/api/accounts/01010101/etl/upload/ \
--header 'X-Auth-Token: Trlqo4zk63kKyGF9nv3KzqOs0IkW56oMdNiaL0uOIEHfEJZlfg2OyRBBcYC7H+1urmWGXKSDiNSvXqOEfZp4Tw==' \
--header 'cache-control: no-cache' \
--header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
--form 'extractionFile=@/mnt/c/Users/joe.black/Desktop/test.zip'




Patch Extraction Upload

To upload your patch extraction via Curl Script use the below syntax – 

curl --request POST \
--url https://emea.panaya.com/api/projects/7929/ptl/upload/ \
--header 'X-Auth-Token: Trlqo4zk63kKyGF9nv3KzqOs0IkW56oMdNiaL0uOIEHfEJZlfg2OyRBBcYC7H+1urmWGXKSDiNSvXqOEfZp4Tw==' \
--header 'cache-control: no-cache' \
--header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
--form 'extractionFile=@/mnt/c/Users/joe.black/Desktop/PTL.zip'