Skip to main content
GET
/
documentType
/
v1beta1
/
libraries
/
{libId}
/
documentTypes
/
{documentTypeId}
/
templateDocuments
/
{templateDocumentId}
cURL
curl --request GET \
  --url https://aodocs.altirnao.com/api/documentType/v1beta1/libraries/{libId}/documentTypes/{documentTypeId}/templateDocuments/{templateDocumentId} \
  --header 'Authorization: Bearer <token>'
{
  "attachmentFields": [
    {
      "calculatedSettingsInfo": {},
      "calculatedValueInfo": {
        "error": true
      },
      "description": "<string>",
      "description_i18n": "<string>",
      "editable": true,
      "fieldId": "<string>",
      "fieldName": "<string>",
      "fieldName_i18n": "<string>",
      "hidden": true,
      "kind": "<string>",
      "mandatory": true,
      "metadata": {
        "attachments": [
          {
            "drive": {
              "iconLink": "<string>",
              "kind": "<string>",
              "link": "<string>",
              "permissionsOnDrive": [
                {
                  "additionalRoles": [
                    "<string>"
                  ],
                  "allowlisted": true,
                  "belongsToDomain": true,
                  "email": "<string>",
                  "googleEmailAddress": true,
                  "kind": "<string>",
                  "name": "<string>",
                  "permissionId": "<string>",
                  "role": "<string>",
                  "thumbnailPhotoUrl": "<string>",
                  "type": "<string>",
                  "withLink": true
                }
              ],
              "publishedLink": "<string>",
              "resourceKey": "<string>",
              "revisionId": "<string>"
            },
            "id": "<string>",
            "kind": "<string>",
            "mimeType": "<string>",
            "name": "<string>",
            "oss": {
              "downloadLink": "<string>",
              "kind": "<string>"
            },
            "size": 123,
            "storageType": "OSS"
          }
        ],
        "kind": "<string>"
      },
      "multiple": true,
      "placeholderText": "<string>",
      "rank": 123,
      "readOnly": true,
      "type": "STRING",
      "validation": {
        "audience": {
          "classId": "<string>",
          "className": "<string>",
          "description": "<string>",
          "displayName": "<string>",
          "displayName_i18n": "<string>",
          "thumbnailPictureUrl": "<string>",
          "type": "USER",
          "value": "<string>"
        },
        "errorMessage": "<string>",
        "kind": "<string>",
        "lowerLimit": 123,
        "lowerLimitInclusive": true,
        "mandatoryLeaf": true,
        "regex": "<string>",
        "upperLimit": 123,
        "upperLimitInclusive": true
      },
      "values": [
        "<string>"
      ]
    }
  ],
  "attachments": [
    {
      "autodeskUrn": {
        "status": "READY",
        "urn": "<string>"
      },
      "fileId": "<string>",
      "iconLink": "<string>",
      "kind": "<string>",
      "link": "<string>",
      "mimeType": "<string>",
      "name": "<string>",
      "permissionsOnDrive": [
        {
          "additionalRoles": [
            "<string>"
          ],
          "allowlisted": true,
          "belongsToDomain": true,
          "email": "<string>",
          "googleEmailAddress": true,
          "kind": "<string>",
          "name": "<string>",
          "permissionId": "<string>",
          "role": "<string>",
          "thumbnailPhotoUrl": "<string>",
          "type": "<string>",
          "withLink": true
        }
      ],
      "publishedLink": "<string>",
      "resourceKey": "<string>",
      "revisionId": "<string>",
      "size": 123,
      "storageLocation": "DRIVE"
    }
  ],
  "categories": [
    {
      "calculatedSettingsInfo": {},
      "calculatedValueInfo": {
        "error": true
      },
      "categoryDefinition": {
        "description": "<string>",
        "dynamicValues": true,
        "folder": true,
        "id": "<string>",
        "kind": "<string>",
        "levelNames": [
          "<string>"
        ],
        "levelNames_i18n": [
          "<string>"
        ],
        "libraryId": "<string>",
        "name": "<string>",
        "tags": true,
        "value": "<string>"
      },
      "definitionId": "<string>",
      "definitionName": "<string>",
      "description": "<string>",
      "description_i18n": "<string>",
      "dynamicValues": true,
      "editable": true,
      "fieldId": "<string>",
      "fieldName": "<string>",
      "fieldName_i18n": "<string>",
      "folder": true,
      "hidden": true,
      "kind": "<string>",
      "levelNames": [
        "<string>"
      ],
      "mandatory": true,
      "multiple": true,
      "placeholderText": "<string>",
      "rank": 123,
      "readOnly": true,
      "type": "STRING",
      "validation": {
        "audience": {
          "classId": "<string>",
          "className": "<string>",
          "description": "<string>",
          "displayName": "<string>",
          "displayName_i18n": "<string>",
          "thumbnailPictureUrl": "<string>",
          "type": "USER",
          "value": "<string>"
        },
        "errorMessage": "<string>",
        "kind": "<string>",
        "lowerLimit": 123,
        "lowerLimitInclusive": true,
        "mandatoryLeaf": true,
        "regex": "<string>",
        "upperLimit": 123,
        "upperLimitInclusive": true
      },
      "values": [
        [
          {
            "ancestors": "<array>",
            "id": "<string>",
            "kind": "<string>",
            "leaf": true,
            "leafInNotOutdatedTree": true,
            "name": "<string>",
            "name_i18n": "<string>",
            "outdated": true,
            "parentId": "<string>",
            "shortName": "<string>",
            "value": "<string>"
          }
        ]
      ]
    }
  ],
  "classId": "<string>",
  "className": "<string>",
  "className_i18n": "<string>",
  "creationDate": "<string>",
  "defaultTemplate": true,
  "domainName": "<string>",
  "editable": true,
  "fields": [
    {
      "calculatedSettingsInfo": {},
      "calculatedValueInfo": {
        "error": true
      },
      "description": "<string>",
      "description_i18n": "<string>",
      "editable": true,
      "fieldId": "<string>",
      "fieldName": "<string>",
      "fieldName_i18n": "<string>",
      "hidden": true,
      "kind": "<string>",
      "mandatory": true,
      "metadata": {
        "attachments": [
          {
            "drive": {
              "iconLink": "<string>",
              "kind": "<string>",
              "link": "<string>",
              "permissionsOnDrive": [
                {
                  "additionalRoles": [
                    "<string>"
                  ],
                  "allowlisted": true,
                  "belongsToDomain": true,
                  "email": "<string>",
                  "googleEmailAddress": true,
                  "kind": "<string>",
                  "name": "<string>",
                  "permissionId": "<string>",
                  "role": "<string>",
                  "thumbnailPhotoUrl": "<string>",
                  "type": "<string>",
                  "withLink": true
                }
              ],
              "publishedLink": "<string>",
              "resourceKey": "<string>",
              "revisionId": "<string>"
            },
            "id": "<string>",
            "kind": "<string>",
            "mimeType": "<string>",
            "name": "<string>",
            "oss": {
              "downloadLink": "<string>",
              "kind": "<string>"
            },
            "size": 123,
            "storageType": "OSS"
          }
        ],
        "kind": "<string>"
      },
      "multiple": true,
      "placeholderText": "<string>",
      "rank": 123,
      "readOnly": true,
      "type": "STRING",
      "validation": {
        "audience": {
          "classId": "<string>",
          "className": "<string>",
          "description": "<string>",
          "displayName": "<string>",
          "displayName_i18n": "<string>",
          "thumbnailPictureUrl": "<string>",
          "type": "USER",
          "value": "<string>"
        },
        "errorMessage": "<string>",
        "kind": "<string>",
        "lowerLimit": 123,
        "lowerLimitInclusive": true,
        "mandatoryLeaf": true,
        "regex": "<string>",
        "upperLimit": 123,
        "upperLimitInclusive": true
      },
      "values": [
        "<string>"
      ]
    }
  ],
  "folders": [
    {
      "editable": true,
      "editableDocuments": true,
      "fileId": "<string>",
      "folderAodocsId": "<string>",
      "folderDefinitionId": "<string>",
      "folderIsRoot": true,
      "kind": "<string>",
      "libraryId": "<string>",
      "libraryName": "<string>",
      "name": "<string>",
      "parentFolderAodocsId": "<string>",
      "parentFolderDriveId": "<string>",
      "parentFolderIsRoot": true,
      "permittedOperations": [
        "DELETE"
      ],
      "resourceKey": "<string>",
      "restrictedDownload": true,
      "subfolders": "<array>"
    }
  ],
  "forbiddenOperations": {},
  "fullSizeOfAttachments": 123,
  "hiddenTemplate": true,
  "iconLink": "<string>",
  "id": "<string>",
  "initialAuthor": "<string>",
  "kind": "<string>",
  "libraryId": "<string>",
  "libraryName": "<string>",
  "modificationDate": "<string>",
  "numberOfAttachments": 123,
  "onlyAdminCanChangeAcl": true,
  "onlyAdminCanDelete": true,
  "permittedOperations": [
    "DELETE"
  ],
  "referenceCatalogs": [
    {
      "calculatedSettingsInfo": {},
      "calculatedValueInfo": {
        "error": true
      },
      "description": "<string>",
      "description_i18n": "<string>",
      "editable": true,
      "fieldId": "<string>",
      "fieldName": "<string>",
      "fieldName_i18n": "<string>",
      "hidden": true,
      "kind": "<string>",
      "mandatory": true,
      "multiple": true,
      "placeholderText": "<string>",
      "rank": 123,
      "readOnly": true,
      "referenceCatalog": {
        "createdAt": 123,
        "id": "<string>",
        "kind": "<string>",
        "levelNames": [
          "<string>"
        ],
        "modifiedAt": 123,
        "name": "<string>",
        "numberOfValues": 123
      },
      "referenceCatalogId": "<string>",
      "type": "STRING",
      "validation": {
        "audience": {
          "classId": "<string>",
          "className": "<string>",
          "description": "<string>",
          "displayName": "<string>",
          "displayName_i18n": "<string>",
          "thumbnailPictureUrl": "<string>",
          "type": "USER",
          "value": "<string>"
        },
        "errorMessage": "<string>",
        "kind": "<string>",
        "lowerLimit": 123,
        "lowerLimitInclusive": true,
        "mandatoryLeaf": true,
        "regex": "<string>",
        "upperLimit": 123,
        "upperLimitInclusive": true
      },
      "values": [
        {
          "deleted": true,
          "kind": "<string>",
          "leaf": true,
          "name": "<string>",
          "name_i18n": "<string>",
          "parents": "<array>",
          "value": "<string>"
        }
      ]
    }
  ],
  "requiresUserInput": true,
  "restrictedDownload": true,
  "richText": "<string>",
  "sections": [
    {
      "columnCount": 123,
      "description": "<string>",
      "fields": [
        {
          "id": "<string>",
          "type": "<string>"
        }
      ],
      "id": "<string>",
      "name": "<string>",
      "name_i18n": "<string>"
    }
  ],
  "setModifiedDate": true,
  "systemFields": [
    {
      "calculatedValueInfo": {
        "error": true
      },
      "displayName": "<string>",
      "editable": true,
      "hidden": true,
      "id": "<string>",
      "kind": "<string>",
      "mandatory": true,
      "readOnly": true,
      "value": "<string>"
    }
  ],
  "tableFields": [
    {
      "calculatedSettingsInfo": {},
      "calculatedValueInfo": {
        "error": true
      },
      "columns": [
        {
          "calculatedSettingsInfo": {},
          "calculatedValueInfo": {
            "error": true
          },
          "categoryDefinition": {
            "description": "<string>",
            "dynamicValues": true,
            "folder": true,
            "id": "<string>",
            "kind": "<string>",
            "levelNames": [
              "<string>"
            ],
            "levelNames_i18n": [
              "<string>"
            ],
            "libraryId": "<string>",
            "name": "<string>",
            "tags": true,
            "value": "<string>"
          },
          "description": "<string>",
          "description_i18n": "<string>",
          "editable": true,
          "fieldId": "<string>",
          "fieldName": "<string>",
          "fieldName_i18n": "<string>",
          "hidden": true,
          "kind": "<string>",
          "mandatory": true,
          "multiple": true,
          "placeholderText": "<string>",
          "rank": 123,
          "readOnly": true,
          "referenceCatalogDefinition": {
            "createdAt": 123,
            "id": "<string>",
            "kind": "<string>",
            "levelNames": [
              "<string>"
            ],
            "modifiedAt": 123,
            "name": "<string>",
            "numberOfValues": 123
          },
          "type": "STRING",
          "validation": {
            "audience": {
              "classId": "<string>",
              "className": "<string>",
              "description": "<string>",
              "displayName": "<string>",
              "displayName_i18n": "<string>",
              "thumbnailPictureUrl": "<string>",
              "type": "USER",
              "value": "<string>"
            },
            "errorMessage": "<string>",
            "kind": "<string>",
            "lowerLimit": 123,
            "lowerLimitInclusive": true,
            "mandatoryLeaf": true,
            "regex": "<string>",
            "upperLimit": 123,
            "upperLimitInclusive": true
          }
        }
      ],
      "description": "<string>",
      "description_i18n": "<string>",
      "editable": true,
      "fieldId": "<string>",
      "fieldName": "<string>",
      "fieldName_i18n": "<string>",
      "hidden": true,
      "kind": "<string>",
      "mandatory": true,
      "multiple": true,
      "placeholderText": "<string>",
      "rank": 123,
      "readOnly": true,
      "type": "STRING",
      "validation": {
        "audience": {
          "classId": "<string>",
          "className": "<string>",
          "description": "<string>",
          "displayName": "<string>",
          "displayName_i18n": "<string>",
          "thumbnailPictureUrl": "<string>",
          "type": "USER",
          "value": "<string>"
        },
        "errorMessage": "<string>",
        "kind": "<string>",
        "lowerLimit": 123,
        "lowerLimitInclusive": true,
        "mandatoryLeaf": true,
        "regex": "<string>",
        "upperLimit": 123,
        "upperLimitInclusive": true
      },
      "values": [
        {
          "categories": {},
          "fields": {},
          "referenceCatalogs": {},
          "rowId": "<string>"
        }
      ]
    }
  ],
  "templateName": "<string>",
  "templateName_i18n": "<string>",
  "title": "<string>",
  "updateAuthor": "<string>",
  "userCanChangeAcl": true,
  "userCanChangeProperties": true,
  "userCanDelete": true,
  "userMapping": {},
  "viewConfiguration": {
    "defaultTabToDisplay": "PROPERTIES",
    "kind": "<string>",
    "orientation": "PORTRAIT",
    "visibleRelations": [
      "<string>"
    ],
    "visibleSections": [
      "INFO"
    ]
  },
  "visibilityToken": {
    "classId": "<string>",
    "className": "<string>",
    "description": "<string>",
    "displayName": "<string>",
    "displayName_i18n": "<string>",
    "thumbnailPictureUrl": "<string>",
    "type": "USER",
    "value": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

libId
string
required

The ID of the library

documentTypeId
string
required

The ID of the document class

templateDocumentId
string
required

The ID of the document template

Query Parameters

securityCode
string

The security code

domain
string

The G Suite domain

Response

200 - application/json

A ApiTemplateDocument response

attachmentFields
object[]
attachments
object[]

The list of attachments to be copied in the document to be created using this template

categories
object[]

The list of category fields which values (editable) will be used when creating a document using this template

classId
string

The ID of the class of the document (read-only field)

className
string

The name of the class of the document (read-only field)

className_i18n
string

The internationalized name of the class of the document (read-only field)

creationDate
string

The time at which the template was created (read-only field)

defaultTemplate
boolean

Whether the template is the default one for the class (read-only field)

domainName
string

The name of the domain (read-only field)

editable
boolean

Whether the current user can edit the template (read-only field)

fields
object[]

The list of native fields which values (editable) will be used when creating a document using this template

folders
object[]

The folder where the document will be created if no explicit folder is defined

forbiddenOperations
object

The map of the forbidden operations to the current user and the reasons why they are forbidden (read-only field)

fullSizeOfAttachments
integer<int64>

The summed size (in octet) of the attachments (read-only field)

hiddenTemplate
boolean

Whether the template should be hidden for document creation

The link to the icon relative to the attachment (read-only field)

id
string

The ID of the document template (read-only field)

initialAuthor
string

The email of the user who created the template (read-only field)

kind
string
libraryId
string

The ID of the library (read-only field)

libraryName
string

The name of the library (read-only field)

modificationDate
string

The time at which the template was last modified (read-only field)

numberOfAttachments
integer<int32>

The number of attachments in the template (read-only field)

onlyAdminCanChangeAcl
boolean

Read-only field, not used.

onlyAdminCanDelete
boolean

Read-only field, not used.

permittedOperations
enum<string>[]

The list of permitted operations to the current user (read-only field)

Available options:
DELETE,
RENAME,
MODIFY_ACL,
VIEW_ACL,
MOVE_TO_ANOTHER_FOLDER,
EXPORT,
EDIT_PROPERTIES,
COPY,
CREATE_COPY_FROM,
EXPORT_COPY,
CREATE_NEW_VERSION,
ATTACHMENT_VERSION_REPLACE,
ATTACHMENT_VERSION_CREATE,
ADD_NEW_ATTACHMENT_FROM_DRIVE,
ATTACH_ENCRYPTED_FILE,
OPEN_IN_OFFICE,
PUBLISH,
UNPUBLISH,
RESTORE_REVISION,
REVERT_TO_THIS_REVISION,
CREATE_RELATED_DOCUMENT,
DOWNLOAD,
DOWNLOAD_ATTACHMENT,
NOTIFY_USERS,
CHECK_IN,
CHECK_OUT,
DISCARD_CHECKOUT,
FORCE_DISCARD_CHECKOUT,
EDIT_TAGS,
PERFORM_HUMAN_WORKFLOW_ACTIONS,
VIEW_DRAFT,
SHARE_PUBLICLY,
VIEW_HISTORY,
VIEW_VERSIONS,
ADD_COMMENT,
SET_TEMPLATE_AS_DEFAULT,
SET_TEMPLATE_VISIBILITY_SCOPE,
DELETE_COMMENT,
KNOW_DRAFT,
FORCE_PARALLEL_TRANSITION,
CHANGE_WORKFLOW_STATE_DIRECTLY,
SEE_HIDDEN_FIELDS,
VIEW_TRASHED_ITEM,
UNTRASH,
PERMANENTLY_DELETE,
VIEW_DRIVEONLY_ACL,
MODIFY_DRIVEONLY_ACL,
NON_GOOGLE_USERS_SUPPORT,
SUPPORTS_LIVE_EVALUATION,
ALLOWLIST_NOT_ENFORCED,
CREATE_SUBFOLDER,
CREATE_DOCUMENT_IN_THIS_FOLDER,
IMPORT_FOLDERS_FROM_DRIVE_TO_THIS_FOLDER,
ADD_NEW_ATTACHMENT_FROM_OSS,
OPEN_IN_DRIVE,
COPY_FOLDER_TREE,
CHECK_FOLDER,
MOVE_TO_DRIVE,
COPY_TO_DRIVE,
MOVE_TO_ANOTHER_LIBRARY,
MOVE_TO_ANOTHER_CLASS,
COPY_TO_ANOTHER_CLASS,
COPY_ATTACHMENT,
COPY_TO_ANOTHER_LIBRARY,
EDIT_ATTACHMENT
referenceCatalogs
object[]

The list of reference catalog fields which values (editable) will be used when creating a document using this template

requiresUserInput
boolean

Whether this template requires user input (read-only field)

restrictedDownload
boolean
richText
string

The description field (rich text) of the document to be created using this template

sections
object[]

The sections in which fields are organized (read-only field)

setModifiedDate
boolean

This field is not used.

systemFields
object[]

The list of system fields (only the values are editable)

tableFields
object[]

The list of table fields (only the values are editable)

templateName
string

The name of the document template

templateName_i18n
string

The internationalized name of the template (read-only field)

title
string

The title of the document to be created using this template (pointless in Team Folder and Secured Folder libraries)

updateAuthor
string

The email of the user who last modified the template (read-only field)

userCanChangeAcl
boolean

Read-only field, not used.

userCanChangeProperties
boolean

Read-only field, not used.

userCanDelete
boolean

Read-only field, not used.

userMapping
object

The mapping between user email and user profile (read-only field)

viewConfiguration
object
visibilityToken
object