# Looking for help with Form Data Body API example

**URL:** <https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406>\
**Category:** Eggplant Functional\
**Created:** [May 1, 2025, 7:49pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406 "2025-05-01T19:49:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GTPWilks](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/gtpwilks/32/170_2.png) [@GTPWilks](https://forums.eggplantsoftware.com/u/GTPWilks)\
**Post date:** [May 1, 2025, 7:49pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/1 "2025-05-01T19:49:25Z")

</div>

Have an API that can be used to attach files (into ClickUp) and trying to implement into my EPF code. Trying with the basics I ended up using POSTMAN and got it to work but unable to duplicate it in EPF. I am 99% sure its the formdata part I am not getting the format or details right

In POSTMAN I wish Sensetalk was in there for a code snippet but it is not. I am showing the CURL snippet but not sure if this is of any help

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/530ffc1fdeba789ef6853870a0d4c8359b385d94.png)

The documentation from ClickUp isnt helping me much  
[https://www.postman.com/clickup-api/clickup-public-api/request/uch46ml/create-task-attachment?tab=overview](https://www.postman.com/clickup-api/clickup-public-api/request/uch46ml/create-task-attachment?tab=overview)

I know this isn’t right but in short showing what I have been trying to do

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/2e5f1e2d2b8f648226dd22c5929237e6405ff7bc.png)

---

<div class="post-metadata">

**Author:** ![GTPWilks](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/gtpwilks/32/170_2.png) [@GTPWilks](https://forums.eggplantsoftware.com/u/GTPWilks)\
**Post date:** [May 2, 2025, 10:21pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/2 "2025-05-02T22:21:20Z")

</div>

Was able to do outside and API script using the post multipart command. I might still play with moving this to an API script if anyone has ideas on how this might copy over?  
 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/cf957c079e37dc9ed522ef778e5534f03c40cc0b.png)

---

<div class="post-metadata">

**Author:** ![helen628young](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/h/a6a055/32.png) [@helen628young](https://forums.eggplantsoftware.com/u/helen628young)\
**Post date:** [May 26, 2025, 9:08am UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/3 "2025-05-26T09:08:54Z")

</div>

Hello,

To upload a file to ClickUp via EPF (SenseTalk), structure a multipart/form-data POST with headers and file content like this:

put “your\_api\_key” into apiKey  
put “your\_task\_id” into taskID  
put “C:/Path/To/Your/File.txt” into filePath

put “–boundary123” & return into body  
put ‘Content-Disposition: form-data; name=“attachment”; filename="’ & filePath’s short name & ‘"’ & return into body  
put “Content-Type: application/octet-stream” & return & return into body  
put file filePath into fileContents  
put body & fileContents & return & “–boundary123–” & return into body

put [  
method:“POST”,  
headers:[  
“Authorization”: apiKey,  
“Content-Type”: “multipart/form-data; boundary=boundary123”  
],  
body:body  
] into request

put post & taskID & “/attachment” with request into result  
put result.

File path is correct

Boundary matches in body and header

File is read correctly

Best Regard,  
Helen

---

<div class="post-metadata">

**Author:** ![Karsten](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@Karsten](https://forums.eggplantsoftware.com/u/Karsten)\
**Post date:** [May 26, 2025, 2:28pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/4 "2025-05-26T14:28:56Z")

</div>

Hey @GTPWilks,

here is a version I have used in the past next to the multipart (which is much simpler from my perspective).

```auto

set user to "admin"
set id to "123"
set myheader to {
	"name":"id",
	"contents":id
}
set myBody to {
	name:"id",
	contents:user
}

set myURL to "https://postman-echo.com/post"
put APostRequest(httpmethod:"POST",Url:myURL,requestbody:myBody, requestheaders:myHeaders) into ApiResults

log jsonformat(ApiREsults) 

```

---

<div class="post-metadata">

**Author:** ![liki7411](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@liki7411](https://forums.eggplantsoftware.com/u/liki7411)\
**Post date:** [June 12, 2025, 4:14pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/5 "2025-06-12T16:14:20Z")

</div>

Hey @Karsten,  
i am trying to post a zip file using below code, this doesn’t work.  
**My Code:**

\*` Post multipart {fieldName:"attachment",filename:fileNameForUpload,Body: zipFilePath} to URL MyURL with headers headers1`

**Headers:**

```auto
put {
	"Authorization": "Basic " & encodedCredentials,
	"X-Atlassian-Token": "no-check"
} into headers1

```

I also tried this code, but no luck  
`put APostRequest(httpmethod:"POST",Url:myURL,requestbody:myBody, requestheaders:myHeaders) into ApiResults`

---

<div class="post-metadata">

**Author:** ![Karsten](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@Karsten](https://forums.eggplantsoftware.com/u/Karsten)\
**Post date:** [June 13, 2025, 9:12am UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/6 "2025-06-13T09:12:46Z")

</div>

Hey @liki7411 ,

```auto
Post multipart {fieldName:"attachment",\
			filename:fileNameForUpload,\
			Body: file zipFilePath as data} \
		to URL MyURL with headers headers1

```

See above. Can you add _file_ before your variable _zipFilePath_ and afterwards _as data_

here is the docu [URL Transactions and Formatting | EPF Docs](https://docs.eggplantsoftware.com/studio/stk-url-transactions-formatting/#post-multipart)

---

<div class="post-metadata">

**Author:** ![liki7411](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@liki7411](https://forums.eggplantsoftware.com/u/liki7411)\
**Post date:** [June 13, 2025, 9:51am UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/7 "2025-06-13T09:51:07Z")

</div>

@Karsten yes i have tried that as well , `post multipart {fieldName:"attachment",filename:fileNameForUpload,Body: file zipFilePath as data} to URL jiraURL with headers headers1` . I get blank response for this too. I checked file size which is - 761113 bytes

---

<div class="post-metadata">

**Author:** ![Karsten](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@Karsten](https://forums.eggplantsoftware.com/u/Karsten)\
**Post date:** [June 13, 2025, 12:20pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/8 "2025-06-13T12:20:47Z")

</div>

Hey @liki7411 ,

1. Does it work with a non zip file? txt, png? Can you try ?
2. Can you share the Jira documentation, API endpoints and describe a bit more what you want to achieve?
3. Do you know which Technical Consultant is assigned to your account? Can you reach out to her/him directly to support handson in a webmeeting.
4. Did you verify its working via Postman or curl on cmd/terminal?
5. Can you share the full scripts and add placeholders for credentials and your Jira URL ?  
Cheers,  
Karsten

---

<div class="post-metadata">

**Author:** ![liki7411](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@liki7411](https://forums.eggplantsoftware.com/u/liki7411)\
**Post date:** [June 13, 2025, 12:45pm UTC](https://forums.eggplantsoftware.com/t/looking-for-help-with-form-data-body-api-example/14406/9 "2025-06-13T12:45:28Z")

</div>

- Yes i am checking with our Technical Consultant , But yes i have tried .png/jpeg file. Here is the API documentation.  
`[https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post)

- Same method did work in Postman
