POST api/entityattributeorderings

Adds a new EntityAttributeOrdering.



Request Information

URI Parameters

None.



Body Parameters

A viewmodel representing the EntityAttributeOrdering to add.

PostEntityAttributeOrderingViewModel
NameDescriptionTypeAdditional information
EntityAttributeOrderingEntityAttributes

Collection of EntityAttributeOrderingEntityAttributeViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityAttributeOrderingEntityAttributes": [
    {
      "EntityAttributeId": 1,
      "Order": 2
    },
    {
      "EntityAttributeId": 1,
      "Order": 2
    }
  ]
}

application/xml, text/xml

Sample:
<PostEntityAttributeOrderingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <EntityAttributeOrderingEntityAttributes>
    <EntityAttributeOrderingEntityAttributeViewModel>
      <EntityAttributeId>1</EntityAttributeId>
      <Order>2</Order>
    </EntityAttributeOrderingEntityAttributeViewModel>
    <EntityAttributeOrderingEntityAttributeViewModel>
      <EntityAttributeId>1</EntityAttributeId>
      <Order>2</Order>
    </EntityAttributeOrderingEntityAttributeViewModel>
  </EntityAttributeOrderingEntityAttributes>
</PostEntityAttributeOrderingViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A ReadEntityAttributeOrderingViewModel representing the added EntityAttributeOrdering.

ReadEntityAttributeOrderingViewModel

NameDescriptionTypeAdditional information
EntityAttributeOrderingEntityAttributes

Collection of EntityAttributeOrderingEntityAttributeViewModel

None.

Id

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
{
  "EntityAttributeOrderingEntityAttributes": [
    {
      "EntityAttributeId": 1,
      "Order": 2
    },
    {
      "EntityAttributeId": 1,
      "Order": 2
    }
  ],
  "Id": 1,
  "Name": "sample string 2"
}

application/xml, text/xml

Sample:
<ReadEntityAttributeOrderingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <EntityAttributeOrderingEntityAttributes>
    <EntityAttributeOrderingEntityAttributeViewModel>
      <EntityAttributeId>1</EntityAttributeId>
      <Order>2</Order>
    </EntityAttributeOrderingEntityAttributeViewModel>
    <EntityAttributeOrderingEntityAttributeViewModel>
      <EntityAttributeId>1</EntityAttributeId>
      <Order>2</Order>
    </EntityAttributeOrderingEntityAttributeViewModel>
  </EntityAttributeOrderingEntityAttributes>
  <Id>1</Id>
  <Name>sample string 2</Name>
</ReadEntityAttributeOrderingViewModel>