GET
/
api2
/
v1
/
businessUnits
List business units
curl --request GET \
  --url https://cloud.memsource.com/web/api2/v1/businessUnits
{
  "totalElements": 123,
  "totalPages": 123,
  "pageSize": 123,
  "pageNumber": 123,
  "numberOfElements": 123,
  "content": [
    {
      "id": "<string>",
      "uid": "<string>",
      "name": "<string>",
      "createdBy": {
        "firstName": "<string>",
        "lastName": "<string>",
        "userName": "<string>",
        "email": "<string>",
        "role": "SYS_ADMIN",
        "id": "<string>",
        "uid": "<string>"
      }
    }
  ],
  "sort": {
    "orders": [
      {
        "direction": "ASC",
        "property": "<string>"
      }
    ]
  }
}

Query Parameters

name
string

Unique name of the business unit

createdBy
string

Uid of user

sort
enum<string>
default:NAME
Available options:
NAME,
DATE_CREATED
order
enum<string>
default:ASC
Available options:
ASC,
DESC
pageNumber
integer
default:0

Page number, starting with 0, default 0

Required range: x >= 0
pageSize
integer
default:50

Page size, accepts values between 1 and 50, default 50

Required range: 1 <= x <= 50

Response

200
application/json

successful operation

The response is of type object.