Edit attachment
This API calls allows you to edit the comments and visibility associated with an existing attachment.
Example API call
/servlets3/wietmsd?id=1521041478673&book=s1000d_bike_41&collection=default&target=attach&action=attach_edit
Parameters
| Parameter | Description |
|---|---|
id | A session ID that is valid for this collection and publication combination. |
book | The name of the publication, such as s1000d_bike_41. |
collection | The name of the collection that the publication is registered in, such as default. |
target | attach |
action | attach_edit |
XML post data
This API call requires XML post data such as in the following example. This example adds a comment to the attachment and sets its visibility toPRIVATE.
<attdata>
<attach_id>1524670673310_1524671274590</attach_id>
<comments>This is the text of the comment for this attachment.</comments>
<user_name>admin</user_name>
<visibility>PRIVATE</visibility>
</attdata>
Returns
- On success
- Returns nothing.
- On failure
- Returns nothing.