Business unit resources

Get business units

GET https://app.smartmansys.com/api/v1/business_units

Headers

Name
Type
Description

Authorization

string

Authentication token

{
    "business_units": [
        {
            "id": 1,
            "name": "Name of the bussiness unit",
            "number": "10203A"
        },
        {
            ...
        }
    ]
}

Create business unit

POST https://app.smartmansys.com/api/v1/business_units

Headers

Name
Type
Description

Authorization

string

Authentication token

Request Body

Name
Type
Description

business_unit

object

Business unit

Update business unit

PATCH https://app.smartmansys.com/api/v1/business_units/:id

This method is also available under PUT.

Path Parameters

Name
Type
Description

id

integer

Id of the business unit

Headers

Name
Type
Description

Authorization

string

Authentication token

Request Body

Name
Type
Description

business_unit

object

Business unit

Delete business unit

DELETE https://app.smartmansys.com/api/v1/business_units/:id

Path Parameters

Name
Type
Description

id

string

Id of the business unit

Headers

Name
Type
Description

Authorization

string

Authentication token

Last updated

Was this helpful?