# ArcGisEarthAutomationApi.GraphicsApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**arcgisearthGraphicsIdDelete**](GraphicsApi.md#arcgisearthGraphicsIdDelete) | **DELETE** /arcgisearth/Graphics/{id} | Delete a graphic by id
[**arcgisearthGraphicsIdGet**](GraphicsApi.md#arcgisearthGraphicsIdGet) | **GET** /arcgisearth/Graphics/{id} | Get a graphic by id
[**arcgisearthGraphicsPatch**](GraphicsApi.md#arcgisearthGraphicsPatch) | **PATCH** /arcgisearth/Graphics | Update the graphic
[**arcgisearthGraphicsPost**](GraphicsApi.md#arcgisearthGraphicsPost) | **POST** /arcgisearth/Graphics | Add the graphic

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

Delete a graphic by id

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

let apiInstance = new ArcGisEarthAutomationApi.GraphicsApi();
let id = "id_example"; // String | 
let opts = { 
  'apiVersion': "1.12-Alpha" // String | The requested API version
};
apiInstance.arcgisearthGraphicsIdDelete(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="arcgisearthGraphicsIdGet"></a>
# **arcgisearthGraphicsIdGet**
> {&#x27;String&#x27;: JToken} arcgisearthGraphicsIdGet(id, opts)

Get a graphic by id

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

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

### Parameters

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

### Return type

[**{&#x27;String&#x27;: JToken}**](JToken.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Update the graphic

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**{String: JToken}**](Object.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

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

Add the graphic

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**{String: JToken}**](Object.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

