## Add Data Sources To Pipeline

`IReadOnlyList<PipelineDataSource> Pipelines.DataSources.UpdateDataSources(DataSourceUpdateDataSourcesParamsparameters, CancellationTokencancellationToken = default)`

**put** `/api/v1/pipelines/{pipeline_id}/data-sources`

Add data sources to a pipeline.

### Parameters

- `DataSourceUpdateDataSourcesParams parameters`

  - `required string pipelineID`

  - `required IReadOnlyList<Body> body`

    - `required string DataSourceID`

      The ID of the data source.

    - `Double? SyncInterval`

      The interval at which the data source should be synced. Valid values are: 21600, 43200, 86400

### Example

```csharp
DataSourceUpdateDataSourcesParams parameters = new()
{
    PipelineID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    Body =
    [
        new()
        {
            DataSourceID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            SyncInterval = 0,
        },
    ],
};

var pipelineDataSources = await client.Pipelines.DataSources.UpdateDataSources(parameters);

Console.WriteLine(pipelineDataSources);
```

#### Response

```json
[
  {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "component": {
      "foo": "bar"
    },
    "data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "last_synced_at": "2019-12-27T18:11:19.117Z",
    "name": "name",
    "pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "source_type": "AZURE_STORAGE_BLOB",
    "created_at": "2019-12-27T18:11:19.117Z",
    "custom_metadata": {
      "foo": {
        "foo": "bar"
      }
    },
    "status": "CANCELLED",
    "status_updated_at": "2019-12-27T18:11:19.117Z",
    "sync_interval": 0,
    "sync_schedule_set_by": "sync_schedule_set_by",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "version_metadata": {
      "reader_version": "1.0"
    }
  }
]
```
