> 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="/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);
}
```
