Attachment

An Attachment.

Get an attachment

Get an attachment.

SecurityJWT
Request
path Parameters
attachment
required
string or integer

The id/hash of the attachment.

query Parameters
disposition
string or null
Default: "attachment"

The content-disposition for the requested file.

For attachment the file should be downloaded, forinline the file can be displayed.

Enum: null "attachment" "inline"
Responses
200

Successful operation

404

Not Found

get/attachment/{attachment}
Request samples
Response samples
application/json
{
  • "success": false,
  • "error": {
    },
  • "timestamp": 1660209950641
}

Update an attachment

Update an attachment.

SecurityJWT
Request
path Parameters
attachment
required
string or integer

The id/hash of the attachment.

Request Body schema: application/json

A JSON object containing attachment information

name
required
string <= 1000 characters

The attachment name.

Responses
200

Successful operation

404

Not Found

422

Unprocessable Content

put/attachment/{attachment}
Request samples
application/json
{
  • "name": "falcon_contract.pdf"
}
Response samples
application/json
{
  • "success": true,
  • "hash": "309da39c208b9cca615e8363eb7e56b5274c0c06",
  • "data": {
    },
  • "timestamp": 1660209462494
}

Delete an attachment

Delete an attachment.

SecurityJWT
Request
path Parameters
attachment
required
string or integer

The id/hash of the attachment.

Responses
200

Successful operation

404

Not Found

delete/attachment/{attachment}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": { },
  • "timestamp": 1660209903077
}

Restore an attachment

Restore an attachment.

SecurityJWT
Request
path Parameters
attachment
required
string or integer

The id/hash of the attachment.

Responses
200

Successful operation

404

Not Found

put/attachment/{attachment}/restore
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": { },
  • "timestamp": 1660210113096
}