> 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/import-api/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/import-api/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="https://3820928149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F259XXXQinDEdEgkdyb2W%2Fuploads%2Fgit-blob-06f9832035f0a6569d7515f18ea116bda7c829cf%2Fimport_api-synchronization-finalization-parameters.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.collibra.com/api/guides/import-api/synchronization/synchronization-finalization-request-format.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
