# AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#createTrustedDeveloperJscode) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 
[**deprecatedCreateTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#deprecatedCreateTrustedDeveloperJscode) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/version/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 
[**deprecatedgetTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#deprecatedgetTrustedDeveloperJscode) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/version/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 
[**deprecatedupdateTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#deprecatedupdateTrustedDeveloperJscode) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/version/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 
[**getTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#getTrustedDeveloperJscode) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 
[**updateTrustedDeveloperJscode**](TrustedDeveloperJscodeApi.md#updateTrustedDeveloperJscode) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/node-items/{nodeitemId}/trusted-developer-jscode | 

<a name="createTrustedDeveloperJscode"></a>
# **createTrustedDeveloperJscode**
> JSCode createTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId)



create the js code from a Node Item of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let body = new AgilegravityagileAiTrainerserverClient.JSCode(); // JSCode | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.createTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**JSCode**](JSCode.md)|  | 
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="deprecatedCreateTrustedDeveloperJscode"></a>
# **deprecatedCreateTrustedDeveloperJscode**
> JSCode deprecatedCreateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId)



deprecated create the js code from a Node Item of a given account project version | move to new url with versions

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let body = new AgilegravityagileAiTrainerserverClient.JSCode(); // JSCode | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.deprecatedCreateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**JSCode**](JSCode.md)|  | 
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="deprecatedgetTrustedDeveloperJscode"></a>
# **deprecatedgetTrustedDeveloperJscode**
> JSCode deprecatedgetTrustedDeveloperJscode(accountId, projectId, versionId, nodeitemId)



deprecate move to new url with versions | get the js code from a Node Item of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.deprecatedgetTrustedDeveloperJscode(accountId, projectId, versionId, nodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="deprecatedupdateTrustedDeveloperJscode"></a>
# **deprecatedupdateTrustedDeveloperJscode**
> JSCode deprecatedupdateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId)



deprecate move to new url with versions |  updates the js code from a Node Item of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let body = new AgilegravityagileAiTrainerserverClient.JSCode(); // JSCode | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.deprecatedupdateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**JSCode**](JSCode.md)|  | 
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="getTrustedDeveloperJscode"></a>
# **getTrustedDeveloperJscode**
> JSCode getTrustedDeveloperJscode(accountId, projectId, versionId, nodeitemId)



get the js code from a Node Item of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.getTrustedDeveloperJscode(accountId, projectId, versionId, nodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="updateTrustedDeveloperJscode"></a>
# **updateTrustedDeveloperJscode**
> JSCode updateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId)



updates the js code from a Node Item of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.TrustedDeveloperJscodeApi();
let body = new AgilegravityagileAiTrainerserverClient.JSCode(); // JSCode | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let nodeitemId = "nodeitemId_example"; // String | nodeitemId

apiInstance.updateTrustedDeveloperJscode(bodyaccountIdprojectIdversionIdnodeitemId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**JSCode**](JSCode.md)|  | 
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **nodeitemId** | **String**| nodeitemId | 

### Return type

[**JSCode**](JSCode.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

