---
title: "Refresh the datalayer sync for a connection"
method: POST
path: "/consumers/{consumer_id}/connections/{connection_id}/refresh_datalayer"
tags: ["Datalayer"]
---

# Refresh the datalayer sync for a connection

`POST /consumers/{consumer_id}/connections/{connection_id}/refresh_datalayer`

Triggers an on-demand execution of the datalayer sync for the consumer's connection. Requires the datalayer to be configured for the connection's vertical and the sync enabled.

## Path parameters

- `consumer_id` string, uuid, required
- `connection_id` string, uuid, required

## Request body

- DatalayerRefreshBody
  - `force_from_date` string, date, nullable — Force the refresh to (re)sync data from this date, overriding the flow configuration.

## Response `200`

Successful Response

- TriggerResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Validation Error

---

[API](https://skmtc.dev/chift/apis/chift-api.md) · [All operations](https://skmtc.dev/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chift/chift-api/revisions/b5f1214a482a/schema)
