Skip to content

Get business units by company

Request

Fetches a list of business units associated with the specified company ID. A valid authorization token is required to access this endpoint.

Security
Bearer
Query
companyIdinteger, (int32)required

The unique identifier for the company used to filter business units.

curl -i -X GET \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/BusinessUnitByCompany?companyId=0' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Successfully retrieved the list of business units filtered by company

Bodyapplication/json
Array [
idinteger, (int32)

Unique identifier for the business unit.

Example:1
namestring or null

The name of the business unit.

Example:"Sales Division"
businessUnitNumberstring or null

Unique business unit number.

Example:"BU12345"
companyIdinteger, (int32)

The ID of the company the business unit belongs to.

Example:101
companyNamestring or null

The name of the company.

Example:"Tech Innovations Ltd."
leaderstring or null

The leader or head of the business unit.

Example:"John Doe"
]
Response
[ { "id": 1, "name": "Sales Division", "businessUnitNumber": "BU12345", "companyId": 101, "companyName": "Tech Innovations Ltd.", "leader": "John Doe" } ]