Post attachment form
This API calls posts the attachment form, saving a new attachment. Before the call can be made, the annotation ID for the new attachment must be generated with the Get annotation ID for user API call.
Example API call
/servlets3/wietmsd?target=attach&action=attach_save&id=1520980553210&docid=S1000DBIKE-AAA-D00-00-01-00-AA-93A-A-A
&ceid=4&annid=a_1520523885645_1520530193456&annot_id=a_1520523885645_1520530193456&user_name=admin&uniqid=1520980551974&collection=default&book=s1000d_bike_41&visibility=PRIVATE
Parameters
| Parameter | Description |
|---|---|
target | attach |
action | attach_save |
id | A session ID that is valid for this collection and publication combination. |
docid | The @DOCUMENT_ID attribute on the <DOCUMENT/> to which the attachment is to be saved. |
ceid | Internal identifier of the data module, for example, ceid=4. |
annid | The @ANNID attribute on the <DOCUMENT/> to which the attachment is to be saved. |
annot_id | The @ANNOT_ID attribute generated by the Get annotation ID for user API call. |
user_name | The user who owns the document to which the attachment is to be saved. |
collection | The name of the collection that the publication is registered in, such as default. |
book | The name of the publication, such as s1000d_bike_41. |
visibility | PUBLIC or PRIVATE. |
XML post data
This API call requires the content to be uploaded to be sent as post data.
Returns
- On success
- Returns nothing.
- On failure
- Returns nothing.