/v1/projects/{project_id}/agentsCreate an Agent ConfigurationCreates a new reusable agent configuration. The config field must be a valid JSON string representing the agent block of a Settings message. The returned agent_id can be passed in place of the full agent object in future Settings messages.
Parameters
project_idstringpathrequiredThe unique identifier of the project
Request body
Agent configuration details
application/json
CreateAgentConfigurationV1Request
Request body for creating an agent configuration
api_versionintegerAPI version. Defaults to 1
configstringrequiredA valid JSON string representing the agent block of a Settings message
metadataobjectA map of arbitrary key-value pairs for labeling or organizing the agent configuration
{
"api_version": 1,
"config": "string",
"metadata": {
"additionalProp1": "string"
}
}Responses
CreateAgentConfigurationV1Response
agent_idstringrequiredThe unique identifier of the newly created agent configuration
configobjectrequiredThe parsed agent configuration object
metadataobjectMetadata associated with the agent configuration
{
"agent_id": "string",
"config": {},
"metadata": {
"additionalProp1": "string"
}
}ErrorResponse
oneOf · 3 options
ErrorResponseTextError
ErrorResponseLegacyError
err_codestringThe error code
err_msgstringThe error message
request_idstringThe request ID
ErrorResponseModernError
categorystringThe category of the error
detailsstringA description of the error
messagestringA message about the error
request_idstringThe unique identifier of the request
{
"err_code": "string",
"err_msg": "string",
"request_id": "string"
}