All URIs are relative to https://tripletex.no/v2
| Method | HTTP request | Description |
|---|---|---|
| delete | DELETE /project/hourlyRates/projectSpecificRates/{id} | Delete project specific rate |
| deleteByIds | DELETE /project/hourlyRates/projectSpecificRates/list | Delete project specific rates. |
| get | GET /project/hourlyRates/projectSpecificRates/{id} | Find project specific rate by ID. |
| post | POST /project/hourlyRates/projectSpecificRates | Create new project specific rate. |
| postList | POST /project/hourlyRates/projectSpecificRates/list | Create multiple new project specific rates. |
| put | PUT /project/hourlyRates/projectSpecificRates/{id} | Update a project specific rate. |
| putList | PUT /project/hourlyRates/projectSpecificRates/list | Update multiple project specific rates. |
| search | GET /project/hourlyRates/projectSpecificRates | Find project specific rates corresponding with sent data. |
delete($id)
Delete project specific rate
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Element ID
try {
$apiInstance->delete($id);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Element ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteByIds($ids)
Delete project specific rates.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ids = "ids_example"; // string | ID of the elements
try {
$apiInstance->deleteByIds($ids);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->deleteByIds: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| ids | string | ID of the elements |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ResponseWrapperProjectSpecificRate get($id, $fields)
Find project specific rate by ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern
try {
$result = $apiInstance->get($id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->get: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Element ID | |
| fields | string | Fields filter pattern | [optional] |
\Tripletex\Model\ResponseWrapperProjectSpecificRate
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ResponseWrapperProjectSpecificRate post($body)
Create new project specific rate.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Tripletex\Model\ProjectSpecificRate(); // \Tripletex\Model\ProjectSpecificRate | JSON representing the new object to be created. Should not have ID and version set.
try {
$result = $apiInstance->post($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->post: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Tripletex\Model\ProjectSpecificRate | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
\Tripletex\Model\ResponseWrapperProjectSpecificRate
- Content-Type: application/json; charset=utf-8
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ListResponseProjectSpecificRate postList($body)
Create multiple new project specific rates.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = array(new \Tripletex\Model\ProjectSpecificRate()); // \Tripletex\Model\ProjectSpecificRate[] | JSON representing a list of new object to be created. Should not have ID and version set.
try {
$result = $apiInstance->postList($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->postList: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Tripletex\Model\ProjectSpecificRate[] | JSON representing a list of new object to be created. Should not have ID and version set. | [optional] |
\Tripletex\Model\ListResponseProjectSpecificRate
- Content-Type: application/json; charset=utf-8
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ResponseWrapperProjectSpecificRate put($id, $body)
Update a project specific rate.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Element ID
$body = new \Tripletex\Model\ProjectSpecificRate(); // \Tripletex\Model\ProjectSpecificRate | Partial object describing what should be updated
try {
$result = $apiInstance->put($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->put: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Element ID | |
| body | \Tripletex\Model\ProjectSpecificRate | Partial object describing what should be updated | [optional] |
\Tripletex\Model\ResponseWrapperProjectSpecificRate
- Content-Type: application/json; charset=utf-8
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ListResponseProjectSpecificRate putList($body)
Update multiple project specific rates.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = array(new \Tripletex\Model\ProjectSpecificRate()); // \Tripletex\Model\ProjectSpecificRate[] | JSON representing updates to object. Should have ID and version set.
try {
$result = $apiInstance->putList($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->putList: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Tripletex\Model\ProjectSpecificRate[] | JSON representing updates to object. Should have ID and version set. | [optional] |
\Tripletex\Model\ListResponseProjectSpecificRate
- Content-Type: application/json; charset=utf-8
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ListResponseProjectSpecificRate search($id, $project_hourly_rate_id, $employee_id, $activity_id, $from, $count, $sorting, $fields)
Find project specific rates corresponding with sent data.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\ProjecthourlyRatesprojectSpecificRatesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | List of IDs
$project_hourly_rate_id = "project_hourly_rate_id_example"; // string | List of IDs
$employee_id = "employee_id_example"; // string | List of IDs
$activity_id = "activity_id_example"; // string | List of IDs
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern
try {
$result = $apiInstance->search($id, $project_hourly_rate_id, $employee_id, $activity_id, $from, $count, $sorting, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjecthourlyRatesprojectSpecificRatesApi->search: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | List of IDs | [optional] |
| project_hourly_rate_id | string | List of IDs | [optional] |
| employee_id | string | List of IDs | [optional] |
| activity_id | string | List of IDs | [optional] |
| from | int | From index | [optional] |
| count | int | Number of elements to return | [optional] |
| sorting | string | Sorting pattern | [optional] |
| fields | string | Fields filter pattern | [optional] |
\Tripletex\Model\ListResponseProjectSpecificRate
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]