---
title: Sync the Locations
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/fetch-location-roster-sync
---

# Sync the Locations

Get updates about the list of locations the server manages.

## URL

POST https://mdmenrollment.apple.com/roster/class/location/sync

## Response Codes

200 OK: The request was successful. The server returns a list of locations. 400 Bad Request: The server was unable to process the request.

## Discussion

Discussion This sync service uses a cursor returned by the full location-roster service. It returns a list of all modifications (additions or deletions) made since the cursor date, up to 7 days. This service may return the same location more than once. You can identify duplicates by matching their unique_identifier values.

## HTTP Body

The object containing the request information.

## See Also

### Location management

- [BaseRosterLocation](devicemanagement/baserosterlocation.md)
- [RosterLocation](devicemanagement/rosterlocation.md)
- [Get the List of Locations](devicemanagement/fetch-location-roster.md)
