Add a Department

Adds a new department record to the system.

Body Params
int32
required

The identifier for company.

string
required
length between 1 and 255

The name of the department.

int32

The identifier for the office.

int32

The identifier for the status.

int32

The identifier for the parent department.

string
length ≤ 255

Street address line 1 for the department.

string
length ≤ 255

Street address line 2 for the department.

string
length ≤ 255

City for the department.

string
required
length between 1 and 255

Province, state, or region for the department.

string
length ≤ 255

ZIP/postal code for the department.

string
required
length between 1 and 255

A 2-letter ISO 3166-1 alpha-2 code representing the department country (e.g., "US", not "USA"). For details, see the General Guidelines.

string
length ≤ 50

Numerical coordinate. The value is generated based on the ZIP code, city, and state of the address.

string
length ≤ 255

Phone number of the branch.

defaultJobOwnerIDs
array of int32s

User IDs of the default job owners of the department.

defaultJobOwnerIDs
string
length ≤ 50

The origin of the department.

string

Week End Date for the department. Allowed values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

string

Pay Period for the department. Allowed values: Daily, Weekly, BiWeekly, Monthly, SemiMonthly, Yearly, Hourly.

string

Pay Cycle for the department. Allowed values: 1, 2, 3, 4, Last Week.

string

Billing Period for the department. Allowed values: Daily, Weekly, BiWeekly, Monthly, SemiMonthly, Yearly, Hourly.

string

Billing Cycle for the department. Allowed values: 1, 2, 3, 4, Last Week.

string
length ≤ 255

The identifier for the origin of the department from partner database.

Headers
uuid

Unique request identifier (GUID) used to correlate request data with log entries and events.

integer

An integer identifier for the tenant that the request is being made for. Required when Tenant header is not provided.

string

Tenant company code that determines data access scope during the request. Required when FrontOfficeTenantId header is not provided.

Responses

401

Unauthorized

403

Access Denied

405

Unsupported method

406

Unsupported format(s) indicated by Accept header

409

Operation could not be completed due to conflict.

415

Unsupported format(s) indicated by the Content-Type header

429

Too many requests

500

An unexpected error occurred

502

Service Unavailable

504

Gateway Timeout

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json