upload attachments to s3
upload attachments to s3
Path Parameters
departmentUUID string required
application/json
Request Body required
fileItems byte[]
contentType string
fileName string
extension string
folderPrefix string
mediaUrl string
uploadFromUrl boolean
Responses
- 200
OK
application/json
Schema
Example (from schema)
Schema
attachmentURL string
mediaPreviewURL string
thumbnailURL string
extension string
contentType string
docSize string
shortUrl string
errors object[]
warnings object[]
{
"attachmentURL": "string",
"mediaPreviewURL": "string",
"thumbnailURL": "string",
"extension": "string",
"contentType": "string",
"docSize": "string",
"shortUrl": "string",
"errors": [
{
"errorCode": "string",
"errorDescription": "string",
"errorUID": "string"
}
],
"warnings": [
{
"warningCode": "string",
"warningDescription": "string"
}
]
}
POST /department/:departmentUUID/attachments
Authorization
name: basicAuthtype: httpscheme: basic
Request
Request
curl / cURL
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
python / requests
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
go / native
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
nodejs / axios
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
ruby / Net::HTTP
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
csharp / RestSharp
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
php / cURL
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
java / OkHttp
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'
powershell / RestMethod
curl -L -X POST '/communications/department/:departmentUUID/attachments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"fileItems": [
"string"
],
"contentType": "string",
"fileName": "string",
"extension": "string",
"folderPrefix": "string",
"mediaUrl": "string",
"uploadFromUrl": true
}'