---
title: "How to set up Automatic Upload using Curl Script?"
slug: "how-to-set-up-automatic-upload-using-curl-script"
updated: 2023-01-16T13:46:05Z
published: 2023-01-16T13:46:05Z
---

> ## 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?

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](/v1/docs/how-to-create-your-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'

## Related

- [Automatic Custom Code Upload via Middleware](/how-to-set-up-automatic-custom-code-upload-using-middleware.md)
- [How to set up Automatic Custom Code / Patches Upload using Oracle Wallet?](/how-to-set-up-automatic-custom-code-patches-upload-using-oracle-wallet.md)
