GET api/Sector/GetSectorsByGroupAndCompany/{groupname}/{companyid}

Gets a list of Sectors based upon the group associated within the companyid relationship

Request Information

URI Parameters

NameDescriptionTypeAdditional information
groupname

string

Required

companyid

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Sectors
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Group

string

None.

Searchable

boolean

None.

Description

string

None.

ParentId

integer

None.

IndustryId

integer

None.

CompanyId

integer

None.

IsActive

boolean

None.

Type

integer

None.

SortOrder

integer

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Group": "sample string 3",
    "Searchable": true,
    "Description": "sample string 5",
    "ParentId": 6,
    "IndustryId": 7,
    "CompanyId": 8,
    "IsActive": true,
    "Type": 10,
    "SortOrder": 11
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Group": "sample string 3",
    "Searchable": true,
    "Description": "sample string 5",
    "ParentId": 6,
    "IndustryId": 7,
    "CompanyId": 8,
    "IsActive": true,
    "Type": 10,
    "SortOrder": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfSectors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <Sectors>
    <CompanyId>8</CompanyId>
    <Description>sample string 5</Description>
    <Group>sample string 3</Group>
    <Id>1</Id>
    <IndustryId>7</IndustryId>
    <IsActive>true</IsActive>
    <Name>sample string 2</Name>
    <ParentId>6</ParentId>
    <Searchable>true</Searchable>
    <SortOrder>11</SortOrder>
    <Type>10</Type>
  </Sectors>
  <Sectors>
    <CompanyId>8</CompanyId>
    <Description>sample string 5</Description>
    <Group>sample string 3</Group>
    <Id>1</Id>
    <IndustryId>7</IndustryId>
    <IsActive>true</IsActive>
    <Name>sample string 2</Name>
    <ParentId>6</ParentId>
    <Searchable>true</Searchable>
    <SortOrder>11</SortOrder>
    <Type>10</Type>
  </Sectors>
</ArrayOfSectors>