curl --request POST \
--url http://localhost:8000/controllers/configs/{config_name} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Create or update controller configuration.
Args: config_name: Name of the configuration file config: Configuration dictionary to save
Returns: Success message when configuration is saved
Raises: HTTPException: 400 if save error occurs
curl --request POST \
--url http://localhost:8000/controllers/configs/{config_name} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The body is of type Config · object.
Successful Response
Was this page helpful?