All URIs are relative to https://api.iplicit.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createDepartment() | POST /api/Department | Create a department |
| getDepartment() | GET /api/Department/{departmentRef} | Get a department |
| getDepartments() | GET /api/Department | Get a list of departments with a search filter |
| lockDepartment() | POST /api/Department/{departmentRef}/lock | Lock a department |
| unlockDepartment() | POST /api/Department/{departmentRef}/unlock | Unlock a department |
| upateDepartment() | PATCH /api/Department/{departmentRef} | Update a department |
createDepartment($departmentCreate): stringCreate a department
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$departmentCreate = new \SynergiTech\Iplicit\Model\DepartmentCreate(); // \SynergiTech\Iplicit\Model\DepartmentCreate |
try {
$result = $apiInstance->createDepartment($departmentCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->createDepartment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| departmentCreate | \SynergiTech\Iplicit\Model\DepartmentCreate | [optional] |
string
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getDepartment($departmentRef, $include): \SynergiTech\Iplicit\Model\DepartmentReadGet a department
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$departmentRef = 'departmentRef_example'; // string | `Id` or `Code` of the department
$include = 'include_example'; // string | Comma separated list of detail to include: `resources`, `subDepartments`. If omitted, no additional detail will be included.
try {
$result = $apiInstance->getDepartment($departmentRef, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->getDepartment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| departmentRef | string | `Id` or `Code` of the department | |
| include | string | Comma separated list of detail to include: `resources`, `subDepartments`. If omitted, no additional detail will be included. | [optional] |
\SynergiTech\Iplicit\Model\DepartmentRead
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getDepartments($descriptionContains, $codeContains, $parentDepartment, $legalEntity, $managerResource, $isActive, $includeClosed, $take, $skip): \SynergiTech\Iplicit\Model\DepartmentSearch[]Get a list of departments with a search filter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$descriptionContains = 'descriptionContains_example'; // string | Use to only search department where the description contains the text
$codeContains = 'codeContains_example'; // string | Use to only search department where the code contains the text
$parentDepartment = 'parentDepartment_example'; // string | Use to only search department with the parent department. Accepts id or code.
$legalEntity = 'legalEntity_example'; // string | Use to only search department with the legal entity. Accepts id or code.
$managerResource = 'managerResource_example'; // string | Use to only search department with the manager resource. Accepts id or code.
$isActive = True; // bool | Use to only search department with the active state
$includeClosed = True; // bool | Use to only search department with the open state
$take = 100; // int | The number of records to return
$skip = 0; // int | The number of records to skip
try {
$result = $apiInstance->getDepartments($descriptionContains, $codeContains, $parentDepartment, $legalEntity, $managerResource, $isActive, $includeClosed, $take, $skip);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->getDepartments: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| descriptionContains | string | Use to only search department where the description contains the text | [optional] |
| codeContains | string | Use to only search department where the code contains the text | [optional] |
| parentDepartment | string | Use to only search department with the parent department. Accepts id or code. | [optional] |
| legalEntity | string | Use to only search department with the legal entity. Accepts id or code. | [optional] |
| managerResource | string | Use to only search department with the manager resource. Accepts id or code. | [optional] |
| isActive | bool | Use to only search department with the active state | [optional] |
| includeClosed | bool | Use to only search department with the open state | [optional] |
| take | int | The number of records to return | [optional] [default to 100] |
| skip | int | The number of records to skip | [optional] [default to 0] |
\SynergiTech\Iplicit\Model\DepartmentSearch[]
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
lockDepartment($departmentRef): stringLock a department
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$departmentRef = 'departmentRef_example'; // string | Id or code of the department
try {
$result = $apiInstance->lockDepartment($departmentRef);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->lockDepartment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| departmentRef | string | Id or code of the department |
string
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unlockDepartment($departmentRef): stringUnlock a department
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$departmentRef = 'departmentRef_example'; // string | Id or code of the department
try {
$result = $apiInstance->unlockDepartment($departmentRef);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->unlockDepartment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| departmentRef | string | Id or code of the department |
string
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
upateDepartment($departmentRef, $departmentUpdate): stringUpdate a department
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DepartmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$departmentRef = 'departmentRef_example'; // string | Id or code of the department
$departmentUpdate = new \SynergiTech\Iplicit\Model\DepartmentUpdate(); // \SynergiTech\Iplicit\Model\DepartmentUpdate |
try {
$result = $apiInstance->upateDepartment($departmentRef, $departmentUpdate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->upateDepartment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| departmentRef | string | Id or code of the department | |
| departmentUpdate | \SynergiTech\Iplicit\Model\DepartmentUpdate | [optional] |
string
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]