BRK Execution
Validate BRK
Validates a BRK to ensure it is properly structured
POST
This endpoint validates a BRK to ensure it is properly structured and can be executed. It checks the BRK’s schema, prompt templates, dependencies, and configuration parameters. It does not execute the BRK, but only verifies that it is valid. You must have at least editor permissions for the BRK to validate it.
Request
The ID of the BRK to validate
Example Request
Response
Example Response (Valid BRK)
Example Response (Invalid BRK)
Error Codes
Bad Request - The request was malformed or missing required parameters
Unauthorized - Authentication credentials are missing or invalid
Forbidden - The authenticated user does not have permission to validate the requested BRK
Not Found - The requested BRK does not exist
Internal Server Error - An unexpected error occurred on the server
Notes
- This endpoint is useful for checking if a BRK is valid before attempting to execute it.
- The validation checks include:
- Schema validation: Ensures that the BRK’s schema is properly structured and all required fields are present.
- Prompt template validation: Ensures that all variables used in prompt templates are defined in the schema.
- Dependency validation: Ensures that all referenced BRKs exist and are accessible.
- Configuration validation: Ensures that all configuration parameters are valid.
- The response includes detailed validation results for each component of the BRK, including any errors that were found.
- A BRK is considered valid only if all components are valid (i.e.,
isValid
istrue
for all components).