Documentation Center

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

ParameterDescription
targetattach
actionattach_save
idA session ID that is valid for this collection and publication combination.
docidThe @DOCUMENT_ID attribute on the <DOCUMENT/> to which the attachment is to be saved.
ceidInternal identifier of the data module, for example, ceid=4.
annidThe @ANNID attribute on the <DOCUMENT/> to which the attachment is to be saved.
annot_idThe @ANNOT_ID attribute generated by the Get annotation ID for user API call.
user_nameThe user who owns the document to which the attachment is to be saved.
collectionThe name of the collection that the publication is registered in, such as default.
book The name of the publication, such as s1000d_bike_41.
visibilityPUBLIC 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.