Set any single option

POST /options/{key}

Sets the value of any single option

Path parameters

  • key string Required

    the option key from from within the plugin

Query parameters

  • value string | integer | array Required

    the new value for the option

application/json

Body

Responses

  • 200

    updated option reflecting new value

    Hide response attributes Show response attributes array[object]
  • 400

    invalid input, object invalid

POST /options/{key}
curl \
 -X POST https://virtserver.swaggerhub.com/Fernleaf-Systems/ShieldSecurity/1.0.0/options/{key}?value=string \
 -H "Content-Type: application/json" \
 -d '{"value":"Y"}'
Request example
{
  "value": "Y"
}
Response examples (200)
[
  {
    "key": "enable_tracking",
    "value": "Y",
    "module": "hack_guard"
  }
]