Attach to an action

Your application can create an attachment to an existing action by calling the attachAction method.

The action argument contains the identifier of the action. Set the id field of the actionContext argument to the ID of the action to attach to and the topicId field to the topic ID for the action. For information on the attachmentInput argument, see Attach to an existing topic.

void attachAction(TopicsServiceContext topicsServiceContext,
  ActionContext actionContext, AttachmentInput attachmentInput)
  throws InvalidArgumentException, TopicsServiceException;