file_actions
File Actions

Decrypt a GPG-encrypted file and save it to a destination path.

Changed on

Decrypt a GPG-encrypted file and save it to a destination path.

post/file_actions/gpg_decrypt/{path}

Request

  • Base URL
    https://app.files.com/api/rest/v1
  • URL
    https://app.files.com/api/rest/v1/file_actions/gpg_decrypt/{path}
  • Auth
    none declared

Path parameters

pathstring required

Path to operate on.

Request body multipart/form-data

destinationstring required

Destination file path for the decrypted file.

gpg_key_idsinteger[]

GPG Key IDs to decrypt with. If omitted, every accessible private GPG key in the source workspace is used.

gpg_key_partner_idinteger

Partner ID whose GPG keys should be used for decryption.

use_all_private_keysboolean

Use every accessible private GPG key in the source workspace for decryption.

ignore_mdc_errorboolean

Ignore errors from the MDC (modification detection code) check.

overwriteboolean

Overwrite existing file in the destination?

Response

The FileActions object.

statusstring

Status of file operation.

file_migration_idinteger

If status is pending, this is the id of the File Migration to check for status updates. Delete actions include it whenever the deletion runs as a File Migration, including while it is processing.

Example response

{
  "status": "pending",
  "file_migration_id": 1
}

Changes