Toggle menu

caseAppointmentUpdate

Updates an appointment on a case.

Namespace

goss.CaseManagement.v1.api.case.caseAppointments.caseAppointmentUpdate

Worker

serverlibrary

Parameters

Required PropertiesTypeDescription
caseBusinessKeyString <businessKey>The business key of the case
caseAppointmentToSaveObjectDetails of the appointment
caseAppointmentToSave.idNumberThe index number of the appointment to update
caseAppointmentToSave.appointmentDateString <date-time>The date and time of the appointment
caseAppointmentToSave.minutesNumberThe length of the appointment in minutes
caseAppointmentToSave.departmentNameStringThe name of the department
caseAppointmentToSave.departmentGroupNameStringThe name of the department group
caseAppointmentToSave.withStringWho the appointment is with
caseAppointmentToSave.locationStringWhere the appointment takes place
userObjectDetails of the user
user.siteUserNameStringThe username of a valid case manager
Optional PropertiesTypeDescription
caseAppointmentToSave.notesStringNotes about the appointment
caseAppointmentToSave.attendedStringWhether the appointment was attended

{
    "caseBusinessKey": "0123-4567-8901-2345",
    "caseAppointmentToSave": {
        "id": 1,
        "appointmentDate": "2026-01-01T09:00:00.000Z",
        "minutes": 45,
        "departmentName": "Abc",
        "departmentGroupName": "Abc",
        "with": "Abc",
        "location": "Abc",
        "notes": "Abc",
        "attended": "Abc"
    },
    "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 update an appointment

Behaviour

If the validation rules pass

  • Replaces the details of the appointment with those provided
Last modified on 23 October 2026