# Sync Model Sources

```
POST 
/v1/dbt/models/:model_id/sync-sources
```

Re-derive and persist depends\_on\_sources for an existing model.

Scans the model SQL for references to registered DBTSource table names and writes the matching 'source\_name.table\_name' refs to depends\_on\_sources. Use this to repair models created before the auto-population fix.

## Request[​](#request "Direkter Link zur request")

## Responses[​](#responses "Direkter Link zur Responses")

* 200
* 404
* 422

Successful Response

Not found

Validation Error
