Attachment-Access-Type

Description

Attachment-Access-Type indicates the type of attachment on an item. It is used for note, item link, URL, and file attachments. This type is used to determine whether the attachment has a restriction, is unrestricted, or if neither is set.

Parameters

Name Type Description
ATTACHACCESS-DEFAULT string Restrict the attachment only as specified by user privileges.
ATTACHACCESS-RESTRICTED string Makes the attachment visible only to users who can view the item.
ATTACHACCESS-UNRESTRICTED string Makes the attachment visible to all users who can view the item.

Usage

The Unrestricted status makes the file visible to all users who can view the item. You can set a file to have Default status to restrict the file as specified by user privileges. The Unrestricted status is disabled if you do not have privileges to set file attachments as unrestricted for the selected project or auxiliary table.

XML

The following XML shows Attachment-Access-Type in the <urn:accessType> element of a typical call.

<urn:attachmentContents>
    <urn:id>16</urn:id>
    <urn:name>pdf_doc</urn:name>   
    <urn:fileName>relnotes.pdf</urn:fileName>
    <urn:showAsImage>false</urn:showAsImage>
    <urn:modificationDateTime></urn:modificationDateTime>
    <urn:url></urn:url>
    <urn:accessType>ATTACHACCESS-DEFAULT</urn:accessType>
    <urn:extendedData>
        <urn:data>
            <urn:name></urn:name>
            <urn:value></urn:value>
        </urn:data>
    </urn:extendedData>   
    <urn:contentsBase64></urn:contentsBase64>
</urn:attachmentContents>