PrototypeFiles#

Endpoints to manage files. If you are interacting with files of type Script, you may wish to use the purpose-built scripts endpoints.

File#

Details about the file, including its ID, name, kind, and milestone dates.

Properties#

Name

Type

Description

Restrictions

container

string

The unique identifier of the container that houses the file, such as a folder. If empty, the root folder is the container.

read-only

created

Action

When the action was performed, and details about the user who did it

read-only

id

string

The unique identifier of the file

read-only

kind

string

Kind of the file

modified

Action

When the action was performed, and details about the user who did it

read-only

name

string

Name of the file

template

boolean

read-only

type

string

Type of the file

read-only

Enumerated Values#

Property

Value

kind

Document

kind

Spreadsheet

kind

Presentation

kind

Folder

kind

Script

Example#

{
  "container": "V0ZEYXRhRW50aXR5HkZvbGRlcjpyMTY0NEU1ZkY2OTA1QkM5QTSCMyZCRkRzQzNDO1FGNC",
  "created": {
    "dateTime": "2019-10-30T15:03:27Z",
    "user": {
      "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
    }
  },
  "id": "124efa2a142f472ba1ceab34ed18915f",
  "kind": "Document",
  "modified": {
    "dateTime": "2019-10-30T15:03:27Z",
    "user": {
      "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
    }
  },
  "name": "Year-end review",
  "template": false,
  "type": "10-K"
}

FileCopyOptions#

Additional options for the file copy. If no options are provided, all options default to false.

Properties#

Name

Type

Description

Restrictions

emailOnComplete

boolean

Whether or not to email the authorized user when this copy is complete.

includeAttachments

boolean

Whether to preserve attachments for copied content.

includeAutomations

boolean

Whether to preserve automations for copied content.

includeComments

boolean

Whether to preserve comments for copied content.

includeCustomFieldValues

boolean

Whether to preserve custom field values for copied content.

includeDocumentMarkup

boolean

Whether to preserve document markup for copied content.

includeInputCellValues

boolean

Whether to preserve input cell values for copied content.

includeOutlineLabels

boolean

Whether to preserve outline labels for copied content.

includeSmartLinkMetadata

boolean

Whether to include smart link metadata for copied content.

includeWdataIncomingConnections

boolean

Whether to preserve incoming wdata connections for copied content.

includeWdataOutgoingConnections

boolean

Whether to preserve outgoing wdata connections for copied content.

includeXBRL

boolean

Whether to preserve XBRL for copied content.

includeXBRLDisconnected

boolean

Whether to preserve disconnected XBRL for copied content.

keepInputModeEnabled

boolean

Whether to preserve input mode for copied content.

removeGRCLinks

boolean

Whether to remove any connections to original GRC database, preserving only the textual or value representation of these links. If shallowCopy is true, this option must be false.

removeLinks

boolean

Whether to remove any links from sources that are not part of the operation, preserving only the textual or value representation of these links. If shallowCopy is true, this option must be false.

shallowCopy

boolean

Whether to keep the same source files for your destination links.

Example#

{
  "emailOnComplete": true,
  "includeAttachments": true,
  "includeAutomations": true,
  "includeComments": true,
  "includeCustomFieldValues": true,
  "includeDocumentMarkup": true,
  "includeInputCellValues": true,
  "includeOutlineLabels": true,
  "includeSmartLinkMetadata": true,
  "includeWdataIncomingConnections": true,
  "includeWdataOutgoingConnections": true,
  "includeXBRL": true,
  "includeXBRLDisconnected": true,
  "keepInputModeEnabled": true,
  "removeGRCLinks": true,
  "removeLinks": true,
  "shallowCopy": true
}

FileImport#

Details about a file import including the file name and target kind.

Properties#

Name

Type

Description

Restrictions

fileName

string

The name of the file to upload. Supported extensions include .XLSX, .CSV, .DOCX, .PPTX, .VSDX, .TAR.GZ

kind

string

The Workiva file type to upload to. (Document, Spreadsheet, Presentation, Workiva)

workivaFileImportOptions

WorkivaFileImportOptions¦null

Additional import options used for Workiva (.tar.gz) files. Should only be provided when kind is “Workiva”.

Enumerated Values#

Property

Value

kind

Document

kind

Spreadsheet

kind

Presentation

kind

Workiva

Example#

{
  "fileName": "quarterly_report.docx",
  "kind": "Document"
}

FileImportResponse#

Response to a file import including the URL to upload the file to.

Properties#

Name

Type

Description

Restrictions

uploadUrl

string

The signed URL used to upload the file. Make a PUT request to this URL whose body is the contents of the file to upload.

Example#

{
  "uploadUrl": "<opaque_url>"
}

FileRestoreOptions#

Request body for File restore endpoint

Properties#

None

Example#

{}

FilesListResult#

Returns a JSON object with data and @nextLink properties. data contains a list of File objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.

Properties#

Name

Type

Description

Restrictions

@nextLink

string

Pagination link for next set of results

data

[File]

Details about the file, including its ID, name, kind, and milestone dates.

required

Example#

{
  "@nextLink": "<opaque_url>",
  "data": [
    {
      "container": "V0ZEYXRhRW50aXR5HkZvbGRlcjpyMTY0NEU1ZkY2OTA1QkM5QTSCMyZCRkRzQzNDO1FGNC",
      "created": {
        "dateTime": "2019-10-30T15:03:27Z",
        "user": {
          "displayName": "John Doe",
          "email": "string",
          "firstName": "John",
          "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
          "lastName": "Doe",
          "userName": "string"
        }
      },
      "id": "124efa2a142f472ba1ceab34ed18915f",
      "kind": "Document",
      "modified": {
        "dateTime": "2019-10-30T15:03:27Z",
        "user": {
          "displayName": "John Doe",
          "email": "string",
          "firstName": "John",
          "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
          "lastName": "Doe",
          "userName": "string"
        }
      },
      "name": "Year-end review",
      "template": false,
      "type": "10-K"
    }
  ]
}

FileTrashOptions#

Request body for File trash endpoint

Properties#

None

Example#

{}

FolderExport#

Details about the folder export, including its options

Properties#

Name

Type

Description

Restrictions

emailOnComplete

boolean

Whether or not to email the authorized user when this upload is complete.

includeAttachments

boolean

Whether to preserve attachments for exported content.

includeComments

boolean

Whether to preserve comments for exported content.

includeCustomFieldValues

boolean

Whether to preserve custom field values for exported content.

includeDocumentMarkup

boolean

Whether to preserve document markup for exported content.

includeInputCellValues

boolean

Whether to preserve input cell values for exported content.

includeOutlineLabels

boolean

Whether to preserve outline labels for exported content.

includeSmartLinkMetadata

boolean

Whether to include smart link metadata for exported content.

includeWdataIncomingConnections

boolean

Whether to preserve incoming wdata connections for exported content.

includeWdataOutgoingConnections

boolean

Whether to preserve outgoing wdata connections for exported content.

includeXBRL

boolean

Whether to preserve XBRL for exported content.

includeXBRLDisconnected

boolean

Whether to preserve disconnected XBRL for exported content.

keepInputModeEnabled

boolean

Whether to preserve input mode for exported content.

removeGRCLinks

boolean

Whether to remove any connections to original GRC database, preserving only the textual or value representation of these links.

removeLinks

boolean

Whether to remove any links from sources that are not part of the operation, preserving only the textual or value representation of these links.

Example#

{
  "emailOnComplete": true,
  "includeAttachments": true,
  "includeComments": true,
  "includeCustomFieldValues": true,
  "includeDocumentMarkup": true,
  "includeInputCellValues": true,
  "includeOutlineLabels": true,
  "includeSmartLinkMetadata": true,
  "includeWdataIncomingConnections": true,
  "includeWdataOutgoingConnections": true,
  "includeXBRL": true,
  "includeXBRLDisconnected": true,
  "keepInputModeEnabled": true,
  "removeGRCLinks": true,
  "removeLinks": true
}

ImportPrototypeFileListResult#

Returns a JSON object with data and @nextLink properties. data contains a list of ImportFileResult objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.

Properties#

Name

Type

Description

Restrictions

@nextLink

string¦null

Pagination link for next set of results

data

[ImportFileResult]

Details about the result of importing a file

read-only

Example#

{
  "@nextLink": "<opaque_url>",
  "data": [
    {
      "container": "V0ZEYXRhRW50aXR5HkZvbGRlcjpyMTY0NEU1ZkY2OTA1QkM5QTSCMyZCRkRzQzNDO1FGNC",
      "id": "124efa2a142f472ba1ceab34ed18915f",
      "kind": "Document"
    }
  ]
}

PrototypeFile#

Details about the file, including its ID, name, kind, and milestone dates.

Properties#

Name

Type

Description

Restrictions

container

string

The unique identifier of the container that houses the file, such as a folder. If empty, the root folder is the container.

read-only

created

Action

When the action was performed, and details about the user who did it

read-only

id

string

The unique identifier of the file

read-only

kind

string

Kind of the file

locked

boolean

Whether or not the file is locked

read-only

modified

Action

When the action was performed, and details about the user who did it

read-only

name

string

Name of the file

state

string

State of the file

read-only

template

boolean

read-only

type

string

Type of the file

read-only

Enumerated Values#

Property

Value

kind

Document

kind

Spreadsheet

kind

Presentation

kind

Folder

kind

Script

kind

SupportingDocument

state

Active

state

Trashed

Example#

{
  "container": "V0ZEYXRhRW50aXR5HkZvbGRlcjpyMTY0NEU1ZkY2OTA1QkM5QTSCMyZCRkRzQzNDO1FGNC",
  "created": {
    "dateTime": "2019-10-30T15:03:27Z",
    "user": {
      "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
    }
  },
  "id": "124efa2a142f472ba1ceab34ed18915f",
  "kind": "Document",
  "locked": false,
  "modified": {
    "dateTime": "2019-10-30T15:03:27Z",
    "user": {
      "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
    }
  },
  "name": "Year-end review",
  "state": "Active",
  "template": false,
  "type": "10-K"
}

PrototypeFileCopy#

Details about a file copy including the destination container and options

Properties#

Name

Type

Description

Restrictions

destinationContainer

string¦null

The unique id of the destination container to copy to. Omit this field to specify the root container. Specifying an empty string is invalid.

options

FileCopyOptions

Additional options for the file copy. If no options are provided, all options default to false.

Example#

{
  "destinationContainer": "V0ZEYXRhRW50aXR5HkZvbGRlcjox",
  "options": {
    "emailOnComplete": true,
    "includeAttachments": true,
    "includeAutomations": true,
    "includeComments": true,
    "includeCustomFieldValues": true,
    "includeDocumentMarkup": true,
    "includeInputCellValues": true,
    "includeOutlineLabels": true,
    "includeSmartLinkMetadata": true,
    "includeWdataIncomingConnections": true,
    "includeWdataOutgoingConnections": true,
    "includeXBRL": true,
    "includeXBRLDisconnected": true,
    "keepInputModeEnabled": true,
    "removeGRCLinks": true,
    "removeLinks": true,
    "shallowCopy": true
  }
}

PrototypeFileImport#

Details about a file import including the file name and target kind.

Properties#

Name

Type

Description

Restrictions

fileName

string

The name of the file to import. Supported extensions include .XLSX, .CSV, .DOCX, .PPTX, .VSDX, .TAR.GZ unless importing a SupportingDocument which can have any extension.

kind

string

The Workiva file type to upload to. (Document, Spreadsheet, Presentation, Workiva, SupportingDocument)

supportingDocumentImportOptions

SupportingDocumentImportOptions¦null

Additional import options used for Native files. Should only be provided when kind is “Supporting Document”.

workivaFileImportOptions

WorkivaFileImportOptions¦null

Additional import options used for Workiva (.tar.gz) files. Should only be provided when kind is “Workiva”.

Enumerated Values#

Property

Value

kind

Document

kind

Spreadsheet

kind

Presentation

kind

Workiva

kind

SupportingDocument

Example#

{
  "fileName": "signed_contract.pdf",
  "kind": "SupportingDocument",
  "supportingDocumentImportOptions": {
    "containerId": "V0ZEYXRhRW5zVkNmU2Zi1mZjcE4EzNzk0ZmUwZjk"
  }
}

PrototypeFilesListResult#

Returns a JSON object with data and @nextLink properties. data contains a list of File objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.

Properties#

Name

Type

Description

Restrictions

@nextLink

string

Pagination link for next set of results

data

[PrototypeFile]

Details about the file, including its ID, name, kind, and milestone
dates.

required

Example#

{
  "@nextLink": "string",
  "data": [
    {
      "container": "V0ZEYXRhRW50aXR5HkZvbGRlcjpyMTY0NEU1ZkY2OTA1QkM5QTSCMyZCRkRzQzNDO1FGNC",
      "created": {
        "dateTime": "2019-10-30T15:03:27Z",
        "user": {
          "displayName": "John Doe",
          "email": "string",
          "firstName": "John",
          "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
          "lastName": "Doe",
          "userName": "string"
        }
      },
      "id": "124efa2a142f472ba1ceab34ed18915f",
      "kind": "Document",
      "locked": false,
      "modified": {
        "dateTime": "2019-10-30T15:03:27Z",
        "user": {
          "displayName": "John Doe",
          "email": "string",
          "firstName": "John",
          "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
          "lastName": "Doe",
          "userName": "string"
        }
      },
      "name": "Year-end review",
      "state": "Active",
      "template": false,
      "type": "10-K"
    }
  ]
}

SupportingDocumentImportOptions#

Additional import options used for Native files. Should only be provided when kind is “Supporting Document”.

Properties#

Name

Type

Description

Restrictions

containerId

string

The ID of the folder in which to place the newly imported files. Set this to the empty string ("") to import to the root folder.

Example#

{
  "containerId": "V0ZEYXRhRW5zVkNmU2Zi1mZjcE4EzNzk0ZmUwZjk"
}

WorkivaFileImportOptions#

Additional import options used for Workiva (.tar.gz) files. Should only be provided when kind is “Workiva”.

Properties#

Name

Type

Description

Restrictions

createNewResultContainer

boolean

Whether to create new result container for imported content.

destinationContainer

string

The ID of the folder in which to place the newly imported files. Set this to “” to import to the root folder.

emailOnComplete

boolean

Whether or not to email the authorized user when this upload is complete.

includeAttachments

boolean

Whether to preserve attachments for imported content.

includeComments

boolean

Whether to preserve comments for imported content.

includeCustomFieldValues

boolean

Whether to preserve custom field values for imported content.

includeDocumentMarkup

boolean

Whether to preserve document markup for imported content.

includeInputCellValues

boolean

Whether to preserve input cell values for imported content.

includeOutlineLabels

boolean

Whether to preserve outline labels for imported content.

includeSmartLinkMetadata

boolean

Whether to include smart link metadata for imported content.

includeWdataIncomingConnections

boolean

Whether to preserve incoming wdata connections for imported content.

includeWdataOutgoingConnections

boolean

Whether to preserve outgoing wdata connections for imported content.

includeXBRL

boolean

Whether to preserve XBRL for imported content.

includeXBRLDisconnected

boolean

Whether to preserve disconnected XBRL for imported content.

keepInputModeEnabled

boolean

Whether to preserve input mode for imported content.

newResultContainerName

string

What name to provide to the new result container for imported content.

Example#

{
  "createNewResultContainer": true,
  "destinationContainer": "V0ZEYXRhRW5zVkNmU2Zi1mZjcE4EzNzk0ZmUwZjk",
  "emailOnComplete": true,
  "includeAttachments": true,
  "includeComments": true,
  "includeCustomFieldValues": true,
  "includeDocumentMarkup": true,
  "includeInputCellValues": true,
  "includeOutlineLabels": true,
  "includeSmartLinkMetadata": true,
  "includeWdataIncomingConnections": true,
  "includeWdataOutgoingConnections": true,
  "includeXBRL": true,
  "includeXBRLDisconnected": true,
  "keepInputModeEnabled": true,
  "newResultContainerName": "Q4 Earnings 2024"
}