# ArcGisEarthAutomationApi.WorkspaceApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**arcgisearthWorkspaceDelete**](WorkspaceApi.md#arcgisearthWorkspaceDelete) | **DELETE** /arcgisearth/Workspace | Clear the workspace
[**arcgisearthWorkspaceGet**](WorkspaceApi.md#arcgisearthWorkspaceGet) | **GET** /arcgisearth/Workspace | Export the workspace content
[**arcgisearthWorkspacePut**](WorkspaceApi.md#arcgisearthWorkspacePut) | **PUT** /arcgisearth/Workspace | Import a workspace

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

Clear the workspace

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **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="arcgisearthWorkspaceGet"></a>
# **arcgisearthWorkspaceGet**
> AGEWorkspace arcgisearthWorkspaceGet(opts)

Export the workspace content

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

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

### Parameters

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

### Return type

[**AGEWorkspace**](AGEWorkspace.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Import a workspace

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**AGEWorkspace**](AGEWorkspace.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

