---
title: ReturnToServiceResponse.ReturnToService
framework: devicemanagement
role: symbol
role_heading: Device Management Command
path: devicemanagement/returntoserviceresponse/returntoservice-data.dictionary
---

# ReturnToServiceResponse.ReturnToService

A dictionary containing the configuration for return to service.

## Declaration

```data
object ReturnToServiceResponse.ReturnToService
```

## Properties

BootstrapToken: The system uses the bootstrap token for return to service with app preservation. Required when Automated Device Enrollment enables return to service for the device. If the bootstrap token isn’t present, the device performs a full erasure and a regular return to service, and can’t preserve any data for app preservation. Enabled: If true, the device automatically erases itself and then performs reenrollment. MDMProfileData: The MDM profile that installs after erasure when using return to service. If provided, the device uses this profile directly instead of fetching it from the server. This key is required if the device’s Automated Device Enrollment profile contains the configuration-web-url key. The device always downloads the Automated Device Enrollment profile even when this key is present, so the supervision identity, MDM removability, and other settings still apply. However, the device doesn’t use the specified URL in the Automated Device Enrollment profile to fetch the MDM profile. ShouldRetryEnrollment: If true, the device retries service enrollment when the initial enrollment fails after erasure. Available: iOS 27+ | iPadOS 27+ WiFiProfileData: The Wi-Fi profile that installs after erasure when using return to service. This is required when the device doesn’t have Ethernet access.
