Parameters

The Parameter API handles global parameters that either affects the current environment, or Bots individually. Bot parameters overrides environment parameters locally.

API SUBPATH: eva-parameter

Environment Parameters

Create a new parameter/configuration

post
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

Body

DTO to request create or update parameter/configuration with key, value, description and enabled

keystringRequired

Parameter's key

valuestringRequired

Parameter's value

descriptionstringRequired

Parameter's description

enabledbooleanOptional

Flag that indicates if the parameter is enabled

Responses
200
OK
*/*
post
POST /org/{orgUUID}/env/{envUUID}/parameters HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "key": "text",
  "value": "text",
  "description": "text",
  "enabled": true
}
{
  "data": {
    "uuid": "text",
    "enabled": true,
    "description": "text",
    "key": "text",
    "value": "text"
  },
  "message": "text"
}

Endpoint to get parameters from environment

get
Path parameters
orgUUIDstringRequired

It is the id that represents an organization

envUUIDstringRequired

It is the id that represents an environment

Query parameters
parameterstringOptional

Parameter key to search only for this

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
200
Ok
*/*
get
GET /org/{orgUUID}/env/{envUUID}/v2/parameters HTTP/1.1
Host: 
Accept: */*
{
  "parameters": {
    "cockpitVersion": "text",
    "confidenceMin": 1,
    "timeouts": {
      "genai": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "al": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "rephrasing": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "zeroShot": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "multilanguage": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      }
    },
    "maxTokens": {
      "zeroShot": {
        "min": 1,
        "value": 1,
        "max": 1
      }
    }
  },
  "extensions": {
    "improveAnswers": true,
    "generateExamples": true,
    "genaiCell": true,
    "rephrase": true,
    "multilanguage": {
      "enabled": true,
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": {}
      }
    },
    "kai": {
      "enabled": true,
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": {}
      }
    }
  },
  "list": [
    {
      "uuid": "text",
      "key": "text",
      "value": "text",
      "description": "text",
      "enabled": true
    }
  ],
  "parameter": {
    "uuid": "text",
    "key": "text",
    "value": "text",
    "description": "text",
    "enabled": true
  }
}
Deprecated

Return specific or a list of parameters globals or of the bot

get
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

Query parameters
parameterstringOptional

It is the parameter's name to find

Responses
200
OK
*/*
get
GET /org/{orgUUID}/env/{envUUID}/parameters HTTP/1.1
Host: 
Accept: */*
{
  "data": [
    {
      "id": "text",
      "enabled": true,
      "description": "text",
      "key": "text",
      "value": "text",
      "extension": true
    }
  ],
  "extensions": {
    "timeouts": {
      "genai": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "al": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "rephrasing": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "zeroShot": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "multilanguage": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      }
    }
  },
  "message": "text"
}

Update a parameter/configuration

put
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

parameterIdstringRequired

Represents the id of configuration

Body

DTO to request create or update parameter/configuration with key, value, description and enabled

keystringRequired

Parameter's key

valuestringRequired

Parameter's value

descriptionstringRequired

Parameter's description

enabledbooleanOptional

Flag that indicates if the parameter is enabled

Responses
200
OK
*/*
put
PUT /org/{orgUUID}/env/{envUUID}/parameters/{parameterId} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "key": "text",
  "value": "text",
  "description": "text",
  "enabled": true
}
{
  "data": {
    "uuid": "text",
    "enabled": true,
    "description": "text",
    "key": "text",
    "value": "text"
  },
  "message": "text"
}

Delete a parameter/configuration

delete
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

parameterIdstringRequired

Represents the id of configuration

Responses
200
OK
delete
DELETE /org/{orgUUID}/env/{envUUID}/parameters/{parameterId} HTTP/1.1
Host: 
Accept: */*

No content

Return a specific configuration 'cockpit-version'

get
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

Responses
200
OK
*/*
get
GET /org/{orgUUID}/env/{envUUID}/parameters/version HTTP/1.1
Host: 
Accept: */*
{
  "data": {
    "value": "text"
  },
  "message": "text"
}
Deprecated

Return if the environment has the license to use automated learning. Deprecated method which will me removed past 4.5.0

get
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

Responses
200
OK
*/*
get
GET /org/{orgUUID}/env/{envUUID}/parameters/automated-learning HTTP/1.1
Host: 
Accept: */*
{
  "hasLicense": true
}

Bot Parameters

Create a new parameter/configuration

post
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

botUUIDstringRequired

Represents the id of bot

Body

DTO to request create or update parameter/configuration with key, value, description and enabled

keystringRequired

Parameter's key

valuestringRequired

Parameter's value

descriptionstringRequired

Parameter's description

enabledbooleanOptional

Flag that indicates if the parameter is enabled

Responses
200
OK
*/*
post
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "key": "text",
  "value": "text",
  "description": "text",
  "enabled": true
}
{
  "data": {
    "uuid": "text",
    "enabled": true,
    "description": "text",
    "key": "text",
    "value": "text"
  },
  "message": "text"
}

Endpoint to reserved bot parameters

post
Path parameters
orgUUIDstringRequired

A valid organization uuid

envUUIDstringRequired

A valid environment uuid

botUUIDstringRequired

A valid bot uuid

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Body

DTO with type and value to the slides.

typestringRequired

The slide type, it can be CONFIDENCE_MIN, GENAI, AL OR REPHRASING.

valueinteger · int32Required

The slide value.

Responses
204
No content
post
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters/update-reserved HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 25

{
  "type": "text",
  "value": 1
}

No content

Endpoint to get parameters from bot

get
Path parameters
orgUUIDstringRequired

It is the id that represents an organization

envUUIDstringRequired

It is the id that represents an environment

botUUIDstringRequired

It is the id that represents a bot.

Query parameters
parameterstringOptional

Parameter key to search only for this

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
200
Ok
*/*
get
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/v2/parameters HTTP/1.1
Host: 
Accept: */*
{
  "parameters": {
    "cockpitVersion": "text",
    "confidenceMin": 1,
    "timeouts": {
      "genai": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "al": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "rephrasing": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "zeroShot": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "multilanguage": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      }
    },
    "maxTokens": {
      "zeroShot": {
        "min": 1,
        "value": 1,
        "max": 1
      }
    }
  },
  "extensions": {
    "improveAnswers": true,
    "generateExamples": true,
    "genaiCell": true,
    "rephrase": true,
    "multilanguage": {
      "enabled": true,
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": {}
      }
    },
    "kai": {
      "enabled": true,
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": {}
      }
    }
  },
  "list": [
    {
      "uuid": "text",
      "key": "text",
      "value": "text",
      "description": "text",
      "enabled": true
    }
  ],
  "parameter": {
    "uuid": "text",
    "key": "text",
    "value": "text",
    "description": "text",
    "enabled": true
  }
}
Deprecated

Return specific or a list of parameters globals of the bot

get
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

botUUIDstringRequired

Represents the id of bot

Query parameters
parameterstringOptional

It is the parameter's name to find

Responses
200
OK
*/*
get
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters HTTP/1.1
Host: 
Accept: */*
{
  "data": [
    {
      "id": "text",
      "enabled": true,
      "description": "text",
      "key": "text",
      "value": "text",
      "extension": true
    }
  ],
  "extensions": {
    "timeouts": {
      "genai": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "al": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "rephrasing": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "zeroShot": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      },
      "multilanguage": {
        "min": 1,
        "recommendation": 1,
        "value": 1,
        "max": 1
      }
    }
  },
  "message": "text"
}

Update a parameter/configuration

put
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

botUUIDstringRequired

Represents the id of bot

parameterIdstringRequired

Represents the id of configuration

Body

DTO to request create or update parameter/configuration with key, value, description and enabled

keystringRequired

Parameter's key

valuestringRequired

Parameter's value

descriptionstringRequired

Parameter's description

enabledbooleanOptional

Flag that indicates if the parameter is enabled

Responses
200
OK
*/*
put
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters/{parameterId} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "key": "text",
  "value": "text",
  "description": "text",
  "enabled": true
}
{
  "data": {
    "uuid": "text",
    "enabled": true,
    "description": "text",
    "key": "text",
    "value": "text"
  },
  "message": "text"
}

Delete a parameter/configuration

delete
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

botUUIDstringRequired

Represents the id of bot

parameterIdstringRequired

Represents the id of configuration

Responses
200
OK
delete
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters/{parameterId} HTTP/1.1
Host: 
Accept: */*

No content

Environment Extensions

Return if the environment has the license to use genai extensions

get
Path parameters
orgUUIDstringRequired

Represents the id of organization

envUUIDstringRequired

Represents the id of environment

Responses
200
OK
*/*
get
GET /org/{orgUUID}/env/{envUUID}/extensions/genai-enabled HTTP/1.1
Host: 
Accept: */*
{
  "hasLicense": true
}

Bot Extensions

Enable or disable genai extensions

post
Path parameters
orgUUIDstringRequired

A valid organization uuid

envUUIDstringRequired

A valid environment uuid

botUUIDstringRequired

A valid bot uuid

extensionstringRequired

It is the key extension to toggle. Possible values are: al.enabled, genai.cell.enabled, utterance.completetions.enabled, genai.enhancements.enabled and genai.rephrasing.enabled

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Body

DTO to enable or disable an extension in a bot.

valuebooleanRequired

Parameter's value

configurationValuestringOptional
Responses
204
No Content
post
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/extensions/update-status/{extension} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "value": true,
  "properties": {
    "ANY_ADDITIONAL_PROPERTY": {}
  },
  "configurationValue": "text"
}

No content

Endpoint to return if all extensions is enabled or disabled

get
Path parameters
orgUUIDstringRequired

It is the id that represents an organization

envUUIDstringRequired

It is the id that represents an environment

botUUIDstringRequired

It is the id that represents a bot.

Responses
200
Ok
*/*
get
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/extensions HTTP/1.1
Host: 
Accept: */*
{
  "improveAnswers": true,
  "generateExamples": true,
  "genaiCell": true,
  "rephrase": true,
  "multilanguage": {
    "enabled": true,
    "properties": {
      "ANY_ADDITIONAL_PROPERTY": {}
    }
  },
  "kai": {
    "enabled": true,
    "properties": {
      "ANY_ADDITIONAL_PROPERTY": {}
    }
  }
}

Last updated

Was this helpful?