chatkitty
Version:
OpenAPI client for chatkitty
64 lines (41 loc) • 1.84 kB
Markdown
# FunctionVersionsApi
All URIs are relative to *https://api.chatkitty.com*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**retrieveFunctionVersion**](#retrievefunctionversion) | **GET** /function-versions/{id} | Retrieve a chat function version|
# **retrieveFunctionVersion**
> ChatFunctionVersionResource retrieveFunctionVersion()
Returns a chat function version by ID
### Example
```typescript
import {
FunctionVersionsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new FunctionVersionsApi(configuration);
let id: number; //Chat function version ID (default to undefined)
const { status, data } = await apiInstance.retrieveFunctionVersion(
id
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | Chat function version ID | defaults to undefined|
### Return type
**ChatFunctionVersionResource**
### Authorization
[application_authorization](../README.md#application_authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**200** | OK | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)