GET PlanCare2Api/OrganizationStructure?applyPermissions={applyPermissions}

Gets active structure of organization.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
applyPermissions

If false all entities will be returned. Otherwise only entities that the user has permission for.

boolean

Default value is True

Body Parameters

None.

Response Information

Resource Description

List of OrganizationStructureEntities.

Collection of OrganizationStructureEntity
NameDescriptionTypeAdditional information
Id

Id of entity.

integer

None.

Name

Name of entity.

string

None.

Type

Type of entity.

OrganizationStructureEntityType

None.

TypeName

Name of type of entity.

string

None.

ParentId

Nullable id of parent entity.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "Name": "sample string 2",
    "Type": 0,
    "TypeName": "sample string 3",
    "ParentId": 1
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrganizationStructureEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.OrganizationStructure">
  <OrganizationStructureEntity>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <ParentId>1</ParentId>
    <Type>None</Type>
    <TypeName>sample string 3</TypeName>
  </OrganizationStructureEntity>
  <OrganizationStructureEntity>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <ParentId>1</ParentId>
    <Type>None</Type>
    <TypeName>sample string 3</TypeName>
  </OrganizationStructureEntity>
</ArrayOfOrganizationStructureEntity>