---
title: "Toggle Sync Enabled"
method: PATCH
path: "/api/countries/{country_id}/sync-enabled"
tags: ["Countries"]
---

# Toggle Sync Enabled

`PATCH /api/countries/{country_id}/sync-enabled`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/countries/{country_id}/sync-enabled`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Toggle sync_enabled for a country (admin only). Also sets last_sync to 2025-01-01 when enabling.

## Path parameters

- `country_id` integer, required

## Query parameters

- `enabled` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
