Retrieve the metadata about an attachment property
| Name | Type | Description |
| key | string | A unique identifier for a property that is obtained through GET:files/{fileid}/properties |
| fileid | int | identifies a file by ID |
| Name | Type | Description |
| redirects | int? | If zero, do not follow page redirects. |
| authenticate | bool? | Force authentication for request (default: false) |
| contentcutoff | int? | Only show property content shorter than this number of bytes. Default: 2048 |
| Name | Value | Description |
| OK | 200 | The request completed successfully |
| Bad Request | 400 | Invalid input parameter or request body |
| Forbidden | 403 | READ access is required |
| Not Found | 404 | Requested file and/or property could not be found |
Response is the standard property XML
<property name="{text}" href="{uri}" etag="{text}">
<contents type="{text}" href="{uri}">{text}</contents>
<date.modified>{date}</date.modified>
<user.modified id="{int}" href="{uri}">
<nick>{text}</nick>
<username>{text}</username>
</user.modified>
<change-description>{text}</change-description>
</property>
The following code authenticates and retrieves information about a file property named 'foo' .
Plug p = Plug.New("http://devwiki/@api/deki");
p.At("users", "authenticate")
.WithCredentials("sysop", "password").Get();
XDoc ret = p.At("files", "42", "properties", "foo", "info")
.Get().AsDocument();
<property name="foo" href="http://devwiki/@api/deki/files/42/properties/foo/info" etag="4463.r1_ts2009-03-20T22:48:15Z">
<contents type="text/plain; charset=utf-8" href="http://devwiki/@api/deki/files/42/properties/foo">My Value</contents>
<date.modified>2009-03-20T22:48:15Z</date.modified>
<user.modified id="1" href="http://devwiki/@api/deki/users/1">
<nick>Sysop</nick>
<username>Sysop</username>
</user.modified>
<change-description>initial value</change-description>
</property> The following command retrieves information of property "foo" assigned to a file with file ID = 1:
curl -u username:password -i http://mindtouch.address/@api/deki/files/1/properties/foo/info
file ID = 71, property_key = iscopyright
Content-Type: application/xml
<property name="iscopyright" href="http://192.168.59.128/@api/deki/files/71/properties/iscopyright/info" etag="106.r2_ts2010-01-21T19:54:52Z">
<contents type="text/plain" size="3" href="http://192.168.59.128/@api/deki/files/71/properties/iscopyright">yes</contents>
<date.modified>2010-01-21T19:54:52Z</date.modified>
<user.modified id="1" href="http://192.168.59.128/@api/deki/users/1">
<nick>Admin</nick>
<username>Admin</username>
<email hidden="true"/>
<hash.email>64e1b8d34f425d19e1ee2ea7236d3028</hash.email>
<uri.gravatar>http://www.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028</uri.gravatar>
</user.modified>
<change-description/>
</property>