# OmsorgCoreClient\FacilityContactsApi

All URIs are relative to http://localhost, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**apiFacilitiesFacilityIdContactsGet()**](FacilityContactsApi.md#apiFacilitiesFacilityIdContactsGet) | **GET** /api/facilities/{facilityId}/contacts |  |
| [**apiFacilitiesFacilityIdContactsIdDelete()**](FacilityContactsApi.md#apiFacilitiesFacilityIdContactsIdDelete) | **DELETE** /api/facilities/{facilityId}/contacts/{id} |  |
| [**apiFacilitiesFacilityIdContactsIdPut()**](FacilityContactsApi.md#apiFacilitiesFacilityIdContactsIdPut) | **PUT** /api/facilities/{facilityId}/contacts/{id} |  |
| [**apiFacilitiesFacilityIdContactsPost()**](FacilityContactsApi.md#apiFacilitiesFacilityIdContactsPost) | **POST** /api/facilities/{facilityId}/contacts |  |


## `apiFacilitiesFacilityIdContactsGet()`

```php
apiFacilitiesFacilityIdContactsGet($facility_id): \OmsorgCoreClient\Model\FacilityContactResponse[]
```



### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OmsorgCoreClient\Api\FacilityContactsApi(
    // 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
);
$facility_id = 'facility_id_example'; // string

try {
    $result = $apiInstance->apiFacilitiesFacilityIdContactsGet($facility_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FacilityContactsApi->apiFacilitiesFacilityIdContactsGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **facility_id** | **string**|  | |

### Return type

[**\OmsorgCoreClient\Model\FacilityContactResponse[]**](../Model/FacilityContactResponse.md)

### Authorization

[Bearer](../../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `text/plain`, `application/json`, `text/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `apiFacilitiesFacilityIdContactsIdDelete()`

```php
apiFacilitiesFacilityIdContactsIdDelete($facility_id, $id)
```



### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OmsorgCoreClient\Api\FacilityContactsApi(
    // 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
);
$facility_id = 'facility_id_example'; // string
$id = 'id_example'; // string

try {
    $apiInstance->apiFacilitiesFacilityIdContactsIdDelete($facility_id, $id);
} catch (Exception $e) {
    echo 'Exception when calling FacilityContactsApi->apiFacilitiesFacilityIdContactsIdDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **facility_id** | **string**|  | |
| **id** | **string**|  | |

### Return type

void (empty response body)

### Authorization

[Bearer](../../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `apiFacilitiesFacilityIdContactsIdPut()`

```php
apiFacilitiesFacilityIdContactsIdPut($facility_id, $id, $update_facility_contact_request): \OmsorgCoreClient\Model\FacilityContactResponse
```



### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OmsorgCoreClient\Api\FacilityContactsApi(
    // 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
);
$facility_id = 'facility_id_example'; // string
$id = 'id_example'; // string
$update_facility_contact_request = new \OmsorgCoreClient\Model\UpdateFacilityContactRequest(); // \OmsorgCoreClient\Model\UpdateFacilityContactRequest

try {
    $result = $apiInstance->apiFacilitiesFacilityIdContactsIdPut($facility_id, $id, $update_facility_contact_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FacilityContactsApi->apiFacilitiesFacilityIdContactsIdPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **facility_id** | **string**|  | |
| **id** | **string**|  | |
| **update_facility_contact_request** | [**\OmsorgCoreClient\Model\UpdateFacilityContactRequest**](../Model/UpdateFacilityContactRequest.md)|  | [optional] |

### Return type

[**\OmsorgCoreClient\Model\FacilityContactResponse**](../Model/FacilityContactResponse.md)

### Authorization

[Bearer](../../README.md#Bearer)

### HTTP request headers

- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `apiFacilitiesFacilityIdContactsPost()`

```php
apiFacilitiesFacilityIdContactsPost($facility_id, $create_facility_contact_request): \OmsorgCoreClient\Model\FacilityContactResponse
```



### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OmsorgCoreClient\Api\FacilityContactsApi(
    // 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
);
$facility_id = 'facility_id_example'; // string
$create_facility_contact_request = new \OmsorgCoreClient\Model\CreateFacilityContactRequest(); // \OmsorgCoreClient\Model\CreateFacilityContactRequest

try {
    $result = $apiInstance->apiFacilitiesFacilityIdContactsPost($facility_id, $create_facility_contact_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FacilityContactsApi->apiFacilitiesFacilityIdContactsPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **facility_id** | **string**|  | |
| **create_facility_contact_request** | [**\OmsorgCoreClient\Model\CreateFacilityContactRequest**](../Model/CreateFacilityContactRequest.md)|  | [optional] |

### Return type

[**\OmsorgCoreClient\Model\FacilityContactResponse**](../Model/FacilityContactResponse.md)

### Authorization

[Bearer](../../README.md#Bearer)

### HTTP request headers

- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
