# SwiftShiftApi.SiteApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteSite**](SiteApi.md#deleteSite) | **DELETE** /organizations/{organization_id}/sites/{site_id} | 
[**deleteSiteCaregiver**](SiteApi.md#deleteSiteCaregiver) | **DELETE** /organizations/{organization_id}/sites/{site_id}/caregivers/{caregiver_id} | 
[**deleteSiteJobrole**](SiteApi.md#deleteSiteJobrole) | **DELETE** /organizations/{organization_id}/sites/{site_id}/jobroles/{jobrole_id} | 
[**deleteSiteSkill**](SiteApi.md#deleteSiteSkill) | **DELETE** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | 
[**getSite**](SiteApi.md#getSite) | **GET** /organizations/{organization_id}/sites/{site_id} | 
[**getSiteCaregiver**](SiteApi.md#getSiteCaregiver) | **GET** /organizations/{organization_id}/sites/{site_id}/caregivers/{caregiver_id} | 
[**getSiteJobrole**](SiteApi.md#getSiteJobrole) | **GET** /organizations/{organization_id}/sites/{site_id}/jobroles/{jobrole_id} | Gets site jobrole
[**getSiteSettings**](SiteApi.md#getSiteSettings) | **GET** /organizations/{organization_id}/sites/{site_id}/settings | 
[**getSiteSkill**](SiteApi.md#getSiteSkill) | **GET** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | Gets site skill
[**getSiteStats**](SiteApi.md#getSiteStats) | **GET** /organizations/{organization_id}/sites/{site_id}/statistics/{view_name} | 
[**getSiteUsers**](SiteApi.md#getSiteUsers) | **GET** /organizations/{organization_id}/sites/{site_id}/users | 
[**listSiteCaregivers**](SiteApi.md#listSiteCaregivers) | **GET** /organizations/{organization_id}/sites/{site_id}/caregivers | List site caregivers.
[**listSiteJobroles**](SiteApi.md#listSiteJobroles) | **GET** /organizations/{organization_id}/sites/{site_id}/jobroles | Gets site jobroles
[**listSiteSkills**](SiteApi.md#listSiteSkills) | **GET** /organizations/{organization_id}/sites/{site_id}/skills | Gets site skills
[**listSites**](SiteApi.md#listSites) | **GET** /organizations/{organization_id}/sites | list sites
[**postSite**](SiteApi.md#postSite) | **POST** /organizations/{organization_id}/sites | creates a site
[**postSiteCaregiver**](SiteApi.md#postSiteCaregiver) | **POST** /organizations/{organization_id}/sites/{site_id}/caregivers | Creates a caregiver.
[**postSiteJobrole**](SiteApi.md#postSiteJobrole) | **POST** /organizations/{organization_id}/sites/{site_id}/jobroles | Creates site jobrole
[**postSiteSkill**](SiteApi.md#postSiteSkill) | **POST** /organizations/{organization_id}/sites/{site_id}/skills | Creates site skill
[**putSite**](SiteApi.md#putSite) | **PUT** /organizations/{organization_id}/sites/{site_id} | 
[**putSiteCaregiver**](SiteApi.md#putSiteCaregiver) | **PUT** /organizations/{organization_id}/sites/{site_id}/caregivers/{caregiver_id} | 
[**putSiteJobrole**](SiteApi.md#putSiteJobrole) | **PUT** /organizations/{organization_id}/sites/{site_id}/jobroles/{jobrole_id} | Updates site jobrole
[**putSiteSkill**](SiteApi.md#putSiteSkill) | **PUT** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | Updates site skill


<a name="deleteSite"></a>
# **deleteSite**
> Site deleteSite(siteId, organizationId)



delete site

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

let apiInstance = new SwiftShiftApi.SiteApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
apiInstance.deleteSite(siteId, organizationId, (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 | 

### Return type

[**Site**](Site.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="deleteSiteCaregiver"></a>
# **deleteSiteCaregiver**
> Caregiver deleteSiteCaregiver(organizationId, siteId, caregiverId)



Delete site caregiver.

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = null; // String | id of an organization
let siteId = null; // String | id of a site
let caregiverId = "caregiverId_example"; // String | The id of the caregiver.
apiInstance.deleteSiteCaregiver(organizationId, siteId, caregiverId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | [**String**](.md)| id of an organization | 
 **siteId** | [**String**](.md)| id of a site | 
 **caregiverId** | **String**| The id of the caregiver. | 

### Return type

[**Caregiver**](Caregiver.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="deleteSiteJobrole"></a>
# **deleteSiteJobrole**
> SiteJobrole deleteSiteJobrole(organizationId, siteId, jobroleId)



delete site jobrole

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let jobroleId = "jobroleId_example"; // String | jobrole id
apiInstance.deleteSiteJobrole(organizationId, siteId, jobroleId, (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 | 
 **jobroleId** | **String**| jobrole id | 

### Return type

[**SiteJobrole**](SiteJobrole.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="deleteSiteSkill"></a>
# **deleteSiteSkill**
> SiteSkill deleteSiteSkill(organizationId, siteId, skillId)



delete site skill

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let skillId = "skillId_example"; // String | skill id
apiInstance.deleteSiteSkill(organizationId, siteId, skillId, (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 | 
 **skillId** | **String**| skill id | 

### Return type

[**SiteSkill**](SiteSkill.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSite"></a>
# **getSite**
> Site getSite(siteId, organizationId)



get site details

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

let apiInstance = new SwiftShiftApi.SiteApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
apiInstance.getSite(siteId, organizationId, (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 | 

### Return type

[**Site**](Site.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteCaregiver"></a>
# **getSiteCaregiver**
> Caregiver getSiteCaregiver(organizationId, siteId, caregiverId)



Get caregiver details.

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = null; // String | id of an organization
let siteId = null; // String | id of a site
let caregiverId = "caregiverId_example"; // String | The id of the caregiver.
apiInstance.getSiteCaregiver(organizationId, siteId, caregiverId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **organizationId** | [**String**](.md)| id of an organization | 
 **siteId** | [**String**](.md)| id of a site | 
 **caregiverId** | **String**| The id of the caregiver. | 

### Return type

[**Caregiver**](Caregiver.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteJobrole"></a>
# **getSiteJobrole**
> SiteJobrole getSiteJobrole(organizationId, siteId, jobroleId)

Gets site jobrole

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let jobroleId = "jobroleId_example"; // String | jobrole id
apiInstance.getSiteJobrole(organizationId, siteId, jobroleId, (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 | 
 **jobroleId** | **String**| jobrole id | 

### Return type

[**SiteJobrole**](SiteJobrole.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteSettings"></a>
# **getSiteSettings**
> SiteSettings getSiteSettings(siteId, organizationId)



get site settings

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

let apiInstance = new SwiftShiftApi.SiteApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
apiInstance.getSiteSettings(siteId, organizationId, (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 | 

### Return type

[**SiteSettings**](SiteSettings.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteSkill"></a>
# **getSiteSkill**
> SiteSkill getSiteSkill(organizationId, siteId, skillId)

Gets site skill

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let skillId = "skillId_example"; // String | skill id
apiInstance.getSiteSkill(organizationId, siteId, skillId, (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 | 
 **skillId** | **String**| skill id | 

### Return type

[**SiteSkill**](SiteSkill.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteStats"></a>
# **getSiteStats**
> InlineResponse2001 getSiteStats(viewName, siteId, organizationId, opts)



get site stats

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

let apiInstance = new SwiftShiftApi.SiteApi();
let viewName = "viewName_example"; // String | the name of the statistics db view
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'orderBy': "orderBy_example", // String | a type orm json orderBy compliant statement
  'groupBy': "groupBy_example", // String | a type orm json groupBy compliant statement
  'where': "where_example", // String | a type orm json where compliant statement
  'select': "select_example", // String | a type orm json select compliant statement
  'q': "q_example" // String | resource query language
};
apiInstance.getSiteStats(viewName, siteId, organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **viewName** | **String**| the name of the statistics db view | 
 **siteId** | **String**| id of the site | 
 **organizationId** | **String**| id of the organization | 
 **orderBy** | **String**| a type orm json orderBy compliant statement | [optional] 
 **groupBy** | **String**| a type orm json groupBy compliant statement | [optional] 
 **where** | **String**| a type orm json where compliant statement | [optional] 
 **select** | **String**| a type orm json select compliant statement | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2001**](InlineResponse2001.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSiteUsers"></a>
# **getSiteUsers**
> InlineResponse2002 getSiteUsers(siteId, organizationId, opts)



get site users

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

let apiInstance = new SwiftShiftApi.SiteApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'q': "q_example" // String | resource query language
};
apiInstance.getSiteUsers(siteId, organizationId, opts, (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 | 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2002**](InlineResponse2002.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="listSiteCaregivers"></a>
# **listSiteCaregivers**
> InlineResponse2007 listSiteCaregivers(organizationId, siteId, opts)

List site caregivers.

List site caregivers.

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = null; // String | id of an organization
let siteId = null; // String | id of a site
let opts = {
  'take': 50, // Number | Page size.
  'skip': 0, // Number | The start index.
  'search': "search_example", // String | Search phrase.
  'select': ["null"], // [String] | List of the properties to return.
  'sort': ["null"], // [String] | List of the properties to sort by.
  'q': "q_example" // String | resource query language
};
apiInstance.listSiteCaregivers(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**](.md)| id of an organization | 
 **siteId** | [**String**](.md)| id of a site | 
 **take** | **Number**| Page size. | [optional] [default to 50]
 **skip** | **Number**| The start index. | [optional] [default to 0]
 **search** | **String**| Search phrase. | [optional] 
 **select** | [**[String]**](String.md)| List of the properties to return. | [optional] 
 **sort** | [**[String]**](String.md)| List of the properties to sort by. | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2007**](InlineResponse2007.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="listSiteJobroles"></a>
# **listSiteJobroles**
> InlineResponse2005 listSiteJobroles(organizationId, siteId, opts)

Gets site jobroles

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let opts = {
  'take': 50, // Number | Page size.
  'skip': 0, // Number | The start index.
  'q': "q_example" // String | resource query language
};
apiInstance.listSiteJobroles(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**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **take** | **Number**| Page size. | [optional] [default to 50]
 **skip** | **Number**| The start index. | [optional] [default to 0]
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2005**](InlineResponse2005.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="listSiteSkills"></a>
# **listSiteSkills**
> InlineResponse2006 listSiteSkills(organizationId, siteId, opts)

Gets site skills

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let opts = {
  'take': 50, // Number | Page size.
  'skip': 0, // Number | The start index.
  'q': "q_example" // String | resource query language
};
apiInstance.listSiteSkills(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**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **take** | **Number**| Page size. | [optional] [default to 50]
 **skip** | **Number**| The start index. | [optional] [default to 0]
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2006**](InlineResponse2006.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="listSites"></a>
# **listSites**
> InlineResponse200 listSites(organizationId, opts)

list sites

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'take': 56, // Number | Page size.
  'skip': 56, // Number | The start index.
  'search': "search_example", // String | Search phrase.
  'select': ["null"], // [String] | 
  'q': "q_example" // String | resource query language
};
apiInstance.listSites(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**| id of the organization | 
 **take** | **Number**| Page size. | [optional] 
 **skip** | **Number**| The start index. | [optional] 
 **search** | **String**| Search phrase. | [optional] 
 **select** | [**[String]**](String.md)|  | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse200**](InlineResponse200.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="postSite"></a>
# **postSite**
> Site postSite(organizationId, opts)

creates a site

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'site': new SwiftShiftApi.Site() // Site | 
};
apiInstance.postSite(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**| id of the organization | 
 **site** | [**Site**](Site.md)|  | [optional] 

### Return type

[**Site**](Site.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="postSiteCaregiver"></a>
# **postSiteCaregiver**
> Caregiver postSiteCaregiver(organizationId, siteId, opts)

Creates a caregiver.

Creates a caregiver.

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = null; // String | id of an organization
let siteId = null; // String | id of a site
let opts = {
  'siteCaregiverPayload': new SwiftShiftApi.SiteCaregiverPayload() // SiteCaregiverPayload | 
};
apiInstance.postSiteCaregiver(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**](.md)| id of an organization | 
 **siteId** | [**String**](.md)| id of a site | 
 **siteCaregiverPayload** | [**SiteCaregiverPayload**](SiteCaregiverPayload.md)|  | [optional] 

### Return type

[**Caregiver**](Caregiver.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="postSiteJobrole"></a>
# **postSiteJobrole**
> SiteJobrole postSiteJobrole(organizationId, siteId, opts)

Creates site jobrole

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let opts = {
  'siteJobrolePayload': new SwiftShiftApi.SiteJobrolePayload() // SiteJobrolePayload | 
};
apiInstance.postSiteJobrole(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**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **siteJobrolePayload** | [**SiteJobrolePayload**](SiteJobrolePayload.md)|  | [optional] 

### Return type

[**SiteJobrole**](SiteJobrole.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="postSiteSkill"></a>
# **postSiteSkill**
> SiteSkill postSiteSkill(organizationId, siteId, opts)

Creates site skill

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let opts = {
  'siteSkillPayload': new SwiftShiftApi.SiteSkillPayload() // SiteSkillPayload | 
};
apiInstance.postSiteSkill(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**| id of the organization | 
 **siteId** | **String**| id of the site | 
 **siteSkillPayload** | [**SiteSkillPayload**](SiteSkillPayload.md)|  | [optional] 

### Return type

[**SiteSkill**](SiteSkill.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="putSite"></a>
# **putSite**
> Site putSite(siteId, organizationId, opts)



update site details

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

let apiInstance = new SwiftShiftApi.SiteApi();
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'site': new SwiftShiftApi.Site() // Site | 
};
apiInstance.putSite(siteId, organizationId, opts, (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 | 
 **site** | [**Site**](Site.md)|  | [optional] 

### Return type

[**Site**](Site.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="putSiteCaregiver"></a>
# **putSiteCaregiver**
> Caregiver putSiteCaregiver(organizationId, siteId, caregiverId, opts)



Update caregiver details.

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = null; // String | id of an organization
let siteId = null; // String | id of a site
let caregiverId = "caregiverId_example"; // String | The id of the caregiver.
let opts = {
  'siteCaregiverPayload': new SwiftShiftApi.SiteCaregiverPayload() // SiteCaregiverPayload | 
};
apiInstance.putSiteCaregiver(organizationId, siteId, caregiverId, 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**](.md)| id of an organization | 
 **siteId** | [**String**](.md)| id of a site | 
 **caregiverId** | **String**| The id of the caregiver. | 
 **siteCaregiverPayload** | [**SiteCaregiverPayload**](SiteCaregiverPayload.md)|  | [optional] 

### Return type

[**Caregiver**](Caregiver.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="putSiteJobrole"></a>
# **putSiteJobrole**
> SiteJobrole putSiteJobrole(organizationId, siteId, jobroleId, opts)

Updates site jobrole

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let jobroleId = "jobroleId_example"; // String | jobrole id
let opts = {
  'siteJobrolePayload': new SwiftShiftApi.SiteJobrolePayload() // SiteJobrolePayload | 
};
apiInstance.putSiteJobrole(organizationId, siteId, jobroleId, 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 | 
 **jobroleId** | **String**| jobrole id | 
 **siteJobrolePayload** | [**SiteJobrolePayload**](SiteJobrolePayload.md)|  | [optional] 

### Return type

[**SiteJobrole**](SiteJobrole.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="putSiteSkill"></a>
# **putSiteSkill**
> SiteSkill putSiteSkill(organizationId, siteId, skillId, opts)

Updates site skill

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

let apiInstance = new SwiftShiftApi.SiteApi();
let organizationId = "organizationId_example"; // String | id of the organization
let siteId = "siteId_example"; // String | id of the site
let skillId = "skillId_example"; // String | skill id
let opts = {
  'siteSkillPayload': new SwiftShiftApi.SiteSkillPayload() // SiteSkillPayload | 
};
apiInstance.putSiteSkill(organizationId, siteId, skillId, 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 | 
 **skillId** | **String**| skill id | 
 **siteSkillPayload** | [**SiteSkillPayload**](SiteSkillPayload.md)|  | [optional] 

### Return type

[**SiteSkill**](SiteSkill.md)

### Authorization

No authorization required

### HTTP request headers

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

