Skip to main content
POST
/
document
/
v1beta1
/
{documentId}
/
attachments
/
{attachmentDriveFileId}
cURL
curl --request POST \
  --url https://aodocs.altirnao.com/api/document/v1beta1/{documentId}/attachments/{attachmentDriveFileId} \
  --header 'Authorization: Bearer <token>'
{
  "jobId": "<string>",
  "kind": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

documentId
string
required

The ID of the document

attachmentDriveFileId
string
required

The ID of the file on Drive to be updated (must belong to the document identified by parameter documentId)

Query Parameters

createNewDocumentVersion
boolean
default:false

Whether a new version of the document should be created based on the new content of the attachment (else it's just an update of the current version)

versionName
string

The name of the new version to be created (required if createNewDocumentVersion = true)

versionDescription
string

The description of the new version to be created (optional but only relevant if createNewDocumentVersion = true)

sourceDriveFileId
string

The ID of a file in Drive to update the selected attachment's content with. Leave empty if a new revision of the attachment file was already uploaded in Drive.

securityCode
string

The security code

domain
string

The G Suite domain

forceUpdateAttachedFileFromDrive
boolean

Retrieve the latest state of the file from Drive and update the document accordingly

Response

200 - application/json

A ApiJobId response

jobId
string
kind
string