POST api/relation/change
Request Information
URI Parameters
None.
Body Parameters
Collection of Relation| Name | 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": "9f80a48c-6038-49a8-8690-8c3a1a260b24",
"name": "sample string 2",
"parentId": "aef223cf-e466-4681-a72c-51188aa1dcdf",
"chartId": "00b19bd2-8d4d-4b83-a98a-7fa6d4ef381d",
"relationSourceId": "f05c92f1-6564-480c-b17b-e7823cdd3ada",
"isConcatenate": true,
"relationName": "sample string 4",
"chartType": 5,
"formatter": {
"type": 0,
"decimalPlaces": 1,
"unit": 0,
"useThousandth": true,
"isCustomizeUnit": true,
"customUnit": "sample string 4"
}
},
{
"relationId": "9f80a48c-6038-49a8-8690-8c3a1a260b24",
"name": "sample string 2",
"parentId": "aef223cf-e466-4681-a72c-51188aa1dcdf",
"chartId": "00b19bd2-8d4d-4b83-a98a-7fa6d4ef381d",
"relationSourceId": "f05c92f1-6564-480c-b17b-e7823cdd3ada",
"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>00b19bd2-8d4d-4b83-a98a-7fa6d4ef381d</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>aef223cf-e466-4681-a72c-51188aa1dcdf</ParentId>
<RelationId>9f80a48c-6038-49a8-8690-8c3a1a260b24</RelationId>
<RelationName>sample string 4</RelationName>
<RelationSourceId>f05c92f1-6564-480c-b17b-e7823cdd3ada</RelationSourceId>
</Relation>
<Relation>
<ChartId>00b19bd2-8d4d-4b83-a98a-7fa6d4ef381d</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>aef223cf-e466-4681-a72c-51188aa1dcdf</ParentId>
<RelationId>9f80a48c-6038-49a8-8690-8c3a1a260b24</RelationId>
<RelationName>sample string 4</RelationName>
<RelationSourceId>f05c92f1-6564-480c-b17b-e7823cdd3ada</RelationSourceId>
</Relation>
</ArrayOfRelation>
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>