CompanyDepartment

GetCompanyDepartmentsAsync

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Responses
200

OK

get/api/companies/{companyUid}/departments
Request samples
Response samples
{
}

InsertCompanyDepartment

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
companyDepartmentTemplateUid
required
string <uuid>
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 20 ] characters
responsibleEmployeePersons
Array of strings <uuid>
Responses
200

OK

post/api/companies/{companyUid}/departments
Request samples
{
}
Response samples
{
}

GetCompanyDepartment

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Responses
200

OK

get/api/companies/{companyUid}/departments/{companyDepartmentUid}
Request samples
Response samples
{
}

DeleteCompanyDepartment

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Responses
204

No Content

delete/api/companies/{companyUid}/departments/{companyDepartmentUid}
Request samples

UpdateCompanyDepartment

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 20 ] characters
responsibleEmployeePersons
Array of strings <uuid>
Responses
204

No Content

patch/api/companies/{companyUid}/departments/{companyDepartmentUid}
Request samples
{
}

GetWholeCompanyDepartment

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Responses
200

OK

get/api/companies/{companyUid}/departments/{companyDepartmentUid}/full
Request samples
Response samples
{
}

GetCompanyDepartmentAccountingsAsync

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Responses
200

OK

get/api/companies/{companyUid}/departments/{companyDepartmentUid}/accountings
Request samples
Response samples
{
}

UpdateCompanyDepartmentAccountingsAsync

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
required
Array of objects (Zalary.Models.CompanyAccouting.UpdateCompanyAccoutingRequest)
Responses
204

No Content

patch/api/companies/{companyUid}/departments/{companyDepartmentUid}/accountings
Request samples
{
}

GetCompanyDepartmentsListAsync

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
companyDepartmentUids
Array of strings <uuid>
responsiblePersonsUids
Array of strings <uuid>
object (Zalary.Models.Company.CompanyDepartment.DepartmentSortOptions)
departmentOverrides
Array of booleans
Responses
200

OK

post/api/companies/{companyUid}/departments/list
Request samples
{
}
Response samples
{
}

UpdateCompanyDepartmentAccounting

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
companyAccoutingUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
description
required
string [ 0 .. 75 ] characters
accountNumber
required
string
Responses
204

No Content

patch/api/companies/{companyUid}/departments/{companyDepartmentUid}/accountings/{companyAccoutingUid}
Request samples
{
}

UpdateCompanyDepartmentTemplate

Securityoauth2
Request
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
companyDepartmentTemplateUid
required
string <uuid>
query Parameters
api-version
string
Responses
204

No Content

patch/api/companies/{companyUid}/departments/{companyDepartmentUid}/templates/{companyDepartmentTemplateUid}
Request samples