POST api/entities/unassigned

Get All Entities excluding by Ids.

Request Information

URI Parameters

None.

Body Parameters

SuperEntityIds

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

Collection of EntityWithSubentitiesAndManagementCompanyResponse
NameDescriptionTypeAdditional information
Id

Id

integer

None.

Name

Name

string

None.

EntityNumber

Entity Number

string

None.

SuperEntityNumber

Super Entity Number

integer

None.

Active

Is Active

boolean

None.

SubEntities

Collection of SubEntityViewModel

None.

ManagementCompanyDetail

Management Company

ManagementCompanyResponse

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "entityNumber": "sample string 3",
    "superEntityNumber": 4,
    "active": true,
    "subEntities": [
      {
        "id": 1,
        "name": "sample string 2",
        "number": "sample string 3"
      },
      {
        "id": 1,
        "name": "sample string 2",
        "number": "sample string 3"
      }
    ],
    "managementCompanyDetail": {
      "managementCompanyId": 1,
      "companyName": "sample string 2",
      "companyDescription": "sample string 3"
    }
  },
  {
    "id": 1,
    "name": "sample string 2",
    "entityNumber": "sample string 3",
    "superEntityNumber": 4,
    "active": true,
    "subEntities": [
      {
        "id": 1,
        "name": "sample string 2",
        "number": "sample string 3"
      },
      {
        "id": 1,
        "name": "sample string 2",
        "number": "sample string 3"
      }
    ],
    "managementCompanyDetail": {
      "managementCompanyId": 1,
      "companyName": "sample string 2",
      "companyDescription": "sample string 3"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfEntityWithSubentitiesAndManagementCompanyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.GLAccounts.Models">
  <EntityWithSubentitiesAndManagementCompanyResponse>
    <Active>true</Active>
    <EntityNumber>sample string 3</EntityNumber>
    <Id>1</Id>
    <ManagementCompanyDetail xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.Vendors.Models">
      <d3p1:CompanyDescription>sample string 3</d3p1:CompanyDescription>
      <d3p1:CompanyName>sample string 2</d3p1:CompanyName>
      <d3p1:ManagementCompanyId>1</d3p1:ManagementCompanyId>
    </ManagementCompanyDetail>
    <Name>sample string 2</Name>
    <SubEntities xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.Entities.Models">
      <d3p1:SubEntityViewModel>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Number>sample string 3</d3p1:Number>
      </d3p1:SubEntityViewModel>
      <d3p1:SubEntityViewModel>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Number>sample string 3</d3p1:Number>
      </d3p1:SubEntityViewModel>
    </SubEntities>
    <SuperEntityNumber>4</SuperEntityNumber>
  </EntityWithSubentitiesAndManagementCompanyResponse>
  <EntityWithSubentitiesAndManagementCompanyResponse>
    <Active>true</Active>
    <EntityNumber>sample string 3</EntityNumber>
    <Id>1</Id>
    <ManagementCompanyDetail xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.Vendors.Models">
      <d3p1:CompanyDescription>sample string 3</d3p1:CompanyDescription>
      <d3p1:CompanyName>sample string 2</d3p1:CompanyName>
      <d3p1:ManagementCompanyId>1</d3p1:ManagementCompanyId>
    </ManagementCompanyDetail>
    <Name>sample string 2</Name>
    <SubEntities xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.Entities.Models">
      <d3p1:SubEntityViewModel>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Number>sample string 3</d3p1:Number>
      </d3p1:SubEntityViewModel>
      <d3p1:SubEntityViewModel>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Number>sample string 3</d3p1:Number>
      </d3p1:SubEntityViewModel>
    </SubEntities>
    <SuperEntityNumber>4</SuperEntityNumber>
  </EntityWithSubentitiesAndManagementCompanyResponse>
</ArrayOfEntityWithSubentitiesAndManagementCompanyResponse>