Toggle menu

caseAttachmentRemove

Removes an attachment from a case.

Namespace

goss.CaseManagement.v1.api.case.caseAttachment.caseAttachmentRemove

Worker

serverlibrary

Parameters

Required PropertiesTypeDescription
caseBusinessKeyString <businessKey>The business key of the case
caseAttachmentToDeleteObjectDetails of the file
caseAttachmentToDelete.idStringThe file reference
userObjectDetails of the user
user.siteUserNameStringThe username of the person who raised the case, or a valid case manager
Optional PropertiesTypeDescription
n/an/an/a

{
    "caseBusinessKey": "0123-4567-8901-2345",
    "user": {
        "siteUserName": "Abc"
    },
    "caseAttachmentToDelete": {
        "id": "Abc"
    }
}

Rules

RuleValidation error
User must existCould not retrieve siteUser details
Case must existCould not retrieve case Case 1234-5678-9012-3456
Case must be activeUser aUser does not have permissions to remove an attachment
User must be the case owner, a member of the case managers group or the case manager if one is assignedUser aUser does not have permissions to remove an attachment

Behaviour

If the validation rules pass

  • Removes the attachment from the case
  • A system note will be recorded to case history documenting the removal
Last modified on 11 September 2026