# Sylius\TaxonImageApi

Resource &#39;TaxonImage&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**syliusApiAdminTaxonTaxonImageDelete()**](TaxonImageApi.md#syliusApiAdminTaxonTaxonImageDelete) | **DELETE** /api/v2/admin/taxons/{code}/images/{id} | Removes the TaxonImage resource. |
| [**syliusApiAdminTaxonTaxonImageGet()**](TaxonImageApi.md#syliusApiAdminTaxonTaxonImageGet) | **GET** /api/v2/admin/taxons/{code}/images/{id} | Retrieves a TaxonImage resource. |
| [**syliusApiAdminTaxonTaxonImageGetCollection()**](TaxonImageApi.md#syliusApiAdminTaxonTaxonImageGetCollection) | **GET** /api/v2/admin/taxons/{code}/images | Retrieves the collection of TaxonImage resources. |
| [**syliusApiAdminTaxonTaxonImagePut()**](TaxonImageApi.md#syliusApiAdminTaxonTaxonImagePut) | **PUT** /api/v2/admin/taxons/{code}/images/{id} | Replaces the TaxonImage resource. |
| [**syliusApiShopTaxonTaxonImageGet()**](TaxonImageApi.md#syliusApiShopTaxonTaxonImageGet) | **GET** /api/v2/shop/taxons/{code}/images/{id} | Retrieves a TaxonImage resource. |
| [**syliusApiShopTaxonTaxonImageGetCollection()**](TaxonImageApi.md#syliusApiShopTaxonTaxonImageGetCollection) | **GET** /api/v2/shop/taxons/{code}/images | Retrieves the collection of TaxonImage resources. |


## `syliusApiAdminTaxonTaxonImageDelete()`

```php
syliusApiAdminTaxonTaxonImageDelete($code, $id, $accept_language)
```

Removes the TaxonImage resource.

Removes the TaxonImage resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$id = 'id_example'; // string | TaxonImage identifier
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $apiInstance->syliusApiAdminTaxonTaxonImageDelete($code, $id, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiAdminTaxonTaxonImageDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **id** | **string**| TaxonImage identifier | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/problem+json`, `application/json`

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

## `syliusApiAdminTaxonTaxonImageGet()`

```php
syliusApiAdminTaxonTaxonImageGet($code, $id, $image_filter, $accept_language): \Sylius\Model\TaxonImageJsonldSyliusAdminTaxonImageShow
```

Retrieves a TaxonImage resource.

Retrieves a TaxonImage resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$id = 'id_example'; // string | TaxonImage identifier
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonTaxonImageGet($code, $id, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiAdminTaxonTaxonImageGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **id** | **string**| TaxonImage identifier | |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonImageJsonldSyliusAdminTaxonImageShow**](../Model/TaxonImageJsonldSyliusAdminTaxonImageShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

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

## `syliusApiAdminTaxonTaxonImageGetCollection()`

```php
syliusApiAdminTaxonTaxonImageGetCollection($code, $page, $items_per_page, $image_filter, $accept_language): \Sylius\Model\SyliusApiAdminTaxonTaxonImageGetCollection200Response
```

Retrieves the collection of TaxonImage resources.

Retrieves the collection of TaxonImage resources.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$page = 1; // int | The collection page number
$items_per_page = 30; // int | The number of items per page
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonTaxonImageGetCollection($code, $page, $items_per_page, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiAdminTaxonTaxonImageGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **page** | **int**| The collection page number | [optional] [default to 1] |
| **items_per_page** | **int**| The number of items per page | [optional] [default to 30] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\SyliusApiAdminTaxonTaxonImageGetCollection200Response**](../Model/SyliusApiAdminTaxonTaxonImageGetCollection200Response.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`

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

## `syliusApiAdminTaxonTaxonImagePut()`

```php
syliusApiAdminTaxonTaxonImagePut($code, $id, $taxon_image_sylius_admin_taxon_image_update, $accept_language): \Sylius\Model\TaxonImageJsonldSyliusAdminTaxonImageShow
```

Replaces the TaxonImage resource.

Replaces the TaxonImage resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$id = 'id_example'; // string | TaxonImage identifier
$taxon_image_sylius_admin_taxon_image_update = new \Sylius\Model\TaxonImageSyliusAdminTaxonImageUpdate(); // \Sylius\Model\TaxonImageSyliusAdminTaxonImageUpdate | The updated TaxonImage resource
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonTaxonImagePut($code, $id, $taxon_image_sylius_admin_taxon_image_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiAdminTaxonTaxonImagePut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **id** | **string**| TaxonImage identifier | |
| **taxon_image_sylius_admin_taxon_image_update** | [**\Sylius\Model\TaxonImageSyliusAdminTaxonImageUpdate**](../Model/TaxonImageSyliusAdminTaxonImageUpdate.md)| The updated TaxonImage resource | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonImageJsonldSyliusAdminTaxonImageShow**](../Model/TaxonImageJsonldSyliusAdminTaxonImageShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/ld+json`, `application/json`
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

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

## `syliusApiShopTaxonTaxonImageGet()`

```php
syliusApiShopTaxonTaxonImageGet($code, $id, $image_filter, $accept_language): \Sylius\Model\TaxonImageJsonldSyliusShopTaxonImageShow
```

Retrieves a TaxonImage resource.

Retrieves a TaxonImage resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$id = 'id_example'; // string | TaxonImage identifier
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonTaxonImageGet($code, $id, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiShopTaxonTaxonImageGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **id** | **string**| TaxonImage identifier | |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonImageJsonldSyliusShopTaxonImageShow**](../Model/TaxonImageJsonldSyliusShopTaxonImageShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

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

## `syliusApiShopTaxonTaxonImageGetCollection()`

```php
syliusApiShopTaxonTaxonImageGetCollection($code, $page, $items_per_page, $type, $type2, $image_filter, $accept_language): \Sylius\Model\SyliusApiShopTaxonTaxonImageGetCollection200Response
```

Retrieves the collection of TaxonImage resources.

Retrieves the collection of TaxonImage resources.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonImageApi(
    // 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
);
$code = 'code_example'; // string | TaxonImage identifier
$page = 1; // int | The collection page number
$items_per_page = 30; // int | The number of items per page
$type = 'type_example'; // string | 
$type2 = array('type_example'); // string[] | 
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonTaxonImageGetCollection($code, $page, $items_per_page, $type, $type2, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonImageApi->syliusApiShopTaxonTaxonImageGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| TaxonImage identifier | |
| **page** | **int**| The collection page number | [optional] [default to 1] |
| **items_per_page** | **int**| The number of items per page | [optional] [default to 30] |
| **type** | **string**|  | [optional] |
| **type2** | [**string[]**](../Model/string.md)|  | [optional] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\SyliusApiShopTaxonTaxonImageGetCollection200Response**](../Model/SyliusApiShopTaxonTaxonImageGetCollection200Response.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`

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