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
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
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
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
This key is already being used
Unprocessable Entity
Bot not exists
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
OK
Bad Request
Unauthorized
Forbidden
Parameter with that id and botUUID doesn't exist
Conflict
This key is already being used
Unprocessable Entity
Bot not exists
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
OK
No content
Bad Request
Unauthorized
Configuration is not erasable
Parameter with that id doesn't exist
Conflict
Unprocessable Entity
Internal Server Error
DELETE /org/{orgUUID}/env/{envUUID}/parameters/{parameterId} HTTP/1.1
Host:
Accept: */*
No content
Represents the id of organization
Represents the id of environment
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Configuration not found
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
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
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
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
This key is already being used
Unprocessable Entity
Bot not exists
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
OK
Bad Request
Unauthorized
Forbidden
Parameter with that id and botUUID doesn't exist
Conflict
This key is already being used
Unprocessable Entity
Bot not exists
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
OK
No content
Bad Request
Unauthorized
Configuration is not erasable
Parameter with that id doesn't exist
Conflict
Unprocessable Entity
Internal Server Error
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/parameters/{parameterId} HTTP/1.1
Host:
Accept: */*
No content
Was this helpful?