Parameters
The Parameter API handles global parameters that either affects the current environment, or Bots individually. Bot parameters overrides environment parameters locally.
Environment Parameters
Retrieves a list of parameters for an Environment. If the parameter field is supplied, you search filter the results by parameter name.
Represents the id of organization
Represents the id of environment
It is the parameter's name to find
GET /org/{orgUUID}/env/{envUUID}/parameters HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
}
],
"message": "text"
}
Represents the id of organization
Represents the id of environment
DTO to request create or update parameter/configuration with key, value, description and enabled
Parameter's key
Parameter's value
Parameter's description
Flag that indicates if the parameter is enabled
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": {
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
},
"message": "text"
}
Represents the id of organization
Represents the id of environment
Represents the id of environment
DTO to request create or update parameter/configuration with key, value, description and enabled
Parameter's key
Parameter's value
Parameter's description
Flag that indicates if the parameter is enabled
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": {
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
},
"message": "text"
}
Represents the id of organization
Represents the id of environment
Represents the id of environment
DELETE /org/{orgUUID}/env/{envUUID}/parameters/{parameterId} HTTP/1.1
Host:
Accept: */*
No content
Represents the id of organization
Represents the id of environment
GET /org/{orgUUID}/env/{envUUID}/parameters/version HTTP/1.1
Host:
Accept: */*
{
"data": {
"value": "text"
},
"message": "text"
}
Bot Parameters
Retrieves a list of parameters for a given bot. If the parameter field is supplied, you search filter the results by parameter name.
Represents the id of organization
Represents the id of environment
Represents the id of bot
It is the parameter's name to find
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
}
],
"message": "text"
}
Represents the id of organization
Represents the id of environment
Represents the id of bot
DTO to request create or update parameter/configuration with key, value, description and enabled
Parameter's key
Parameter's value
Parameter's description
Flag that indicates if the parameter is enabled
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": {
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
},
"message": "text"
}
Updates an existing parameter/configuration for a specific bot. Those take precedence over environment configurations.
Represents the id of organization
Represents the id of environment
Represents the id of bot
Represents the id of configuration
DTO to request create or update parameter/configuration with key, value, description and enabled
Parameter's key
Parameter's value
Parameter's description
Flag that indicates if the parameter is enabled
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": {
"id": "text",
"enabled": true,
"description": "text",
"key": "text",
"value": "text"
},
"message": "text"
}
Represents the id of organization
Represents the id of environment
Represents the id of bot
Represents the id of configuration
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters/{parameterId} HTTP/1.1
Host:
Accept: */*
No content
Was this helpful?