PUT api/data_source/batch-edit-datasource/{projectId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| projectId | globally unique identifier |
Required |
Body Parameters
DSProjectModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Show | boolean |
None. |
|
| DataSources | Collection of DataSourceModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"projectId": "2cdaaef4-5952-4d13-bf7a-988f0b835896",
"name": "sample string 2",
"show": true,
"dataSources": [
{
"projectId": "b834ee1b-fc31-4878-97d6-fcc2d20370ff",
"projectName": "sample string 2",
"dataSourceId": "a46620b1-564c-4480-b9a6-de787574483b",
"reference": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"selected": true,
"type": 0,
"content": "sample string 8",
"connection": "sample string 9",
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 11"
},
{
"projectId": "b834ee1b-fc31-4878-97d6-fcc2d20370ff",
"projectName": "sample string 2",
"dataSourceId": "a46620b1-564c-4480-b9a6-de787574483b",
"reference": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"selected": true,
"type": 0,
"content": "sample string 8",
"connection": "sample string 9",
"isReadOnly": true,
"cacheInterval": 1,
"tableName": "sample string 11"
}
]
}
application/xml, text/xml
Sample:
<DSProjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models">
<DataSources>
<DataSourceModel>
<CacheInterval>1</CacheInterval>
<Connection>sample string 9</Connection>
<Content>sample string 8</Content>
<DataSourceId>a46620b1-564c-4480-b9a6-de787574483b</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>b834ee1b-fc31-4878-97d6-fcc2d20370ff</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Reference>sample string 4</Reference>
<Selected>true</Selected>
<TableName>sample string 11</TableName>
<Type>SQL</Type>
</DataSourceModel>
<DataSourceModel>
<CacheInterval>1</CacheInterval>
<Connection>sample string 9</Connection>
<Content>sample string 8</Content>
<DataSourceId>a46620b1-564c-4480-b9a6-de787574483b</DataSourceId>
<Description>sample string 6</Description>
<IsReadOnly>true</IsReadOnly>
<Name>sample string 5</Name>
<ProjectId>b834ee1b-fc31-4878-97d6-fcc2d20370ff</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Reference>sample string 4</Reference>
<Selected>true</Selected>
<TableName>sample string 11</TableName>
<Type>SQL</Type>
</DataSourceModel>
</DataSources>
<Name>sample string 2</Name>
<ProjectId>2cdaaef4-5952-4d13-bf7a-988f0b835896</ProjectId>
<Show>true</Show>
</DSProjectModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | ApiResultStatus |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "success",
"data": {},
"message": "sample string 2",
"code": 1
}
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Code>1</Code> <Data /> <Message>sample string 2</Message> <Status>Success</Status> </ApiResult>