PUT api/data_source/project/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
ProjectModelName | Description | Type | Additional information |
---|---|---|---|
ProjectId | globally unique identifier |
None. |
|
Name | string |
None. |
|
Show | boolean |
None. |
|
Order | decimal number |
None. |
|
Dashboards | Collection of DashModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "projectId": "61718c4a-5f8b-4049-bd90-ee05b7987c59", "name": "sample string 2", "show": true, "order": 4.0, "dashboards": [ { "projectId": "05e358d3-abe0-433e-8e80-c151702d0375", "dashboardId": "be0b7ec5-a910-41ca-9eee-0d6118521c88", "name": "sample string 3", "description": "sample string 4", "show": true, "order": 6.0 }, { "projectId": "05e358d3-abe0-433e-8e80-c151702d0375", "dashboardId": "be0b7ec5-a910-41ca-9eee-0d6118521c88", "name": "sample string 3", "description": "sample string 4", "show": true, "order": 6.0 } ] }
application/xml, text/xml
Sample:
<ProjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Dashboards> <DashModel> <DashboardId>be0b7ec5-a910-41ca-9eee-0d6118521c88</DashboardId> <Description>sample string 4</Description> <Name>sample string 3</Name> <Order>6</Order> <ProjectId>05e358d3-abe0-433e-8e80-c151702d0375</ProjectId> <Show>true</Show> </DashModel> <DashModel> <DashboardId>be0b7ec5-a910-41ca-9eee-0d6118521c88</DashboardId> <Description>sample string 4</Description> <Name>sample string 3</Name> <Order>6</Order> <ProjectId>05e358d3-abe0-433e-8e80-c151702d0375</ProjectId> <Show>true</Show> </DashModel> </Dashboards> <Name>sample string 2</Name> <Order>4</Order> <ProjectId>61718c4a-5f8b-4049-bd90-ee05b7987c59</ProjectId> <Show>true</Show> </ProjectModel>
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>