POST api/relation/change
Request Information
URI Parameters
None.
Body Parameters
Collection of RelationName | Description | Type | Additional information |
---|---|---|---|
RelationId | globally unique identifier |
None. |
|
Name | string |
None. |
|
ParentId | globally unique identifier |
None. |
|
ChartId | globally unique identifier |
None. |
|
RelationSourceId | globally unique identifier |
None. |
|
IsConcatenate | boolean |
None. |
|
RelationName | string |
None. |
|
ChartType | integer |
None. |
|
Formatter | Formatter |
None. |
Request Formats
application/json, text/json
Sample:
[ { "relationId": "0759e18a-14cc-408e-91b4-7245b2776dbb", "name": "sample string 2", "parentId": "5831ed1e-8c7f-4cd3-94b9-07bd832f2fb9", "chartId": "eebfc445-8286-41fe-90f3-a2e3b9fc130d", "relationSourceId": "3a115668-f6c1-4a3e-af81-1e4fe7ccc461", "isConcatenate": true, "relationName": "sample string 4", "chartType": 5, "formatter": { "type": 0, "decimalPlaces": 1, "unit": 0, "useThousandth": true, "isCustomizeUnit": true, "customUnit": "sample string 4" } }, { "relationId": "0759e18a-14cc-408e-91b4-7245b2776dbb", "name": "sample string 2", "parentId": "5831ed1e-8c7f-4cd3-94b9-07bd832f2fb9", "chartId": "eebfc445-8286-41fe-90f3-a2e3b9fc130d", "relationSourceId": "3a115668-f6c1-4a3e-af81-1e4fe7ccc461", "isConcatenate": true, "relationName": "sample string 4", "chartType": 5, "formatter": { "type": 0, "decimalPlaces": 1, "unit": 0, "useThousandth": true, "isCustomizeUnit": true, "customUnit": "sample string 4" } } ]
application/xml, text/xml
Sample:
<ArrayOfRelation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Core.Data.Entities"> <Relation> <ChartId>eebfc445-8286-41fe-90f3-a2e3b9fc130d</ChartId> <ChartType>5</ChartType> <Formatter> <CustomUnit>sample string 4</CustomUnit> <DecimalPlaces>1</DecimalPlaces> <IsCustomizeUnit>true</IsCustomizeUnit> <Type>None</Type> <Unit>None</Unit> <UseThousandth>true</UseThousandth> </Formatter> <FormatterJson>{"Type":0,"DecimalPlaces":1,"Unit":0,"UseThousandth":true,"IsCustomizeUnit":true,"CustomUnit":"sample string 4"}</FormatterJson> <IsConcatenate>true</IsConcatenate> <Name>sample string 2</Name> <ParentId>5831ed1e-8c7f-4cd3-94b9-07bd832f2fb9</ParentId> <RelationId>0759e18a-14cc-408e-91b4-7245b2776dbb</RelationId> <RelationName>sample string 4</RelationName> <RelationSourceId>3a115668-f6c1-4a3e-af81-1e4fe7ccc461</RelationSourceId> </Relation> <Relation> <ChartId>eebfc445-8286-41fe-90f3-a2e3b9fc130d</ChartId> <ChartType>5</ChartType> <Formatter> <CustomUnit>sample string 4</CustomUnit> <DecimalPlaces>1</DecimalPlaces> <IsCustomizeUnit>true</IsCustomizeUnit> <Type>None</Type> <Unit>None</Unit> <UseThousandth>true</UseThousandth> </Formatter> <FormatterJson>{"Type":0,"DecimalPlaces":1,"Unit":0,"UseThousandth":true,"IsCustomizeUnit":true,"CustomUnit":"sample string 4"}</FormatterJson> <IsConcatenate>true</IsConcatenate> <Name>sample string 2</Name> <ParentId>5831ed1e-8c7f-4cd3-94b9-07bd832f2fb9</ParentId> <RelationId>0759e18a-14cc-408e-91b4-7245b2776dbb</RelationId> <RelationName>sample string 4</RelationName> <RelationSourceId>3a115668-f6c1-4a3e-af81-1e4fe7ccc461</RelationSourceId> </Relation> </ArrayOfRelation>
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>