---
schema_version: "1"
id: 08a085cf7a2de72ff5cf884f0b5445a1d6c40ec22c26511e0f55024bde49625c
title: ConnectApi.CreateServiceAppointmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_create_service_appointment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_create_service_appointment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: efeecaea7c4c0876cd58f502b9a8581fe974867759fff494509261c8a5c71efe
description: Contains information to create a service appointment.
---
# ConnectApi.CreateServiceAppointmentInput

Contains information to create a service appointment.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| assignedResources | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.AssignedResourcesInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_assigned_resource.htm "Contains information about assigned resources for a service appointment.")\> | Represents the service resources to be assigned to a service appointment. When creating an appointment, use extendedFields to add values to any of the fields, including custom fields, in assignedResources as long as you have edit access to those fields. | Optional | 53.0 |
| lead | [ConnectApi.LeadInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_lead.htm "Contains information about a lead or guest user.") | Represents a prospect or lead. Required to create a service appointment for unauthenticated guest users. | Required if serviceAppointment isn’t provided. | 53.0 |
| schedulingPolicyId | String | The ID of the AppointmentSchedulingPolicy object. If no scheduling policy is passed in the request body, the default configurations are used. The only scheduling policy configuration that is used in determining time slots is the enforcement of account visiting hours. | Optional | 53.0 |
| serviceAppointment | [ConnectApi.ServiceAppointmentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_service_appointment.htm "Contains information about the service appointment.") | Represents the service appointment details to book an appointment. When creating an appointment, use extendedFields to add values to any of the fields, including custom fields, in assignedResources as long as you have edit access to those fields. | Required if lead isn’t provided. | 53.0 |