Toggle menu

caseAppointmentDelete

Deletes an appointment from a case.

Namespace

goss.CaseManagement.v1.api.case.caseAppointments.caseAppointmentDelete

Worker

serverlibrary

Parameters

Required PropertiesTypeDescription
caseBusinessKeyString <businessKey>The business key of the case
caseAppointmentToDeleteObjectDetails of the appointment
caseAppointmentToDelete.idNumberThe index number of the appointment to delete
userObjectDetails of the user
user.siteUserNameStringThe username a valid case manager
Optional PropertiesTypeDescription
n/an/an/a

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

Returns

PropertyTypeDescription
successBooleanWhether the request completed successfully
dataArrayData returned by the request
errorsArrayAny errors that occurred. Only returned if there are errors
warningsArrayAny warnings that occurred. Only returned if there are warnings

Rules

RuleValidation error
User must existCould not retrieve siteUser details
Case must existCould not retrieve case Case 1234-5678-9012-3456
The appointment must exist on the caseThe appointment {0} does not exist on case {1}
User must be a member of the case managers group or the case manager if one is assignedUser aUser does not have permissions to delete an appointment

Behaviour

If the validation rules pass

  • Removes the appointment from the case
Last modified on 23 October 2026