Attached code adds an attachment to a testcase entity. The entityName field is the type of entity you are attaching to. entityId is the ID of the defined entity name. The sample adds to a testcase entity with testcase ID 289683.
Valid 'entityType' values include:
Filename and cached file CID are provided in order to upload the correct file to previously defined entity.
See attached for downloadable copy
Zephyr Enterprise/Community Javadocs : http://support.yourzephyr.com/api_help/4.7/javadocs/index.html
Title: API Sample - Add Attachment (SoapUI)
Product: Zephyr Enterprise, Community
Summary: Add attachment file based on 'entityType' and 'entityyId'