# ArcGisEarthAutomationApi.LayerApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**arcgisearthLayerIdDelete**](LayerApi.md#arcgisearthLayerIdDelete) | **DELETE** /arcgisearth/Layer/{id} | Delete a layer by id
[**arcgisearthLayerIdGet**](LayerApi.md#arcgisearthLayerIdGet) | **GET** /arcgisearth/Layer/{id} | Get layer information by id
[**arcgisearthLayerPost**](LayerApi.md#arcgisearthLayerPost) | **POST** /arcgisearth/Layer | Add a layer

<a name="arcgisearthLayerIdDelete"></a>
# **arcgisearthLayerIdDelete**
> arcgisearthLayerIdDelete(id, opts)

Delete a layer by id

### Example
```javascript
import ArcGisEarthAutomationApi from 'arc_gis_earth_automation_api';

let apiInstance = new ArcGisEarthAutomationApi.LayerApi();
let id = "id_example"; // String | 
let opts = { 
  'apiVersion': "1.12-Alpha" // String | The requested API version
};
apiInstance.arcgisearthLayerIdDelete(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **apiVersion** | **String**| The requested API version | [optional] [default to 1.12-Alpha]

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="arcgisearthLayerIdGet"></a>
# **arcgisearthLayerIdGet**
> arcgisearthLayerIdGet(id, opts)

Get layer information by id

### Example
```javascript
import ArcGisEarthAutomationApi from 'arc_gis_earth_automation_api';

let apiInstance = new ArcGisEarthAutomationApi.LayerApi();
let id = "id_example"; // String | 
let opts = { 
  'apiVersion': "1.12-Alpha" // String | The requested API version
};
apiInstance.arcgisearthLayerIdGet(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **apiVersion** | **String**| The requested API version | [optional] [default to 1.12-Alpha]

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="arcgisearthLayerPost"></a>
# **arcgisearthLayerPost**
> arcgisearthLayerPost(opts)

Add a layer

### Example
```javascript
import ArcGisEarthAutomationApi from 'arc_gis_earth_automation_api';

let apiInstance = new ArcGisEarthAutomationApi.LayerApi();
let opts = { 
  'body': new ArcGisEarthAutomationApi.AGEDatasource() // AGEDatasource | 
  'apiVersion': "1.12-Alpha" // String | The requested API version
};
apiInstance.arcgisearthLayerPost(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**AGEDatasource**](AGEDatasource.md)|  | [optional] 
 **apiVersion** | **String**| The requested API version | [optional] [default to 1.12-Alpha]

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: Not defined

