# POST /v1/op/data/startExtractAndLoad request body definition is invalid

**URL:** <https://visier.discourse.group/t/post-v1-op-data-startextractandload-request-body-definition-is-invalid/355>\
**Category:** APIs & Connectors\
**Created:** [January 2, 2025, 9:51am UTC](https://visier.discourse.group/t/post-v1-op-data-startextractandload-request-body-definition-is-invalid/355 "2025-01-02T09:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.zafirov](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@b.zafirov](https://visier.discourse.group/u/b.zafirov)\
**Post date:** [January 2, 2025, 9:51am UTC](https://visier.discourse.group/t/post-v1-op-data-startextractandload-request-body-definition-is-invalid/355/1 "2025-01-02T09:51:44Z")

</div>

Hello Visier Developer community,

after testing the latest version of the `data-in-apis.yaml` (available [here](https://github.com/visier/openapi-clients/blob/main/res/data-in-apis.yaml)) OAS3 spec, we found out that the request body definition for the POST /v1/op/data/startExtractAndLoad` is invalid. If we call the endpoint with a request body as specified in the OAS3 spec:

```json
{
	"model": {
		"allTenants": false,
		"tenants": [
			"<VALID_TENANT>"
		],
		"connectorIds": [
			"<VALID_CONNECTOR_IDS>"
		],
		"dataCategoryId": "<VALID_DATA_CATEGORY_ID>",
		"runProcessingJob": true,
		"disableArtifactGeneration": false,
		"publishDataLoadArtifacts": true,
		"batchSizeOverride": 0,
		"sqlBatchSize": 10000,
		"forceUpdateExistingArtifacts": true
	}
}

```

we get the following error:

```json
{
	"localizedMessage": "Bad request: rci=DP810005 Cannot find field: model in message visier.admin.jobs.ExtractDataAndLoadDTO",
	"message": "",
	"rci": "RCIY3003012",
	"code": "VSE_BADREQUEST",
	"userError": true
}

```

The contents of the `StartExtractionModel` object definition shouldn’t be placed under the `model` parameter of the `StartExtractionRequest` object definition. Could you please the fix the OAS3 spec so we don’t have to do manual updates? Furthermore, the description of the `StartExtractionModel` is not correct.

Thanks in advance,  
Bogdan

---

<div class="post-metadata">

**Author:** ![vincent.chu.visier](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vincent.chu.visier](https://visier.discourse.group/u/vincent.chu.visier)\
**Post date:** [January 6, 2025, 6:03pm UTC](https://visier.discourse.group/t/post-v1-op-data-startextractandload-request-body-definition-is-invalid/355/2 "2025-01-06T18:03:10Z")

</div>

Thank you Bogdan for the report. We will take a look right away.

Thanks,

Vincent
