fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/attachment/AttachmentClient.java
public Attachment createAttachment(Attachment attachmentParam)
    {
        if(attachmentParam != null && this.serviceTicket != null)
        {
            attachmentParam.setServiceTicket(this.serviceTicket);
        }

        return new Attachment(this.putJson(
                attachmentParam, WS.Path.Attachment.Version1.attachmentCreate()));
    }
public Attachment createAttachment(Attachment attachmentParam)
    {
        if(attachmentParam != null && this.serviceTicket != null)
        {
            attachmentParam.setServiceTicket(this.serviceTicket);
        }

        return new Attachment(this.putJson(
                attachmentParam, WS.Path.Attachment.Version1.attachmentCreate()));
    }
Uploads a new Attachment.
If there is an existing attachment with the same name, a new version will be
uploaded.

@param attachmentParam The attachment to upload.
@return The created attachment.

@see Attachment