PUT api/data_source/batch-edit-datasource/{projectId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectId | globally unique identifier |
Required |
Body Parameters
DSProjectModelName | 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": "1580fdab-3361-4b32-ba05-c8bdcefd63f7", "name": "sample string 2", "show": true, "dataSources": [ { "projectId": "6195d67c-53a6-414b-857b-f37d9e7fbfd9", "projectName": "sample string 2", "dataSourceId": "e59ce18f-77da-48c7-9212-f3c2829ee334", "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": "6195d67c-53a6-414b-857b-f37d9e7fbfd9", "projectName": "sample string 2", "dataSourceId": "e59ce18f-77da-48c7-9212-f3c2829ee334", "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>e59ce18f-77da-48c7-9212-f3c2829ee334</DataSourceId> <Description>sample string 6</Description> <IsReadOnly>true</IsReadOnly> <Name>sample string 5</Name> <ProjectId>6195d67c-53a6-414b-857b-f37d9e7fbfd9</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>e59ce18f-77da-48c7-9212-f3c2829ee334</DataSourceId> <Description>sample string 6</Description> <IsReadOnly>true</IsReadOnly> <Name>sample string 5</Name> <ProjectId>6195d67c-53a6-414b-857b-f37d9e7fbfd9</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>1580fdab-3361-4b32-ba05-c8bdcefd63f7</ProjectId> <Show>true</Show> </DSProjectModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultName | 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>