Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,979
Community Members
 
Community Events
168
Community Groups

can I use multiple files to attach in one command in rest API

Hi Team,

I got this command to upload an attachment. Can i use 3 file names separated by commas using below comand?

curl -u $USER_NAME:$USER_PASSWORD \

 -X POST \

 -H "X-Atlassian-Token: nocheck" -F "file=@${ATTACHMENT_FILE_NAME}" -F "comment=File attached via REST API" \

 ${CONFLUENCE_BASE_URL}/rest/api/content/${PAGE_ID}/child/attachment 2>/dev/null 

If NO what is the best way (other than running a loop) to attach all 3 files with a single command to a confluence page?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events