> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/api/guides/working-with-the-import-api-v2/synchronization/synchronization-finalization-request-format.md).

# Synchronization finalization request format

{% hint style="warning" %}
Starting with Collibra version 2022.08, the `finalizationParameters` is deprecated and replaced with `missingAssetStatusId`.
{% endhint %}

The finalization step calls `/import/synchronize/<synchronization_id>/finalize/job` and has `finalizationStrategy` and `finalizationParameters` as optional parameters.

{% hint style="info" %}
When you set the `finalizationStrategy` to [`CHANGE_STATUS`](/api/guides/working-with-the-import-api-v2/synchronization/changing-and-restoring-the-status-of-externally-missing-resources.md), you must also provide a value for `finalizationParameters`.
{% endhint %}

## Curl

To call the finalization step using curl, add the `finalizationParameters` field as JSON with an **application/json** content type appended to the end, for example:

```bash
curl \
  -X POST \
  -u <your_credentials> \
  -H  'content-type: multipart/form-data' \
  -H  'accept: application/json' \
  https://<your_collibra_platform_url>/rest/2.0/import/synchronize/<synchronization_id>/finalize/job \
  -F 'finalizationStrategy=CHANGE_STATUS' \
  -F 'finalizationParameters={ "STATUS_ID": "00000000-0000-0000-0000-000000005066" };type=application/json'
```

## Postman

1. Create a JSON file with the `finalizationParameters`, for example:

   ```json
   {
       ​"STATUS_ID": "00000000-0000-0000-0000-000000005066"
   }
   ```
2. Change the input type of the `finalizationParameters` to **File** and select the JSON file that you created:

   <img src="/files/6XnlWOI6MmhSHpyExErr" alt="" width="75%">

## Java

To call the finalization step in Java use `dgcClient` to make the REST API calls, for example:

```java
import static com.collibra.dgc.configuration.core.model.ResourceIDConstants.META_STATUS_MISSING_FROM_SOURCE;
import com.collibra.dgc.importer.api.request.SynchronizationFinalizationRequest;
public class SynchronizationFinalizationTest extends AbstractSynchronizationFunctionalTest {
	SynchronizationFinalizationRequest synchronizationFinalizationRequest = SynchronizationFinalizationRequest.builder()
		.synchronizationId(synchronizationId)
		.saveResult(false)
		.finalizationStrategy("CHANGE_STATUS")
		.addFinalizationParameter(
			SynchronizationFinalizationRequest.SynchronizationFinalizationRequestBuilder.CustomFinalizationParameter.STATUS_ID,
			META_STATUS_MISSING_FROM_SOURCE
		)
		.build();
	Job job = dgcClient.importer().synchronizeFinalizationInJob(synchronizationFinalizationRequest);
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://developer.collibra.com/api/guides/working-with-the-import-api-v2/synchronization/synchronization-finalization-request-format.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.
