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": "0afbeb48-1433-49ac-b360-e1e85c79453b",
"name": "sample string 2",
"parentId": "1156b462-87f5-4fcd-8ccf-74859a117b11",
"chartId": "b12dc0c7-c989-42d3-bab9-f957625bde94",
"relationSourceId": "4142f440-97a0-4752-a62d-62f5cab10d0c",
"isConcatenate": true,
"relationName": "sample string 4",
"chartType": 5,
"formatter": {
"type": 0,
"decimalPlaces": 1,
"unit": 0,
"useThousandth": true,
"isCustomizeUnit": true,
"customUnit": "sample string 4"
}
},
{
"relationId": "0afbeb48-1433-49ac-b360-e1e85c79453b",
"name": "sample string 2",
"parentId": "1156b462-87f5-4fcd-8ccf-74859a117b11",
"chartId": "b12dc0c7-c989-42d3-bab9-f957625bde94",
"relationSourceId": "4142f440-97a0-4752-a62d-62f5cab10d0c",
"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>b12dc0c7-c989-42d3-bab9-f957625bde94</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>1156b462-87f5-4fcd-8ccf-74859a117b11</ParentId>
<RelationId>0afbeb48-1433-49ac-b360-e1e85c79453b</RelationId>
<RelationName>sample string 4</RelationName>
<RelationSourceId>4142f440-97a0-4752-a62d-62f5cab10d0c</RelationSourceId>
</Relation>
<Relation>
<ChartId>b12dc0c7-c989-42d3-bab9-f957625bde94</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>1156b462-87f5-4fcd-8ccf-74859a117b11</ParentId>
<RelationId>0afbeb48-1433-49ac-b360-e1e85c79453b</RelationId>
<RelationName>sample string 4</RelationName>
<RelationSourceId>4142f440-97a0-4752-a62d-62f5cab10d0c</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>