<attachment>
Summary
An attachment to a comment.
The <attachment> element wraps a single <uri> element to indicate that the URI is attached to the comment.
Usage context
| Permitted content | <uri> |
|---|---|
| Permitted parent | <comment> |
Attributes
This element has no attributes.
Examples
XML example
<attachment>
<uri id="197142"
scheme="https"
host="example.com"
port="443"
path="/ps/example/test/attachments/2016/07/Facts.pdf"
decodedpath="/ps/dev/ps/attachments/2016/07/Facts.pdf"
external="false"
mediatype="application/pdf"
created="2016-07-22T15:04:43+10:00"
modified="2016-07-22T15:04:43+10:00"
size="1136435">
<displaytitle>Albatross Facts</displaytitle>
</uri>
</attachment>
JSON example
Schema
XML schema
<xs:element name="attachment" type="attachment"/>
<xs:complexType name="attachment">
<xs:sequence>
<xs:element name="uri" type="uri"/>
</xs:sequence>
</xs:complexType>
JSON schema
Compatibility
Stable since initial API release. No breaking changes.