# SwiftShiftApi.SkillApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**createSkill**](SkillApi.md#createSkill) | **POST** /skills | Creates a skill
[**deleteSiteSkill**](SkillApi.md#deleteSiteSkill) | **DELETE** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | 
[**deleteSkill**](SkillApi.md#deleteSkill) | **DELETE** /skills/{id} | 
[**getSiteSkill**](SkillApi.md#getSiteSkill) | **GET** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | Gets site skill
[**getSkill**](SkillApi.md#getSkill) | **GET** /skills/{id} | Gets skill by id
[**listSiteSkills**](SkillApi.md#listSiteSkills) | **GET** /organizations/{organization_id}/sites/{site_id}/skills | Gets site skills
[**listSkills**](SkillApi.md#listSkills) | **GET** /skills | Gets list of all skills
[**postSiteSkill**](SkillApi.md#postSiteSkill) | **POST** /organizations/{organization_id}/sites/{site_id}/skills | Creates site skill
[**putSiteSkill**](SkillApi.md#putSiteSkill) | **PUT** /organizations/{organization_id}/sites/{site_id}/skills/{skill_id} | Updates site skill
[**putSkill**](SkillApi.md#putSkill) | **PUT** /skills/{id} | Updates skill by id


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

Creates a skill

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

let apiInstance = new SwiftShiftApi.SkillApi();
let opts = {
  'skill': new SwiftShiftApi.Skill() // Skill | 
};
apiInstance.createSkill(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **skill** | [**Skill**](Skill.md)|  | [optional] 

### Return type

[**Skill**](Skill.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **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.SkillApi();
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="deleteSkill"></a>
# **deleteSkill**
> Skill deleteSkill(id)



delete skill

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

let apiInstance = new SwiftShiftApi.SkillApi();
let id = "id_example"; // String | id of skill
apiInstance.deleteSkill(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| id of skill | 

### Return type

[**Skill**](Skill.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.SkillApi();
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="getSkill"></a>
# **getSkill**
> Skill getSkill(id)

Gets skill by id

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

let apiInstance = new SwiftShiftApi.SkillApi();
let id = "id_example"; // String | id of skill
apiInstance.getSkill(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| id of skill | 

### Return type

[**Skill**](Skill.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.SkillApi();
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="listSkills"></a>
# **listSkills**
> InlineResponse20017 listSkills(opts)

Gets list of all skills

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

let apiInstance = new SwiftShiftApi.SkillApi();
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.
  'q': "q_example" // String | resource query language
};
apiInstance.listSkills(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **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] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse20017**](InlineResponse20017.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **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.SkillApi();
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="putSiteSkill"></a>
# **putSiteSkill**
> SiteSkill putSiteSkill(organizationId, siteId, skillId, opts)

Updates site skill

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

let apiInstance = new SwiftShiftApi.SkillApi();
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

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

Updates skill by id

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

let apiInstance = new SwiftShiftApi.SkillApi();
let id = "id_example"; // String | id of skill
let opts = {
  'skill': new SwiftShiftApi.Skill() // Skill | 
};
apiInstance.putSkill(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**| id of skill | 
 **skill** | [**Skill**](Skill.md)|  | [optional] 

### Return type

[**Skill**](Skill.md)

### Authorization

No authorization required

### HTTP request headers

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

