Rescan a File

post

/api/restapi/document/file/rescan

Send a request to this endpoint to rescan a file. Only the files with scanStatus as SCAN_ERROR can be rescanned.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityRescanRequest
Type: object
Title: ApiEntityRescanRequest
This entity represents a RescanRequest object, a unique RescanRequest object can be identified by the following combinations of the fields.
  • id
  • parentId, name
  • parentFolderPath, name, scope, workspaceId
  • parentFolderPath, name, scope, workspaceCode
Show Source
  • Maximum Length: 18
    The system-generated identifier of the file, folder, or template.
  • Read Only: true
    The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
  • Maximum Length: 255
    The name of the file, folder, or template.
  • Maximum Length: 18
    The path of the parent folder from it's root folder.
    The field is non-persistable and thus maximum length is not applicable.
  • Maximum Length: 18
    The system-generated identifier of the parent object of the file or folder.
  • Allowed Values: [ "genericPortfolio", "project", "template", "idea", "program", "strategy" ]
    The object name of the context the file or folder is created in.
  • Read Only: true
    Date when the record was last updated.
  • Maximum Length: 255
    The version of the file to be rescanned.
  • Maximum Length: 60
    The user-specified identifier of a workspace.
  • The system-specified identifier of a workspace.
Examples

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : ApiEntityRescanResponse
Type: object
Title: ApiEntityRescanResponse
This entity represents a RescanResponse object, a unique RescanResponse object can be identified by the following combinations of the fields.
  • id
  • parentId, name
  • parentFolderPath, name, scope, workspaceId
  • parentFolderPath, name, scope, workspaceCode
Show Source
  • Read Only: true
    Maximum Length: 18
    The system-generated identifier of the file, folder, or template.
  • Read Only: true
    The information populated based on result of the rescan operation. The field is non-persistable and thus maximum length is not applicable.
  • Read Only: true
    Maximum Length: 255
    The name of the file, folder, or template.
  • Read Only: true
    Maximum Length: 18
    The path of the parent folder from it's root folder.
    The field is non-persistable and thus maximum length is not applicable.
  • Read Only: true
    Maximum Length: 18
    The system-generated identifier of the parent object of the file or folder.
  • Read Only: true
    Allowed Values: [ "SCAN_PENDING", "SCAN_CLEARED", "SCAN_FAILED", "SCAN_INCONCLUSIVE", "SCAN_ERROR", "SCAN_DISABLED" ]
    Virus scan status of the version of a file the rescan has been triggered. A virus scan could return one of the following virus statuses:
    • SCAN_FAILED : A virus was found for this file.
    • SCAN_CLEARED : Virus scan was run and found the file to not contain viruses.
    • SCAN_DISABLED : File has not been scanned for viruses because scanning at has been disabled for the data center.
    • SCAN_INCONCLUSIVE :Virus scan was run but was not able to provide a cleared status. Try to scan the file again, or contact Oracle support.
    • SCAN_PENDING : Virus scan is in progress for this file.
    • SCAN_ERROR : There was an error while scanning the file for viruses. Try to scan the file again.
  • Read Only: true
    Allowed Values: [ "genericPortfolio", "project", "template", "idea", "program", "strategy" ]
    The object name of the context the file or folder is created in.
  • Read Only: true
    The response code representing the state of the rescan API operation of a specific file.
  • Read Only: true
    Date when the record was last updated.
  • Read Only: true
    Maximum Length: 255
    The version of the file the rescan has been triggered.
  • Read Only: true
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • Read Only: true
    The system-specified identifier of a workspace.

400 Response

Invalid input for the Document service. Verify the request contains valid data, then resubmit the request.
Back to Top