• Delete an attachment

    Parameters

    • attachmentId: string

      unique identifier of the attachment

    • attachmentService: AttachmentService

      injected service use to handle the attachment related operations

      • deleteAttachment
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<AdapterHandlerResponse>

    204 Status No Content

    Description

    This handler is used to delete an attachment by applying the following steps in sequence:

    1. Delete the attachment (attachmentService.deleteAttachment)

    Throws

    404 NBError Not Found

    • attachment not exist

Generated using TypeDoc