Environments-20
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
POST | |
GET | |
POST | |
POST |
Create llm prompts
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
Request parameters
- namestring
- prompt
- deletedboolean
Response
Example request
POST /api /environments /:project_id /llm_promptsExample response
Status 201
RESPONSE
Retrieve llm prompts
Required API key scopes
llm_prompt:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /llm_prompts /:idExample response
Status 200
RESPONSE
Retrieve llm prompts
Required API key scopes
llm_prompt:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /llm_prompts /:idExample response
Status 200
RESPONSE
Update llm prompts
Required API key scopes
llm_prompt:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- prompt
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /llm_prompts /:idExample response
Status 200
RESPONSE
Update llm prompts
Required API key scopes
llm_prompt:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- prompt
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /llm_prompts /:idExample response
Status 200
RESPONSE
Delete llm prompts
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
llm_prompt:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /llm_prompts /:idExample response
Status 405 No response body
Delete llm prompts
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
llm_prompt:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /llm_prompts /:idExample response
Status 405 No response body
Retrieve llm prompts name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Response
Example request
GET /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Retrieve llm prompts name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Response
Example request
GET /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Retrieve logs attributes
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /logs /attributesExample response
Status 200 No response body
Retrieve logs attributes
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /logs /attributesExample response
Status 200 No response body
Create logs explainlogwithai
Explain a log entry using AI.
POST /api/environments/:id/logs/explainLogWithAI/
Required API key scopes
logs:writePath parameters
- project_idstring
Request parameters
- uuidstring
- timestampstring
- force_refreshbooleanDefault:
false
Response
Example request
POST /api /environments /:project_id /logs /explainLogWithAIExample response
Status 201
RESPONSE
Create logs explainlogwithai
Explain a log entry using AI.
POST /api/environments/:id/logs/explainLogWithAI/
Required API key scopes
logs:writePath parameters
- project_idstring
Request parameters
- uuidstring
- timestampstring
- force_refreshbooleanDefault:
false
Response
Example request
POST /api /environments /:project_id /logs /explainLogWithAIExample response
Status 201
RESPONSE
Retrieve logs has logs
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /logs /has_logsExample response
Status 200 No response body
Retrieve logs has logs
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /logs /has_logsExample response
Status 200 No response body
Create logs query
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
POST /api /environments /:project_id /logs /queryExample response
Status 200 No response body
Create logs query
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
POST /api /environments /:project_id /logs /queryExample response
Status 200 No response body
Create logs sparkline
Required API key scopes
logs:readPath parameters
- project_idstring
Example request
POST /api /environments /:project_id /logs /sparkline