# Zaakdetail sync

Zaakdetail sync allows case data to be automatically sent to the Objecten API. When enabled, changes to a case are reflected in the configured object management configuration.

## Configuring zaakdetail sync

{% tabs %}
{% tab title="Via UI" %}
Navigate to `Admin > Cases > {Case name} > [ZGW] > [Zaakdetail sync]` to configure the synchronization settings. Select the object management configuration and enable or disable the sync.
{% endtab %}

{% tab title="Via IDE" %}
Zaakdetail sync configuration can be loaded via auto-deployment. To do so, create a JSON file under the following path:

`*/resources/config/case/{case-definition-key}/{version-tag}/zgw/zaakdetail-sync/`

The file name should end with `.zaakdetail-sync.json` (e.g. `my-case.zaakdetail-sync.json`).

{% code title="my-case.zaakdetail-sync.json" %}

```json
{
    "objectManagementConfigurationId": "29400564-d25f-491c-abb2-afc42894ac9d",
    "enabled": true
}
```

{% endcode %}

| Property                          | Description                                                   |
| --------------------------------- | ------------------------------------------------------------- |
| `objectManagementConfigurationId` | The UUID of the object management configuration to sync with. |
| `enabled`                         | Whether the sync is enabled (`true`) or disabled (`false`).   |
| {% endtab %}                      |                                                               |
| {% endtabs %}                     |                                                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.valtimo.nl/features/case/zgw/zaakdetail-sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
