---
schema_version: "1"
id: d6ba07cd777c564b509017142c95e6825194a1b0108c729b93548aed7eedeacd
title: Service Appointments (POST)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/scheduler-error-codes/serviceappointment-post.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/serviceappointment-post.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 935c33eb1b510f32372d4addfea0c1e09db689e9a1667161c85675c68b9cfdaa
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Service Appointments (POST)

Contains the error codes and error code messages related with Salesforce Scheduler API for the `service-appointments` (POST) resource.

This table lists HTTP response code descriptions that are unique to this resource.

|HTTP Response Code|Error Code|Description|
|------------------|----------|-----------|
|400|`INTERNAL_ERROR`|We couldn't find any resources for your request. Specify a different `schedStartTime` and `schedEndTime` and try again.|
|400|`INVALID_API_INPUT`|Only one `assignedResource` can have `isPrimaryResource` set to true. Check the request and try again.|
|400|`INVALID_API_INPUT`|You haven’t enabled the Schedule Appointments using Engagement Channels setting in your org. Contact your Salesforce admin for assistance.|
|400|`INSUFFICIENT_ACCESS`|Looks like you don't have access to the `MaxAppointments` field in the TimeSlot object. Your Salesforce admin can help with that.|
|400|`INSUFFICIENT_ACCESS`|Looks like you don't have access to `ServiceAppointment` object. Your Salesforce admin can help with that.|

