---
schema_version: "1"
id: d2b344a89016560b9cc08a1c7c7689879ecdca37ddfe8d18ff84c31fe4454742
title: Schedule Service Appointment
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/field-service-dev/guides/field-service/source-files/actions/actions-obj-scheduleserviceappointment.md
canonical_url: https://developer.salesforce.com/docs/service/field-service-dev/guide/actions-obj-scheduleserviceappointment.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7d7d3131f6b053c232b4a5b96879712522766541108ec55a617b01da4ee30169
products:
  - Field Service Developer Guide
  - Service Cloud Developer Content
---

# Schedule Service Appointment

Schedules a service appointment based on the scheduling policy ID and the service appointment ID.

This action is available in API version 62.0 and later.

## Supported REST HTTP Methods

**URI:** `/services/data/vXX.X/actions/standard/scheduleServiceAppointment`

Where `XX.X` is the latest API version.

**Formats:** JSON, XML

**HTTP Methods:** POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

|Input|Type|Description|
|-----|----|-----------|
|`serviceAppointmentId`|id|Required. The ID of the service appointment to schedule.|
|`schedulingPolicyId`|id|Required. The scheduling policy ID to use to schedule the service appointment.|

## Outputs

|Output|Type|Description|
|------|----|-----------|
|`serviceAppointmentId`|string|If the scheduling succeeds, it returns the ID of the scheduled service appointment.|

## Example

Sample request body:

```nolang
{
  "inputs" : [{
    "serviceAppointmentId" : "08p000000000001AAA",
    "schedulingPolicyId" : "0Vr000000000001AAA"
  }]
}
```

Sample response body:

```nolang
{
  "actionName" : "scheduleServiceAppointment",
  "errors" : null,
  "isSuccess" : true,
  "outputValues" : {
    "serviceAppointmentId" : "08p000000000001AAA"
  }
}
```

