POST Api/DataMart/EntityRelation

Post Entity Relation Data

Request Information

URI Parameters

None.

Body Parameters

Contains the ProjectId to find the Data Mart and List of Entity Relation data rows

EntityRelationRequest
NameDescriptionTypeAdditional information
ProjectId

integer

None.

EntityRelation

Collection of EntityRelation

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "EntityRelation": [
    {
      "DataSourceName": "sample string 1",
      "Entity1SourceKey1": "sample string 2",
      "Entity1SourceKey2": "sample string 3",
      "Entity1SourceKey3": "sample string 4",
      "Entity1SourceKey4": "sample string 5",
      "Entity1SourceKey5": "sample string 6",
      "Entity2SourceKey1": "sample string 7",
      "Entity2SourceKey2": "sample string 8",
      "Entity2SourceKey3": "sample string 9",
      "Entity2SourceKey4": "sample string 10",
      "Entity2SourceKey5": "sample string 11",
      "RelationName": "sample string 12",
      "EffectiveFrom": "2020-06-04T12:09:33.6825256+01:00"
    },
    {
      "DataSourceName": "sample string 1",
      "Entity1SourceKey1": "sample string 2",
      "Entity1SourceKey2": "sample string 3",
      "Entity1SourceKey3": "sample string 4",
      "Entity1SourceKey4": "sample string 5",
      "Entity1SourceKey5": "sample string 6",
      "Entity2SourceKey1": "sample string 7",
      "Entity2SourceKey2": "sample string 8",
      "Entity2SourceKey3": "sample string 9",
      "Entity2SourceKey4": "sample string 10",
      "Entity2SourceKey5": "sample string 11",
      "RelationName": "sample string 12",
      "EffectiveFrom": "2020-06-04T12:09:33.6825256+01:00"
    }
  ]
}

application/xml, text/xml

Sample:
<EntityRelationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sumerian.CapacityPlanner.DAL.BusinessObjects.DataMart">
  <EntityRelation>
    <EntityRelation>
      <DataSourceName>sample string 1</DataSourceName>
      <EffectiveFrom>2020-06-04T12:09:33.6825256+01:00</EffectiveFrom>
      <Entity1SourceKey1>sample string 2</Entity1SourceKey1>
      <Entity1SourceKey2>sample string 3</Entity1SourceKey2>
      <Entity1SourceKey3>sample string 4</Entity1SourceKey3>
      <Entity1SourceKey4>sample string 5</Entity1SourceKey4>
      <Entity1SourceKey5>sample string 6</Entity1SourceKey5>
      <Entity2SourceKey1>sample string 7</Entity2SourceKey1>
      <Entity2SourceKey2>sample string 8</Entity2SourceKey2>
      <Entity2SourceKey3>sample string 9</Entity2SourceKey3>
      <Entity2SourceKey4>sample string 10</Entity2SourceKey4>
      <Entity2SourceKey5>sample string 11</Entity2SourceKey5>
      <RelationName>sample string 12</RelationName>
    </EntityRelation>
    <EntityRelation>
      <DataSourceName>sample string 1</DataSourceName>
      <EffectiveFrom>2020-06-04T12:09:33.6825256+01:00</EffectiveFrom>
      <Entity1SourceKey1>sample string 2</Entity1SourceKey1>
      <Entity1SourceKey2>sample string 3</Entity1SourceKey2>
      <Entity1SourceKey3>sample string 4</Entity1SourceKey3>
      <Entity1SourceKey4>sample string 5</Entity1SourceKey4>
      <Entity1SourceKey5>sample string 6</Entity1SourceKey5>
      <Entity2SourceKey1>sample string 7</Entity2SourceKey1>
      <Entity2SourceKey2>sample string 8</Entity2SourceKey2>
      <Entity2SourceKey3>sample string 9</Entity2SourceKey3>
      <Entity2SourceKey4>sample string 10</Entity2SourceKey4>
      <Entity2SourceKey5>sample string 11</Entity2SourceKey5>
      <RelationName>sample string 12</RelationName>
    </EntityRelation>
  </EntityRelation>
  <ProjectId>1</ProjectId>
</EntityRelationRequest>

Response Information

Resource Description

Void, only HTTP status code

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.