# SwiftShiftApi.ManagerApi

All URIs are relative to *http://localhost:3000*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteSiteInterview**](ManagerApi.md#deleteSiteInterview) | **DELETE** /organizations/{organization_id}/sites/{site_id}/interviews/{interview_id} | 
[**getSiteInterview**](ManagerApi.md#getSiteInterview) | **GET** /organizations/{organization_id}/sites/{site_id}/interviews/{interview_id} | 
[**listInterviews**](ManagerApi.md#listInterviews) | **GET** /interviews | List interviews.
[**listOrganizationInterviews**](ManagerApi.md#listOrganizationInterviews) | **GET** /organizations/{organization_id}/interviews | List organization interviews.
[**listSiteInterviews**](ManagerApi.md#listSiteInterviews) | **GET** /organizations/{organization_id}/sites/{site_id}/interviews | List site interviews.
[**postSiteInterview**](ManagerApi.md#postSiteInterview) | **POST** /organizations/{organization_id}/sites/{site_id}/interviews | Creates an interview
[**putSiteInterview**](ManagerApi.md#putSiteInterview) | **PUT** /organizations/{organization_id}/sites/{site_id}/interviews/{interview_id} | 


<a name="deleteSiteInterview"></a>
# **deleteSiteInterview**
> Interview deleteSiteInterview(siteId, organizationId, interviewId)



delete site

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
let interviewId = "interviewId_example"; // String | The id of the interview.
apiInstance.deleteSiteInterview(siteId, organizationId, interviewId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **siteId** | **String**| id of the site | 
 **organizationId** | **String**| id of the organization | 
 **interviewId** | **String**| The id of the interview. | 

### Return type

[**Interview**](Interview.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getSiteInterview"></a>
# **getSiteInterview**
> Interview getSiteInterview(organizationId, siteId, interviewId)



get site details

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let interviewId = "interviewId_example"; // String | The id of the interview.
apiInstance.getSiteInterview(organizationId, siteId, interviewId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | **String**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **interviewId** | **String**| The id of the interview. | 

### Return type

[**Interview**](Interview.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

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

List interviews.

List interviews.

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let opts = {
  'q': "q_example" // String | resource query language
};
apiInstance.listInterviews(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="listOrganizationInterviews"></a>
# **listOrganizationInterviews**
> InlineResponse20011 listOrganizationInterviews(organizationId, opts)

List organization interviews.

List organization interviews.

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let organizationId = "organizationId_example"; // String | The id of the organization.
let opts = {
  'q': "q_example" // String | resource query language
};
apiInstance.listOrganizationInterviews(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | **String**| The id of the organization. | 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="listSiteInterviews"></a>
# **listSiteInterviews**
> InlineResponse20011 listSiteInterviews(organizationId, siteId, opts)

List site interviews.

List site interviews.

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let organizationId = "organizationId_example"; // String | The id of the organization.
let siteId = "siteId_example"; // String | The id of the site.
let opts = {
  'q': "q_example" // String | resource query language
};
apiInstance.listSiteInterviews(organizationId, siteId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | **String**| The id of the organization. | 
 **siteId** | **String**| The id of the site. | 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="postSiteInterview"></a>
# **postSiteInterview**
> Interview postSiteInterview(organizationId, siteId, opts)

Creates an interview

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let organizationId = "organizationId_example"; // String | The id of the organization.
let siteId = "siteId_example"; // String | The id of the site.
let opts = {
  'interviewPayload': new SwiftShiftApi.InterviewPayload() // InterviewPayload | 
};
apiInstance.postSiteInterview(organizationId, siteId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | **String**| The id of the organization. | 
 **siteId** | **String**| The id of the site. | 
 **interviewPayload** | [**InterviewPayload**](InterviewPayload.md)|  | [optional] 

### Return type

[**Interview**](Interview.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="putSiteInterview"></a>
# **putSiteInterview**
> Interview putSiteInterview(organizationId, siteId, interviewId, opts)



update site details

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.ManagerApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let interviewId = "interviewId_example"; // String | The id of the interview.
let opts = {
  'interviewPayload': new SwiftShiftApi.InterviewPayload() // InterviewPayload | 
};
apiInstance.putSiteInterview(organizationId, siteId, interviewId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | **String**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **interviewId** | **String**| The id of the interview. | 
 **interviewPayload** | [**InterviewPayload**](InterviewPayload.md)|  | [optional] 

### Return type

[**Interview**](Interview.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

