...
Code Block |
---|
$ curl -u"user:password" -XGET http://localhost:8080/rest/spaces3documents/1.0/utility/list \ /documents/?spaceKey=SWTEST |
Attach / Link existing Amazon S3
...
POST http://localhost:8080/rest/spaces3documents/1.0/utility/attach/documents
...
File to Space via REST API.
Parameters:
spaceKey (String) - Confluence Space KeyRequired
bucketConfigId (Number) - Required
pageId (Number) - Required
documentKey (String) - AWS S3 Document PathRequired
Response: [Status: 200]
Code Block |
---|
$% curl -u"user:password" admin -XPOST \ "http://localhost:80808090/rest/spaces3documents/1.0/utility/attach/documentsdocument" \ -H "Content-Type: application/json" --data '{"bucketConfigId": 4, "spaceKey":"SWTEST", "DT", \ "pageId": 4816905, "documentKey": \ "test2/README"s3://ilaesolution/documents/DT/pom.xml"}' {"status":1719,"message":"Amazon S3 File has been attached to Space. File ID #19"[Info] } % |
Upload new Amazon S3 File via REST API.
Parameters:
bucketId (Number) - Required
pageId (Number) - Required
file (Blob) - Required
updateDocument (Boolean) - Optional
Response: [Status: 200]
Code Block |
---|
% curl -u admin -XPOST "http://localhost:8090/rest/spaces3documents/1.0/utility/upload/document" \ -H "X-Atlassian-Token: no-check" -F bucketId=4 -F pageId=4816905 -F file=@/tmp/pom.xml {"status":0,"message":"Space S3 DocumentFile hasUpload been attached."} $Successful. (documents/DT/pom.xml)"} % |
To overwrite: -F updateDocument=true
Detach Amazon S3 Document on Jira
...