Available Territory Slots (POST)

Contains the error codes and error code messages related with Salesforce Scheduler API for the available-territory-slots (POST) resource.

This table lists HTTP response code descriptions that are unique to this resource.

HTTP Response CodeError CodeDescription
400MISSING_ARGUMENTSpecify a serviceTerritoryId with either a workTypeGroupId or WorkTypeId.
400INTERNAL_ERRORYou can’t specify both requiredResourceIds and filterByResources in the request body. Specify one or the other and try again.
400INVALID_INPUTSpecify either a workTypeGroupId or a WorkTypeId.
400INVALID_INPUTThis isn’t a valid workTypeGroupId value. Specify a valid ID for the workTypeGroupId parameter.
400INVALID_INPUTThis isn’t a valid workTypeId value. Specify a valid ID for the workTypeId parameter.
400INVALID_INPUTSpecify either a workTypeId or a value for the durationInMinutes parameter.
400INVALID_INPUTThis isn’t a valid serviceTerritoryId value. Specify a valid ID for the serviceTerritoryId parameter.
400INVALID_INPUTThis isn’t a valid account ID. Specify a valid ID for the accountId parameter.
400INTERNAL_ERRORAppointmentSchedulingPolicy provided: {id} does not belong to AppointmentSchedulingPolicy.
400INTERNAL_ERRORProvide an end date that’s after the start date, and try again.
400INVALID_INPUTThis isn’t a valid service resource Id in the filterByResources parameter. Specify a valid service resource ID in the filterByResources parameter.
400INTERNAL_ERRORSomething went wrong. Ask your admin for help.
400INSUFFICIENT_ACCESSLooks like you don’t have access to the maxAppointments or workTypeGroup field in the TimeSlot object. Your Salesforce admin can help with that.
400INSUFFICIENT_ACCESSLooks like you don’t have access to the {Service Resource} object. Your Salesforce admin can help with that.
400INTERNAL_ERRORSpecify a workTypeGroup with a custom_workType associated with an appointment category with a Scheduled type, and try again.
400INTERNAL_ERROR{id} (AppointmentTopicTimeSlot), is not accessible for the current user.
403API_DISABLED_FOR_ORGThe Chatter Connect API is not enabled for this organization or user type.