Skip to main content
BluINFO

GetAllAccessLevelsByCompanyId

Overview 

Returns a list of RoleViewModels that the API token has rights to view.

Request Information


Method

GET - api/AccessLevel/GetAllAccessLevelsByCompanyId/{CompanyId}

URI Parameters

Name Description Type Additional information
CompanyId

 

globally unique identifier

Required

Body Parameters

None.

Response Information 


Resource Description

Collection of AccessLevelViewModel

Name Description Type Additional information
AccessLevelId

Represents the PK of the AccessLevel

integer

None.

Name

Represents the name of the AccessLevel

string

None.

Response Formats 

JSON

[
  {
    "AccessLevelId": 1,
    "Name": "sample string 2"
  },
  {
    "AccessLevelId": 1,
    "Name": "sample string 2"
  }
]

XML

<ArrayOfAccessLevelViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
  <AccessLevelViewModel>
    <AccessLevelId>1</AccessLevelId>
    <Name>sample string 2</Name>
  </AccessLevelViewModel>
  <AccessLevelViewModel>
    <AccessLevelId>1</AccessLevelId>
    <Name>sample string 2</Name>
  </AccessLevelViewModel>
</ArrayOfAccessLevelViewModel>
  • Was this article helpful?