Upload the file

POST /files/_actions/upload

upload the file

Headers

application/json

Body Required

Responses

  • 200 application/json

    Successful operation

    Hide response attribute Show response attribute object
    • data object Required

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • file object Required

        Additional properties are NOT allowed.

        Hide file attributes Show file attributes object
        • id string Required

          Minimum length is 1.

        • blobName string Required

          Minimum length is 1.

        • originalFileName string Required

          Minimum length is 1.

        • scanResultType string Required

          Values are MALICIOUS, NOT_SCANNED, NO_THREATS_FOUND, or PENDING.

        • createdAt string(date-time) Required

          Minimum length is 1.

        • updatedAt string(date-time) Required

          Minimum length is 1.

        • deletedAt string(date-time) | null Required

          Minimum length is 1.

POST /files/_actions/upload
curl \
 -X POST https://api.development.pexipengage.com/enterprises/acme/files/_actions/upload \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
 -H "X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002" \
 -H "Accept-Language: en *" \
 -d '{"originalFileName":"string"}'
Request examples
# Headers
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002
Accept-Language: en *

# Payload
{
  "originalFileName": "string"
}
Response examples (200)
{
  "data": {
    "file": {
      "id": "123",
      "blobName": "string",
      "originalFileName": "string",
      "scanResultType": "NO_THREATS_FOUND",
      "createdAt": "2022-08-17T19:05:21.362Z",
      "updatedAt": "2022-08-17T19:05:21.362Z",
      "deletedAt": "2022-08-17T19:05:21.362Z"
    },
    "uploadFileLink": "string"
  }
}