Toggle menu

caseAppointmentCreate

Creates an appointment on a case.

Namespace

goss.CaseManagement.v1.api.case.caseAppointments.caseAppointmentCreate

Worker

serverlibrary

Parameters

Required PropertiesTypeDescription
caseBusinessKeyString <businessKey>The business key of the case
caseAppointmentToSaveObjectDetails of the appointment
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

{
    "caseBusinessKey": "0123-4567-8901-2345",
    "caseAppointmentToSave": {
        "appointmentDate": "2026-01-01T09:00:00.000Z",
        "minutes": 45,
        "departmentName": "Abc",
        "departmentGroupName": "Abc",
        "with": "Abc",
        "location": "Abc",
        "notes": "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
Case must be activeUser aUser does not have permissions to add an appointment
User must be a member of the case managers group or the case manager if one is assignedUser aUser does not have permissions to add an appointment

Behaviour

If the validation rules pass

  • Adds the appointment to the case
Last modified on 23 October 2026