Set AFA Advanced Configuration Values
Set AFA Advanced Configuration parameter values. The configuration values are specified in the request body in JSON format. To get a ist of AFA Advanced Configuration parameters and their corresponding values from the AFA config file (/home/afa/.fa/config), use the GET /api/v1/config endpoint from the Configuration Parameters.
Resource name: /api/v1/config/values
Request Method: POST
Request parameters:
| Parameter | Type | Description |
|---|---|---|
| keyMandatory | string | The AFA Advanced Configuration parameter name whose value will be returned. This is a path parameter. |
Request example:
{
"Key1": "value1",
"Key2": "value2"
}
cURL Example:
curl -X POST "https://localhost/api/v1/config/value" \
-H "Content-Type: application/json" \
-d '{
"Key1": "value1",
"Key2": "value2"
}'
Status codes:
| Code | Description |
|---|---|
| 204 | No Content |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 423 | Locked |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 503 | Service Unavailable |
Response example success 200:
No Content
Response example failure 400:
{
"error": "Invalid request body",
"description": "Configuration keys and values are required.",
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}